upcoming / upcoming-www

Upcoming.org Site
Apache License 2.0
168 stars 17 forks source link

Duplicate Cities #27

Open sherred opened 7 years ago

sherred commented 7 years ago

Found one instance of duplicate cities, there appear to be two entries for Edinburgh, Scotland, United Kingdom when adding a city. Both can be added so Edinburgh appears twice in my city list. Unsure of there are other duplicate cities.

citizenk commented 7 years ago

Yes, there are other duplicates. For instance, Fribourg (Switzerland) appears at least twice:

I couldn't point the cause, but if the list of cities is based on postal codes, in Switzerland at least there are cases were the same city can have different postal codes (but all in the same series): one for the PO Boxes, one for every quarter of the city, one generic for the whole city, etc.

Maybe later on we will be able to signal or correct such cases ourselves, but for now I guess we'll just have to live with it.

luthian commented 7 years ago

I added Boston, MA and Cambridge, MA and both came up duplicated at the top of the list.

waxpancake commented 7 years ago

Hmm, the placename db is from Who's on First at Mapzen. Let me look into it and see what I can find out.

lostfocus commented 7 years ago

I've looked into that DB before, mostly because the city nearby (Basel, Switzerland) is in there four times as well. It seems like they have problems with cities that might span and/or go right up to multiple counties.