Tag/transform routing types
This commit is contained in:
parent
0c158551f1
commit
21327bb47b
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue