OSM: search by tags "amenity" and "shop" after delocalizing (#1253)

* OSM: search by tags "amenity" and "shop" after delocalizing

* use overpassQL UNION

* document Union usage

* cleanup unused imports

* refine restaurant queries

* two more :)

* Hardcode string -> tag assignment

* Remove log statement

---------

Co-authored-by: MM20 <15646950+MM2-0@users.noreply.github.com>
This commit is contained in:
Christoph
2025-02-08 21:48:42 +01:00
committed by GitHub
co-authored by MM20
parent ce5495418e
commit 3478411d7e
3 changed files with 181 additions and 70 deletions
@@ -29,4 +29,10 @@ fun String.normalize(): String {
*/
fun String.romanize(): String {
return Pinyin.toPinyin(this, "")
}
}
fun String.stripStartOrNull(s: String): String?
= if (startsWith(s)) removePrefix(s) else null
fun String.stripEndOrNull(s: String): String?
= if (endsWith(s)) removeSuffix(s) else null