OSRM Trip API (TSP)
Order multiple stops into a driving trip using the TSP service. Explore route geometry, visit order and request limits for multi-stop journeys.
/api/v1/osrm/trip/v1/{profile}/{coordinates}Current plan limits
Free includes Routing, Route Optimization, Geocoding (including reverse lookup and autocomplete) and Matrix APIs within plan limits. Map Matching, Isochrone, Truck Routing, Fuel Estimate and other separate APIs require a paid plan, including PAYG. API access follows the account’s effective plan; a positive balance alone does not override Free restrictions. Road Data and AI retain their separate Business requirements.
Credit and requests-per-minute limits are shared across all account keys. An additional key credit cap cannot enlarge the account budget. Included credits are used first, then purchased credits.
Current plans and pricingOverview
The Trip API solves the travelling-salesman problem (TSP): given a set of stops, it orders them into the shortest possible round trip. Perfect for delivery loops, field-service visits and multi-stop errands where the start can be fixed and the vehicle returns to base. One call replaces manual sequencing and cuts total drive time.
API reference
/api/v1/osrm/trip/v1/{profile}/{coordinates}| Parameter | Type | Status |
|---|---|---|
| geometries | string | Optional |
| profile | string | Required |
| coordinates | string | Required |
| source | string | Optional |
| destination | string | Optional |
| roundtrip | boolean | Optional |
Example request
Credit cost: 5 creditscurl "https://osrmroute.com/api/v1/osrm/trip/v1/driving/49.85,40.37;49.86,40.40;49.83,40.39?source=first&geometries=geojson" -H "Authorization: Bearer YOUR_KEY"