update entity

This commit is contained in:
Victor Shcherb 2014-07-30 16:11:39 +02:00
parent 299fc66457
commit e44d520b3a
3 changed files with 8 additions and 2 deletions

View file

@ -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;
}
} }

View file

@ -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;

View file

@ -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);