Skip to content

Add dateFrom/dateTo filters to GET /api/v1/disasters/near #8

@lukesmmr

Description

@lukesmmr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions