Delivery apps need more than a line on a map.
A real logistics workflow needs stop order, ETAs, distance, route geometry, traffic-aware timing, and controls for tolls, highways, and ferries. If you are building dispatch software, a courier app, a field-service product, or a travel planning tool, the routing API becomes part of your core product, and its pricing and limits shape how you design everything around it.
This guide compares the routing APIs available on API.market for delivery and logistics teams. The main recommendation is Trueway Routing, with Trueway Matrix and Trueway Geocoding as supporting APIs for distance matrices and address lookup. Routify is included as a secondary option. We also walk through a full dispatch pipeline in code, show what each plan costs at example delivery volumes, and cover the failure modes you will meet in production.
A note on what was run. Everything here comes from the listings' documentation and plan data as returned by the API.market catalog on 2026-11-17. The code examples follow each listing's documented request format. We did not execute them for this guide, so treat response parsing as a starting point and print the raw JSON on your first call.
Quick comparison
| API | Best for | Free offer | Paid plans | Key features |
|---|---|---|---|---|
| Trueway Routing API | Multi-stop routing, driving directions, delivery routes | Basic: 5,000-call trial, hard limit | Pro $49 (100,000), Ultra $99 (250,000), Mega $299 (1M), Giga $999 (5M), all soft limits | Up to 25 stops, optional stop optimization, avoid tolls/highways/ferries, route geometry, legs, steps |
| Trueway Matrix API | Distance and duration matrix for logistics planning | Basic: 5,000-call trial, hard limit | Pro $49 (100,000), Ultra $99 (250,000), Mega $299 (1M), Giga $999 (5M), all soft limits | Up to 25 origins and 25 destinations, distance matrix, duration matrix, optional traffic start time |
| Trueway Geocoding API | Address-to-coordinate and coordinate-to-address lookup | Basic: 5,000-call trial, hard limit | Pro $49 (100,000), Ultra $99 (250,000), Mega $299 (1M), Giga $999 (5M), all soft limits | Forward and reverse geocoding, country/language/bounds controls |
| Routify API | Lightweight route optimization from a newer seller | Free: 10-call trial, hard limit | Pro $10 (100 calls), Mega $99 (60,000 calls), both soft limits | POST route optimizer that takes an array of points |
A word on the free column. Each Basic plan is a finite trial allowance of 5,000 calls per product, and Routify's Free plan is 10 calls. These are hard-limit plans that stop when the allowance is gone. They are not monthly allowances that refill, so budget for a paid plan once the trial is used up. The cost sections below do that math.
Catalog usage as last read on 2026-11-17: Trueway Routing shows about 14.1M total calls, 78 subscribers and a 3.7 rating from 3 reviews. Matrix shows about 1.1M calls, 35 subscribers and a 5.0 rating from 2 reviews. Geocoding shows about 2.0M calls, 45 subscribers and a 5.0 rating from 1 review. Routify is early stage, with 8 total calls, 3 subscribers and a 5.0 rating from 2 reviews. Those are usage signals from the live catalog, not quality guarantees, and a few reviews say little.
Paid Trueway plans are labelled soft limits, which means going over the included calls is meant to be billed instead of blocked. The free Basic plan is a hard limit, so it simply stops when 5,000 calls are used. The listings do not state the overage rate in the plan data, so confirm it on the listing before you rely on a soft limit as a safety net.
What makes a routing API good for delivery?
A delivery route is not the same as a consumer maps route.
Consumer maps can answer: how do I get from here to there?
Delivery software needs harder answers:
- What is the best stop order for 12 deliveries?
- How long will the route take at 4:30 PM?
- Can we avoid toll roads?
- Can we show the driver turn-by-turn steps?
- Can we calculate a distance matrix before assigning jobs?
- Can we geocode messy addresses into coordinates before routing?
The best routing API for delivery should cover at least these pieces.
Multi-stop support
A delivery route usually has more than two points. Trueway Routing supports a stops parameter with semicolon-delimited latitude and longitude pairs, with up to 25 pairs per request. That is enough for many local delivery, field-service, and courier workflows. Larger routes need a splitting strategy, which we cover below.
Route optimization
Multi-stop support is useful. Stop optimization is better. Trueway Routing exposes an optimize flag that tells the API to reorder stops to find a more efficient route. The first and last stops stay fixed, which is useful when a driver starts and ends at known locations.
Be clear about what that does and does not cover. The documented fields are stop order and avoid flags. Time windows, vehicle capacity and multiple vehicles are not among them. If your dispatch logic needs those, you will plan the assignment yourself and use the API for travel times and geometry.
Traffic-aware ETA
ETAs are only useful if they reflect real travel conditions. Here the listings are not uniform, so read the tool schemas rather than the marketing text. The Routing listing's description says it can use historical and live traffic data. In the tool schemas, start_time (an integer timestamp in seconds since the 1970 epoch, or now) appears on the FindDrivingPath operation and on the Matrix operation. The FindDrivingRoute schema, the multi-stop operation, lists stops, the three avoid flags and optimize, and no start_time. So if you need a departure time on a multi-stop route, test whether it is accepted before you design around it.
Route geometry and steps
For an in-app driver experience, you need more than distance and duration. You need route geometry, legs, steps, bounds, and maneuvers. Trueway Routing returns route-level fields plus route legs and steps, so it can support map display and turn-by-turn-style interfaces. The listing's description also mentions a geometry_format option (latlng, lnglat or geojson) that is not in the tool schemas, so check which one your account accepts.
Distance matrix support
A distance matrix helps before routing. Dispatch software can use matrix data to compare driver-to-job distance, cluster nearby stops, or estimate route cost before choosing the final assignment. Trueway Matrix returns distances and durations arrays for origin and destination sets.
Geocoding support
Delivery apps often start with addresses, not coordinates. A routing API needs clean lat/lng pairs, so geocoding is part of the workflow. Trueway Geocoding converts addresses to coordinates and supports reverse geocoding for turning coordinates back into readable addresses. Its documented response includes street, house number and a location_type of exact, approximate or centroid, so it is a street-address geocoder, not only a city lookup.
Best overall: Trueway Routing API
Trueway Routing is the most-used option on API.market for delivery routing, and it maps directly to the delivery and logistics use case.
It has the largest usage signal in the live catalog. The listing is Trueway Routing on API.market. You can start on the free Basic plan: 5,000 calls total, which is enough to build and test a dispatch prototype but is not a monthly allowance.
The docs show two routing operations:
FindDrivingRoute, for the best route across multiple stops.FindDrivingPath, for routing between an origin and destination with optional waypoints.
Use FindDrivingRoute when you have multiple delivery stops and may want the API to optimize the stop order. Use FindDrivingPath when you have a start, an end, and optional pass-through waypoints.
Trueway Routing features to call out
- Up to 25 stops for
FindDrivingRoute. - Up to 23 intermediate waypoints for
FindDrivingPath, which are pass-through locations rather than delivery stops. - Optional
optimizeflag for stop order. - Optional
avoid_tolls,avoid_highways, andavoid_ferriesflags. - Optional
start_timeonFindDrivingPathfor traffic-aware timing. - Route distance and duration.
- Route geometry.
- Bounds, legs, steps, and maneuver fields.
Road routes, not straight lines
One distinction is worth making early. These APIs calculate driving routes over a road network. The distance and duration they return are for the route a vehicle would take, not the straight-line distance between two points. A point 2 km away across a river can be 9 km by road. If you have been using a straight-line (haversine) formula to assign drivers or estimate cost, the matrix and routing calls replace that estimate with a road-based one.
A haversine check is still useful as a sanity test on the API output. Road distance should never be shorter than the straight-line distance between the same two points, and a ratio far above, say, 3 is worth a look:
import math
def haversine_m(a, b):
"""Straight-line distance in meters between two (lat, lng) points."""
r = 6371000
lat1, lng1 = map(math.radians, a)
lat2, lng2 = map(math.radians, b)
dlat, dlng = lat2 - lat1, lng2 - lng1
h = math.sin(dlat / 2) ** 2 + math.cos(lat1) * math.cos(lat2) * math.sin(dlng / 2) ** 2
return 2 * r * math.asin(math.sqrt(h))
def looks_sane(straight_m, road_m):
return road_m >= straight_m * 0.99 and road_m <= straight_m * 4
Quickstart: multi-stop route with Trueway
The examples below follow each listing's documented request format. They have not been executed for this guide. This one calculates a route across four stops in New York.
curl
curl -X GET "https://api.magicapi.dev/api/v1/trueway/routing/DirectionsService/FindDrivingRoute?stops=40.629041%2C-74.025606%3B40.630099%2C-73.993521%3B40.644895%2C-74.013818%3B40.627177%2C-73.980853&avoid_tolls=false&avoid_highways=false&avoid_ferries=false&optimize=true" \
-H "accept: application/json" \
-H "x-api-market-key: $API_MARKET_KEY"
Python
import os
import requests
endpoint = "https://api.magicapi.dev/api/v1/trueway/routing/DirectionsService/FindDrivingRoute"
params = {
"stops": "40.629041,-74.025606;40.630099,-73.993521;40.644895,-74.013818;40.627177,-73.980853",
"avoid_tolls": "false",
"avoid_highways": "false",
"avoid_ferries": "false",
"optimize": "true",
}
response = requests.get(
endpoint,
headers={
"accept": "application/json",
"x-api-market-key": os.environ["API_MARKET_KEY"],
},
params=params,
timeout=30,
)
response.raise_for_status()
route = response.json()["route"]
print("Distance:", route["distance"])
print("Duration:", route["duration"])
print("Stop order:", route.get("stops_order"))
Node.js
const endpoint = new URL("https://api.magicapi.dev/api/v1/trueway/routing/DirectionsService/FindDrivingRoute");
endpoint.searchParams.set(
"stops",
"40.629041,-74.025606;40.630099,-73.993521;40.644895,-74.013818;40.627177,-73.980853"
);
endpoint.searchParams.set("avoid_tolls", "false");
endpoint.searchParams.set("avoid_highways", "false");
endpoint.searchParams.set("avoid_ferries", "false");
endpoint.searchParams.set("optimize", "true");
const response = await fetch(endpoint, {
headers: {
"accept": "application/json",
"x-api-market-key": process.env.API_MARKET_KEY,
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status} ${await response.text()}`);
}
const data = await response.json();
console.log(data.route.distance);
console.log(data.route.duration);
console.log(data.route.stops_order);
One thing to settle on your first real call: the Routing listing names distance and duration but does not state their units, and its example response is all zeros. Print the raw JSON once, compare it against a route you know (a trip you have driven), and write the unit into your code as a constant. The Matrix listing is clearer: its own worked example describes matrix values in meters and seconds, and it is reasonable to expect the routing fields to match, but confirm it. Mixing meters and miles in a dispatch system produces the kind of bug that is expensive to find.
Distance matrix API: use Trueway Matrix before assigning deliveries
Trueway Matrix is not the same as a routing API. It is a distance matrix API: it calculates driving distance and duration between origins and destinations.
That makes it useful before you choose a route. For example, a dispatch tool can calculate travel times between available drivers and pending orders, then assign work before building the final route.
The Matrix API accepts up to 25 origins and up to 25 destinations per request, so one call can describe a grid of up to 625 origin and destination cells. If destinations are not specified, the API generates an n by n matrix using the origins.
curl distance matrix example
curl -X GET "https://api.magicapi.dev/api/v1/trueway/matrix/MatrixService/CalculateDrivingMatrix?origins=40.629041%2C-74.025606%3B40.630099%2C-73.993521&destinations=40.644895%2C-74.013818%3B40.627177%2C-73.980853&avoid_tolls=false&avoid_highways=false&avoid_ferries=false&start_time=now" \
-H "accept: application/json" \
-H "x-api-market-key: $API_MARKET_KEY"
The response includes distances and durations arrays, with one row per origin and one column per destination. Use those values for driver assignment, ETA estimates, and route cost scoring. The plans are priced "per API unit", and the listing text does not say whether one matrix call with many cells counts as one unit or many. Make one call with a 5 by 5 matrix on the free trial and check the usage page before you plan your budget around it. Everything in the cost sections below assumes one call equals one unit, which may be wrong for large matrices.
Use Trueway Geocoding before routing
Routing APIs need coordinates. Users usually type addresses.
Trueway Geocoding fills that gap. It supports:
- Forward geocoding, address to lat/lng.
- Reverse geocoding, lat/lng to address.
- Country bias.
- Language selection.
- Bounds for result preference.
A delivery app can use geocoding when an order is created, store the resulting coordinates, then pass those coordinates into Trueway Routing or Trueway Matrix. Check the location_type on each result. An exact point is a very different thing from a centroid, and a centroid for a whole neighbourhood is not a place a driver can park outside.
curl geocoding example
curl -X GET "https://api.magicapi.dev/api/v1/trueway/geocoding/GeocodingService/Geocode?address=505%20Howard%20St%2C%20San%20Francisco&country=US&language=en" \
-H "accept: application/json" \
-H "x-api-market-key: $API_MARKET_KEY"
Routify: lightweight route optimization
Routify is live on API.market and is described as a route optimization and smart ETA API for delivery, fleet and travel apps.
The listing exposes one tool, a POST route optimizer whose request body is points, an array of arrays of numbers. Example request shape:
{
"points": [
[40.629041, -74.025606],
[40.630099, -73.993521],
[40.644895, -74.013818]
]
}
The listing does not document the response shape, the coordinate order inside each point, a point limit or the units of any result. An earlier internal note records one successful call on 2026-07-22 with four points in [latitude, longitude] order, but no response from it was retained, so treat the coordinate order and the response fields as unverified until you run a call yourself. Keep a latitude and longitude convention in one helper function so you can flip it quickly if a test shows the opposite.
Its plans are small: Free gives 10 calls as a hard-limit trial, Pro is $10 for 100 calls and Mega is $99 for 60,000 calls, both soft limits. The catalog signal is still thin, with 8 total calls and 3 subscribers as of the last read, though it has a 5.0 rating from 2 reviews. Routify stays secondary because adoption is small and the documentation is thin. Its pricing shape is also different: the jump from $10 for 100 calls to $99 for 60,000 means a team doing a few hundred calls a month has an awkward middle, and a team doing tens of thousands has a decent deal.
What the plans cost at example delivery volumes
Delivery volume is easier to reason about when you convert it to calls per route. Let us use three example businesses. The numbers are assumptions for the arithmetic, not data about any customer. They assume one call equals one billed unit, and they use the listed plan prices.
Remember that the Basic plans are one-time 5,000-call trials, not monthly allowances. The time-to-exhaustion figures below are usage arithmetic, not verified trial durations: they assume the full allowance remains available with no earlier expiry or policy change. Check the actual trial end date before relying on it in production.
Business A: a single store with 3 drivers. Each driver runs 2 routes a day, 26 days a month. That is 156 routing calls. Add 40 orders a day geocoded once (1,040 geocoding calls) and a matrix call before each assignment, say 40 a day (1,040). Total across three APIs is about 2,236 calls a month. Against the one-time trials, routing at 156 a month would take about 32 months to use up 5,000 calls, but geocoding and matrix at 1,040 a month each use theirs up in under five months (5,000 divided by 1,040 is about 4.8). After that, the sensible fit is Pro at $49 for each of those two, so about $98 a month, with routing still on its trial. Caching geocoding results for repeat customers lowers the geocoding number, and by how much depends on how many of your orders come from returning addresses.
Business B: a regional courier with 40 drivers. Each driver runs 4 routes a day over 26 days: 4,160 routing calls. Say 600 new orders a day geocoded (15,600 a month) and 600 matrix calls for assignment (15,600). The routing trial lasts about 1.2 months at 4,160 a month, so routing needs Pro too. Each of the three APIs fits on Pro ($49 for 100,000 calls) with headroom. Total once the trials are used: 3 times $49, which is $147 a month.
Business C: a platform with 400 drivers. 41,600 routing calls, 156,000 geocoding calls and 156,000 matrix calls. Routing fits in Pro ($49). Geocoding and matrix each fit in Ultra ($99 for 250,000). Total: $49 plus $99 plus $99, which is $247 a month. If you re-optimize routes through the day, say each route is recalculated five times, routing becomes 208,000 calls and you move to Ultra, so your budget is driven by recalculation policy more than by driver count.
The effective cost per call on the paid plans, if you use every included call:
| Plan | Price | Included calls | Cost per call |
|---|---|---|---|
| Pro | $49 | 100,000 | about $0.00049 |
| Ultra | $99 | 250,000 | about $0.00040 |
| Mega | $299 | 1,000,000 | about $0.00030 |
| Giga | $999 | 5,000,000 | about $0.00020 |
These are plan prices divided by included calls, assuming one call equals one unit, and they only hold at full use. A Pro plan you use 20 percent of costs about $0.0025 a call. If you want to compare with another provider, take their price per 1,000 requests, divide by 1,000, and put it next to the numbers above. This guide does not compare against other providers' prices or terms, and a listing supports only its own documented offer, so check any competitor's numbers on the day you decide.
Two cost levers matter more than the plan tier. Cache geocoding where permitted. Confirm the listing and underlying source's retention rights before storing responses. Use an address key and a freshness policy rather than assuming an address or coordinate never changes. How much that saves depends on your share of repeat addresses. Do not recompute routes on a timer. Recalculate when something changes, such as a new stop, a cancelled stop or a driver running more than a set number of minutes behind, not every five minutes.
A full dispatch pipeline in code

Here is a compact version of the three-API workflow. It geocodes new orders, scores drivers against orders with a matrix call, assigns each order to the closest free driver, and builds the final stop order per driver. Treat it as a starting skeleton to adapt. It has not been executed, and the response parsing is based on the field names in the docs, so you will want to adjust it after your first real call.
Step 1: A thin client with retries and a cache
import os
import time
import requests
BASE = "https://api.magicapi.dev/api/v1/trueway"
HEADERS = {
"accept": "application/json",
"x-api-market-key": os.environ["API_MARKET_KEY"],
}
_geocode_cache: dict[str, tuple[float, float]] = {}
def call(path: str, params: dict, attempts: int = 4) -> dict:
delay = 1.0
for _ in range(attempts):
r = requests.get(f"{BASE}/{path}", headers=HEADERS, params=params, timeout=30)
if r.status_code in (429, 500, 502, 503):
time.sleep(float(r.headers.get("Retry-After", delay)))
delay *= 2
continue
r.raise_for_status()
return r.json()
raise RuntimeError(f"gave up on {path}")
A 429 or 5xx is worth a few retries. A 400 or 401 is not, since repeating a bad request just burns calls on a metered plan. Keep the attempt count low: if a 429 means your plan allowance is gone, more retries will not help.
Step 2: Reuse geocodes where storage is permitted
def geocode(address: str) -> tuple[float, float]:
key = address.strip().lower()
if key in _geocode_cache:
return _geocode_cache[key]
data = call(
"geocoding/GeocodingService/Geocode",
{"address": address, "country": "US", "language": "en"},
)
# field names follow the listing docs; print `data` on your first call and adjust
loc = data["results"][0]["location"]
coords = (loc["lat"], loc["lng"])
_geocode_cache[key] = coords
return coords
Where your terms permit retention, replace the illustrative in-memory dict with a database table keyed by a normalized address. Record the fetch time, refresh changed addresses, and restrict access to customer location data. Also store location_type and decide what you do with a centroid result. The listing review did not establish a universal right to retain upstream geocodes indefinitely.
Step 3: Score drivers against orders with one matrix call
def to_param(points):
return ";".join(f"{lat},{lng}" for lat, lng in points)
def assign(drivers: dict[str, tuple[float, float]], orders: dict[str, tuple[float, float]]):
names = list(drivers)
ids = list(orders)
data = call(
"matrix/MatrixService/CalculateDrivingMatrix",
{
"origins": to_param([drivers[n] for n in names]),
"destinations": to_param([orders[o] for o in ids]),
"start_time": "now",
},
)
durations = data["durations"] # durations[driver][order]
assignment = {n: [] for n in names}
for j, order in enumerate(ids):
best = min(range(len(names)), key=lambda i: durations[i][j])
assignment[names[best]].append(order)
return assignment
This greedy assignment is simple on purpose. It ignores driver capacity and can overload one driver, so add a cap per driver in real use. It is also worth remembering that a matrix call is limited to 25 origins and 25 destinations. With more drivers or orders than that, split into batches by area first.
Step 4: Order each driver's stops
def build_route(depot, stops):
points = [depot] + stops + [depot]
data = call(
"routing/DirectionsService/FindDrivingRoute",
{
"stops": to_param(points),
"optimize": "true",
"avoid_ferries": "true",
},
)
return data["route"]
Because the first and last stops stay fixed when optimize is on, passing the depot at both ends is the natural way to make a round trip. Note the 25 stop limit, so a depot plus 23 deliveries plus the return is the ceiling for a single call. This request deliberately leaves out start_time, because the FindDrivingRoute tool schema does not list it.
Step 5: Put it together
depot = geocode("500 Main St, Brooklyn, NY")
orders = {f"order-{i}": geocode(a) for i, a in enumerate(order_addresses)}
drivers = {"alex": depot, "sam": depot}
for driver, order_ids in assign(drivers, orders).items():
if not order_ids:
continue
route = build_route(depot, [orders[o] for o in order_ids])
print(driver, route["distance"], route["duration"], route.get("stops_order"))
The stops_order output tells you how the API reordered the stops. Map it back to your order IDs before showing the list to a driver, and store it so the app shows the same order if the driver reopens it.
Handling more than 25 stops
The 25 stop limit is a real constraint for a van with 60 parcels. There are three approaches.
- Cluster first, then route each cluster. Group stops geographically (a simple k-means on coordinates works) into clusters of 20 or fewer, then optimize each cluster separately. This is a common approach and tends to give routes that make sense to a human driver.
- Rolling windows. Route the next 23 stops, hand the driver that route, and when they near the end, route the next window from their current position. This works well when new orders arrive during the day.
- Use the matrix for ordering. Build a custom ordering heuristic from matrix data, then send ordered chunks to the routing API only for geometry and directions.
Clustering will cost more than one big route would, in call count, but each call is cheap, and routes that are too long for one driver should have been split anyway.
Which routing API should you choose?
Choose Trueway Routing if you need multi-stop delivery routing
This is the main pick. Use it when you need stop order, route geometry, driving directions, avoid-road controls, and route duration.
Choose Trueway Matrix if you need dispatch scoring
Use it before route creation when you need to compare many origins and destinations. It is a good fit for driver assignment, nearest-driver logic, and route cost scoring.
Choose Trueway Geocoding if your input starts as addresses
Use it to turn customer addresses into coordinates before routing.
Choose Routify for a lightweight route optimizer
Routify is useful when you want to send point arrays to a small optimizer and test it cheaply. Verify the response shape and the coordinate order on a trial call before you build on it, since the listing does not document them.
Troubleshooting
The route jumps across the ocean or lands in the wrong country. Almost always a coordinate order error. Trueway takes latitude,longitude pairs. GeoJSON and many mapping libraries use longitude first. Check that your data has not been swapped on the way in. A quick sanity test is to confirm that every latitude is between -90 and 90.
You get an error with more than 25 stops. You probably hit the documented limit. Split the job as described above. The listing does not state which status code it returns.
A stop is not where the customer lives. The problem is usually at the geocoding step. Print the geocoded coordinates for the failing order and look at them on a map, and check location_type. If the address was ambiguous, add the country, the region or a bounding box, which the geocoding endpoint accepts.
Durations seem too optimistic. Check whether you passed start_time on an operation that accepts it. Per the tool schemas, that means FindDrivingPath and the Matrix call. Without it you may be getting a time that ignores traffic for your departure. Compare against a route you know at a congested hour. The docs describe traffic-aware timing, but check it in your region before promising ETAs to customers.
429 responses during a morning rush. The listings do not publish a per-second limit for these products, so the exact threshold is unknown. Add a small worker queue with a concurrency cap, honor Retry-After, and spread batch jobs over a few minutes instead of launching them all at 8:00.
Requests fail after months of working. On the free Basic plan the 5,000-call trial is finite, and once it is used up calls stop. The listing does not say which status code you will see, so do not hard-code an assumption. Paid plans are soft limits meant to keep working and bill the overage, but the overage rate is not in the plan data. Check the usage page, and set an alert at 80 percent of whatever allowance you are on.
Stop order from optimize differs from the previous run. Small changes in traffic input or a re-ordered input list can yield a different equally good ordering. If you want stability for drivers mid-route, freeze the order once a route has started and only re-optimize the remaining stops.
Migration notes: moving from another routing provider
If you currently use another provider, plan the switch in stages rather than in one release.
- Map the parameters. List which features you use today: waypoints, avoid flags, departure time, alternative routes. Alternatives, time windows and capacity limits are not in the Trueway fields listed in the docs, so if your product shows several route options or schedules against time windows, confirm that before migrating.
- Match the coordinate format. Most providers accept
lat,lng, but some wantlng,lat. Put the conversion in one helper function. - Compare outputs on real routes. Take 100 routes from last week, run them through both providers, and compare distance and duration. Expect some differences. Large systematic gaps need explaining before launch.
- Run in shadow mode. Call the new provider in parallel for a week, log the results, and do not show them to drivers.
- Switch geocoding separately. Geocoders can disagree about addresses, so migrate it as its own change so you can tell which one caused a difference.
- Keep the old provider as a fallback. A feature flag that falls back on failure costs little and removes the fear of the cutover.
FAQ
What is the best routing API for delivery apps?
For API.market users, Trueway Routing is the most-used first option because it supports multi-stop routing, optional stop optimization, avoid-road controls, route geometry, legs, and steps. It also has the largest catalog usage signal in this category, though its rating rests on only 3 reviews.
Is there a free routing API on API.market?
Trueway Routing, Matrix and Geocoding each have a free Basic plan with 5,000 calls and a hard limit. Routify has a free plan of 10 calls. These are finite trial allowances, not monthly free tiers. They are good for building and testing, and a small operation will move to a paid plan once the trial is used up.
What is the difference between a routing API and a distance matrix API?
A routing API returns a route. A distance matrix API returns travel distance and duration between sets of points. Both here use driving routes over roads, not straight-line distance. Delivery platforms often use both: matrix data for assignment and routing data for the final driver path.
Can I use a routing API instead of Google Maps?
For routing, ETAs, and distance matrices, a routing API can cover part of a Google Maps workflow. Do not assume it replaces every Google Maps feature. Maps UI, tiles, places, geocoding, routing, and billing are different product areas, and this guide does not compare any provider's coverage, accuracy or latency.
Does Trueway Routing support multi-stop routes?
Yes. The docs show up to 25 stops for FindDrivingRoute and up to 23 intermediate waypoints for FindDrivingPath.
Does Trueway Routing optimize stop order?
Yes. The optimize parameter can reorder stops to find a more efficient route while keeping the first and last stops fixed.
Does the API account for traffic?
The listing descriptions mention historical and live traffic. In the tool schemas, start_time (including now) is listed on FindDrivingPath and on the Matrix operation, but not on FindDrivingRoute. Check it with your target geography and operation before relying on it for production ETAs.
How many API calls will my fleet use?
As a rule of thumb: routes per driver per day, times drivers, times working days, plus one geocoding call per new address, plus one matrix call per assignment round. Then multiply routing by how often you re-optimize. The worked examples above show how quickly recalculation policy becomes the biggest line. Whether a large matrix call counts as one unit or many is not stated, so test it.
Should I store route geometry?
Where your provider terms and customer-data rules permit retention, store it if drivers can reopen a route or if you need a record of the planned path. Geometry can be large, so keep it in blob storage or a compressed column, and keep the summary fields (distance, duration, stop order) in your main table.
Can I optimize routes with time windows or vehicle capacity?
The Trueway fields in the docs cover stop order, avoid flags and, on some operations, departure time. They do not list time windows or capacity limits. If your business needs those, use the matrix for travel times and run your own scheduling logic on top, or look for a dedicated vehicle routing solver.
Final recommendation
Start with Trueway Routing if you are building delivery, logistics, fleet, field-service, or travel routing software. The free Basic trial lets you build the whole pipeline before you pay anything, as long as you plan for the paid tier once those 5,000 calls are gone.
Pair it with Trueway Matrix when you need assignment logic or travel-time scoring. Add Trueway Geocoding when your users enter addresses instead of coordinates, and reuse results only within the applicable retention rights and freshness policy. Keep Routify as a secondary option to test cheaply, and confirm its coordinate order and response shape on your first call.




