diff --git a/OsmAnd-java/src/main/java/net/osmand/router/RouteExporter.java b/OsmAnd-java/src/main/java/net/osmand/router/RouteExporter.java index 80491ac4b0..02e571f4b5 100644 --- a/OsmAnd-java/src/main/java/net/osmand/router/RouteExporter.java +++ b/OsmAnd-java/src/main/java/net/osmand/router/RouteExporter.java @@ -62,8 +62,7 @@ public class RouteExporter { } bundle.putBundleList("types", "type", typeList); - GPXFile gpx = new GPXFile("OsmAnd"); - gpx.author = OSMAND_ROUTER_V2; + GPXFile gpx = new GPXFile(OSMAND_ROUTER_V2); Track track = new Track(); track.name = name; gpx.tracks.add(track); diff --git a/OsmAnd/src/net/osmand/plus/routepreparationmenu/RoutingOptionsHelper.java b/OsmAnd/src/net/osmand/plus/routepreparationmenu/RoutingOptionsHelper.java index 21c17bcf9b..8b5c122638 100644 --- a/OsmAnd/src/net/osmand/plus/routepreparationmenu/RoutingOptionsHelper.java +++ b/OsmAnd/src/net/osmand/plus/routepreparationmenu/RoutingOptionsHelper.java @@ -462,10 +462,11 @@ public class RoutingOptionsHelper { } public List getGpxRouterParameters(ApplicationMode am) { + RoutingHelper routingHelper = app.getRoutingHelper(); List list = new ArrayList(); - RouteProvider.GPXRouteParamsBuilder rparams = app.getRoutingHelper().getCurrentGPXRoute(); + RouteProvider.GPXRouteParamsBuilder rparams = routingHelper.getCurrentGPXRoute(); boolean osmandRouter = am.getRouteService() == RouteProvider.RouteService.OSMAND; - if (rparams != null && osmandRouter) { + if (rparams != null && !routingHelper.isCurrentGPXRouteV2() && osmandRouter) { GPXUtilities.GPXFile fl = rparams.getFile(); if (fl.hasRtePt()) { list.add(new OtherLocalRoutingParameter(R.string.use_points_as_intermediates, diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index c010f9e226..3d3c75dd5c 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -251,7 +251,7 @@ public class RouteProvider { } if (OSMAND_ROUTER_V2.equals(file.author)) { route = parseOsmAndGPXRoute(points, file); - addMissingTurns = reverse; + addMissingTurns = false; } else if (file.isCloudmadeRouteFile() || OSMAND_ROUTER.equals(file.author)) { directions = parseOsmAndGPXRoute(points, file, OSMAND_ROUTER.equals(file.author), builder.leftSide, 10); if (OSMAND_ROUTER.equals(file.author)) {