gpt4 book ai didi

iphone - 使用谷歌地图中的参数开始逐向行驶

转载 作者:行者123 更新时间:2023-11-29 04:51:36 24 4
gpt4 key购买 nike

我使用以下代码打开谷歌地图

UIApplication *app = [UIApplication sharedApplication];
NSString *url = [NSString stringWithFormat:@"http://maps.google.com/maps?ll=%@,%@",Latitude,Longitude];
[app openURL:[NSURL URLWithString:url]];

有没有办法发送一些参数来立即启动逐向导航?

最佳答案

试试这个...

UIApplication *app = [UIApplication sharedApplication];
NSString *url = [NSString stringWithFormat:@"http://maps.google.co.in/maps?saddr=%f,%f&daddr=%@",userLocation.latitude,userLocation.longitude,address];
[app openURL:[NSURL URLWithString:url]];

这里地址可以是任何逻辑地址..比如..印度孟买

关于iphone - 使用谷歌地图中的参数开始逐向行驶,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8725377/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com