## Match GPS coordinates to the road network **post** `/api/v1/map-match` Match GPS coordinates to the road network ### Body Parameters - `trace: GeoJsonGeometry` GPS trace (GeoJSON LineString geometry) - `coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of number` GeoJSON coordinates array (nesting depth varies by geometry type) - `array of number` - `array of array of number` - `array of array of array of number` - `array of array of array of array of number` - `type: "Point" or "LineString" or "Polygon" or 3 more` - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` - `radiuses: optional array of number` Search radius per coordinate in meters (optional, default 50) ### Returns - `MapMatchResult = object { geometry, properties, type, legs }` Map matching result with snapped geometry - `geometry: GeoJsonGeometry` - `coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of number` GeoJSON coordinates array (nesting depth varies by geometry type) - `array of number` - `array of array of number` - `array of array of array of number` - `array of array of array of array of number` - `type: "Point" or "LineString" or "Polygon" or 3 more` - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` - `properties: object { confidence, distance, duration }` - `confidence: optional number` Match confidence score - `distance: optional number` Total matched distance in meters - `duration: optional number` Estimated duration in seconds - `type: "Feature"` - `"Feature"` - `legs: optional array of map[unknown]` Matched route legs between consecutive trace points ### Example ```http curl https://plaza.fyi/api/v1/map-match \ -H 'Content-Type: application/json' \ -H "Authorization: Bearer $PLAZA_API_KEY" \ -d '{ "trace": { "coordinates": [ 0 ], "type": "Point" } }' ```