Documentation
Reference
2.1.55 (current version)
collection
interactivityModel
Interfaces

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.

Fields | Events | Methods

Creates the data model for a stop of a transport segment.

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

geometrygeometry.base.Point

Geometry of the stop.

propertiesdata.Manager

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.

segmentmultiRouter.masstransit.TransportSegmentModel

Reference to the parent model of the transit segment.

Events

NameDescription
update

Updating the model with new data. Instance of the Event class.

Methods

NameDescription
update(stopJson)

Updates the state of the model.

Fields details

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

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:

ParameterDefault valueDescription
stopJson*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Object

JSON data.

* Mandatory parameter/option.