Methods
-
<inner> getNextStops( db, originId, destinationId, stopId, callback )
-
Description
Get a List of all stops from the Agency Line Graph along all paths from the origin to the destination following the specified stop
Parameters
Name Type Description db
RightTrackDB The Right Track DB to Query
originId
String Origin Stop ID
destinationId
String Destination Stop ID
stopId
String Current Stop ID
callback
function Callback function
Name Type Attributes Description err
Error Database Query Error
stops
Array.<String> <optional> List of following Stops, sorted by transfer weight
Details
-
<inner> getPaths( db, originId, destinationId, callback )
-
Description
Get all possible paths from the origin to the destination following the Agency Line Graph
Parameters
Name Type Description db
RightTrackDB The Right Track DB to Query
originId
String Origin Stop ID
destinationId
String Destination Stop ID
callback
function Callback Function
Name Type Attributes Description err
Error Database Query Error
paths
Array.<Array.<Object>> <optional> Route Paths
paths[].id
String Stop ID
paths[].weight
int Stop Transfer Weight
Details
-
<inner> buildGraph( db, callback )
-
Description
Build the entire Agency Line Graph
Parameters
Name Type Description db
RightTrackDB The Right Track DB to query
callback
function Callback function
Name Type Attributes Description err
Error Database Query Error
graph
Graph <optional> Agency Graph
Details