Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

v3.0 Server Endpoints & Site Map

Tomas Holderness edited this page Feb 14, 2017 · 1 revision

This document is out of date. Please refer to https://docs.petabencana.id (https://github.com/urbanriskmap/petabencana-docs)

Pages/Templates/Routes

  • petabencana.id (overview map + zoom to map on user location)
  • petabencana.id/jakarta (zoom map to Jakarta)
  • petabencana.id/bandung (zoom map to Bandung)
  • petabencana.id/surabaya (zoom map to Surabaya)
  • petabencana.id/cards/OTL (HTML report card with one time link)

API (Application Programming Interface)

Reports

  • [get] data.petabencana.id/reports (all reports, last hour)
  • [get] data.petabencana.id/reports?city=INSTANCE_REGION_CODE (Petabencana.id Instance Region 3 letter code)
  • [get] data.petabencana.id/reports/:id (reports by ID)

GRASP Cards

  • [get+put] data.petabencana.id/cards/:id (validate/accept card data)
  • [get+put] data.petabencana.id/cards/image/:id (validate/accept images)

REM

  • [get] data.petabencana.id/floods

Floodgauges

  • [get] data.petabencana.id/floodgauges

Infrastructure

  • [get] data.petabencana.id/infrastructure/pumps
  • [get] data.petabencana.id/infrastructure/floodgates
  • [get] data.petabencana.id/infrastructure/waterways

Sensors

  • smartsensors?
  • rainfall gauge data?