Open joaoftrodrigues opened 1 year ago
During country validation, was found Skopje and Skopja on North Macedonia, as the real name is Skopje. Although the name is close, the tournament was checked to verify if real location was Skopja and it was, so it was altered to it.
db.atpplayers.updateMany({Tournament: "Macedonia F3"}, {$set: {City: "Skopje"}})
In this tournament was found an incoherence, where the city didn't correspond to the country.
After a search, was found the real city in this site, Skopje: https://www.itftennis.com/en/tournament/macedonia-f2-futures/mkd/2017/m-fu-mkd-02a-2017/draws-and-results/
db.atpplayers.updateMany({Tournament: "Macedonia F2"}, {$set: {City: "Skopje"}})
Tasmania must be putted as state.
db.atpplayers.updateMany({Country: "Tasmania"}, {$set:{State: "Tasmania"}})
db.atpplayers.updateMany({Country: "Alberta"}, {$set: {State: "Alberta"}})
Curaçao becomes State value
db.atpplayers.updateMany({Country: "Curacao"}, {$set: {State: "Curaçao"}})
They're marked as country, so were putted as state.
db.atpplayers.updateMany({Country: {$in: ["Dutch Anti", "Dutch Antil"]}},{$set: {State: "Curaçao"}})
The location has the value "Ramat. Hasharon". Ramat Hasharon is a city from Israel.
Fixing the problem on city field:
db.atpplayers.updateMany({Country: "Hasharon"}, {$set: {City: "Ramat Hasharon"}})
Shown as "Yang Gu", real name is "Yanggu County"
db.atpplayers.updateMany({City: "Yang Gu"}, {$set: {City: "Yanggu County"}})
Martinique is an island, so it will count as state and removed from being a city.
db.atpplayers.updateMany({City:"Martinique"}, {$set: {State: "Martinique", City: null}})
db.atpplayers.updateMany({City:"Noumea"},{$set: {City: "Nouméa"}})
Also, for New Caledonia:
db.atpplayers.updateMany({Country:"New Caledoni"},{$set: {State: "New Caledonia"}})
OK is Oklahoma state, question is, store the state as "OK" or Oklahoma?
db.atpplayers.updateMany({Country:"OK"}, {$set: {State: "OK"}})
db.atpplayers.updateMany({Country:"Texas"}, {$set: {State: "Texas"}})
db.atpplayers.updateMany({Country:"Ontaria"}, {$set: {State: "Ontario"}})
db.atpplayers.updateMany({Country: "Reunion Island"}, {$set: {State: "Réunion", City: null}})
db.atpplayers.updateMany({City: "Nova Sad"}, {$set: {City: "Novi Sad"}})
db.atpplayers.updateMany({Country: "'s-Hertogenbosch"}, {$set: {City: "'s-Hertogenbosch"}})
db.atpplayers.updateMany({Country: "Abidjan"}, {$set: {City: "Abidjan"}})
db.atpplayers.updateMany({Country: "Angleur - Liege"}, {$set: {City: "Liège"}})
db.atpplayers.updateMany({Country: {$in: ["Salvador", "San Salvador"]}}, {$set: {City: "San Salvador"}})
db.atpplayers.updateMany({Country: "Santiago"}, {$set: {City: "Santiago"}})
db.atpplayers.updateMany({Country: "Bahia"}, {$set: {State: "Bahia", City: null}})
db.atpplayers.updateMany({City: "Lara"}, {$set: {State: "Lara", City: null}})
db.atpplayers.updateMany({Country: "Sardinia"}, {$set: {State: "Sardinia"}})
db.atpplayers.updateMany({Country: "Victoria"}, {$set: {State: "Victoria"}})
Change from Portoroz to Portorož ?
db.atpplayers.updateMany({City: "Tai-Chung"}, {$set: {City: "Taichung"}})
db.atpplayers.updateMany({City: "Port-of-Spain"}, {$set: {City: "Port of Spain"}})
db.atpplayers.updateMany({City: "Uriage"},{$set: {City: "Saint-Martin-d'Uriage"}})
db.atpplayers.updateMany({City: "Botwana"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Brazi"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Domincan Republic"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Mexica"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Phillipines"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "United States Of America"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Venezeuela"}, {$set: {City: null}})
db.atpplayers.updateMany({City: "Devon"}, {$set: {State: "Devon", City: null}})
db.atpplayers.updateMany({City: "Ciudad de Habana"}, {$set: {State: "Ciudad de Habana", City: null}})
db.atpplayers.updateMany({City:"Elndhoven"}, {$set: {City: "Eindhoven"}})
db.atpplayers.updateMany({City:"Florianapolis"}, {$set: {City: "Florianópolis"}})
db.atpplayers.updateMany({City:"Neuchatel"}, {$set: {City: "Neuchâtel"}})
db.atpplayers.updateMany({City:"Portoroz"}, {$set: {City: "Portorož"}})
db.atpplayers.updateMany({City: "Portschach"}, {$set: {City: "Pörtschach am Wörthersee"}})
db.atpplayers.updateMany({City: "Esch/Alzette"}, {$set: {City: "Esch-sur-Alzette"}})
Description
Check if cities are well written, and correct wrong ones.
Process
Dataset of cities
So far was found follow datasets:
- https://simplemaps.com/data/world-cities (Free version is limited)Data import
mongoimport --db atp --collection cities --drop --file D:\MCD\1\BDDA\TP\data\cities.csv --type=csv --headerline