This quarter, Simple Routing donated to the OpenStreetMap Foundation and the Nature Conservancy. Learn more about our give back program and values.

Truck Routing API

Routing that respects height, weight, and axle-load restrictions — not just the shortest path.

Powered by OSRM and OpenStreetMap.

🟢 Free to get started ✅ No credit card required 🔓 Open source, no lock-in

Get Free API Key

Always free for small projects. $10/mo covers most apps

Live Demo

Garden State Parkway, NJ: car vs. hgv. Same waypoints, two profiles — see how the routes diverge where trucks are restricted.

🚗 Driving 🚚 HGV
# swap "driving" → "hgv" to change the profile — same coordinates, different route
curl "https://api.simplerouting.io/osrm/route/v1/driving/-74.1979,39.9537;-74.1724,40.7357?overview=full&geometries=geojson" \
  -H "Authorization: Bearer 988b35cc-6183-4922-bbc0-857e1a1d318d"

This is a live demo with a real API key (feel free to steal it).

What's Included

🚚 Truck / HGV

Live — North America

🚚 Fleet Optimization

Assign jobs to vehicles and get optimal stop order. Handle time windows, capacity constraints, and multi-vehicle fleets.

🗺️ Distance Matrix

Calculate travel distances and times between multiple points. Perfect for logistics and planning.

🧭 Directions & Maplines

Get the road-following route geometry between any waypoints — ready to draw on Leaflet, Mapbox, or any map library. Turn-by-turn steps included.

📏 Height, Weight & Axle-Load Limits

Routes respect standard commercial vehicle height and weight limits — no more routing through low bridges or weight-restricted roads.

🚫 HGV Access Restrictions

Roads OpenStreetMap marks off-limits to trucks are automatically excluded, even where a car route would use them.

🌎 North America Coverage

Live today for North America. Same OSM-backed engine as our car and bike profiles — more regions roll out based on demand.

Quick Start

Use hgv as the profile to get truck-aware routing:

# /osrm/route/v1/{profile}/{coordinates} — use "hgv" for truck routing
curl "https://api.simplerouting.io/osrm/route/v1/hgv/-74.1979,39.9537;-74.1724,40.7357?overview=full&geometries=geojson" \
  -H "Authorization: Bearer YOUR_API_KEY"
Get Free API Key

The Problem With Car-Routing Algorithms

Standard routing engines — including our own car/driving profile — optimize for passenger vehicles. They'll happily send a truck under a 12'6" bridge or down a road with a 10-ton weight limit, because nothing in the request told them the vehicle wouldn't fit. For fleets running box trucks, tractor-trailers, or hazmat loads, that's not a minor inconvenience — it's bridge strikes, fines, and blocked streets.

Pricing

Free
$0/forever
  • 100 requests/dayiMax 5 req/s
    • Counted per call, not per element
  • Distance matrix, maplines, turn by turn, isochrone APIs
    • OSRM and Valhalla
  • Fleet optimization API
    • VROOM
  • Bicycle, car, HGV profiles iCar only for OSRM
  • North America & Europe coverage
  • No credit card required
Get Free API Key
Scale
$100/month
  • 200,000 requests/dayiMax 20 req/s
    • Counted per call, not per element
  • Distance matrix, maplines, turn by turn, isochrone APIs
    • OSRM and Valhalla
  • Fleet optimization API
    • VROOM
  • Bicycle, car, HGV profiles iCar only for OSRM
  • North America & Europe coverage
  • Cancel anytime
Get Started

No overages — your plan is your bill.

Hitting the limits, want more countries, or need a bespoke solution? Email [email protected] — we'll figure it out.

🎓
Education, non-profit, or open source? We offer discounted rates — email [email protected] to connect.

Global Stats

4.1M+
Requests served
99.99%
Uptime
260+
Developers building on the platform

FAQ

Is truck routing available today?

Yes — it's live for North America. Call the same /osrm/route/v1/{profile}/{coordinates} endpoint with hgv as the profile.

What routing do you offer right now?

Car/driving (North America and Europe), truck/hgv (North America), and bicycle routing rolling out region by region. See Hosted OSRM API and our Bicycle Routing API for details.

Ready to start?

Get your free API key — no credit card required.

Get Free API Key