Skip to main content

Reverse geocode the given latitude / longitude

Project description

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

Supports python 2 & 3:

pip install reverse-geocode
pip3 install reverse-geocode

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reverse_geocode-1.3.tar.gz (1.6 MB view details)

Uploaded Source

File details

Details for the file reverse_geocode-1.3.tar.gz.

File metadata

File hashes

Hashes for reverse_geocode-1.3.tar.gz
Algorithm Hash digest
SHA256 fa8ccd9bddb4fa9afb42f7903746fb857e9dfb51d92edf544abcc0b72d939dd9
MD5 00cca2ef61fbf27b437b03f7efdb4bbd
BLAKE2b-256 1b7f8c77c1f192a6ecde85ef4e208386fecc69095ae3a9b07d6fa296ee504460

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page