tgrippa / openrouteservice_api_script

This repository contains python scripts for OpenRouteService.org API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openrouteservice_api_script

This repository contains python scripts for OpenRouteService.org API.

This script enables bypass of the API limitation of 5 locations per request. The user have to provided a shapefile (point) with locations to be used. The script will return a shapefile (polygon) with the resulting isochrones.

The total amount of locations is divided in batches of maximum 5 locations for which isochrone is retrieved. The batched resulting isochrones geometries are then aggregated and dissolved using GeoPandas.

A set of API parameters have to be chosen. More information of those parameters can be found here.

The user need to register on OpenRouteService.org and request a token. This token should be copy-pasted in the dedicated variable in the python script in order to the latter to be able to be run.

Example

Walking time isochrones (2 minutes each) for a set of 10 random locations in Brussels.

Further developments

  • Routing service API.
  • Distance/time matrix API.

About

This repository contains python scripts for OpenRouteService.org API

License:MIT License


Languages

Language:Python 100.0%