interface ElevationResponseData {
    error_message: string;
    html_attributions?: string[];
    next_page_token?: string;
    results: {
        elevation: number;
        location: LatLngLiteral;
        resolution: number;
    }[];
    status: Status;
}

Hierarchy (view full)

Properties

error_message: string

When the top-level status code is other than OK, this field contains more detailed information about the reasons behind the given status code.

html_attributions?: string[]

may contain a set of attributions about this listing which must be displayed to the user (some listings may not have attribution).

next_page_token?: string

contains a token that can be used to return up to 20 additional results. A next_page_token will not be returned if there are no additional results to display. The maximum number of results that can be returned is 60. There is a short delay between when a next_page_token is issued, and when it will become valid.

results: {
    elevation: number;
    location: LatLngLiteral;
    resolution: number;
}[]

Type declaration

  • elevation: number

    An elevation element indicating the elevation of the location in meters.

  • location: LatLngLiteral

    A location element (containing lat and lng elements) of the position for which elevation data is being computed. Note that for path requests, the set of location elements will contain the sampled points along the path.

  • resolution: number

    A resolution value, indicating the maximum distance between data points from which the elevation was interpolated, in meters. This property will be missing if the resolution is not known. Note that elevation data becomes more coarse (larger resolution values) when multiple points are passed. To obtain the most accurate elevation value for a point, it should be queried independently.

status: Status

contains metadata on the request. See Status Codes below.