Class: Location

domain/Location.Location

Constructors

constructor

new Location(latitude, longitude, timestamp)

Location on a map

Parameters

Name

Type

Description

latitude

number

latitude coordinate of the location

longitude

number

longitude coordinate of the location

timestamp

Date

time the location was provided

Properties

latitude

latitude: number


longitude

longitude: number


timestamp

timestamp: Date

Methods

fromJSON

Static fromJSON(loc): Location

Create from JSON

Parameters

Name

Type

Description

loc

any

JSON object

Returns

Location