# 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:
  - bemap-model/bemap-coordinate.js, line 13

### Members

#### (protected) lat :double

##### Type:

- double

Source:
  - bemap-model/bemap-coordinate.js, line 24

#### (protected) lon :double

##### Type:

- double

Source:
  - bemap-model/bemap-coordinate.js, line 18

### Methods

#### getLat() → {double}

Return the latitude coordinate in degrees decimal (WGS84).

Source:
  - bemap-model/bemap-coordinate.js, line 72

##### 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:
  - bemap-model/bemap-coordinate.js, line 41

##### 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:
  - bemap-model/bemap-coordinate.js, line 52

##### 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:
  - bemap-model/bemap-coordinate.js, line 32

##### 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:
  - bemap-model/bemap-coordinate.js, line 82

##### 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:
  - bemap-model/bemap-coordinate.js, line 62

##### Returns:

Return this.

Type
  bemap.Coordinate