gatelogue_types.SeaStop

class gatelogue_types.SeaStop(*, i: ID = None, source: set[str] = <factory>, coordinates: ~gatelogue_types.Sourced[tuple[float, float]] | None = None, world: ~gatelogue_types.Sourced[World] | None = None, proximity: dict[ID, ~gatelogue_types.Sourced[~gatelogue_types.Proximity]] = <factory>, shared_facility: list[~gatelogue_types.Sourced[ID]] = <factory>, codes: set[str], name: ~gatelogue_types.Sourced[str] | None = None, company: ~gatelogue_types.Sourced[ID] = None, connections: dict[ID, list[~gatelogue_types.Sourced[~gatelogue_types.Connection]]] = <factory>)

Bases: LocatedNode

__init__()

Methods

NS()

__init__()

Attributes

codes

Unique code(s) identifying the Sea stop.

company

ID of the SeaCompany that stops here

connections

References all next stops on the lines serving this stop.

name

Name of the stop

coordinates

Coordinates of the object

i

The ID of the node

proximity

References all objects that are near (within walking distance of) this object.

shared_facility

References all objects that this object shares the same facility with (same building, station, hub etc)

source

All sources that prove the node's existence

world

Whether the object is in the New or Old world

classmethod NS()
codes: set[str]

Unique code(s) identifying the Sea stop. May also be the same as the name

company: Sourced[ID]

ID of the SeaCompany that stops here

connections: dict[ID, list[Sourced[Connection]]]

References all next stops on the lines serving this stop. It is represented as a mapping of stop IDs to a list of connection data (SeaConnection), each encoding line and route information. For example, {1234: [<conn1>, <conn2>]} means that the stop with ID 1234 is the next stop from here on two lines.

coordinates: Sourced[tuple[float, float]] | None

Coordinates of the object

i: ID

The ID of the node

name: Sourced[str] | None

Name of the stop

proximity: dict[ID, Sourced[Proximity]]

References all objects that are near (within walking distance of) this object. It is represented as an inner mapping of object IDs to proximity data (Proximity). For example, {1234: <proximity>} means that there is an object with ID 1234 near this object, and <proximity> is a Proximity object.

shared_facility: list[Sourced[ID]]

References all objects that this object shares the same facility with (same building, station, hub etc)

source: set[str]

All sources that prove the node’s existence

world: Sourced[World] | None

Whether the object is in the New or Old world