Geolocation Types
Geolocation
Defines the possible geolocation results.
A Geolocation can be one of the following values:
SuccessfulGeolocation
Defines an interface that represents a successful geolocation result.
Members
altitude? number
The altitude that the device is near. Null if the device does not support determining the altitude.
altitudeAccuracy? number
The accuracy of the altitude in meters. Null if the device does not support altitude.
heading number
The heading of the device from north in radians. 0 is true north, Math.PI/2 is east, Math.PI is south and 3/2*Math.PI is west. This value is null if the device is unable to determine the heading.
latitude? number
The latitude that the device is near.
longitude? number
The longitude that the device is near.
positionalAccuracy? number
The accuracy of the positional location (latitude and longitude) in meters.
speed number
The speed that the device is moving in meters per second. Null if the device does not support calculating the speed.
success true
timestamp number
The timestamp of the geolocation result.