Tutorials
Learn latlng by building.
Short, hands-on tutorials that start from an empty server. Each one was run step by step against latlng v0.2.0 — work through them in order, or jump to what you need.
- 01 Build a real-time vehicle tracker Create a fleet, register vehicles with status fields, stream position updates, and find the nearest available vehicle. Beginner · 15 min
- 02 Send webhooks when vehicles enter or leave a zone Register a polygon geofence, receive enter and exit events over HTTP, and handle retries and duplicate deliveries. Beginner · 15 min
- 03 Stream live geofence events over WebSocket Use channels and the TypeScript SDK to push enter and exit events to a backend service or dashboard in real time. Intermediate · 10 min
- 04 Proximity alerts with roaming geofences Detect when a driver gets close to a waiting rider — or any moving object nears another — without polling. Intermediate · 10 min
- 05 Secure latlng with scoped JWTs Require authentication and give each tracker, dashboard, and operator a token limited to the fleets and actions it needs. Intermediate · 10 min