Map Matching API

A service that snaps GPS coordinates to the road network, providing accurate route reconstruction from noisy GPS data.

Overview


The Map Matching API takes a series of GPS coordinates and matches them to the most likely path on the road network. This is particularly useful for cleaning up GPS traces that may have inaccuracies due to signal interference or device limitations.




Key Features


  • GPS Trace Correction: Automatically corrects GPS drift and inaccuracies
  • Road Network Snapping: Matches coordinates to actual road segments
  • Route Reconstruction: Rebuilds the most probable path taken
  • Configurable Radius: Adjust the search radius for matching



Use Cases


GPS Trace Correction

Clean up GPS tracking data from mobile devices to remove drift and inaccuracies.

Route Reconstruction

Reconstruct delivery or service routes from GPS logs for accurate analysis.

Movement Analysis

Analyze vehicle movement patterns on road networks for optimization insights.

Location Analytics

Improve accuracy of location-based analytics by snapping coordinates to actual roads.




Usage


curl https://mapapi.gebeta.app/api/route/matching/?path=[{lat,lng},{lat,lng}]&apiKey={your-api-key}&radius=1     



Request Parameters


ParameterTypeDescriptionRequired
patharrayArray of coordinate objects in format [{lat,lng},{lat,lng}]yes
apiKeystringYour API key for accessing Gebeta Mapsyes
radiusnumberSearch radius in meters for matching coordinates to roads (default: 1)yes



Response Codes


Status CodeMessageDescription
200OKThe request was successful. The system matched the path and returned the corrected route.
404NoRouteNo matching route found for the provided coordinates.
401Not Authorized - No TokenAuthentication failed. No valid token was provided.
401Not Authorized - Invalid TokenThe authentication token provided is either invalid or expired.
422InvalidInputThe request parameters are incorrect. Review the input values and adjust as needed.



Request Example


curl --location -g --request GET 'https://mapapi.gebeta.app/api/route/matching/?path=[{9.019797,38.743688},{9.020316,38.74401},{9.020571,38.743619},{9.020883,38.743538},{9.020799,38.743876},{9.020952,38.744177}]&apiKey={your-api-key}&radius=1'



Success Response Example





Error Response Example



On this page