Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cihatksm/earthquake-turkey
This module has been made to receive notification of earthquakes in Turkey or to list past earthquakes.
https://github.com/cihatksm/earthquake-turkey
cihatksm earthquake earthquake-turkey earthquaketurkey turkey turkey-earthquake
Last synced: 5 days ago
JSON representation
This module has been made to receive notification of earthquakes in Turkey or to list past earthquakes.
- Host: GitHub
- URL: https://github.com/cihatksm/earthquake-turkey
- Owner: CihatKsm
- License: mit
- Created: 2023-02-22T12:41:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-30T09:04:11.000Z (12 months ago)
- Last Synced: 2024-04-20T19:52:47.389Z (7 months ago)
- Topics: cihatksm, earthquake, earthquake-turkey, earthquaketurkey, turkey, turkey-earthquake
- Language: JavaScript
- Homepage: https://npm.cihatksm.com/earthquake-turkey
- Size: 43.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### Modül İndirme:
```bash
npm install earthquake-turkey
```#### Bildirim Almak İçin Örnek Kullanım:
```js
const { earthquake } = require('earthquake-turkey')
const date = () => new Date()console.log(date(), 'System opened!')
earthquake.on('quake', object => {
console.log(date(), 'Yeni bir deprem oldu!', object)
})
```#### Örnek Çıktı:
```json
{
"date": "2023.04.13 02:07:34",
"latitude": "40.6332",
"longitude": "29.1290",
"depth": "10.8",
"ml": "1.5",
"place": "Hasanbaba, Hasanbaba Cd. 74, 77300 Çınarcık/Yalova",
"image": "https://maps.gstatic.com/tactile/pane/default_geocode-2x.png",
"location": "https://www.google.com.tr/maps/place/40.6332,29.1290"
}
```
#### Doğrudan Veri Almak İçin Örnek Kullanım:| Seçenek | Tip | Açıklama |
| :-------- | :------- | :------------------------- |
| `minimum` | `number` | Minimum büyüklükteki depremleri gösterir. Varsayılan: 0 ve üzeri. |
| `count` | `number` | Gösterilecek deprem sayısı. Varsayılan: 20 tane. |
| `controlled` | `number` | Kontrol edilecek deprem sayısı. Varsayılan: 20 tane. |```js
const { earthquakes } = require('earthquake-turkey')
const date = () => new Date()console.log(date(), 'System opened!')
earthquakes({ count: 3 }).then(datas => {
console.log(date(), 'here are the past 3 earthquakes:', datas)
})
```#### Örnek Çıktı:
```json
[{...}, {...}, {...}]
```#### Lisans
[![ISC License](https://img.shields.io/badge/License-ISC-green.svg)](https://choosealicense.com/licenses/isc/)#### Geri Bildirim
**E-posta:** [email protected] adresinden bana ulaşın.
#### Bilgi
[Kandillii Rasathanesi Ve Deprem Araştırma Enstitüsü, Bölgesel Deprem-Tsunami İzleme Ve Değerlendirme Merkezi](https://www.koeri.boun.edu.tr/) tarafından sunulan bilgileri içermektedir.
Herhangi bir sorun teşkil ediyorsa, problem oluşturuyorsa ya da oluşturduysa önce tarafıma bilgi verilmesi rica olunur.