Update src/api.ts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
sora-ext 2025-02-24 16:46:11 +01:00
parent 059dfec50d
commit d689ceb511

View File

@ -96,7 +96,7 @@ export const icon_type = (item: NominatimResult): string => {
"water": ["water", "river", "lake", "torrent", "aquarium"], "water": ["water", "river", "lake", "torrent", "aquarium"],
"building": ["community_center", "locality"], "building": ["community_center", "locality"],
"archway": ["bridge"], "archway": ["bridge"],
"tree": ["woodland", "shieling", "national_park", "park", "zoo", "garden"], "tree": ["woodland", "shieling", "national_park", "park", "zoo", "garden", "nature_reserve"],
"dice-five": ["water_park", "theme_park", "casino"], "dice-five": ["water_park", "theme_park", "casino"],
"": ["?", "neighbourhood", "quarter", "highway"], "": ["?", "neighbourhood", "quarter", "highway"],
} }
@ -105,7 +105,6 @@ export const icon_type = (item: NominatimResult): string => {
if (types[k].indexOf(t) >= 0 || types[k].indexOf(c) >= 0) if (types[k].indexOf(t) >= 0 || types[k].indexOf(c) >= 0)
return k; return k;
} }
console.log(item.display_name, item.category, item.type); console.log(item.display_name, item.category, item.type);
return "question"; return "question";
}; };