This project analyzes the green spaces and urban areas of Tangier, Morocco, using geospatial data.
# Tangier Green Space & Urban Area Analysis
This project analyzes the green spaces and urban areas of **Tangier, Morocco**, using geospatial data. It uses **OpenStreetMap** data to identify green spaces and urban zones, calculates their areas, and generates visualizations and interactive maps for better insights. Additionally, it exports the data into CSV files for further analysis.
## Features
- Retrieves Tangier's geographical boundaries and urban data using **OpenStreetMap**.
- Identifies and analyzes green spaces and urban areas in Tangier.
- Calculates the percentage of green spaces and urban areas relative to the total city area.
- Generates interactive maps with **folium** showing green spaces and urban areas.
- Exports the analysis results to **CSV** files.
- Provides visualizations (pie and bar charts) to display the distribution of green and urban areas.
## Tools & Libraries Used
- **geopandas**: For handling geospatial data.
- **folium**: To create interactive maps.
- **osmnx**: To download and analyze OpenStreetMap data.
- **matplotlib**: For generating visualizations.
- **seaborn**: For enhanced plotting styles.
- **pandas**: To handle data structures and export results to CSV.