skip to navigation
skip to content

Not Logged In

reverse_geocode 1.0

Reverse geocode the given latitude / longitude

Reverse Geocode

Reverse Geocode takes a latitude / longitude coordinate and returns the country and city. Example usage:

>>> import reverse_geocode
>>> coordinates = (-37.81, 144.96), (31.76, 35.21)
>>> reverse_geocode.search(coordinates)
[{'city': 'Melbourne', 'code': 'AU', 'country': 'Australia'},
 {'city': 'Jerusalem', 'code': 'IL', 'country': 'Israel'}]

The module has a set of known geocoded locations and uses a k-d tree to efficiently find the nearest neighbour. This can be useful when you need to reverse geocode a large number of coordinates so a web API is not practical.

Install

apt-get install python-numpy python-scipy
pip install reverse_engineer
 
File Type Py Version Uploaded on Size
reverse_geocode-1.0.tar.gz (md5) Source 2015-01-26 1MB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 24 downloads in the last week
  • 107 downloads in the last month