导航无法加载出
private void routeplanToNavi(boolean mock) {
CoordinateType coType = CoordinateType.GCJ02;
BNRoutePlanNode sNode = null;
BNRoutePlanNode eNode = null;
BDLocation destBdLocation = new BDLocation();
destBdLocation.setLatitude(mDestLocationData.latitude);
destBdLocation.setLatitude(mDestLocationData.longitude);
BDLocation destGcj = bd2gcj(destBdLocation);
sNode = new BNRoutePlanNode(mLastLocationData.longitude,
mLastLocationData.latitude, "我的地点", null, coType);
eNode = new BNRoutePlanNode(destGcj.getLongitude(),
destGcj.getLatitude(), "目标地点", null, coType);
if (sNode != null && eNode != null) {
List<BNRoutePlanNode> list = new ArrayList<BNRoutePlanNode>();
list.add(sNode);
list.add(eNode);
// 开发者可以使用旧的算路接口,也可以使用新的算路接口,可以接收诱导信息等
BaiduNaviManager.getInstance().launchNavigator(this, list, 1, mock,
new DemoRoutePlanListener(sNode));
}
}百度导航引擎初始化成功,但是导航出不来,不知什么原因