Class: Coordinate

bemap.Coordinate(lon, lat)

Base class for geographical coordinate.

Constructor

new Coordinate(lon, lat)

Parameters:
Name Type Description
lon double Longitude in degrees decimal (WGS84).
lat double Latitude in degrees decimal (WGS84).
Source:

Members

(protected) lat :double

Type:
  • double
Source:

(protected) lon :double

Type:
  • double
Source:

Methods

getLat() → {double}

Return the latitude coordinate in degrees decimal (WGS84).
Source:
Returns:
Return the latitude coordinate in degrees decimal (WGS84).
Type
double

getLatLonArray() → {array}

Return an array of composed by longitude and latitude coordinate in degrees decimal (WGS84).
Source:
Returns:
Return an array of composed by longitude and latitude coordinate in degrees decimal (WGS84).
Type
array

getLon() → {double}

Return the longitude coordinate in degrees decimal (WGS84).
Source:
Returns:
Return the longitude coordinate in degrees decimal (WGS84).
Type
double

getLonLatArray() → {array}

Return an array of composed by latitude and longitude coordinate in degrees decimal (WGS84).
Source:
Returns:
Return an array of composed by latitude and longitude coordinate in degrees decimal (WGS84).
Type
array

setLat(lat) → {bemap.Coordinate}

Set the latitude coordinate in degrees decimal (WGS84).
Parameters:
Name Type Description
lat double Latitude in degrees decimal (WGS84).
Source:
Returns:
Return this.
Type
bemap.Coordinate

setLon(lon) → {bemap.Coordinate}

Set the longitude coordinate in degrees decimal (WGS84).
Parameters:
Name Type Description
lon double Longitude in degrees decimal (WGS84).
Source:
Returns:
Return this.
Type
bemap.Coordinate