Geocoder is a geocoding library, written in python, simple and consistent.
Many online providers such as Google & Bing have geocoding services, these providers do not include Python libraries and have different JSON responses between each other.
Consistant JSON responses from various providers.
>>> g = geocoder.google('New York City')
>>> g.latlng
[40.7127837, -74.0059413]
>>> g.state
'New York'
>>> g.json
...
To install Geocoder, simply:
$ pip install geocoder
Global | Country | Specialized |
---|---|---|
Yandex | GeoOttawa | |
Bing | Geocoder.ca | FreeGeoIP |
OpenStreetMap | Baidu | MaxMind |
HERE | what3words | |
TomTom | CanadaPost | |
MapQuest | Geonames | |
OpenCage | ||
Yahoo | ||
ArcGIS |
- Formats (JSON, GeoJSON, OSM, WKT)
- Command Line Interface
- Confidence Score
https://geocoder.readthedocs.org/
Speak up on Twitter DenisCarriere and tell me how you use this Python Geocoder. New updates will be pushed to Twitter Hashtags python.
If you cannot find a topic you are looking for, please feel free to ask me DenisCarriere or post them on the Github Issues Page.
Please feel free to give any feedback on this module. If you find any bugs or any enhancements to recommend please send some of your comments/suggestions to the Github Issues Page.
A big thanks to all the people that help contribute:
- Max Arnold - Submitted Github Issue
- Thanh Ha - Cleaned up code
- Mahdi Yusuf - Promoted by Pycoders Weekly
- Alex Pilon - Cleaned up code
- Philip Hubertus - Provided HERE improvements & documentation
- Antonio Lima - Improved code quality and introduced Rate Limits
- Alexander Lukanin - Improved Python 3 compatibilty
- flebel - Submitted Github Issues
- patrickyan - Submitted Github Issues
- esy - Submitted Github Issues