Matching
Map matching
Snap a GPS trace to the roads it was driven on. The trace goes in a JSON body on a GET request, so browsers and fetch can't call it; use a server, script or cURL.
GET
Snap a GPS trace to the roads it was driven on. The trace goes in a JSON body on a GET request, so browsers and fetch can't call it; use a server, script or cURL.
apiKey*stringYour API key. It has to be in the query string.
application/json- body
path*array<>Items
2 <= itemsmode?stringDefaults to auto. pedestrian is also accepted.
shape_match?stringDefaults to map_snap. walk_or_snap is also accepted.
The matched route.
application/json- response
path?array<>distance?numberLength of the matched route in meters.
curl -X GET 'https://mapapi.gebeta.app/api/route/matching?apiKey=string' \ -H 'Content-Type: application/json' \ -d '{ "path": [ { "lat": 9.021175, "lon": 38.683022, "timestamp": "2026-05-28T10:30:00Z" }, { "lat": 9.0209432, "lon": 38.6817064, "timestamp": "2026-05-28T10:30:05Z" }, { "lat": 9.0205533, "lon": 38.6823806, "timestamp": "2026-05-28T10:30:10Z" } ], "mode": "auto", "shape_match": "map_snap"}'{ "path": [ { "lat": 9.021378, "lon": 38.683007 }, { "lat": 9.021341, "lon": 38.682509 }, { "lat": 9.021336, "lon": 38.682277 } ], "distance": 1599.9125}