← Back

Geo Tests

Browser API test suite for building a location-aware outdoor experience.

Each page isolates one core technology — GPS positioning, tile mapping, device orientation, proximity detection, camera overlay, motion sensing, and the coordinate maths that ties it all together. Tests are designed to run on a real mobile device outdoors.

HTTPS required — Geolocation, camera, and orientation APIs need a secure context. Use npx localtunnel or Cloudflare Tunnel to expose localhost over HTTPS.
📍

Geolocation

Live GPS readout — position, accuracy radius, altitude, speed, and heading. Logs position history to measure drift and update frequency.

GPS · Accuracy · Drift
🗺️

Map Viewport

Tile-based slippy map centred on the device's GPS position. Tests tile loading, coordinate-to-pixel projection, and player marker tracking.

Tiles · Leaflet · OSM
🧭

Compass & Orientation

DeviceOrientation API — compass heading, tilt (pitch/roll), and gimbal-lock edge cases. Visual compass rose updates in real time.

DeviceOrientation · Heading
📡

Proximity Zones

Place test points of interest and watch live distance calculations. Triggers when the device enters or leaves configurable radius zones.

Haversine · Geofence · Zones
📷

AR Camera Overlay

Live camera feed with a canvas layer that pins markers to compass bearings. Tests camera access, orientation data, and screen-space projection.

getUserMedia · Orientation · Canvas
🏃

Motion Detection

DeviceMotion API — raw acceleration, step estimation from peak detection, and distinguishing walking from stationary or vehicular movement.

DeviceMotion · Accelerometer · Steps
📐

Coordinate Maths

Interactive calculators for Haversine distance, bearing, great-circle midpoint, tile coordinates, and viewport-to-world-space projection.

Haversine · Bearing · Tiles