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 |
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
Methods¶
fromJSON¶
Static fromJSON(loc): Location
Create from JSON
Parameters¶
Name |
Type |
Description |
|---|---|---|
|
|
JSON object |