Skip to content

Getting neighbors for encode_uint64 #26

@winash12

Description

@winash12

I think we need an extra method when you encode with encode_uint64 for getting neighbors. Right now it will only with work with character geohash implementation.

This is the code I am using

       ghash = gh.encode_uint64(lat,lon)
       neighbors = gh.neighbors(ghash)

This is the error I am getting -

Traceback (most recent call last):
  File "test4.py", line 123, in <module>
    main()
  File "test4.py", line 30, in main
    neighbors = gh.neighbors(ghash)
  File "/usr/local/lib/python3.6/dist-packages/python_geohash-0.8.5-py3.6-linux-x86_64.egg/geohash.py", line 239, in neighbors
    if _geohash and len(hashcode)<25:
TypeError: object of type 'int' has no len()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions