-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Context
The /api/v1/disasters endpoint supports dateFrom/dateTo query parameters, but /api/v1/disasters/near does not. The mobile app needs historical proximity queries (e.g., "what happened near me last month") for the Before/During/After lifecycle view.
Proposed Change
Add optional dateFrom and dateTo query parameters to GET /api/v1/disasters/near:
GET /api/v1/disasters/near?lat=38.72&lng=-9.14&distance=50&dateFrom=2026-01-01&dateTo=2026-01-31
Filter the geospatial query with WHERE date >= dateFrom AND date <= dateTo.
Impact
- Non-breaking (new optional params)
- CONTRACTS.md must be updated in both repos
- Mobile app can then query historical events near a location
Labels
contract, enhancement
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels