This repository contains a GIS project for Naples, Italy, showcasing geospatial analysis using Geopandas, Matplotlib, Contextily, and Plotly Express.
The spatial datasets used in this project were originally downloaded from Overpass Turbo (https://overpass-turbo.eu/). The area was zoomed to the metropolitan area of Naples and two queries were run using the keywords tourism=hotel and leisure=park to obtain Hotels.geojson and Parks.geojson.
These files were subsequently refined in ArcGIS Pro: For hotels, only those located within the administrative boundaries of the City of Naples and with a recorded name in the attribute table were retained (saved as the shapefile Naples_Hotels_32633 in the Naples_geopandas folder). For parks, only polygons with an area greater than or equal to 0.8 hectares were selected (saved as the shapefile Naples_Parks_32633 in the Naples_geopandas folder).
The project includes:
- A point shapefile of the main hotels in Naples.
- A polygon shapefile of the main urban parks in Naples.
- Map 1: a basic map showing all hotels and parks.
- Map 2: a 150-meter buffer around parks, visualizing all hotels in relation to this buffer.
- Map 3: the intersection showing “suitable hotels” (5 hotels in total) located within 150 meters of a park, ideal for visitors seeking accommodation close to green urban areas.
- Three Python scripts to generate these maps.
- Hotels.geojson
- Parks.geojson
- All geospatial datasets and generated map images.
geopandas-plotly-express-naples.py– Basic map of Naples with parks and hotelsgeopandas-plotly-express-naples-buffer.py– Map showing 150m buffer around parks and hotelsgeopandas-plotly-express-naples-intersected-hotels.py– Map of hotels within 150m of parksNaples_geopandas/– Folder containing.shpfiles and the ArcGIS project.aprxscreenshots/– Folder containing map images:map 1.png,map 2.png,map 3.png
This project uses the following Python libraries:
- geopandas
- matplotlib
- contextily
- plotly-express
- Make sure all the shapefiles are in the
Naples_geopandasfolder. - Place the
screenshotsfolder in the same repository if you want to view the generated maps. - Run the scripts in this order:
python geopandas-plotly-express-naples.py
python geopandas-plotly-express-naples-buffer.py
python geopandas-plotly-express-naples-intersected-hotels.py


