search method

Future<List<PowerMapSearchResult>> search(
  1. String query, {
  2. LatLng? location,
  3. String lang = 'auto',
})

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);
}