Update poi types

This commit is contained in:
Victor Shcherb 2015-04-03 16:34:52 +02:00
parent 7e51abfe95
commit 39c34ac7a3
3 changed files with 5 additions and 5 deletions

View file

@ -107,7 +107,7 @@ public class MapPoiTypes {
name = "leisure";
}
for(PoiCategory p : categories ) {
if(p.getName().equals(name)) {
if(p.getName().equals(name) || p.getKey().equalsIgnoreCase(name)) {
return p;
}
}

View file

@ -149,7 +149,7 @@ public class PoiFiltersHelper {
// "rail", "tram", "light_rail", "subway", "railway_narrow_gauge", "railway_monorail", "railway_funicular"
);
} else if (UDF_RESTAURANTS.equals(key)) {
putValues(poiTypes, types, "sustenance", "restaurant",
putValues(poiTypes, types, "sustenance", "restaurant_not_found",
"cafe", "food_court", "pub", "bar", "biergarten");
} else if (UDF_SIGHTSEEING.equals(key)) {
// TODO filter only sightseeing from tourimsm
@ -413,13 +413,13 @@ public class PoiFiltersHelper {
for(PoiCategory a : types.keySet()){
if(types.get(a) == null){
insertCategories.bindString(1, p.getFilterId());
insertCategories.bindString(2, a.getTranslation());
insertCategories.bindString(2, a.getKey());
insertCategories.bindNull(3);
insertCategories.execute();
} else {
for(String s : types.get(a)){
insertCategories.bindString(1, p.getFilterId());
insertCategories.bindString(2, a.getTranslation());
insertCategories.bindString(2, a.getKey());
insertCategories.bindString(3, s);
insertCategories.execute();
}

View file

@ -293,7 +293,7 @@ public class PoiLegacyFilter {
this.filterByName = filterByName;
}
public boolean isStandardFilter(){
public boolean isStandardFilter() {
return isStandardFilter;
}