title | short-title | slug | page-type | browser-compat |
---|---|---|---|---|
GeolocationCoordinates: speed property |
speed |
Web/API/GeolocationCoordinates/speed |
web-api-instance-property |
api.GeolocationCoordinates.speed |
{{securecontext_header}}{{APIRef("Geolocation API")}}
The speed
read-only property of the {{domxref("GeolocationCoordinates")}} interface is a double
representing the velocity of the device in meters per second. This value is null
if the implementation is not able to measure it.
A double
representing the velocity of the device in meters per second.
{{Specifications}}
{{Compat}}
- Using the Geolocation API
- {{domxref("GeolocationCoordinates")}}