问题描述
这真的让我感到沮丧.我使用了Navigon本身提供的文档.不幸的是,它不能按预期工作. Navigon启动,但停在主菜单上.
It is really frustrating me. I used the doc provided by Navigon itself. Unfortunately it doesn't work as expected. Navigon launches, but stops at the main menu.
我所要做的就是这个
NSString *myTestStr = [NSString stringWithFormat:@"navigon://App|Another place|FRA|75008|PARIS|rue de Turin|17|2.324621|48.881273"];
NSString *navigonStrEsc = [myTestStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"navigonStr: %@", navigonStrEsc);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:navigonStrEsc]];
任何想法我的方式有什么问题吗?
Any ideas what is wrong with my way?
非常感谢!
推荐答案
最后,我找到了正确的解决方案. Navigon应用程序互换了纬度和经度值的秘密成分.
Finally I figured out the right solution. The secret ingredients that the Navigon app interchanged the latitude and longitude values.
使用此自定义url方案传递导航目标坐标(传递的坐标必须在加载的地图上):navigon://coordinate/YourAppName/经度/纬度
Use this custom url scheme to pass the navigation destination coordinates (the passed coordinates have to be on the loaded map):navigon://coordinate/YourAppName/longitude/latitude
例如:navigon://coordinate/NaviCard/19.084443/47.573305
For example: navigon://coordinate/NaviCard/19.084443/47.573305
这篇关于自定义URL方案不起作用! Navigon AppInteract的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!