GmhSearchParams class

Constructors

GmhSearchParams.new({LatLng? loc, String? lang, int? radius, int limit = 10, String? countryCode, String? directionsKey, required String apiKey, bool strictBounds = false, bool searchNearby = false})
Parameters for Google Map Helper search functionality.
const

Properties

apiKey String
The Google Places API key
final
countryCode String?
The country code to restrict results (ISO 3166-1 Alpha-2 format).
final
directionsKey String?
Google Directions Key WARNING: Costs may increase as the Direction API is called for each result. This can be same as apiKey if it contains Google Directions API access Provide only if you want distance between loc & address in the result
final
hashCode int
The hash code for this object.
no setterinherited
lang String?
The language code for the results (e.g., 'en' for English).
final
limit int
Max. number of search results
final
loc LatLng?
The latitude and longitude coordinates to search around.
final
radius int?
The radius (in meters) within which to return place results. Must be greater than 0 and less than or equal to 50,000.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchNearby bool
Search nearby postal codes for more results. WARNING: Costs may increase as the Search Nearby API is called for each postal code.
final
strictBounds bool
Whether to enforce strict bounds when latLng and radius are provided.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
query() Map<String, dynamic>
Converts the search parameters into a map
toString() String
A string representation of this object.
override

Operators

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