fix issue 215

git-svn-id: https://osmand.googlecode.com/svn/trunk@722 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-11-28 23:20:05 +00:00
parent ac08bcf5c4
commit 2113653abb

View file

@ -892,7 +892,7 @@ public class IndexCreator {
}
}
Long streetId = getStreetInCity(c, name, location, (a6.getId() << 1) | 1);
Long streetId = getStreetInCity(c, name, location, (a6.getId() << 2) | 2);
if (streetId == null) {
return;
}
@ -1155,7 +1155,7 @@ public class IndexCreator {
loadEntityData(e, false);
LatLon l = e.getLatLon();
City city = getClosestCity(l);
Long idStreet = getStreetInCity(city, e.getTag(OSMTagKey.ADDR_STREET), l, e.getId() << 1);
Long idStreet = getStreetInCity(city, e.getTag(OSMTagKey.ADDR_STREET), l, (e.getId() << 2));
if (idStreet != null) {
Building building = new Building(e);
building.setName(e.getTag(OSMTagKey.ADDR_HOUSE_NUMBER));
@ -1185,7 +1185,7 @@ public class IndexCreator {
loadEntityData(e, false);
LatLon l = e.getLatLon();
City city = getClosestCity(l);
Long idStreet = getStreetInCity(city, e.getTag(OSMTagKey.NAME), l, e.getId() << 1);
Long idStreet = getStreetInCity(city, e.getTag(OSMTagKey.NAME), l, (e.getId() << 2) | 1);
if (idStreet != null && saveAddressWays) {
DataIndexWriter.writeStreetWayNodes(addressStreetNodeStat, pStatements, idStreet, (Way) e, BATCH_SIZE);
}