osrmroute
Products
Navigation

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.

Illustrative example
GET/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 pricing

Overview

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

GET/api/v1/osrm/trip/v1/{profile}/{coordinates}
ParameterTypeStatus
geometriesstringOptional
profilestringRequired
coordinatesstringRequired
sourcestringOptional
destinationstringOptional
roundtripbooleanOptional

Example request

Credit cost: 5 credits
curl "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"

Other services

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.