Open PhilippKolmann opened 1 month ago
Here are the JSON files from the API calls with the IDs as stated above:
getWarningsForCoords?lat=46.49116600072378&lon=14.179543040865784&lang=de.json getWarningsForCoords?lat=46.49373852286723&lon=14.279251758854166&lang=de.json getWarningsForCoords?lat=46.585553174951244&lon=14.495548996033989&lang=de.json getWarningsForCoords?lat=46.836358784151244&lon=14.361070347470651&lang=de.json getWarnstatus.json
Even better would be an API endpoint, where one could query details for a warnid...
thanks @PhilippKolmann, providing the files was helpful. I'm looking into the missing warnid
s
just a clarification on those warnings prefixed with gwa
:
I am fetching all warning from https://warnungen.zamg.at/wsapp/api/getWarnstatus and to get the details I use the center of the polyline and use then https://warnungen.zamg.at/wsapp/api/getWarningsForCoords. The getWarningsForCoords API returns alls warnings, where this municipality is affected.
My issue now is, how to match those warnings.
At this moment I see 5 Warnings from getWarnstatus with the following warnIds and level/type:
When accessing the CoordsWarnings, I can match warnings of Type 2 quite nicely by warning-ID:
But Type 5 warnings seem to have only a general warning for details:
Why can't the warnid from the Status API and the Coords API be the same?