Class: Location¶
domain/Location.Location
Constructors¶
constructor¶
new Location(latitude
, longitude
, timestamp
)
Location on a map
Parameters¶
Name |
Type |
Description |
---|---|---|
|
|
latitude coordinate of the location |
|
|
longitude coordinate of the location |
|
|
time the location was provided (ERRATA: this can in some cases be a number instead of a Date) |
Properties¶
latitude¶
latitude: number
latitude coordinate of the location
longitude¶
longitude: number
longitude coordinate of the location
timestamp¶
timestamp: Date
time the location was provided (ERRATA: this can in some cases be a number instead of a Date)
Methods¶
fromJSON¶
Static
fromJSON(loc
): Location
Create from JSON
Parameters¶
Name |
Type |
Description |
---|---|---|
|
|
JSON object |