ORS goes Python: easy Routing, Geocoding, Isochrones and Matrix Routing with Python: Openrouteservice-py now available on PyPi

Share

Sharing is Caring

ORS goes Python: Easy Routing, Geocoding, Isochrones and Matrix Routing with Python: Openrouteservice-py now available on PyPi

The Heidelberg Institute for Geoinformation Technology (HeiGIT.org) has finally developed a pretty handy python API for all of you pythoniasts out there. This library makes requests to the openrouteservice API extremely simple. With this you will be able to query the following services with a couple of lines of python code.

·      directions

·      matrix

·      geocoding

·      isochrones

To provide a quick and dirty example:

import openrouteservice
 
coords = ((8.34234,48.23424),(8.34423,48.26424))
 
client = openrouteservice.Client(key='') # Specify your personal API key
 
routes = client.directions(coords)
 
print routes
 
...

That’s it. Enjoy!

Find the sources on GitHub and install it via pip.

(1) https://go.openrouteservice.org/documentation/

(2) https://github.com/GIScience/openrouteservice-py

(3) https://pypi.python.org/pypi?:action=display&name=openrouteservice&version=0.1

- 
GIScience Research Group Heidelberg University
http://uni-heidelberg.de/gis
Heidelberg Institute for Geoinformation Technology
http://heigit.org 
// https://twitter.com/GIScienceHD // https://www.facebook.com/GIScienceHeidelberg //



Geospatial Newsletters

Keep up to date with the latest geospatial trends!

Sign up

Search DM

Get Directions Magazine delivered to you
Please enter a valid email address
Please let us know that you're not a robot by using reCAPTCHA.
Sorry, there was a problem submitting your sign up request. Please try again or email editors@directionsmag.com

Thank You! We'll email you to verify your address.

In order to complete the subscription process, simply check your inbox and click on the link in the email we have just sent you. If it is not there, please check your junk mail folder.

Thank you!

It looks like you're already subscribed.

If you still experience difficulties subscribing to our newsletters, please contact us at editors@directionsmag.com