Fix left distance widget
This commit is contained in:
parent
4b5f338fca
commit
a799412316
1 changed files with 1 additions and 1 deletions
|
@ -1242,7 +1242,7 @@ public class RouteProvider {
|
||||||
private RouteCalculationResult findStraightRoute(RouteCalculationParams params) {
|
private RouteCalculationResult findStraightRoute(RouteCalculationParams params) {
|
||||||
LinkedList<Location> points = new LinkedList<>();
|
LinkedList<Location> points = new LinkedList<>();
|
||||||
List<Location> segments = new ArrayList<>();
|
List<Location> segments = new ArrayList<>();
|
||||||
points.add(params.start);
|
points.add(new Location("pnt", params.start.getLatitude(), params.start.getLongitude()));
|
||||||
if(params.intermediates != null) {
|
if(params.intermediates != null) {
|
||||||
for (LatLon l : params.intermediates) {
|
for (LatLon l : params.intermediates) {
|
||||||
points.add(new Location("pnt", l.getLatitude(), l.getLongitude()));
|
points.add(new Location("pnt", l.getLatitude(), l.getLongitude()));
|
||||||
|
|
Loading…
Reference in a new issue