Match GPS coordinates to the road network
MapMatchResult MapMatch.Match(MapMatchMatchParamsparameters, CancellationTokencancellationToken = default)
POST/api/v1/map-match
Match GPS coordinates to the road network
MapMatchMatchParams parameters = new()
{
Coordinates =
[
new()
{
Lat = 48.8566,
Lng = 2.3522,
},
new()
{
Lat = 48.857,
Lng = 2.353,
},
new()
{
Lat = 48.8575,
Lng = 2.354,
},
],
};
var mapMatchResult = await client.MapMatch.Match(parameters);
Console.WriteLine(mapMatchResult);{
"features": [
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"distance_m": 0,
"edge_id": 0,
"matchings_index": 0,
"name": "name",
"original": [
0,
0
],
"waypoint_index": 0
},
"type": "Feature"
}
],
"matchings": [
{
"foo": "bar"
}
],
"type": "FeatureCollection"
}Returns Examples
{
"features": [
{
"geometry": {
"coordinates": [
2.3522,
48.8566
],
"type": "Point"
},
"properties": {
"distance_m": 0,
"edge_id": 0,
"matchings_index": 0,
"name": "name",
"original": [
0,
0
],
"waypoint_index": 0
},
"type": "Feature"
}
],
"matchings": [
{
"foo": "bar"
}
],
"type": "FeatureCollection"
}