Online Maps v3
Loading...
Searching...
No Matches
OnlineMapsGoogleElevation Class Reference

The Elevation API provides elevation data for all locations on the surface of the earth, including depth locations on the ocean floor (which return negative values).
In those cases where Google does not possess exact elevation measurements at the precise location you request, the service will interpolate and return an averaged value using the four nearest locations.
With the Elevation API, you can develop hiking and biking applications, mobile positioning applications, or low resolution surveying applications.
https://developers.google.com/maps/documentation/elevation/. More...

Inheritance diagram for OnlineMapsGoogleElevation:
OnlineMapsTextWebService OnlineMapsWebServiceAPI

Static Public Member Functions

static OnlineMapsGoogleElevation Find (Vector2 location, string key=null, string client=null, string signature=null)
 Get elevation value for single location.
 
static OnlineMapsGoogleElevation Find (Vector2[] locations, string key=null, string client=null, string signature=null)
 Get elevation values for several locations.
 
static OnlineMapsGoogleElevation Find (Vector2[] path, int samples, string key=null, string client=null, string signature=null)
 Get elevation values for path.
 
static OnlineMapsGoogleElevationResult[] GetResults (string response)
 Converts response into an array of results.
 

Additional Inherited Members

- Public Member Functions inherited from OnlineMapsWebServiceAPI
void Destroy ()
 Destroys the current request to webservice.
 
OnlineMapsWWW GetWWW ()
 Get request instance.
 
- Public Attributes inherited from OnlineMapsTextWebService
Action< string > OnComplete
 Event that occurs when a response is received from webservice.
 
new Action< OnlineMapsTextWebServiceOnFailed
 Event that occurs when an error response is received from webservice.
 
new Action< OnlineMapsTextWebServiceOnFinish
 This event is occurs after other events, before disposing the request.
 
new Action< OnlineMapsTextWebServiceOnSuccess
 Event that occurs when a success response is received from webservice.
 
- Public Attributes inherited from OnlineMapsWebServiceAPI
Action< OnlineMapsWebServiceAPIOnFailed
 Event that occurs when an error response is received from webservice.
 
Action< OnlineMapsWebServiceAPIOnFinish
 Event that occurs after OnComplete, when the response from webservice processed.
 
Action< OnlineMapsWebServiceAPIOnDispose
 Event that occurs when the current request instance is disposed.
 
Action< OnlineMapsWebServiceAPIOnSuccess
 Event that occurs when a success response is received from webservice.
 
object customData
 In this variable you can put any data that you need to work with requests.
 
- Protected Member Functions inherited from OnlineMapsTextWebService
void OnRequestComplete (OnlineMapsWWW www)
 Checks whether the response from webservice.
 
- Protected Attributes inherited from OnlineMapsTextWebService
string _response
 Response string.
 
- Properties inherited from OnlineMapsTextWebService
string response [get]
 Gets a response from webservice.
 
- Properties inherited from OnlineMapsWebServiceAPI
OnlineMapsQueryStatus status [get]
 Gets the current status of the request to webservice.
 

Detailed Description

The Elevation API provides elevation data for all locations on the surface of the earth, including depth locations on the ocean floor (which return negative values).
In those cases where Google does not possess exact elevation measurements at the precise location you request, the service will interpolate and return an averaged value using the four nearest locations.
With the Elevation API, you can develop hiking and biking applications, mobile positioning applications, or low resolution surveying applications.
https://developers.google.com/maps/documentation/elevation/.

Member Function Documentation

◆ Find() [1/3]

static OnlineMapsGoogleElevation OnlineMapsGoogleElevation.Find ( Vector2 location,
string key = null,
string client = null,
string signature = null )
static

Get elevation value for single location.

Parameters
locationLocation on the earth from which to return elevation data.
keyYour application's API key.
This key identifies your application for purposes of quota management.
clientClient ID identifies you as a Maps API for Work customer and enables support and purchased quota for your application.
Requests made without a client ID are not eligible for Maps API for Work benefits.
signatureYour welcome letter includes a cryptographic signing key, which you must use to generate unique signatures for your web service requests.
Returns
Query instance to the Google API.

◆ Find() [2/3]

static OnlineMapsGoogleElevation OnlineMapsGoogleElevation.Find ( Vector2[] locations,
string key = null,
string client = null,
string signature = null )
static

Get elevation values for several locations.

Parameters
locationsLocations on the earth from which to return elevation data.
keyYour application's API key.
This key identifies your application for purposes of quota management.
clientClient ID identifies you as a Maps API for Work customer and enables support and purchased quota for your application.
Requests made without a client ID are not eligible for Maps API for Work benefits.
signatureYour welcome letter includes a cryptographic signing key, which you must use to generate unique signatures for your web service requests.
Returns
Query instance to the Google API.

◆ Find() [3/3]

static OnlineMapsGoogleElevation OnlineMapsGoogleElevation.Find ( Vector2[] path,
int samples,
string key = null,
string client = null,
string signature = null )
static

Get elevation values for path.

Parameters
pathPath on the earth for which to return elevation data.
samplesSpecifies the number of sample points along a path for which to return elevation data.
The samples parameter divides the given path into an ordered set of equidistant points along the path.
keyYour application's API key.
This key identifies your application for purposes of quota management.
clientClient ID identifies you as a Maps API for Work customer and enables support and purchased quota for your application.
Requests made without a client ID are not eligible for Maps API for Work benefits.
signatureYour welcome letter includes a cryptographic signing key, which you must use to generate unique signatures for your web service requests.
Returns
Query instance to the Google API.

◆ GetResults()

static OnlineMapsGoogleElevationResult[] OnlineMapsGoogleElevation.GetResults ( string response)
static

Converts response into an array of results.

Parameters
responseResponse of Google API.
Returns
Array of result.