Fermat
Request access
Route optimization & dispatch APIQuickstart

The path ofleast time.

Fermat plans your routes and dispatches your drivers through one API: real travel times, optimized daily plans, live dispatch, and arrival times that learn from your own fleet.

fmt_ test keys run every operation, never billed and never learned from.

2,000 × 2,000locations in one travel-time request
< 300 msfor a 100 × 100 travel-time table
< 500 msfrom a new order to a dispatch decision
5 vehicle typescar, motorbike, bicycle, foot and truck
Real travel timesDaily route plansLive dispatchLive arrival timesTurn-by-turn in Amharic and EnglishReachable-area mapsGPS trace cleanupDelivery slot offersFleet sizingRoute auditsSpreadsheet import with geocodingTrucks with hazmat and dimensionsMulti-trip and multi-depotSigned webhooks

01Why "Fermat"

Light takes the fastest path,not the shortest.

Every route Fermat returns is that bend: solved over real roads, learned speeds, thousands of stops and every constraint you send. Drag the crossing point and try to beat it.

RING ROAD · 60 KM/HOLD TOWN · 12 KM/HDEPOTCUSTOMERDRAG
Straight line12 min 14 s
This path12 min 14 s
Least time8 min 32 s30% faster

Plan the day.

Dispatch the minute.

Learn the city.

02What it answers

Three questions every fleet asks,answered by one API.

How long will it really take? Who should carry what, in what order? What do we do about the order that just arrived? Each answer says how it was reached.

sourcestargets
Travel times

Travel times you can plan a day on.

Travel times between up to 2,000 × 2,000 locations for cars, motorbikes, bicycles, walkers and trucks, at the hour you leave. Turn-by-turn directions in the driver's language and maps of what you can reach in time.

Read the guide
Optimization

Several plans race. The best one wins.

Fermat searches for your plan several ways at once, inside the time you give it, and keeps the best. The result shows the winner and every score.

Read the guide
Live dispatch

A decision before the courier looks up.

Orders and driver positions in, assignments out, each with its reason and what it costs. Nearby pickups are combined, a stop already started is never moved, and the plan updates as the day changes.

Read the guide
Clear reasons

Nothing goes unassigned without a reason.

Each unassigned job says which rule blocked it, and what small change would get it assigned.

Read the guide
Planning tools

Slots, scenarios, fleet size, audits.

Offer delivery windows priced by what they really cost you, try a plan with a different fleet, find the fleet size you need, and compare yesterday's routes with the best possible.

Read the guide
free-flowpredictedlivelearned
Learned estimates

Estimates that learn from your own fleet.

Your GPS traces become real speeds for every road and hour of the week, and the real time spent at each stop. Every estimate says where it came from.

Read the guide
Vehicle types

Five ways to move, trucks included.

Cars, motorbikes, bicycles, walkers and trucks. Trucks carry their height, width, length, weight, axle load and hazmat class, and routes respect every restriction.

Read the guide

03One integration

One API.Everything behind it.

One request format and one result format cover every use case. What runs behind them keeps improving without your integration noticing.

  • If one part is down you still get a plan: Fermat fails over on its own.
  • Every result can be replayed: the same request gives the same plan.
  • Plain units everywhere: seconds, metres, standard timestamps. No surprises.
POST /v1/optimizations{ vehicles, jobs, shipments, zones, objectives }ONE APITravel timesroutes · directions · reachable areasLarge matricesthousands of locations at onceFast planninga good plan in secondsDeep optimizationquality on hard problemsSpecial constraintsthe unusual rulesGeocodingaddresses from your spreadsheets

04For developers

Integrate in a day.Debug in a minute.

One REST API with TypeScript and Python SDKs. Errors name the field that caused them, and every response carries a request id you can look up.

curl "https://api.fermat.example/v1/optimizations" \
  -H "Authorization: Bearer $FERMAT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: plan-2026-09-23" \
  -d @field-service.json
Request tracereq_01J8…Q4 · 1.84 s
validate28 ms
travel times · 71% cached352 ms
quick plan0.88 s
deep search · selected1.40 s
reasons + save64 ms
200 · 1.84 sresult.json
{
  "status": "completed",
  "region": "ethiopia",
  "summary": { "vehiclesUsed": 2, "assigned": 11, "unassigned": 1,
               "duration": 27840, "distance": 41210, "objective": 17960 },
  "routes": [
    { "vehicleId": "tech-amanuel", "trips": [ … ], "cost": { … } },
    { "vehicleId": "tech-selam", "trips": [ … ], "cost": { … } }
  ],
  "unassigned": [
    { "id": "wo-3107", "blockingConstraints": ["timeWindow"] }
  ],
  "relaxation": [
    { "constraint": "timeWindow", "relaxBy": 1080, "wouldAssign": 1 }
  ],
  "estimateSources": { "learned": 0.71, "predicted": 0.29 }
}

05Who it is for

Anything that movesgoods or people to jobs.

One API covers the on-demand operator, the parcel depot, the field service scheduler and the freight planner. What each one sends, gets and measures:

Sends
A dispatch session per city; events as orders arrive, couriers move and stops complete.
Gets
Assignments with reasons within half a second, nearby pickups combined, live arrival times with a likely and a safe estimate.
Measures
late ordersorders per courier-hourpickup wait
Tracespositions from your fleetRoad matchingeach trace placed on its roadReal timingswhat each leg and stop tookLearned speedsper road and hour of the weekPredicted & live trafficfed back into every estimateEVERY ESTIMATEsays its source

06The learning loop

Your fleetteaches the map.

Most maps guess travel times from speed limits, and know real traffic only in a few big cities. Fermat learns from the GPS traces your vehicles already send, so its estimates are right where you actually drive.

20%more accurate arrival times than speed-limit estimates, within three months of your fleet's traces: the goal every region is measured against.
  • Where there is not enough data yet, Fermat uses the standard estimate, and says so.
  • Learned drop-off points: where a driver really stopped for an address, used the next time.
  • Test data is never learned from, and shared road speeds never say whose vehicles they came from.
Served todayEthiopiaAmharic and EnglishLuxembourgfreight profilesPrince Edward IslandNorth American roadsOther regions on request

Ten minutes from key to first route

Take the pathof least time.