multiRouter.masstransit.StopModel
Note
The constructor of the multiRouter.masstransit.StopModel class is hidden, as this class is not intended for autonomous initialization.
Extends IEventEmitter.
Data model for a stop on a transportation segment of a public transport route.
Creates the data model for a stop of a transport segment.
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
||
Geometry of the stop. |
||
Stop data. The following fields are available:
|
||
Reference to the parent model of the transit segment. |
Events
Name |
Description |
Updating the model with new data. Instance of the Event class. |
Methods
Name |
Returns |
Description |
Updates the state of the model. |
Fields details
geometry
{geometry.base.Point} geometry
Geometry of the stop.
properties
{data.Manager} properties
Stop data. The following fields are available:
- Integer - The ordinal number of the stop in the set of stops corresponding to the transit segment.
- id: String - The stop ID.
- name: String - The name of the stop.
- lodIndex: Integer - The ordinal number of the stop point in the full set of coordinates of the corresponding route path.
segment
{multiRouter.masstransit.TransportSegmentModel} segment
Reference to the parent model of the transit segment.
Events details
update
Updating the model with new data. Instance of the Event class.
Methods details
update
{} update(stopJson)
Updates the state of the model.
Parameters:
Parameter |
Default value |
Description |
— |
Type: Object JSON data. |
* Mandatory parameter/option.
Mandatory parameter/option.