working code, stations by distance needs to be merged with the graph parser