Skip to content

modestustr/LastEarthquakeTurkiyeMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—บ๏ธ KOERI Turkiye Earthquake Map (Tkinter + Folium)

Developer: ModestusSpider
Date: 2025-10-21
Version: 1.0.0


๐Ÿ“˜ Overview

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

โš™๏ธ Requirements

Python Version

  • Python 3.8+

Dependencies

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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages