update entity
This commit is contained in:
parent
299fc66457
commit
e44d520b3a
3 changed files with 8 additions and 2 deletions
|
@ -242,4 +242,11 @@ public abstract class Entity {
|
||||||
public boolean isDataLoaded() {
|
public boolean isDataLoaded() {
|
||||||
return dataLoaded;
|
return dataLoaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Map<String, String> getModifiableTags() {
|
||||||
|
if(tags == null){
|
||||||
|
return Collections.emptyMap();
|
||||||
|
}
|
||||||
|
return tags;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ package net.osmand.plus;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
|
|
||||||
import net.osmand.Location;
|
import net.osmand.Location;
|
||||||
import net.osmand.binary.RouteDataObject;
|
import net.osmand.binary.RouteDataObject;
|
||||||
|
|
|
@ -541,7 +541,7 @@ public class RouteCalculationResult {
|
||||||
if (added.contains(w)) {
|
if (added.contains(w)) {
|
||||||
double ds = MapUtils.getOrthogonalDistance(w.lat, w.lon, ploc.getLatitude(), ploc.getLongitude(), loc.getLatitude(),
|
double ds = MapUtils.getOrthogonalDistance(w.lat, w.lon, ploc.getLatitude(), ploc.getLongitude(), loc.getLatitude(),
|
||||||
loc.getLongitude());
|
loc.getLongitude());
|
||||||
if (ds < 80) {
|
if (ds < 160) {
|
||||||
ls.add(j);
|
ls.add(j);
|
||||||
waypoints.add(w);
|
waypoints.add(w);
|
||||||
added.add(w);
|
added.add(w);
|
||||||
|
|
Loading…
Reference in a new issue