Search for content

Guide - Matrix Routing OSM API

Introduction

The PTV Developer Matrix Routing API allows you to calculate distances and travel times between multiple locations quickly and accurately. You can retrieve accurate results for bicycles. These distance and travel-time matrices are needed to solve vehicles routing problems (VRP) and provide the basis of all route and sequence optimization. It is built on OpenStreetMap (OSM) data.
OpenStreetMap (OSM) data is distributed under the Open Database License (ODbL). If you want to use OpenStreetMap data in something you create and distribute, you must attribute OpenStreetMap

We also offer the PTV Developer Matrix Routing API based on HERE data.

The PTV Developer Matrix Routing OSM API offers:

  • High performance routing: Don’t waste your time waiting: The calculation of a distance matrix takes only a few seconds. Compare that to the minutes it would take with a conventional process, and you'll never want to use another matrix again.
  • Synchronous and asynchronous requests: No more time-outs: Instead of terminating a request, the API continues calculating in the background and automatically informs you when the request is completed. Synchronous requests support up to 1,000 locations.