# Getting routes between two stations from Timetables - For Realtime

**URL:** <https://opendataforum.transport.nsw.gov.au/t/getting-routes-between-two-stations-from-timetables-for-realtime/2822>\
**Category:** Real-time Public Transport\
**Created:** [September 20, 2022, 9:44pm UTC](https://opendataforum.transport.nsw.gov.au/t/getting-routes-between-two-stations-from-timetables-for-realtime/2822 "2022-09-20T21:44:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amul822](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@amul822](https://opendataforum.transport.nsw.gov.au/u/amul822)\
**Post date:** [September 20, 2022, 9:44pm UTC](https://opendataforum.transport.nsw.gov.au/t/getting-routes-between-two-stations-from-timetables-for-realtime/2822/1 "2022-09-20T21:44:33Z")

</div>

Hello Everyone,  
Any idea, how to get routes and platform no between two stations from this data?  
Public Transport - Timetables - For Realtime  
[https://api.transport.nsw.gov.au/v1/gtfs/schedule/](https://api.transport.nsw.gov.au/v1/gtfs/schedule/)  
This returns, zip file with stops, stop\_times, routes and so on. I couldn’t figure it out.

For example, If I want to go from Allawah Station to Albion Park Station, How to extract route from data above or do I have to use trip planner API?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jayen](https://sea1.discourse-cdn.com/flex019/user_avatar/opendataforum.transport.nsw.gov.au/jayen/32/208_2.png) [@jayen](https://opendataforum.transport.nsw.gov.au/u/jayen)\
**Post date:** [September 27, 2022, 2:27am UTC](https://opendataforum.transport.nsw.gov.au/t/getting-routes-between-two-stations-from-timetables-for-realtime/2822/2 "2022-09-27T02:27:43Z")

</div>

If the two stations are on the same line then you can get that from the link you gave:

- stops.txt tells you the stop id/stop code
- stop\_times.txt tells you which trip goes to those stops at what times. you want a trip that includes both stops

if you need to transfer, then it’s probably easier you use the trip planner api, or any 3rd-party api that does routing.
