Fix interpolation issue

This commit is contained in:
Victor Shcherb 2012-09-10 01:29:49 +02:00
parent fb764c01d9
commit 66d84dd34c
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ public class BinaryInspector {
// test cases show info
// inspector(new String[]{/*"-vmap", "-bbox=-121.785,37.35,-121.744,37.33", */"/home/victor/projects/OsmAnd/data/osm-gen/Austria_2.obf"});
//inspector(new String[]{"-vaddress",/* "-bbox=-121.785,37.35,-121.744,37.33", */"/home/victor/projects/OsmAnd/data/osm-gen/Map.obf"});
// test case extract parts
// test case
}

View file

@ -685,7 +685,7 @@ public class IndexAddressCreator extends AbstractIndexPartCreator{
}
}
}
if (type != null && interpolationInterval > 0) {
if (type != null || interpolationInterval > 0) {
List<Node> nodesWithHno = new ArrayList<Node>();
for (Node n : ((Way) e).getNodes()) {
if (n.getTag(OSMTagKey.ADDR_HOUSE_NUMBER) != null && n.getTag(OSMTagKey.ADDR_STREET) != null) {