PlacesApi class

Inheritance

Constructors

PlacesApi({bool debug = false, String? apiKey})

Properties

apiKey String?
no setterinherited
debug bool
finalinherited
hashCode int
The hash code for this object.
no setterinherited
language String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
inherited
doGet({required String path, required Map<String, dynamic> params}) Future
inherited
getPlaceDetails({required String placeId, String? language, String? region, String? sessionToken}) Future<PlacesDetailsResponse>
Once you have a place_id from a Place Search, you can request more details about a particular establishment or point of interest by initiating a Place Details request. A Place Details request returns more comprehensive information about the indicated place such as its complete address, phone number, user rating and reviews.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
placeAutocomplete({required String input, String? language, List<String>? components, LatLngLiteral? location, double? radius, int? offset, String? region, String? sessionToken, bool? strictBounds, List<String>? types}) Future<PlacesAutocompleteResponse>
The Place Autocomplete service is a web service that returns place predictions in response to an HTTP request. The request specifies a textual search string and optional geographic bounds. The service can be used to provide autocomplete functionality for text-based geographic searches, by returning places such as businesses, addresses and points of interest as a user types.
queryAutocomplete({required String input, String? language, LatLngLiteral? location, double? radius, int? offset}) Future<PlacesAutocompleteResponse>
The Query Autocomplete service allows you to add on-the-fly geographic query predictions to your application. Instead of searching for a specific location, a user can type in a categorical search, such as "pizza near New York" and the service responds with a list of suggested queries matching the string. As the Query Autocomplete service can match on both full words and substrings, applications can send queries as the user types to provide on-the-fly predictions.
setApiKey(String key) → void
inherited
setLanguage(String language) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited