Geosphere-Austria / dataset-api-docs

This is the documenation source for the dataset API provided by Geosphere Austria
https://dataset.api.hub.geosphere.at/v1/docs
10 stars 1 forks source link

Mapping warnid between https://warnungen.zamg.at/wsapp/api/getWarnstatus and https://warnungen.zamg.at/wsapp/api/getWarningsForCoords #42

Open PhilippKolmann opened 1 month ago

PhilippKolmann commented 1 month ago

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?

PhilippKolmann commented 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

PhilippKolmann commented 1 month ago

Even better would be an API endpoint, where one could query details for a warnid...

fpechstein-geosphereat commented 1 month ago

thanks @PhilippKolmann, providing the files was helpful. I'm looking into the missing warnids

just a clarification on those warnings prefixed with gwa: