Skip to content

This module has been made to receive notification of earthquakes in Turkey or to list past earthquakes.

License

Notifications You must be signed in to change notification settings

CihatKsm/earthquake-turkey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modül İndirme:

  npm install earthquake-turkey

Bildirim Almak İçin Örnek Kullanım:

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ı:

{
    "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.
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ı:

  [{...}, {...}, {...}]

Lisans

ISC License

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 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.

About

This module has been made to receive notification of earthquakes in Turkey or to list past earthquakes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published