multiRouter.WayPointModel
Extends IEventEmitter.
The data model of a multiroute waypoint. A waypoint means a stop, and waypoints divide the route into so-called paths.
Creates the data model of a multiroute waypoint.
Fields
Name | Type | Description |
---|---|---|
events | IEventManager | Event manager. Inherited from IEventEmitter. |
geometry | geometry.base.Point | Geometry of a multiroute waypoint. |
multiRoute | multiRouter.MultiRouteModel | Reference to the parent model of a multiroute. |
properties | data.Manager | Data for a multiroute waypoint.
The following fields are available:
|
Name | Type | Description |
---|---|---|
events | IEventManager | Event manager. Inherited from IEventEmitter. |
geometry | geometry.base.Point | Geometry of a multiroute waypoint. |
multiRoute | multiRouter.MultiRouteModel | Reference to the parent model of a multiroute. |
properties | data.Manager | Data for a multiroute waypoint.
The following fields are available:
|
Events
Name | Description |
---|---|
referencepointchange | |
update | Updating the model with new data. Instance of the Event class. |
Name | Description |
---|---|
referencepointchange | |
update | Updating the model with new data. Instance of the Event class. |
Methods
Name | Returns | Description |
---|---|---|
destroy() | Destroys a model. | |
getReferencePoint() | Object | Returns the corresponding reference point. |
getReferencePointIndex() | Integer | Returns the index corresponding to a reference point in the set of reference points for the parent multiroute. |
setReferencePoint(referencePoint) | Sets the description for the corresponding reference point.
A reference point can be set using one of the following ways:
| |
update(wayPointJson) | Updates the model with new data. |
Name | Returns | Description |
---|---|---|
destroy() | Destroys a model. | |
getReferencePoint() | Object | Returns the corresponding reference point. |
getReferencePointIndex() | Integer | Returns the index corresponding to a reference point in the set of reference points for the parent multiroute. |
setReferencePoint(referencePoint) | Sets the description for the corresponding reference point.
A reference point can be set using one of the following ways:
| |
update(wayPointJson) | Updates the model with new data. |
Fields details
geometry
{geometry.base.Point} geometry
Geometry of a multiroute waypoint.
multiRoute
{multiRouter.MultiRouteModel} multiRoute
Reference to the parent model of a multiroute.
properties
{data.Manager} properties
- index: Integer - The sequential number of the point.
- request: String - The request correpsonding to the point of the request.
- address: String - The postal address of the point.
- description: String - Description of the point.
- name: String - Name of the point.
- geocoderMetaData: Object - Geocoder metadata.
Events details
Methods details
destroy
{} destroy()
Destroys a model.
getReferencePoint
{Object} getReferencePoint()
Returns the corresponding reference point.
getReferencePointIndex
{Integer} getReferencePointIndex()
Returns the index corresponding to a reference point in the set of reference points for the parent multiroute.
setReferencePoint
{} setReferencePoint(referencePoint)
- A string containing the postal address of the reference point.
- An array containing the latitude and longitude of the reference point.
- A geometry.Point geometry describing the reference point.
Parameters:
Parameter | Default value | Description |
---|---|---|
referencePoint * | — | Type: Object Description of the reference point. |
Parameter | Default value | Description |
---|---|---|
referencePoint * | — | Type: Object Description of the reference point. |
* Mandatory parameter/option.
update
{} update(wayPointJson)
Updates the model with new data.
Parameters:
Parameter | Default value | Description |
---|---|---|
wayPointJson * | — | Type: Object JSON data. |
Parameter | Default value | Description |
---|---|---|
wayPointJson * | — | Type: Object JSON data. |
* Mandatory parameter/option.