From 15e03f62b53375b34e9c40ea09f86fc3af42f8eb Mon Sep 17 00:00:00 2001 From: Likitha Bommasani Date: Wed, 12 Aug 2026 20:07:47 -0700 Subject: [PATCH] fix: correct water_wells collection name in README examples and Added first_visit_date as the shared time_field so datetime filtering works across all of them. --- README.md | 4 ++-- core/pygeoapi.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a1248d1c..656d47556 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ curl http://localhost:8000/ogcapi/collections/locations ```bash curl "http://localhost:8000/ogcapi/collections/locations/items?limit=10&offset=0" -curl "http://localhost:8000/ogcapi/collections/wells/items?limit=5" +curl "http://localhost:8000/ogcapi/collections/water_wells/items?limit=5" curl "http://localhost:8000/ogcapi/collections/springs/items?limit=5" curl "http://localhost:8000/ogcapi/collections/locations/items/123" ``` @@ -56,7 +56,7 @@ curl "http://localhost:8000/ogcapi/collections/locations/items/123" ```bash curl "http://localhost:8000/ogcapi/collections/locations/items?bbox=-107.9,33.8,-107.8,33.9" -curl "http://localhost:8000/ogcapi/collections/wells/items?datetime=2020-01-01/2024-01-01" +curl "http://localhost:8000/ogcapi/collections/water_wells/items?datetime=2020-01-01/2024-01-01" ``` ### Polygon filter (CQL2 text) diff --git a/core/pygeoapi.py b/core/pygeoapi.py index 7a3a35126..377d77c0f 100644 --- a/core/pygeoapi.py +++ b/core/pygeoapi.py @@ -267,6 +267,7 @@ def _thing_collections_block( "id_field": "id", "table": f"{table_prefix}{collection['id']}", "geom_field": "point", + "time_field": "first_visit_date", } ], }