Generate walking directions with Maps app iOS

前端 未结 1 1294
天命终不由人
天命终不由人 2020-12-28 10:52

As of now, I successfully generate directions with Maps app from my app with the following code :

NSString *formattedGroceryAddress = [[NSString stringWithFo         


        
相关标签:
1条回答
  • 2020-12-28 11:25

    Well I guess I should have searched better before asking !

    You can add dirflg=w to the request and it will launch maps app in the walking mode.

    It's funny because Apple says they are only supporting a few Google Maps parameters not including this one but it actually seems to work !

    For more info on Google Maps parameters : http://mapki.com/wiki/Google_Map_Parameters
    For more info on Maps links from iOS apps : http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html

    0 讨论(0)
提交回复
热议问题