ORS goes Python: easy Routing, Geocoding, Isochrones and Matrix Routing with Python: Openrouteservice-py now available on PyPi
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 //