fix issue 215
git-svn-id: https://osmand.googlecode.com/svn/trunk@722 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
ac08bcf5c4
commit
2113653abb
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue