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:
@@ -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
|
||||
Reference in New Issue
Block a user