Data
Geolocation JSON Example
Geolocation JSON example with latitude, longitude, accuracy, altitude, and reverse-geocoded address. Matches the browser Geolocation API and GeoJSON formats.
Field Reference
coords.latituderequirednumberDecimal degrees north/south. Range: -90 (south pole) to +90 (north pole).coords.longituderequirednumberDecimal degrees east/west. Range: -180 to +180. Positive = east.coords.accuracyrequirednumberEstimated accuracy radius in metres. Lower is better. GPS is typically 2-15m.coords.altitudeoptionalnumber | nullAltitude in metres above sea level. null if the device cannot determine it.timestamprequiredinteger (Unix ms)When the location was sampled, in milliseconds since the Unix epoch.sourceoptionalstringLocation source: gps, network, ip, manual. Each has different accuracy characteristics.Variants
Browser Geolocation APIExact shape returned by navigator.geolocation.getCurrentPosition().
GeoJSON PointRFC 7946 GeoJSON format used by PostGIS, Mapbox, and mapping libraries.
Common Use Cases
- →Real-time location tracking for delivery and logistics apps
- →Store locator — finding the nearest branch to the user's position
- →Geotagging photos, posts, or check-ins with coordinates
geolocationGPScoordinatesmapslocation
Validate or format this JSON
One click loads this exact example into the tool — no copy-paste needed. Format it, validate it, explore the tree, or generate TypeScript types instantly.