We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a0d4c commit 0738364Copy full SHA for 0738364
stac_search/agents/items_search.py
@@ -294,9 +294,9 @@ async def get_polygon_from_geodini(location: str):
294
geodini_api = f"{GEODINI_API}/search"
295
async with aiohttp.ClientSession() as session:
296
async with session.get(geodini_api, params={"query": location}) as response:
297
- result = (await response.json()).get("result", None)
+ result = (await response.json()).get("results", [])
298
if result:
299
- return result.get("geometry", None)
+ return result[0].get("geometry", None)
300
return None
301
302
0 commit comments