PetaBencana
Bahasa
Bahasa
  • Pengantar
  • Informasi Umum
    • Autentikasi
    • Pembuatan Versi
    • Pembatasan Akses
    • CORS
    • HTTPS
    • Koordinat
    • Kode Eror
    • Jenis Konten
    • Contoh
    • Area Didukung
    • Jenis Bencana
  • Open API
    • Laporan Urun-Daya
    • Laporan Urun-Daya/Timeseries
    • Area Banjir
    • Area Banjir/Arsip
    • Area Banjir/Timeseries
    • Pemantauan TMA
    • Infrastruktur
    • Statistik
      • Stats - Rangkuman Laporan Urun-Daya
      • Stats - Rangkuman RW Banjir
      • Stats - Rangkuman Wilayah
  • API Terauntentikasi
    • Kartu Laporan
    • Umpan
    • Laporan Urun-Daya/Arsip
  • Informasi Lisensi Data
    • Penggunaan Non-Komersial (CC BY-NC 4.0)
    • Penggunaan Komersial (CC BY 4.0)
  • Perjanjian Lisensi Pengguna
Powered by GitBook
On this page
  • Format Permintaan
  • GET /infrastructure/:type

Was this helpful?

  1. Open API

Infrastruktur

Lokasi infrastruktur lokal seperti pintu air (floodgates), pompa (pumps) dan saluran air (waterways).

Format Permintaan

Parameter URL

Deskripsi

Format

Wajib

type

Tipe infrastruktur apa yang ingin diperoleh daftarnya? (salah satu antara floodgates, pumps, waterways)

String

Tidak

Parameter Kueri

Deskripsi

Format

Wajib

city

Area mana yang ingin diperoleh data infrastrukturnya? (saat ini hanya mendukung ID-JK)

String

Tidak

format

Format apa yang diperlukan dari hasil yang diberikan? (tersedia secara default dalam json)

String

Tidak

geoformat

Format apa yang diperlukan untuk hasil geografis? (salah satu antara topojson, geojson, default ke topojson)

String

Tidak

GET /infrastructure/:type

Menyajikan daftar pompa di Jakarta.

curl "https://data.petabencana.id/infrastructure/pumps?admin=ID-JK"

Hasilnya adalah sebagai berikut:

{
  "statusCode": 200,
  "result": {
    "type": "Topology",
    "objects": {
      "output": {
        "type": "GeometryCollection",
        "geometries": [
          {
            "type": "Point",
            "properties": {
              "name": "PA Marina"
            },
            "coordinates": [
              7164,
              7352,
              0
            ]
          },
          {
            "type": "Point",
            "properties": {
              "name": "Pompa Waduk Setia Budi Barat"
            },
            "coordinates": [
              5312,
              5077,
              0
            ]
          },
          // etc. etc. //
          {
            "type": "Point",
            "properties": {
              "name": "Pompa UP Senen"
            },
            "coordinates": [
              6143,
              6544,
              0
            ]
          }
        ]
      }
    },
    "arcs": [],
    "transform": {
      "scale": [
        0.000020651319451945148,
        0.000020217245084508508
      ],
      "translate": [
        106.7188310623,
        -6.3060956581
      ]
    },
    "bbox": [
      106.7188310623,
      -6.3060956581,
      106.9253236055,
      -6.1039434245
    ]
  }
}
PreviousPemantauan TMANextStatistik

Last updated 3 years ago

Was this helpful?