searchNearbyWithRankBy method

Future<PlacesSearchResponse> searchNearbyWithRankBy(
  1. Location location,
  2. String rankby, {
  3. String? type,
  4. String? keyword,
  5. String? language,
  6. PriceLevel? minprice,
  7. PriceLevel? maxprice,
  8. String? name,
  9. String? pagetoken,
})

Implementation

Future<PlacesSearchResponse> searchNearbyWithRankBy(
  Location location,
  String rankby, {
  String? type,
  String? keyword,
  String? language,
  PriceLevel? minprice,
  PriceLevel? maxprice,
  String? name,
  String? pagetoken,
}) async {
  final url = buildNearbySearchUrl(
    location: location,
    language: language,
    type: type,
    rankby: rankby,
    keyword: keyword,
    minprice: minprice,
    maxprice: maxprice,
    name: name,
    pagetoken: pagetoken,
  );
  return _decodeSearchResponse(await doGet(url, headers: apiHeaders));
}