0.3.4 • Published 5 months ago
earthquake-turkey v0.3.4
Kandi̇lli̇ Rasathanesi̇ Ve Deprem Araştirma Ensti̇tüsü, Bölgesel Deprem-Tsunami̇ İzleme Ve Değerlendi̇rme Merkezi̇ tarafından sunulan bilgileri içermektedir.
Modül İndirme:
npm install earthquake-turkey
Örnek Kullanım:
const quake = require('earthquake-turkey')
const date = () => new Date()
console.log(date(), 'System opened!')
//Eğer bir deprem olursa alttaki kod ile bunu görüntüleyebileceksiniz.
quake.earthquake.on('quake', (info) => {
console.log(date(), info)
})
setTimeout(async () => {
//Geçmiş depremlerin listesini alttaki kod ile görebilirsiniz.
//count opsiyonu kaç adet veri görüntüleyeceğinizi yazabilirsiniz.
const all = await quake.earthquakes({ count: 3 })
console.log('here are the past 3 earthquakes:', all)
/*
minimum opsiyonu depremlerin şiddetini filtrelemek için kullanılır,
eğer 3 değeri verilirse 3 ve üzeri şiddette olan son depremler listelenir.
*/
const min3_8 = await quake.earthquakes.get({ minimum: 3.8, count: 3 })
console.log('the latest earthquake of 3.8 and above:', min3_8)
}, 2000);
Örnek Çıktı:
{
"date": "2023.01.01 12:34:56",
"latitude": "12.3456",
"longitude": "78.9123",
"depth": "12.3",
"ml": "1.2",
"place": "<lokasyon>",
"image": "<google-lokasyon-resim-linki>",
"location": "<google-lokasyon-linki>"
}
Geri Bildirim
E-posta: me@cihatksm.com adresinden bana ulaşın. Herhangi bir sorun teşkil ediyorsa, problem oluşturuyorsa ya da oluşturduysa önce tarafıma bilgi verilmesi rica olunur.
0.3.4
5 months ago
0.3.2
9 months ago
0.3.3
9 months ago
0.2.63
11 months ago
0.2.62
11 months ago
0.2.66
11 months ago
0.2.65
11 months ago
0.2.64
11 months ago
0.3.0
11 months ago
0.2.61
1 year ago
0.2.6
1 year ago
0.2.3
1 year ago
0.2.2
1 year ago
0.2.5
1 year ago
0.2.4
1 year ago
0.2.1
1 year ago
0.2.0
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago