API live · road network updated monthly

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.

5,000stops per route
0.02 %avg. gap to proven optimum*
~0.7 sfor a 400-stop route
POST /v1/optimize394 stops → orderedsolved in 0.7 s
unplaced0 lost, everbad geocodes are reported
How it works

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.

1

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]
2

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 · kicks
3

Get the chain

Each stop with its order and arrival time. Points far from any road land in unplaced, nothing disappears silently.

stops[order, arrivalSeconds] · unplaced[]
Try it

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.

click to add a stop · ◆ depot
Stops0
Input order–
Optimized–
Shorter by–

Distances are in map units, for illustration only.

Developer API

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 }
    ]
  }'
Response200 OK · 0.21 s
{
  "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
}
27,253stops on 233 routes, re-ordered in under 7 swhole-country synthetic benchmark
0.02 %average gap to a proven lower bound24 routes, measured on our road matrix*
< 0.4 slive request answered during a 3× batch peakpriority lane benchmark
0stops silently droppedevery stop is placed or reported
Pricing

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.

Stops per month0
Recommended plan
–
–
FAQ

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.

Ready to route smarter?

Get a free key in a minute. No card required.