Explore Gazet-powered natural-language AOI search

Aperta
#133 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
fastapi, typescript
Ambito
api, frontend

Direzione di ricerca

Verifica innanzitutto lo stato, la responsabilità e le aspettative di uptime del servizio Gazet /search ospitato prima di definire l'ambito dell'implementazione. Poi leggi AoiUpload.tsx, aoiUtils.ts e la pipeline AOI di #90 per comprendere il flusso esistente di normalizzazione, filterStore.setAoi() e map.fitBounds(). Il lavoro è completo quando è stato scelto un approccio praticabile di hosting o feature flag e definito se Gazet o la gestione locale della geometria supporta le query proposte.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Summary

Explore using Gazet — Development Seed's natural-language geocoding tool with GIS operations over Overture/Natural Earth data — to let users type a query like "50km buffer around Paris" and get back a GeoJSON AOI polygon, feeding directly into the AOI pipeline shipped in #90.

Why

#90 added AOI loading via GeoJSON file upload. Gazet could offer a second, more casual way to define an AOI — typed natural language instead of a prepared file — for cases where the user doesn't already have a GeoJSON (e.g. "I just want a buffer around a city," not a precise rapid-mapping polygon).

Proposed approach

  • Gazet exposes a FastAPI /search endpoint that returns GeoJSON (FeatureCollection/Feature) for a natural-language query.
  • Feed the returned GeoJSON through the existing AOI pipeline rather than building a parallel code path: loadAoiFromFile-style normalization → filterStore.setAoi() → map.fitBounds() (same as AoiUpload.tsx / aoiUtils.ts).
  • Positioned as complementary to file upload, not a replacement — a second entry point into the same AOI state.

Dependency risk (needs resolving before scoping further)

  • Development Seed has a hosted Gazet instance, but it currently appears to be down/unreliable. Need to confirm status, ownership, and uptime expectations before committing to a UI build — no point building a search box against a service that isn't reliably available.
  • If the hosted instance isn't viable, this may require deploying/maintaining our own instance (Gazet ships a Dockerfile/docker-compose), which is a bigger lift than the search UI itself.

Open questions

  • Does Gazet support buffer distances natively in the query (e.g. "50km buffer around Paris"), or would we need to parse a distance + place and construct the buffer ourselves (e.g. with Turf, matching the geometry libraries already used in aoiUtils.ts)?
  • What's the reliability/ownership story for the hosted instance?
  • Should this be gated behind a feature flag until Gazet's hosting story is settled?
Lingua principale
TypeScript
Stelle
23
Fork
2
Merge medio
1m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di developmentseed/eo-predictor

Tutte le issue di developmentseed/eo-predictor

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.