Map Match
Match GPS coordinates to the road network
client.MapMatch.Match(ctx, body) (*MapMatchResult, error)
POST/api/v1/map-match
ModelsExpand Collapse
type MapMatchResult struct{…}Map matching result as a GeoJSON FeatureCollection. Each Feature is a snapped tracepoint. The top-level matchings array contains the matched sub-routes connecting consecutive tracepoints.
type MapMatchResult struct{…}
Map matching result as a GeoJSON FeatureCollection. Each Feature is a snapped tracepoint. The top-level matchings array contains the matched sub-routes connecting consecutive tracepoints.
Features []MapMatchResultFeatureSnapped tracepoint Features in input order
Features []MapMatchResultFeature
Snapped tracepoint Features in input order
Geometry GeoJsonGeometryGeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Geometry GeoJsonGeometry
GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.
Coordinates GeoJsonGeometryCoordinatesUnionCoordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.
Coordinates GeoJsonGeometryCoordinatesUnion
Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.