new Location(latitude, longitude, provider [, time] [, timestamp] [, accuracy] [, horizontalAccuracy] [, verticalAccuracy] [, altitude] [, bearing] [, speed] [, course])
Location object generated by the device operating system
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
latitude |
number | Latitude, in degrees |
|
longitude |
number | Longitude, in degrees |
|
provider |
string | Name of the provider that generated this fix |
|
time |
number |
<optional> |
UTC time of this fix, in milliseconds since January 1, 1970 |
timestamp |
string |
<optional> |
The time at which this location was determined |
accuracy |
number |
<optional> |
Get the estimated accuracy of this location, in meters |
horizontalAccuracy |
number |
<optional> |
The accuracy of horizontal coordinates of this location, measured in meters |
verticalAccuracy |
number |
<optional> |
The accuracy of altitude of this location, measured in meters |
altitude |
number |
<optional> |
The altitude, if available, in meters above the WGS 84 reference ellipsoid. |
bearing |
number |
<optional> |
Horizontal direction of travel of this device, not related to the device orientation. It is guaranteed to be in the range (0.0, 360.0] if the device has a bearing |
speed |
number |
<optional> |
Speed, if available, in meters per second over the ground |
course |
number |
<optional> |
The direction in which device is traveling |