osrmroute
All APIs

Truck Routing API

Send loaded vehicle dimensions and weight with each request to calculate a truck route.

Request credits
1
Required scopes
route

Usage and limits

2–20 points, subject to plan limits; up to 1,000 km, snapping within 250 m and 10 requests/minute/key. Height, width and length in metres; loaded total and heaviest-axle weight in metric tonnes; axle count includes trailers. Static road restrictions. Conditional bans, hazardous goods, live traffic, truck matrices and fleet optimization are outside this release. Follow posted road signs and local rules.

Supported countries: Azerbaijan, Armenia, Georgia, Kazakhstan, Kyrgyzstan, Tajikistan, Turkmenistan, Uzbekistan, Mongolia, Türkiye, Iran, Iraq, Syria, Jordan, Lebanon, Israel, Palestinian Territories, Yemen, Saudi Arabia, United Arab Emirates, Qatar, Kuwait, Bahrain, Oman, Afghanistan, Pakistan.

Request example

Send your key in the Authorization: Bearer header. Coordinates use [longitude, latitude]. Set OSRMROUTE_API_KEY locally; for dataset queries, set DATASET_ID to an owned dataset UUID. Never expose a Studio key in browser code.

cURL
curl --fail-with-body -X POST "https://osrmroute.com/api/v1/truck/route" \
  -H "Authorization: Bearer $OSRMROUTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"points":[[49.8671,40.4093],[49.849,40.378]],"vehicle":{"height_m":4,"width_m":2.55,"length_m":16.5,"weight_t":30,"axle_load_t":10,"axle_count":5}}'

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.