Add POI API routes and Celery task

FastAPI router with CRUD endpoints for POIs, distance calculation
trigger, and distance queries. Streaming GeoJSON endpoint now accepts
include_poi_distances=true to inject travel times into features.
Celery task wraps the distance calculator with progress reporting.
This commit is contained in:
Viktor Barzin 2026-02-08 13:14:47 +00:00
parent da0a56895d
commit bd788df9aa
No known key found for this signature in database
GPG key ID: 0EB088298288D958
4 changed files with 332 additions and 3 deletions

View file

@ -9,7 +9,7 @@ app = Celery(
"celery_app",
broker=os.getenv("CELERY_BROKER_URL", "redis://localhost:6379/0"),
backend=os.getenv("CELERY_RESULT_BACKEND", "redis://localhost:6379/1"),
include=["tasks.listing_tasks"],
include=["tasks.listing_tasks", "tasks.poi_tasks"],
)
app.conf.update(