Comment by sirobg
Comment by sirobg 6 days ago
Well, congrats on finding the second bug! Thanks!
This one is pretty big, even as big as it's funny.
> Does your code handle diacritics correctly?
It seems it doesn't, no. Sorry for this. It's my first attempt at an international product.
To give you more details, I'm using this query to fetch cities data: https://nominatim.openstreetmap.org/search?city=${rawCity}&c...
I probably shouldn't have restricted accept-language to en-US. I'll investigate and make this work.
> I'm using this query to fetch cities data
There's also downloadable CSV lists of the world's place names at https://geonames.org (and stably have been kept available and updated for many years by now) — if you already have a DB (likely in your case), script up some csv-to-dbtable dumping and thus you save on networked API call overheads just for querying the world's existing place names.
(It's regularly updated so best to keep the convert-and-dump script or logic around if you go that route.)