Fix left distance widget

This commit is contained in:
Victor Shcherb 2020-02-18 18:00:21 +01:00
parent 4b5f338fca
commit a799412316

View file

@ -1242,7 +1242,7 @@ public class RouteProvider {
private RouteCalculationResult findStraightRoute(RouteCalculationParams params) {
LinkedList<Location> points = new LinkedList<>();
List<Location> 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()));