Skip to content

"Map-Generator-Prefectur-France-From-API" is a Python repository crafting visual maps of French prefectures via APIs. It employs requests, webbrowser, folium, csv, numpy, and a prefectures.csv file to display locations, offering console and interactive options. Explore French prefectures swiftly with the provided scripts.

License

Notifications You must be signed in to change notification settings

Klaynight-dev/Map-Generator-Prefectur-France-From-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Map Generator - Prefecture France From API

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.

Repository Files:

API_VF+Interface.py

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.

API_VF.py

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.

Requirements

Ensure you have the following libraries installed:

  • requests
  • webbrowser
  • folium
  • csv
  • numpy

Instructions:

  1. Clone or download the repository to your local machine.
  2. Install the required libraries.
  3. Run the scripts using Python 3.x.

Usage

API_VF+Interface.py

Run the script and input the department code in the graphical interface to visualize the prefecture data on the map.

API_VF.py

Run the script and input the department code in the console to visualize the prefecture data on the map.

Execution Instructions

To execute the API_VF+Interface.py or API_VF.py script:

  1. Open your terminal or command prompt.
  2. Navigate to the directory where the script is located.
  3. Run the command: python API_VF+Interface.py or python API_VF.py.

License

This project is licensed under the MIT License.

About

"Map-Generator-Prefectur-France-From-API" is a Python repository crafting visual maps of French prefectures via APIs. It employs requests, webbrowser, folium, csv, numpy, and a prefectures.csv file to display locations, offering console and interactive options. Explore French prefectures swiftly with the provided scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages