HomeAlgorithms & AIGPS Map Matching — Snapping a Noisy Trace to the Road

GPS Map Matching — Snapping a Noisy Trace to the Road

Interactive 3D map-matching simulator: a vehicle drives a street grid emitting noisy GPS fixes, and a live scoring algorithm — distance, heading and route-continuity — snaps each fix back onto the correct road, exactly like the turn-by-turn engine inside a real navigation app.

Algorithms & AI3DModerate60 FPS📱 Mobile-adapted⇄ 2D version
mobile-navigation-routing ↗ Open standalone

Mobile navigation apps never show you the raw GPS signal — they show a filtered position that has been snapped onto the road network with a map-matching algorithm. This simulator drives a vehicle around a real street grid, deliberately corrupts its position with GPS-realistic noise, and runs a live per-fix scoring algorithm — perpendicular distance to nearby roads, heading alignment, and route continuity from the previous fix — to reconstruct where the car actually is. Turn up the noise slider to see the raw dots scatter across whole city blocks while the matched blue trace stays locked to the street; turn the heading weight down to see how a distance-only matcher starts jumping onto the wrong parallel street.

⚙ Under the hood

A vehicle drives a street grid while its GPS position is corrupted with realistic noise; a live map-matching algorithm scores nearby roads by distance, heading and route continuity to snap each noisy fix back onto the street the car is actually on, the way a real turn-by-turn navigation app does.

map-matchinggpsnavigationroutingalgorithmshmm

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)