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

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

geometry

geometry.base.Point

Geometry of the stop.

properties

data.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.

segment

multiRouter.masstransit.TransportSegmentModel

Reference to the parent model of the transit segment.

Events

Name

Description

update

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

Methods

Name

Returns

Description

update(stopJson)

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

stopJson*

—

Type: Object

JSON data.

* Mandatory parameter/option.