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.latitudenumberrequiredDecimal degrees north/south. Range: -90 (south pole) to +90 (north pole).coords.longitudenumberrequiredDecimal degrees east/west. Range: -180 to +180. Positive = east.coords.accuracynumberrequiredEstimated accuracy radius in metres. Lower is better. GPS is typically 2-15m.coords.altitudenumber | nulloptionalAltitude in metres above sea level. null if the device cannot determine it.timestampinteger (Unix ms)requiredWhen the location was sampled, in milliseconds since the Unix epoch.sourcestringoptionalLocation 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
Paste the example above into JSONKit's tools to validate, minify, or explore the structure interactively.