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
/api/route/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.

Query Parameters

apiKey*string

Your API key. It has to be in the query string.

Request Body

application/json
  1. body
path*array<>
Items2 <= items
mode?string

Defaults to auto. pedestrian is also accepted.

shape_match?string

Defaults to map_snap. walk_or_snap is also accepted.

Response Body

The matched route.

application/json
  1. response
path?array<>
distance?number

Length 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}