Message Boards Message Boards

[Solved] Dataset of all cities of Italy needed

Posted 3 years ago

Sorry for the disturbance and I hope that I am in the right place but please can you direct me to where I can get a dataset to download a CSV file of the directory of all the cities in Italy for my current project.

POSTED BY: Pabel Schmidt
4 Replies
Posted 3 years ago

I personally support Postalcodezip based on their track record. All streets are available on just one database which is on their site : https://www.postalcodezip.com

POSTED BY: Mabry Hodge
Posted 3 years ago

That’s fantastic and precisely what I required. Also saw that the rest of Europe was there too.

POSTED BY: Pabel Schmidt
Posted 3 years ago

Hi Pabel,

To get a list of all the cities in Italy sorted by population descending you can use CityData.

italyCities = CityData[{All, "Italy"}]

To get the available properties for a city e.g. Rome

Entity["City", {"Rome", "Lazio", "Italy"}]["PropertyAssociation"] // DeleteMissing

For specific properties

EntityValue[Entity["City", {"Rome", "Lazio", "Italy"}], {"Population", "Position", "Elevation"}]

Those properties for the top 10 cities

EntityValue[#, {"Population", "Position", "Elevation"}] & /@ italyCities[[1 ;; 10]]

You can use Export to export to CSV.

POSTED BY: Rohit Namjoshi
Posted 3 years ago

Pabel:

Have you checked out the WikiData functionality? I do see that WikiData does have some info on the cities of Italy.

POSTED BY: Mike Besso
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract