Constructor
new GoogleMapsGeocoder()
- Since:
- Source:
Members
geocoder
Google Maps service for interacting with the Geocoder API.
- Source:
Methods
Use the Google Maps Geocoder API to convert a Google Maps Place ID into
a geocoded object that includes latitude and longitude information
along with a bound box for viewing the location.
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>
getGeocodedLocationsFromResults(List) → {Array.<GeocodedLocation>}
Helper function that converts a Google Maps Places API result into a
useable GeocodedLocation model.
Parameters:
Name |
Type |
Description |
List |
Array.<Object>
|
of Google Maps Places API results. |
- Source:
Returns:
List of corresponding geocoded locations.
-
Type
-
Array.<GeocodedLocation>