API Documentation
1. MODELRUN
URL Format to get latest baserun:
https://maritim.bmkg.go.id/pusmar/api23/modelrun
2. INAWAVES ARRAY REQUEST
URL Format:
https://maritim.bmkg.go.id/pusmar/api23/arr_req/inawaves/<param>/<baserun>/<dtime>
Params Option:
- wind = U V wind component
- dir = U V wave component
- hs = significant wave height
- phs00 = wind sea wave height
- phs01 = primary swell wave height
- pdi00 = wind sea wave direction
- pdi01 = primary swell wave direction
- ptp00 = wind sea wave period
- ptp01 = primary swell wave period
- Upcoming U V for swell and wind sea
Baserun Format:
YYYYMMDDhhmm
Dtime Format:
YYYYMMDDhhmm
*untuk menghemat ukuran data , data dalam format string JSON dan harus dikonversi terlebih dahulu ke JSON
3. INAFLOWS ARRAY REQUEST
URL Format:
https://maritim.bmkg.go.id/pusmar/api23/arr_req/inaflows/<param>/<baserun>/<dtime>/<depth>
Params Option:
- cur = U V current component
- u = eastward current
- v = northward current
- T = sea surface temperature
- S = salinity
- zeta = sea surface elevation
Baserun Format:
YYYYMMDDhhmm
Dtime Format:
YYYYMMDDhhmm
Depth Option:
[0, 10, 25, 50, 100, 250]
*untuk menghemat ukuran data , data dalam format string JSON dan harus dikonversi terlebih dahulu ke JSON
4. Demo