searchV2 method

Future<List<PowerMapSearchResult>> searchV2(
  1. String query, {
  2. LatLng? location,
  3. int skip = 0,
  4. int take = 20,
  5. String lang = 'auto',
})

Searches for places matching the query using NLP and fuzzy geocoding (Search V2).

Optional location can be provided to prioritize/bias results near a coordinate. skip and take control pagination.

Implementation

Future<List<PowerMapSearchResult>> searchV2(
  String query, {
  LatLng? location,
  int skip = 0,
  int take = 20,
  String lang = 'auto',
}) async {
  return await searchAPI.searchV2(
    query,
    location: location,
    skip: skip,
    take: take,
    lang: lang,
  );
}