Tag/transform routing types

This commit is contained in:
Victor Shcherb 2015-07-07 21:46:00 +03:00
parent 0c158551f1
commit 21327bb47b
2 changed files with 3 additions and 3 deletions

View file

@ -74,7 +74,7 @@ public class BinaryInspector {
// "-zoom=16",
// "-bbox=1.74,51.17,1.75,51.16",
// "-vstats",
"/Users/victorshcherb/osmand/osm-gen/Andorra-latest.origin.obf"
"/Users/victorshcherb/osmand/osm-gen/Andorra-latest.origin3.obf"
});
} else {
in.inspector(args);

View file

@ -81,10 +81,10 @@ public class OsmMapUtils {
public static LatLon getWeightCenterForWay(Way w) {
Collection<Node> nodes = w.getNodes();
boolean area = w.getFirstNodeId() == w.getLastNodeId();
if (nodes.isEmpty()) {
return null;
}
boolean area = w.getFirstNodeId() == w.getLastNodeId();
LatLon ll = area ? getMathWeightCenterForNodes(nodes) : getWeightCenterForNodes(nodes);
if(ll == null) {
return null;
@ -97,8 +97,8 @@ public class OsmMapUtils {
if (n != null) {
double d = MapUtils.getDistance(n.getLatitude(), n.getLongitude(), ll.getLatitude(), ll.getLongitude());
if(d < minDistance) {
flon = n.getLongitude();
flat = n.getLatitude();
flon = n.getLongitude();
minDistance = d;
}
}