Skip to content

Implement Spatial Queries for Nearby Locations #3

Description

@YanCotta

Description: The search_nearby_locations function in the LocationService currently returns an empty list. This issue is to implement the spatial query to find locations within a given radius.

Tasks:

Use a spatial database extension like PostGIS for efficient spatial queries.

Implement the logic in the LocationRepository to perform a distance-based search using the provided latitude, longitude, and radius.

Update the LocationService to use the new repository method.

Relevant Files:

src/climate_risk/application/services/location_service.py

src/climate_risk/infrastructure/repositories/location_repository.py

src/climate_risk/infrastructure/database/models.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions