How can I list all the stops associated with a route using GTFS?

后端 未结 6 677
执笔经年
执笔经年 2020-12-23 22:49

I\'m working with some GTFS data and would like to be able to create a list of all stops associated served by a route. I don\'t really understand how to do with with GTFS da

6条回答
  •  渐次进展
    2020-12-23 23:18

    If you use "onebusaway", there is a quick way to do this without touching GTFS

    Lets say you want to know the bus stops for bus route "M1" in Manhattan, NYC

    http://bustime.mta.info/api/where/stops-for-route/MTA%20NYCT_M1.json?key=yourapikey&includePolylines=false&version=2

    will give you a json feed then you can extract bus stops for both direction on route M1.

提交回复
热议问题