Hacker News new | ask | show | jobs
by ygra 884 days ago
It seems they route along roads between bus stops, so you won't get train routes that follow the tracks. But in principle the solution should be very similar.
1 comments

If the routing is done with an internal database (rather than some roads-only API) it might be straightforward to use the railway lines from Open Street Map [1]. Or even the public transport routes recorded in OSM [2].

[1] https://openrailwaymap.org/

[2] https://www.openstreetmap.org/#layers=O