gatelogue_types.node.Proximity

class gatelogue_types.node.Proximity(conn: sqlite3.Connection, node1: LocatedNode, node2: LocatedNode)

Bases: object

Proximity data between two LocatedNode s

__init__(conn: sqlite3.Connection, node1: LocatedNode, node2: LocatedNode)

Methods

__init__(conn, node1, node2)

create(conn, srcs, *, node1, node2, distance)

Internal use

Attributes

distance

Distance between the two objects in blocks

explicit

Whether this relation is explicitly recognised by the company/ies of the stations.

classmethod create(conn: sqlite3.Connection, srcs: Iterable[int], *, node1: LocatedNode, node2: LocatedNode, distance: float, explicit: bool = False) Self

Internal use

property distance: float

Distance between the two objects in blocks

property explicit: bool

Whether this relation is explicitly recognised by the company/ies of the stations. Used mostly for local services