Android 如何在sygic地图中导航

Android 如何在sygic地图中导航,android,navigation,maps,sygic,Android,Navigation,Maps,Sygic,我已经使用surface视图将sygic集成到我的android应用程序中。我想在sygic应用程序中导航。我使用了以下代码: SWayPoint wp = new SWayPoint(); wp.Location = new LONGPOSITION(34, 35); ApplicationAPI.StartNavigation(err, wp, 0, true, false, MAX); 但它不起作用。有什么想法吗?我曾经在一个应用程序中实现过Sygic,我的代码基本上就是这样的(经过几个

我已经使用surface视图将sygic集成到我的android应用程序中。我想在sygic应用程序中导航。我使用了以下代码:

SWayPoint wp = new SWayPoint();
wp.Location = new LONGPOSITION(34, 35);
ApplicationAPI.StartNavigation(err, wp, 0, true, false, MAX);

但它不起作用。有什么想法吗?

我曾经在一个应用程序中实现过Sygic,我的代码基本上就是这样的(经过几个小时的调试,因为文档非常糟糕……):

一旦您想导航到某个地方:

GeoPoint point = new GeoPoint(/* ... */, /* ... */);
final SWayPoint wayPoint = new SWayPoint("", point.getLongitudeE6(), point.getLatitudeE6());
SError error = new SError();
final int returnCode = ApplicationAPI.StartNavigation(error, point, NavigationParams.NpMessageAvoidTollRoadsUnable, true, true, 0);

请注意,Sygic使用E6坐标。

这不是关于这个问题的答案,而是我在这里为谁在2017年搜索奇怪的Sygic Exmaple

  ApiMaps.showCoordinatesOnMap(new Position((int)(-84.41949*100000.0),(int)(33.7455*100000.0)),1000,0); 
  //LONGITUDE first!!
  //and multiply on 100 000
//


p、 这是针对独立apk的

应用程序意外停止,通过放置“导航”代码,我得到了异常,因为GeoPoint,我正在尝试修复it@HammadShahid:您可以不使用GeoPoint,直接使用您自己的坐标作为点
  ApiMaps.showCoordinatesOnMap(new Position((int)(-84.41949*100000.0),(int)(33.7455*100000.0)),1000,0); 
  //LONGITUDE first!!
  //and multiply on 100 000