Search for a single place by text query.
Convenience function that calls search and returns the first result. Throws an error if no results are found.
Search query string
Promise resolving to the first matching place
If no results are found for the query
const place = await searchOne('Vondelpark Amsterdam');console.log(place.properties.poi?.name); Copy
const place = await searchOne('Vondelpark Amsterdam');console.log(place.properties.poi?.name);
Search for a single place by text query.
Convenience function that calls search and returns the first result. Throws an error if no results are found.