gatelogue_types.RailStationNS
- class gatelogue_types.RailStationNS(*, 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: str | None = None, company: ID = None, connections: dict[ID, list[~gatelogue_types.ConnectionNS]] = <factory>)
Bases:
RailStation
,LocatedNodeNS
- __init__()
Methods
NS
()__init__
()Attributes
Unique code(s) identifying the Rail station.
ID of the
RailCompany
that stops hereReferences all next stations on the lines serving this station.
Coordinates of the object
The ID of the node
Name of the station
References all objects that are near (within walking distance of) this object.
References all objects that this object shares the same facility with (same building, station, hub etc)
All sources that prove the node's existence
Whether the object is in the New or Old world
- classmethod NS()
- company: ID
ID of the
RailCompany
that stops here
- connections: dict[ID, list[ConnectionNS]]
References all next stations on the lines serving this station. It is represented as a mapping of station IDs to a list of connection data (
RailConnection
), each encoding line and route information. For example,{1234: [<conn1>, <conn2>]}
means that the station with ID1234
is the next station from here on two lines.
- i: ID
The ID of the node
- proximity: dict[ID, 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 ID1234
near this object, and<proximity>
is aProximity
object.
References all objects that this object shares the same facility with (same building, station, hub etc)