Skip to content

Bus Graph Building

jloh02 edited this page Aug 28, 2021 · 2 revisions

The graph for bus stops are relatively easy to create directly using LTA's Datamall. Following the bus stops, bus services and bus routes APIs using the API documentation, the graph for bus stops can be generated.

The frequencies are factored in by taking 0.5*freq and adding to each edge. Non-operational services are not added to the database.