google.maps.ElevationService class
Defines a service class that talks directly to Google servers for requesting elevation data.
Constructor
ElevationService()
Parameters: None
Creates a new instance of a ElevationService that sends elevation queries to Google servers.
Methods
getElevationAlongPath(request, callback)
Parameters:
- request: PathElevationRequest
- callback: function(Array<ElevationResult> optional, ElevationStatus)
Return Value: None
Makes an elevation request along a path, where the elevation data are returned as distance-based samples along that path.
getElevationForLocations(request, callback)
Parameters:
- request: LocationElevationRequest
- callback: function(Array<ElevationResult> optional, ElevationStatus)
Return Value: None
Makes an elevation request for a list of discrete locations.