search method
Searches for places matching the query.
Optional location can be provided to prioritize results near a coordinate.
Set lang to 'en' for English results, otherwise Thai is used.
Implementation
Future<List<PowerMapSearchResult>> search(
String query, {
LatLng? location,
String lang = 'auto',
}) async {
return await searchAPI.search(query, location: location, lang: lang);
}