Coordinates in.
Route chains out.
Send a depot and up to 5,000 delivery points. PackageRouter returns them in driving order with arrival times, computed on a real road network, in seconds. No credits, no per-stop surprises.
From a pile of points to a driveable chain
One request, one response. Every stop you send comes back, either placed in the chain or explicitly reported.
Send coordinates
A start point, an optional fixed end, and your stops with your own IDs. Same GPS points are merged automatically.
start · end? · stops[id, lat, lon]We solve on roads
A travel-time matrix from a delivery-tuned road profile, a fast initial tour, then iterative local search that never makes it worse.
matrix → initial tour → 2-opt · or-opt · kicksGet the chain
Each stop with its order and arrival time. Points far from any road land in unplaced, nothing disappears silently.
Watch a route chain form
Click the map to add stops, then optimize. This toy runs in your browser on straight lines; the API does the same on real roads and one-way streets.
Distances are in map units, for illustration only.
One endpoint. No SDK required.
JSON over HTTPS with an API key header. Integrate in an afternoon.
Live priority lane
Send X-Priority: live for a courier waiting at the depot; it jumps ahead of your batch jobs.
Nothing lost silently
Unreachable points are flagged approximate, wrong geocodes go to unplaced.
Drop-in VRP endpoint
/api/1/vrp accepts the common single-vehicle VRP format, so migrating is a URL and key change.
Your data stays yours
Coordinates and stop IDs are never stored. Only request counts are kept for your usage dashboard.
curl -X POST https://api.packagerouter.com/v1/optimize \ -H "X-Api-Key: $PR_KEY" \ -H "Content-Type: application/json" \ -d '{ "start": { "lat": 48.1486, "lon": 17.1077 }, "end": null, "stops": [ { "id": "PKG-1042", "lat": 48.1612, "lon": 17.1324 }, { "id": "PKG-1043", "lat": 48.1398, "lon": 17.1561 }, { "id": "PKG-1044", "lat": 48.1725, "lon": 17.0911 } ] }'
const res = await fetch("https://api.packagerouter.com/v1/optimize", { method: "POST", headers: { "X-Api-Key": process.env.PR_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ start: { lat: 48.1486, lon: 17.1077 }, stops: parcels.map(p => ({ id: p.code, lat: p.lat, lon: p.lon })), }), }); const { stops, unplaced } = await res.json(); // stops are sorted by `order`, ready for the driver app
import os, requests r = requests.post( "https://api.packagerouter.com/v1/optimize", headers={"X-Api-Key": os.environ["PR_KEY"]}, json={ "start": {"lat": 48.1486, "lon": 17.1077}, "stops": [{"id": p.code, "lat": p.lat, "lon": p.lon} for p in parcels], }, ) chain = r.json()["stops"] # ordered route chain
{
"stops": [
{ "id": "PKG-1044", "order": 1, "arrivalSeconds": 412, "approximate": false },
{ "id": "PKG-1042", "order": 2, "arrivalSeconds": 861, "approximate": false },
{ "id": "PKG-1043", "order": 3, "arrivalSeconds": 1297, "approximate": false }
],
"unplaced": [],
"durationSeconds": 1297
}
Pay per stop, not per credit
Start free. Upgrade when your routes grow. Re-optimizing the same route counts its stops again.
Cost calculator
Describe your daily operation and we'll pick the cheapest plan.
Questions
What exactly does the API optimize?
The order of stops for one vehicle: shortest total driving time from your start point through all stops, ending at a fixed end point or wherever is best. It does not split stops between vehicles, and it does not handle time windows or capacities yet.
Which regions are covered?
Today the road network covers Slovakia, rebuilt from OpenStreetMap every month with automatic checks before a new map goes live. More countries are added on request; Enterprise customers can get a dedicated region.
What counts as a stop?
Each point in the stops array of a successful request. Failed requests are not counted. Sending the same route again after a change counts its stops again, which is why plans include generous volumes.
What happens when I hit my limit?
On Free, requests return 429 until the next month. Paid plans continue at the overage price shown on the plan, and you can set a hard cap in the dashboard.
*How did you measure the 0.02 % gap?
On 24 benchmark routes we computed a proven lower bound with an exact solver and compared our result on the same travel-time matrix. It shows the solver is close to optimal for that matrix; real-world driving also depends on traffic and local knowledge the map does not have.
Do you store my customers' addresses?
No. Coordinates and stop IDs are only held in memory while the route is computed. We keep request counts, sizes and durations for your usage dashboard, for 30 days.