Skip to content

Add issuedate range and warngeom spatial filters to weather warnings api#539

Open
larskendall wants to merge 1 commit intodevelopfrom
feature/weather-warning-api-update
Open

Add issuedate range and warngeom spatial filters to weather warnings api#539
larskendall wants to merge 1 commit intodevelopfrom
feature/weather-warning-api-update

Conversation

@larskendall
Copy link
Contributor

It should now be possible to filter weather warnings by issuedate range, and by warngeom using any geodjango spatial filter (except distance filters, which tastypie doesn't yet support).

https://www.notion.so/prominentedge/API-to-access-FireCARES-weather-alerts-in-NFORS-1bafbe5268024aa38412f751160221c3#aa4b200672704339a5b67ee856139118

Example API Request

GET /api/v1/weather-warning/?issuedate__range=2020-05-23T21:10:00,2020-05-24T21:10:00&warngeom__intersects=POINT(-91.459 31.458)

Notes

Copy link
Contributor

@joliveros joliveros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants