Constructor
new GeocoderSearch()
- Since:
- Source:
Members
googleMapsAutocompleter
GoogleMapsAutocompleter model for interacting with Google Maps Places
Autocomplete APIs.
- Source:
googleMapsGeocoder
GoogleMapsGeocoder for interacting with Google Maps Geocoder APIs.
- Source:
Methods
autocomplete(newQuery) → {Array.<Prediction>}
Convert a Google Maps Place ID into a list geocoded objects that can be
displayed in the map widget.
Parameters:
Name |
Type |
Description |
newQuery |
string
|
The user's input search query. |
- Source:
Returns:
An array of places that could be the result the
user is looking for. Most often this comes in five or less results.
-
Type
-
Array.<Prediction>
Convert a Google Maps Place ID into a list geocoded objects that can be
displayed in the map widget.
Parameters:
Name |
Type |
Description |
prediction |
Prediction
|
An autocomplete prediction that includes
a unique identifier for geocoding. |
- Source:
Returns:
An array of locations with an associated
bounding box. According to Google Maps API this should most often be a
single value, but could potentially be many.
-
Type
-
Array.<GeocodedLocation>