Annotate stations with route-relative distance and detour information
TheDocumentation Index
Fetch the complete documentation index at: https://nozle.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
/v1/stations/enrich-distances endpoint takes a route and a list of stations, returning the same stations with miles_from_route_start and detour_minutes populated for each station that passes the filter thresholds.
/v1/optimize if your station data doesn’t already include route-relative distances. If you compute these values in your own systems, you can skip this endpoint and pass enriched stations directly to /v1/optimize.
coarse_filter_radius_miles, default 7): stations farther than this from the route polyline are dropped without matrix routing calls. Reduces cost.max_detour_minutes, default 10): stations whose round-trip detour exceeds this threshold are dropped after matrix routing.Internal route representation. Flat shape — upstream adapters normalize Google/Mapbox responses into this before it hits B2B code.
1 - 5000 elementsStations more than this many miles from the route polyline are dropped before the (expensive) distance matrix call. Bounds protect against runaway matrix costs. Increase for more lenient inclusion if your station coordinates are loose; decrease to cut matrix-call costs.
5 <= x <= 20Stations whose round-trip detour exceeds this many minutes are dropped after the matrix call.
1 <= x <= 20