Pilots Analyzer is an interactive web application for exploring and analyzing amenities in various villages using geospatial data and AI insights. It leverages Overpass API for fetching geographic data and integrates AI to provide suggestions for rural development, digitalization, and smart village improvements.
A live demo of this component can be found at: https://smartera-analyzer-v2.streamlit.app/
- Interactive Map: Displays amenities in selected villages with markers.
- Village Selection: Choose from a list of predefined villages.
- AI Analysis: Get AI-driven suggestions based on available amenities.
- PDF Export: Download AI analysis in a PDF format.
- Streamlit UI: User-friendly interface with customizable styles.
-
Clone the repository:
git clone https://github.com/your-username/pilots-analyzer.git cd pilots-analyzer
-
Install dependencies:
pip install -r requirements.txt
-
Run the application:
streamlit run app.py
requests
: For API requests.streamlit
: Framework for building the interactive UI.folium
: For creating interactive maps.streamlit-folium
: For rendering Folium maps in Streamlit.fpdf
: For generating PDFs.json
: For handling JSON data.
Install these dependencies with:
pip install requests streamlit folium streamlit-folium fpdf
-
Launch the app:
streamlit run app.py
-
Select a Village: Use the dropdown menu to choose a village.
-
Show Amenities: Click the "Show Amenities" button to fetch and display amenities on the map.
-
AI Analysis:
- Click "Analyze" to get AI-driven suggestions.
- Download the analysis as a PDF using the provided button.
- Overpass API: The app uses the Overpass API to fetch amenities. Customize the query or endpoint as needed.
- AI Analysis: Ensure the correct
CHATBOT_ID
andAuthorization
token are set for AI integration.
The app is styled with:
- Primary Color: Dark Green (
#164031
) - Secondary Color: Golden Yellow (
#d99115
) - Accent Color: Orange (
#f16948
) - Background Color: Light Beige (
#f0ecdf
)
Modify the styles in the st.markdown
section if desired.
The application includes a list of predefined villages such as:
- Ossana
- Male
- Vermiglio
- Sóller
- Padna
- Karpachevo
Add or remove villages in the villages
list.
For academic use, please refer to our work:
@article{martinez2024overview,
title={An overview of civic engagement tools for rural communities},
author={Martinez-Gil, Jorge and Pichler, Mario and Lechat, Noemi and Lentini, Gianluca and Cvar, Nina and Trilar, Jure and Bucchiarone, Antonio and Marconi, Annapaola},
journal={Open Research Europe},
volume={4},
pages={195},
year={2024},
publisher={F1000 Research Limited London, UK}
}
This project is licensed under the MIT License.
This project has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No [101084160](SMART community-led transition for Europe's Rural Areas [SMART ERA]).