Skip to main content

Map Matching API

Turn GPS Data into Precise Routes

Transform noisy GPS traces into accurate routes aligned to the road network. Perfect for analyzing historical location data and visualizing actual paths taken.

Key Features

Precise GPS data processing

GPS Trace Correction

Snap inaccurate GPS points to the actual road network for precise route reconstruction

Road Network Alignment

Align GPS tracks to the correct roads, lanes, and paths with high accuracy

Speed Detection

Automatically detect travel speeds and identify stops along routes

Path Interpolation

Fill gaps in GPS data with intelligent interpolation based on road network

Fast Processing

Real-time map matching with support for long GPS traces and high-frequency data

Quality Scoring

Confidence scores for matched segments to identify data quality issues

Technical Specifications

Core Capabilities

GPS Processing
High-precision alignment
Accuracy
Sub-meter precision

Quality Metrics

Confidence Scores
Per-segment scoring
Gap Filling
Automatic interpolation

Detection Features

Speed Detection
Vehicle speed calculation
Road Matching
Multi-layer road network

Pricing

Free Tier
100,000 coordinates/month
Rate Limits
Unlimited

Ready to Get Started?

Start building with MapAtlas today. Sign up for free and get instant access to all our mapping APIs with generous free tier limits.

Map Matching API: common questions

Everything you need to know about snapping GPS data to roads.

Map Matching API: common questions

Everything you need to know about snapping GPS data to roads.

What is the Map Matching API used for?
The Map Matching API takes raw GPS coordinates and aligns them to the actual road network. Common use cases include fleet tracking and activity replay, cleaning up GPX files from cycling or running apps, verifying that delivery vehicles followed planned routes, and reconstructing historical trips for analytics dashboards.
Why does GPS data need to be matched to roads?
GPS receivers have a positional error of 5 to 15 metres under open sky, and much more in urban canyons or under tree cover. Raw coordinates often appear off-road, on wrong lanes, or zigzagging across a junction. Map matching applies a Hidden Markov Model to the road network to find the statistically most likely path, producing clean, road-aligned geometries suitable for display and analysis.
What input format does the Map Matching API accept?
The API accepts an ordered array of GPS coordinates as latitude and longitude pairs, optionally with timestamps and bearing values. Timestamps improve match quality on roads with parallel carriageways. The minimum is 2 coordinate pairs. There is no hard upper limit on trace length.
What is a confidence score and how should I use it?
Each matched segment returns a confidence value between 0 and 1. A score above 0.9 indicates a reliable match. Scores below 0.7 typically mean GPS signal was lost, the trace passed through an unmapped area, or the vehicle was off-road. Use low-confidence segments to flag data quality issues or trigger manual review in your pipeline.
Can I use the Map Matching API for real-time tracking?
Yes. The API returns matched results in milliseconds for typical trace lengths, making it suitable for live vehicle tracking updates. For high-frequency telemetry (more than 1 point per second), batch coordinates into 30 to 60 second windows before sending to keep request volume manageable.
Is map matching the same as routing?
No. Routing calculates a route between two points. Map matching reconstructs the path that was actually taken from recorded GPS data. Use the Directions API when you want to plan a future route. Use the Map Matching API when you want to understand or visualize a route that has already been driven.