且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android google.navigation 意图模式?

更新时间:2023-01-01 22:38:48

经过一番猜测和四处寻找,我决定直接启动巴士导航是不可能的,因为这将涉及为人选择一辆巴士骑,这是没有意义的.

After a bunch of guessing and hunting around, I have decided that it is impossible to launch directly to bus navigation, because that would involve CHOOSING a bus for the person to ride, which wouldn't make sense.

相反,您可以将它们启动到谷歌地图搜索到目的地,感谢您这个答案类似的问题:

Instead, you can launch them to a Google Maps search to the destination like so, thank you to this answer to a similar question:

"http://maps.google.com/maps?daddr=lat,long&dirflg=r"

使用 &dirflag 指定公共交通.(为什么r"我不知道...)

With the &dirflag specifying public transit. (Why the "r" I have no idea...)