trace_attributes
Trace attributes return road/network attributes for matched traces. Feed a GPS breadcrumb trail (2–100 points) and get per-segment road names, road classes, speed limits, surfaces, truck-route flags, and segment lengths along the matched route, plus a matcher confidence score. Use to audit what roads a vehicle actually used (speed-limit compliance, truck-route adherence, surface checks). For just the matched route line, use map_match.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | Raw GPS breadcrumb trail in travel order — 2 to 100 points of { lat, lon, time? }. `time` is optional epoch seconds; timestamps improve match quality on noisy traces. | |
| costing | No | Transport mode the trace was recorded with (default: auto) | |
| search_radius | No | Snap radius in meters around each point (1–100). Increase for noisy GPS. | |
| vehicle_profile | No | Truck preset (DRY_VAN_53, FLATBED_48, BOX_TRUCK_26, …) — same 10-profile table as directions. Implies costing=truck. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| edges | Yes | ||
| admins | No | ||
| costing | Yes | ||
| geojson | No | ||
| matched | Yes | ||
| geometry | No | ||
| confidence | Yes | Matcher confidence 0–1 | |
| edge_count | Yes | ||
| road_names | Yes | ||
| distance_km | Yes | ||
| costing_options | No | ||
| vehicle_profile | No | ||
| duration_seconds | No |