# Class: Destination

## bemap.Destination(lon, lat, options)

Base class for geographical coordinate used for a routing calculation.

## Constructor

#### new Destination(lon, lat, options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`lon` | double | Longitude in degrees decimal (WGS84).
`lat` | double | Latitude in degrees decimal (WGS84).
`options` | Object | To set all fields of this class.

Source:
  - bemap-model/bemap-destination.js, line 14

### Members

#### altitude

(optional) altitude in meters.

Source:
  - bemap-model/bemap-destination.js, line 20

#### avoidUTurn

(optional) Defines if a UTurn should be avoided (if possible) by route planner at this location. Available values are YES, NO or UNDEF.

Source:
  - bemap-model/bemap-destination.js, line 70

#### heading

(optional) heading angle in degrees. For BeNomad engine: If the angle is not available, set this field and speed field to 0.

Source:
  - bemap-model/bemap-destination.js, line 25

#### ignorePoint

(optional) defines if this waypoint is ignored by the planner for its route calculation. Available values are true or false.

Source:
  - bemap-model/bemap-destination.js, line 50

#### ignoreRestrictions

(optional) Defines if forbidden maneuvers and blocked passages should be ignored by route planner between this waypoint and next one. Available values are true or false.

Source:
  - bemap-model/bemap-destination.js, line 65

#### ignoreRoadBlocks

(optional) Defines if road blocks should be ignored by route planner between this waypoint and next one. Available values are true or false.

Source:
  - bemap-model/bemap-destination.js, line 60

#### ignoreTrafficDirections

(optional) Defines if traffic directions should be ignored by route planner between this waypoint and next one. Available values are true or false.

Source:
  - bemap-model/bemap-destination.js, line 55

#### mandatory

(optional) If mandatory is set to true, the coordinate will be kept in the way-points response array. Available values are true or false.

Source:
  - bemap-model/bemap-destination.js, line 85

#### radius

(optional) radius in meters of the waypoint.

Source:
  - bemap-model/bemap-destination.js, line 45

#### satellite

(optional) number of available GPS satellite when the coordinate is collected.

Source:
  - bemap-model/bemap-destination.js, line 40

#### speed

(optional) speed in km/h. For BeNomad engine: Use this field only if the heading is available.

Source:
  - bemap-model/bemap-destination.js, line 30

#### time

(optional) time stamp of GPS coordinate in milliseconds.

Source:
  - bemap-model/bemap-destination.js, line 35

#### useStartAngle

(optional) If true and location is on is on a 2 way road, location's angle will be used as a general direction for departure from location. Available values are YES, NO or UNDEF.

Source:
  - bemap-model/bemap-destination.js, line 75

#### useStopRoadSide

(optional) Defines if route planner must arrive on this waypoint on waypoint's side (if waypoint is on a 2 way road). Available values are YES, NO or UNDEF.

Source:
  - bemap-model/bemap-destination.js, line 80