Skip to content
GuidesPlaygroundDashboard

Map Match

Match GPS coordinates to the road network
MapMatchResult MapMatch.Match(MapMatchMatchParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/map-match
ModelsExpand Collapse
class MapMatchRequest:

GPS trace to match against the road network

required GeoJsonGeometry Trace

GPS trace (GeoJSON LineString geometry)

required Coordinates Coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
IReadOnlyList<Double>
IReadOnlyList<IReadOnlyList<Double>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>>
required Type Type
One of the following:
"Point"Point
"LineString"LineString
"Polygon"Polygon
"MultiPoint"MultiPoint
"MultiLineString"MultiLineString
"MultiPolygon"MultiPolygon
IReadOnlyList<Double>? Radiuses

Search radius per coordinate in meters (optional, default 50)

class MapMatchResult:

Map matching result with snapped geometry

required GeoJsonGeometry Geometry
required Coordinates Coordinates

GeoJSON coordinates array (nesting depth varies by geometry type)

One of the following:
IReadOnlyList<Double>
IReadOnlyList<IReadOnlyList<Double>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>>
required Type Type
One of the following:
"Point"Point
"LineString"LineString
"Polygon"Polygon
"MultiPoint"MultiPoint
"MultiLineString"MultiLineString
"MultiPolygon"MultiPolygon
required Properties Properties
Double Confidence

Match confidence score

Double Distance

Total matched distance in meters

Double Duration

Estimated duration in seconds

required Type Type
IReadOnlyList<IReadOnlyDictionary<string, JsonElement>> Legs

Matched route legs between consecutive trace points