Fix search issue
This commit is contained in:
parent
12c5524ba9
commit
c08484d63e
2 changed files with 7 additions and 1 deletions
|
@ -684,7 +684,7 @@ public class BinaryMapAddressReaderAdapter {
|
||||||
codedIS.seek(contOffset);
|
codedIS.seek(contOffset);
|
||||||
int len = codedIS.readRawVarint32();
|
int len = codedIS.readRawVarint32();
|
||||||
int old = codedIS.pushLimit(len);
|
int old = codedIS.pushLimit(len);
|
||||||
obj = readCityHeader(null, contOffset, null);
|
obj = readCityHeader(null, contOffset, reg.attributeTagsTable);
|
||||||
codedIS.popLimit(old);
|
codedIS.popLimit(old);
|
||||||
}
|
}
|
||||||
if (obj != null) {
|
if (obj != null) {
|
||||||
|
|
|
@ -614,6 +614,12 @@ public class SearchPhrase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!sr.firstUnknownWordMatches) {
|
||||||
|
sr.firstUnknownWordMatches = localeName.equals(getUnknownSearchWord()) ||
|
||||||
|
getNameStringMatcher().matches(localeName) ||
|
||||||
|
getNameStringMatcher().matches(otherNames);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
public int getRadiusSearch(int meters) {
|
public int getRadiusSearch(int meters) {
|
||||||
return (1 << (getRadiusLevel() - 1)) * meters;
|
return (1 << (getRadiusLevel() - 1)) * meters;
|
||||||
|
|
Loading…
Reference in a new issue