Search for a single place by text query.
Convenience function that calls search and returns the first result.
Search query string
Promise resolving to the first matching place, or undefined if no results
const place = await searchOne('Vondelpark Amsterdam');if (place) { console.log(place.properties.name);} Copy
const place = await searchOne('Vondelpark Amsterdam');if (place) { console.log(place.properties.name);}
Search for a single place by text query.
Convenience function that calls search and returns the first result.