Latest version
This commit is contained in:
parent
fd810c1c27
commit
597d2beb60
2 changed files with 4 additions and 4 deletions
|
@ -36,19 +36,16 @@ import net.osmand.util.MapUtils;
|
|||
|
||||
|
||||
public class SearchCoreFactory {
|
||||
// TODO display more (+)
|
||||
// TODO fix search bbox (+)
|
||||
// TODO fix search amenity by type (category/additional)
|
||||
|
||||
// TODO streets by city
|
||||
// TODO search only closest file
|
||||
// TODO search only closest file (global bbox)
|
||||
// TODO limit to one file if city/street/village/poi selected
|
||||
|
||||
// TODO add location parse
|
||||
// TODO add url parse (geo)
|
||||
// TODO amenity by name
|
||||
|
||||
|
||||
// TODO display closest city to villages (and city to street)
|
||||
// TODO automatically increase radius if nothing found
|
||||
// TODO buildings interpolation
|
||||
|
@ -175,6 +172,7 @@ public class SearchCoreFactory {
|
|||
sr.file = currentFile[0];
|
||||
sr.localeName = object.getName(phrase.getSettings().getLang(), true);
|
||||
sr.otherNames = object.getAllNames(true);
|
||||
sr.localeOtherName = sr.file.getRegionName();
|
||||
sr.location = object.getLocation();
|
||||
sr.priorityDistance = 1;
|
||||
sr.priority = priority;
|
||||
|
@ -185,6 +183,7 @@ public class SearchCoreFactory {
|
|||
return false;
|
||||
}
|
||||
sr.objectType = ObjectType.STREET;
|
||||
sr.localeOtherName = ((Street)object).getCity().getName(phrase.getSettings().getLang(), true);
|
||||
} else if (object instanceof City) {
|
||||
CityType type = ((City)object).getType();
|
||||
if (type == CityType.CITY || type == CityType.TOWN) {
|
||||
|
|
|
@ -31,6 +31,7 @@ public class SearchResult {
|
|||
public LatLon location;
|
||||
public int preferredZoom = 15;
|
||||
public String localeName;
|
||||
public String localeOtherName;
|
||||
public Collection<String> otherNames;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue