diff --git a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java index 45b15fdab1..fa17d2e473 100644 --- a/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java +++ b/OsmAnd/src/net/osmand/plus/routing/RouteProvider.java @@ -1242,7 +1242,7 @@ public class RouteProvider { private RouteCalculationResult findStraightRoute(RouteCalculationParams params) { LinkedList points = new LinkedList<>(); List segments = new ArrayList<>(); - points.add(params.start); + points.add(new Location("pnt", params.start.getLatitude(), params.start.getLongitude())); if(params.intermediates != null) { for (LatLon l : params.intermediates) { points.add(new Location("pnt", l.getLatitude(), l.getLongitude()));