本文主要是介绍google map public transit route (大众运输路线),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
google map direction api只开放3种travel mode (driving, walk, bicycle),并没有开放travel mode "大眾運輸"。因此无法获取大众运输的route。ref links:
http://maps.google.com.hk/intl/zh-TW/landing/transit/text.html#ymd
http://stackoverflow.com/questions/8629982/google-maps-directions-in-xml-public-transit
http://www.javaworld.com.tw/jute/post/view?bid=26&id=264106
http://stackoverflow.com/questions/2689542/how-to-get-google-maps-public-transit-directions-by-http-server-side-request
http://www.blueshop.com.tw/board/show.asp?subcde=BRD201104242345387H4&fumcde=FUM20041006152641OLG
http://www.google.com/support/forum/p/maps/thread?tid=2064c5a6d9c17a79&hl=zh-TW
既然没有提供“大众运输”的api,那么可以让你的android app透過 Intent的方式呼叫內建地圖程式(browser or android map app),见下面的前2个links:
http://marshal.easymorse.com/archives/2591
http://itpower.blueshop.com.tw/?p=345
http://stackoverflow.com/questions/1056984/open-google-maps-to-bus-directions
http://stackoverflow.com/questions/2853017/android-google-directions
http://maps.google.com/maps?saddr=mongkok+hk&daddr=luowu+hk&dirflg=r
这篇关于google map public transit route (大众运输路线)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!