This repository contains Python scripts to generate a map of French prefectures using API data and visualizing it through Folium. The main script, API_VF+Interface.py
, provides an interactive interface to input the department code and visualize the corresponding prefecture data on the map.
This script fetches French departmental and regional data via APIs and generates a map using Folium. It allows user interaction through an input field to visualize specific department data.
This Python script fetches departmental and regional data via APIs and generates a map using Folium. It provides a console-based interaction, taking user input for the department code to visualize the corresponding prefecture data on the map.
Ensure you have the following libraries installed:
requests
webbrowser
folium
csv
numpy
- Clone or download the repository to your local machine.
- Install the required libraries.
- Run the scripts using Python 3.x.
Run the script and input the department code in the graphical interface to visualize the prefecture data on the map.
Run the script and input the department code in the console to visualize the prefecture data on the map.
To execute the API_VF+Interface.py
or API_VF.py
script:
- Open your terminal or command prompt.
- Navigate to the directory where the script is located.
- Run the command:
python API_VF+Interface.py
orpython API_VF.py
.
This project is licensed under the MIT License.