开发者

Is there a way to access to the database of Google Maps for the public transport?

I'd like to have access to the numbers and type of public transportation and for each of them, their stops of a certain city. So for instance, I'd like to have :

Number    Type    Stops
1         Metro   Stop1.1, Stop1.2, Stop1.3, ...
6         Bus     Stop6.1, Stop6.2, Stop6.3, ...
17        Tram    Stop17.1, Stop17.2, Stop17.3, ...
...       .开发者_如何学Python..     ...

Of course, I don't really care about the format, I just want to know how to have access to the data, in order to do not re-enter it manually in my website!

Thanks for any help :-)


GTFS Data Exchange


GTFS Exchange was retired in 2016. It is still useful for legacy gtfs files that are not updated/available anymore. However, you should now refer to the following databases for static GTFS:

  1. Transitland
  2. TransitFeeds
  3. TransitWiki
  4. Google's own compilation: PublicFeeds.wiki

They overlap a lot but not completely, so it's always good to check all of them out. Also know that some smaller transit agencies still don't share their data with these services, so it's worth checking their website.

Finally, Google map uses these same files as their source data to my knowledge. In their reference page for GTFS, they mention the following:

Submitting a Transit feed to Google
If you're at a public agency that oversees public transportation for your city, you can use the GTFS specification to provide schedules and geographic information to Google Maps and other Google applications that show transit information.

If you provide a transportation service that is open to the public, and operates with fixed schedules and routes, we welcome your participation; it is simple and free.

For live updates though, I think that google uses GTFS RealTime.


Is there a way... in a word, no. This data isn't available through the Maps API (yet).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜