From MapKiWiki:

dirflg Route type:

  • dirflg=h Switches on "Avoid Highways" route finding mode.
  • dirflg=t Switches on "Avoid Tolls" route finding mode.
  • dirflg=r Switches on "Public Transit" - only works in some areas.
  • dirflg=w Switches to walking directions - still in beta.

So you URL:

NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&daddr=Birmingham+UK";

Becomes:

NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&daddr=Birmingham+UK&dirflg=r"

Ref:http://stackoverflow.com/questions/1056984/open-google-maps-to-bus-directions

創作者介紹

Ada & BuLu姊妹的生活日誌

adalin05 發表在 痞客邦 PIXNET 留言(2) 人氣()


留言列表 (2)

發表留言
  • 生活記事本
  • People throw stones only at trees with fruit on them.
  • 45545HGJGH
  • GVGR546GR654RG65GR

    5F4GSF15SD456FSD