Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install python-omgeo

How to install python-omgeo

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install python-omgeo
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.5.1
1.5.5Never BuiltWhy not?
1.5.1 Available View build log
1.3.6 Available View build log
1.0 Available View build log
Windows (64-bit)
1.3.6
1.5.5Never BuiltWhy not?
1.3.6 Available View build log
1.0 Available View build log
Mac OS X (10.5+)
1.5.1
1.5.5Never BuiltWhy not?
1.5.1 Available View build log
1.3.6 Available View build log
1.0 Available View build log
Linux (32-bit)
1.5.3
1.5.5Never BuiltWhy not?
1.5.3 Available View build log
1.5.1 Available View build log
1.5.0 Available View build log
1.4.0 Available View build log
1.3.6 Available View build log
1.0 Available View build log
Linux (64-bit)
1.5.5 Available View build log
1.5.3 Available View build log
1.5.1 Available View build log
1.5.0 Available View build log
1.4.0 Available View build log
1.3.6 Available View build log
1.0 Available View build log
 
Author
License
MIT
Dependencies
Depended by
Lastest release
version 1.5.5 on Jan 9th, 2014

The Oatmeal Geocoder - Python Edition

python-omgeo is a geocoding abstraction layer written in python. Currently supported geocoders:

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}]

Testing

There is a shell script in the root of the repository called test.dummy.sh. Copy it using cp test.dummy.sh test.sh. Edit test.sh to include the API keys that you obtained from the given geocoding service providers. Then, run the tests using ./test.sh.

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.