Skip to content

Commit a3a0d4c

Browse files
committed
Use the new unified geodini endpoint for geocoding
1 parent 6bdbcd3 commit a3a0d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stac_search/agents/items_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async def construct_cql2_filter(ctx: RunContext[Context]) -> FilterExpr | None:
291291

292292
@async_cached(geocoding_cache)
293293
async def get_polygon_from_geodini(location: str):
294-
geodini_api = f"{GEODINI_API}/search_complex"
294+
geodini_api = f"{GEODINI_API}/search"
295295
async with aiohttp.ClientSession() as session:
296296
async with session.get(geodini_api, params={"query": location}) as response:
297297
result = (await response.json()).get("result", None)

0 commit comments

Comments
 (0)