1.5.6 • Published 11 months ago

nodejs-krdae-earthquake-api v1.5.6

Weekly downloads
2
License
ISC
Repository
github
Last release
11 months ago

KRDAE EARTHQUAKE API (NODE.JS)

KULLANIM

  1. > npm i nodejs-krdae-earthquake-api
  2. Aşağıdaki örnek kod ile türkiye ve çevresinde olan son 500 depremi json formatında alabilirsiniz.
const krdae = require('nodejs-krdae-earthquake-api')

krdae.getLast500Earthquakes()
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })
  1. Aşağıdaki örnek kod ile sadece belirli bir şehrin 100 kilometrelik yarıçapın içinde olan depremleri json formatında alabilirsiniz.
krdae.getFromCity("istanbul")
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })
  1. Aşağıdaki örnek kod ile sadece belirli bir koordinat ve yarıçaptaki depremleri json formatında alabilirsiniz.
krdae.getFromRadiusAndCoordinates(latitude, longitude, radius)
    .then(count => {
        console.log(count)
    })
    .catch(err => {
        console.log(err)
    })

ÖRNEK YANIT

{
  "source_url": "http://www.koeri.boun.edu.tr/scripts/lst2.asp",
  "result": [
        {
            "magnitude": 2.4,
            "coordinates": {
                "latitude": 36.9348,
                "longitude": 27.3252
            },
            "location": "GOKOVA KORFEZI (AKDENIZ)",
            "depth": 8.5,
            "unix_timestamp": 1629467592,
            "datetime": "2021-08-20T16:53:12+0300",
            "revised": null,
            "id_hash": "c9efe10825e2639cef790768d26767dd",
            "hash": "d03a3d0b42f52a4b93e29db106fa57ed"
        },
        {
            "magnitude": 2.7,
            "coordinates": {
                "latitude": 39.5932,
                "longitude": 28.095
            },
            "location": "MAHMUDIYE-KEPSUT (BALIKESIR)",
            "depth": 7.5,
            "unix_timestamp": 1629466788,
            "datetime": "2021-08-20T16:39:48+0300",
            "revised": null,
            "id_hash": "a58f2c0c05b1211317533de203503142",
            "hash": "b27fe9a9198600c194c08e15c097d0ef"
        },
        "..."
    ]
}

VERİ KAYNAĞI

Boğaziçi Üniversitesi Kandilli Rasathanesi ve Deprem Araştırma Enstitüsü Bölgesel Deprem-Tsunami İzleme ve Değerlendirme Merkezi

1.5.5

11 months ago

1.5.6

11 months ago

1.5.4

2 years ago

1.5.3

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.3.3

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.3.2

3 years ago

1.4.0

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.2

3 years ago

1.0.2-1

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago