Table of Contents

Class ElevationRequest

Namespace
GoogleMapsApi.Entities.Elevation.Request
Assembly
GoogleMapsApi.dll

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. You access the Elevation API through an HTTP interface Users of the Google JavaScript API V3 may also access this API directly by using the ElevationService() object. (See Elevation Service for more information.) The Elevation API is a new service; we encourage you to join the Maps API discussion group to give us feedback.

public class ElevationRequest : SignableRequest
Inheritance
ElevationRequest
Inherited Members

Properties

BaseUrl

Base URL (without scheme) for the Google Maps Web Service endpoint this request targets. Derived requests append their service-specific path.

protected override string BaseUrl { get; }

Property Value

string

Locations

locations (required) defines the location(s) on the earth from which to return elevation data. This parameter takes either a single location as a comma-separated {latitude,longitude} pair (e.g. "40.714728,-73.998672") or multiple latitude/longitude pairs passed as an array or as an encoded polyline. For more information, see Specifying Locations below.

public IEnumerable<Location>? Locations { get; set; }

Property Value

IEnumerable<Location>

Path

public IEnumerable<Location>? Path { get; set; }

Property Value

IEnumerable<Location>

Methods

GetQueryStringParameters()

Builds the list of query-string parameters that will be sent with the request. Derived classes override to contribute their service-specific parameters.

protected override QueryStringParametersList GetQueryStringParameters()

Returns

QueryStringParametersList

The parameters to include in the request URL.