query/routegraph

Route Graph Query Functions

These functions query the rt_route_graph table in the Right Track Database.

Source:

Methods

(inner) getNextStops(db, id, direction, callback)

Source:
Deprecated:
  • The rt_route_graph table is likely to be removed in the future

Get the possible next stops from the Route Graph.

This will return a list of all Stops that directly proceed the specified Stop in the specified direction on at least 1 Trip in the GTFS schedule (regardless of the day/time).

Parameters:
Name Type Description
db RightTrackDB

The Right Track Database to query

id string

Stop ID

direction int

Direction ID

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

stops Array.<Stop> <optional>

List of possible next Stops