# OSRM demo server

Category: [Location Information](https://free-web-services.com/web-services/geo/location-info/)  
Page: https://free-web-services.com/web-services/geo/location-info/osrm-api.html  
Documentation: https://project-osrm.org/docs/v5.24.0/api/

OSRM (Open Source Routing Machine) calculates routes on OpenStreetMap roads: driving directions with distance, travel time and turn-by-turn steps, plus distance tables between many points, matching GPS tracks to roads and finding the nearest road. Coordinates go in the URL and results come back as JSON. The public demo server at router.project-osrm.org is for light use; you can also run the open source software yourself. Free for reasonable non-commercial use, no key needed, at most one request per second.

- API key: Not needed
- Pricing: Free for reasonable non-commercial use, no key needed, at most one request per second.
- Commercial use: Not on the free plan
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST, HTTP-GET
- Provider: project-osrm.org

Example request:

```sh
curl 'https://router.project-osrm.org/route/v1/driving/-0.1278,51.5074;-0.0877,51.5079?overview=false'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

