Maps and location · Concept

Routing and route optimisation

Working out how to get from A to B (routing), and the most efficient order and split of many stops across several drivers (route optimisation).

Location data · updated

How it works

A routing engine treats roads as a graph with speeds, turn rules and, from some providers, live traffic, and finds the quickest path for driving, cycling or walking. A distance matrix returns travel times between many starting points and destinations at once, which is how an app finds the nearest driver or store. An isochrone shows everywhere reachable within a set time, such as 20 minutes.

Route optimisation is a harder problem: given 40 deliveries, 3 vans, time windows and vehicle capacities, find the order and split that minimises driving. It is known as the vehicle routing problem, a relative of the travelling salesman problem. Google's Route Optimization API and Mapbox's Optimization API solve it as a service billed by usage, while OSRM, GraphHopper, Valhalla and VROOM are open-source engines that run on OpenStreetMap data on your own servers.

More in Maps and location

Location data

All 9 Maps and location terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.