Developer: ModestusSpider
Date: 2025-10-21
Version: 1.0.0
Note: This project is intended for educational purposes only.
This lightweight desktop application uses Tkinter for the user interface and Folium for interactive map rendering.
It fetches real-time earthquake data from Kandilli Observatory and Earthquake Research Institute (KOERI), filters it by date and magnitude, and visualizes the results on a color-coded interactive map.
Each earthquake is represented by a circle marker whose color depends on its magnitude:
- Green: Mw < 3.0
- Orange: 3.0 โค Mw < 5.0
- Red: Mw โฅ 5.0
- Python 3.8+
Install the required packages via pip:
pip install requests pandas folium tkinter
๐ File Structure
๐ Project/
โ
โโโ TurkiyeEarthquakeMap.py # Main application script
โโโ koeri_earthquakes_tkinter.html # Auto-generated interactive map (output)
โโโ README.md # Project documentation
๐** How to Run**
1-Make sure you have all required dependencies installed.
2-Run the script directly from the terminal or command prompt:
python TurkiyeEarthquakeMap.py
3-A small Tkinter window will appear asking:
โHow many past days of earthquakes?โ
โMinimum Mw:โ
4-Enter the desired values and click โShow Mapโ.
5-The program will:
Fetch the latest earthquake data from KOERI.
Filter it based on your criteria.
Generate an interactive Folium map.
Automatically open it in your default browser.
๐งญ Features
โ
Real-time data retrieval from KOERI
โ
Magnitude-based color coding
โ
Interactive zoomable map with popups
โ
Lightweight GUI via Tkinter
โ
No local database or heavy dependencies
โ
Auto-save of generated map to HTML
๐ Color Legend
| Magnitude (Mw) | Color | Meaning |
| -------------- | --------- | ------------- |
| < 3.0 | ๐ฉ Green | Minor |
| 3.0 โ 4.9 | ๐ง Orange | Moderate |
| โฅ 5.0 | ๐ฅ Red | Strong/Severe |
๐ธ Usage Example
Tkinter input window:
Generated interactive Folium map:
Popup example:
Date: 2025-10-20 12:34
Location: Istanbul
Magnitude (Mw): 4.1
Depth: 10 km
๐งโ๐ป Developer Notes
This application is self-contained and does not depend on any external configuration files.
It uses structured fixed-width parsing (pandas.read_fwf) to extract tabular data from KOERIโs raw HTML listing.
Error handling and informative dialogs are implemented via tkinter.messagebox.
๐งพ License
This project is released under the MIT License.
Attribution to the original developer is appreciated.
๐ชช Developer Signature
Developer: ModestusSpider
File: TurkiyeEarthquakeMap.py
Date: 2025-10-21
SHA256: 7b1e7cc1fbb72cc1fbb80d4a99d1a55f3e78b51e60e122b6f1a4b5ce9b62ad8b