Visual map of train routes

#1

Hi all,

I’m trying to render the train route between train stations, so for example between Central and Hurstville.

Is there somewhere I can find the GEOJSON for the train line between two different stations?

Thanks :slight_smile:

#2

Hi @jonathonsu, we don’t have a shapefile of the routes between stations at this stage. I believe most developers use the data in the shapes.txt file included in the GTFS bundle to plot the lines.

Thanks,
Alex

#3

You could also try a trip request via the Trip Planner API between the two stations and extract the coods out of there. It’s not strictly GeoJSON, but you can use the coordinates to transform it into GeoJSON.

image

1 Like