Skip to content

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

@PhilippKolmann

Description

@PhilippKolmann

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:

  • w4533c2v1 - L1 T2
  • gwa575617 - L1 T5
  • gwa575618 - L1 T5
  • gwa575619 - L1 T 5
  • w4534c0v1 - L1 T2

When accessing the CoordsWarnings, I can match warnings of Type 2 quite nicely by warning-ID:

  • w4533c2v1 -> 4533
  • w4534c0v1 -> 4534

But Type 5 warnings seem to have only a general warning for details:

  • gwa575617 -> 5 (?)

Why can't the warnid from the Status API and the Coords API be the same?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions