Geolocation
Widely available
The navigator.gelocation
API requests the user's latitude, longitude, heading, and speed.
Compatibility (view on caniuse.com)
- Chrome 5 Released on 2010-05-25
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 3.5 Released on 2009-06-30
- Firefox for Android 4 Released on 2011-03-29
- Safari 5 Released on 2010-06-07
- Safari on iOS ≤3 Released before 2009-06-17
MDN docs
- Geolocation
- Geolocation.clearWatch
- Geolocation.getCurrentPosition
- Geolocation.watchPosition
- GeolocationCoordinates
- GeolocationCoordinates.accuracy
- GeolocationCoordinates.altitude
- GeolocationCoordinates.altitudeAccuracy
- GeolocationCoordinates.heading
- GeolocationCoordinates.latitude
- GeolocationCoordinates.longitude
- GeolocationCoordinates.speed
- GeolocationCoordinates.toJSON
- GeolocationPosition
- GeolocationPosition.coords
- GeolocationPosition.timestamp
- GeolocationPosition.toJSON
- GeolocationPositionError
- GeolocationPositionError.code
- GeolocationPositionError.message
- Navigator.geolocation
Specifications
- Geolocation, from Devices and Sensors Working Group (W3C).
BCD data
- api.Geolocation
- api.Geolocation.clearWatch
- api.Geolocation.getCurrentPosition
- api.Geolocation.secure_context_required
- api.Geolocation.watchPosition
- api.GeolocationCoordinates
- api.GeolocationCoordinates.accuracy
- api.GeolocationCoordinates.altitude
- api.GeolocationCoordinates.altitudeAccuracy
- api.GeolocationCoordinates.heading
- api.GeolocationCoordinates.latitude
- api.GeolocationCoordinates.longitude
- api.GeolocationCoordinates.secure_context_required
- api.GeolocationCoordinates.speed
- api.GeolocationCoordinates.toJSON
- api.GeolocationPosition
- api.GeolocationPosition.coords
- api.GeolocationPosition.secure_context_required
- api.GeolocationPosition.timestamp
- api.GeolocationPosition.toJSON
- api.GeolocationPositionError
- api.GeolocationPositionError.code
- api.GeolocationPositionError.message
- api.GeolocationPositionError.secure_context_required
- api.Navigator.geolocation
- api.Navigator.geolocation.secure_context_required
- http.headers.Permissions-Policy.geolocation