我正在为Android和iOS移动应用程序。客户是一个公共交通公司,他们已经要求我们整合谷歌公交。
I'm working on a mobile app for Android and iOS. The customer is a public transport company, and they have requested we integrate Google Transit.
有没有一个适合谷歌公交的API?这将使它容易对我们。 谢谢!
Is there an API available for Google Transit? That would make it easy on us. Thanks!
现在,无论是谷歌路线Web服务和谷歌地图的JavaScript API包括与公共交通建设的路由。
Now, both Google Directions Web Services and Google Maps JavaScript API include building the routes with Public Transit.
博客文章:
http://googlegeodevelopers.blogspot.com/2012/06/public-transit-routing-and-layer-now.html
API文档:
https://developers.google.com/maps/documentation/directions/#TravelModes https://developers.google.com/maps/documentation/javascript/directions#TransitOptions