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 dbRightTrackDB The Right Track DB to Query
originIdString Origin Stop ID
destinationIdString Destination Stop ID
stopIdString Current Stop ID
callbackfunction Callback function
Name Type Attributes Description errError Database Query Error
stopsArray.<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 dbRightTrackDB The Right Track DB to Query
originIdString Origin Stop ID
destinationIdString Destination Stop ID
callbackfunction Callback Function
Name Type Attributes Description errError Database Query Error
pathsArray.<Array.<Object>> <optional> Route Paths
paths[].idString Stop ID
paths[].weightint Stop Transfer Weight
Details
-
<inner> buildGraph( db, callback )
-
Description
Build the entire Agency Line Graph
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
callbackfunction Callback function
Name Type Attributes Description errError Database Query Error
graphGraph <optional> Agency Graph
Details