是否有用于启动带方向的 Yandex map 应用程序的 URL 方案?
我可以用几行代码启动 Yandex Maps 应用程序(如果已经安装),但我没有找到有关该应用程序处理的 URLSchemes 的文档:
NSURL *url = [NSURL URLWithString:@"yandexmaps://maps.yandex.ru/"];
if([[UIApplication sharedApplication] canOpenURL:url]){
[[UIApplication sharedApplication] openURL:url];
}
最佳答案
还有另一个 Yandex 制图应用 Yandex.Navigator,它确实支持方向。如果您可以接受这样的解决方案,那么您可以使用这样的方案:
yandexnavi://build_route_on_map?lat_from=55.751802&lon_from=37.586684&lat_to=55.758192&lon_to=37.642817
访问here了解详情。
关于iOS - 使用方向 URL 方案启动 Yandex map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22127840/