queryAutocomplete method

Future<PlacesAutocompleteResponse> queryAutocomplete(
  1. String input, {
  2. num? offset,
  3. Location? location,
  4. num? radius,
  5. String? language,
})

Implementation

Future<PlacesAutocompleteResponse> queryAutocomplete(
  String input, {
  num? offset,
  Location? location,
  num? radius,
  String? language,
}) async {
  final url = buildQueryAutocompleteUrl(
    input: input,
    location: location,
    offset: offset,
    radius: radius,
    language: language,
  );
  return _decodeAutocompleteResponse(await doGet(url, headers: apiHeaders));
}