Skip to content

Semplice Web App che mostra i vari abbeveratoi presenti in Sicilia tramite le API di Open Street Maps

Notifications You must be signed in to change notification settings

angelof-exe/abbeveratoi-sicilia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask

Abbeveratoi in Sicilia

Abbeveratoi in Sicilia is a simple web application built with Flask. It displays the various watering places ("abbeveratoi") scattered across Sicily, utilizing data from OpenStreetMap.

The project is aimed at mapping active, inactive, and unknown-status watering places, with the ultimate goal of identifying and highlighting those that are inactive but could be restored. The restoration of these facilities could be crucial in supporting agricultural needs and ensuring water availability during periods of extreme drought.

This project combines historical preservation with modern water resource management, promoting environmental sustainability and the conservation of cultural heritage during critical times of water scarcity.

Features

  • Interactive Map: Visualize Sicilian watering places on a map with different markers representing their statuses (active, inactive, unknown).
  • Filter Functionality: Easily filter watering places based on their status using buttons in the UI.
  • Detail View: Clicking on a watering place in the list or on the map provides details, including location and status, with a direct link to OpenStreetMap.

Future Enhancements

  • Restoration Feature: Identify potential inactive watering places that could be restored for public use.
  • Data Collection: Integrate feedback mechanisms to collect updated status and information directly from users or local authorities.

Setup

Follow these steps to set up the project on your local machine:

Prerequisites

Make sure you have Python installed. You can download it from the official Python website.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/abbeveratoi-in-sicilia.git
    cd abbeveratoi-in-sicilia
  2. Install the required dependencies:

    pip install -r requirements.txt
  3. Run the Flask application:

    python app.py
  4. Visit http://127.0.0.1:5000/ in your browser to view the web app.

Project Structure

.
├── app.py                        # Main Flask app
├── README.md                     # Project documentation
├── requirements.txt              # Dependencies
├── static
│   ├── css
│   │   └── style.css             # Custom styling
│   └── style.css
├── templates
│   └── index.html                # HTML template
└── watering_place_status.json    # Example data file with watering place statuses

Technologies Used

  • Python: Main programming language.
  • Flask: Web framework used for building the app.
  • Bootstrap: Frontend framework for responsive design.
  • Leaflet.js: JavaScript library for interactive maps.
  • OpenStreetMap API: Data source for mapping watering places.

Relevant Links

Read more about the restoration efforts related to these watering places:

About

Semplice Web App che mostra i vari abbeveratoi presenti in Sicilia tramite le API di Open Street Maps

Topics

Resources

Stars

Watchers

Forks