Geocoding Library using ESRI, Bing Maps, and MapQuest geocoders
Project description
The Oatmeal Geocoder - Python Edition
python-omgeo is a geocoding abstraction layer written in python. Currently supported geocoders:
Bing
Citizen Atlas (Washington DC)
ESRI European address locator (REST & SOAP)
ESRI North American locator (REST & SOAP)
MapQuest Licensed Data API
MapQuest-hosted Nominatim Open Data API
Installation:
sudo pip install python-omgeo
Documentation
Docs are available in HTML or PDF format.
Usage Example
Make a new geocoder and geocode and address:
>>> from omgeo import Geocoder >>> g = Geocoder() >>> result = g.geocode('340 12th St, Philadelphia PA')
Take a look at the result:
>>> result {'candidates': [ <340 S 12th St, Philadelphia, PA, 19107 (-75.161461, 39.94532) EsriWGS>, <340 N 12th St, Philadelphia, PA, 19107 (-75.158434, 39.958728) EsriWGS> ], 'upstream_response_info': [<EsriWGS 1054ms>]}
Take a closer look at the information in our address Candidate objects:
>>> [c.__dict__ for c in result["candidates"]] [{'geoservice': 'EsriWGS', 'locator': u'USA.AddressPoint', 'locator_type': u'PointAddress', 'match_addr': u'340 S 12th St, Philadelphia, PA, 19107', 'score': 90.87, 'wkid': 4326, 'x': -75.161461, 'y': 39.94532}, {'geoservice': 'EsriWGS', 'locator': 'interpolation', 'locator_type': u'StreetAddress', 'match_addr': u'340 N 12th St, Philadelphia, PA, 19107', 'score': 90.87, 'wkid': 4326, 'x': -75.158434, 'y': 39.958728}]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file python-omgeo-1.5.3.tar.gz
.
File metadata
- Download URL: python-omgeo-1.5.3.tar.gz
- Upload date:
- Size: 30.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d42da5c45e34ad3679dfe0f01e6840806626af10a7ff3b43ba7fe459f80a9b |
|
MD5 | b0f60237bbf5afda72e3c63b7de71ce5 |
|
BLAKE2b-256 | 25a6e1ce072374b72cea7c468aed6ee46beb85e40b71f998c2cc565ee899a181 |