Routing API Examples

Maptoolkit Maps JS
Calculate a car route and draw it on a Maptoolkit map with turn-by-turn markers.

MapLibre GL JS
Calculate a car route and draw it on a MapLibre GL map with turn-by-turn markers.

Leaflet
Calculate a car route and draw it on a Leaflet map with turn-by-turn markers.

Build a Route Planner
Drag A or B to reroute, and hover a step to see it on the map.

Snap a GPS Track
Clean a recorded GPX trace with the Map Matching API and draw the raw and matched lines together.

Route Planner
Drag A or B to reroute, and hover a step to see it on the map.

Route Planner
Drag A or B to reroute, and hover a step to see it on the map.

Climb Statistics
Calculate total ascent, descent and the steepest section of a route from one Elevation API request.

Route by Surface Type
Colour a cycling route by what it runs on, using road surface data from the Route Enhancement API.

Route with Elevation Profile
Request a hiking route from the Routing API and chart its climb with the Maptoolkit elevation profile widget.