SearchRequest class
Constructors
-
SearchRequest({required int limit, required String query, String? street, String? city, String? county, String? state, String? country, String? postalCode, String? language, List<String>? countryCodes, List<String>? excludePlaceIds, ViewBox? viewBox, bool? addressDetails = true, bool? nameDetails = true})
-
Properties
-
addressDetails
↔ bool?
-
Specifies whether to include detailed address information in the response.
getter/setter pair
-
city
→ String?
-
Optional: City name for structured search.
final
-
country
→ String?
-
Optional: Country name for structured search.
final
-
countryCodes
→ List<String>?
-
Optional: Limit search results to specific country codes.
final
-
county
→ String?
-
Optional: County name for structured search.
final
-
excludePlaceIds
→ List<String>?
-
Optional: Skip certain place IDs from appearing in search results.
final
-
Specifies whether to include extra tags like Wikipedia link, opening hours, etc.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
language
→ String?
-
Optional: Preferred language for showing search results.
final
-
limit
→ int
-
The maximum number of search results to be returned.
final
-
nameDetails
↔ bool?
-
Specifies whether to include a list of alternative names in the results.
getter/setter pair
-
postalCode
→ String?
-
Optional: Postal code for structured search.
final
-
query
→ String
-
The search query used to find places.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
state
→ String?
-
Optional: State name for structured search.
final
-
street
→ String?
-
Optional: Street name for structured search.
final
-
viewBox
→ ViewBox?
-
Optional: Specify a view box for searching within a geographical area.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited