Skip to content
GuidesBlogPlaygroundDashboard

Look up elevation at one or more points

ElevationLookupResult elevation().lookup(ElevationLookupParamsparams = ElevationLookupParams.none(), RequestOptionsrequestOptions = RequestOptions.none())
GET/api/v1/elevation

Look up elevation at one or more points

ParametersExpand Collapse
ElevationLookupParams params
Optional<String> format

Response format: json (default), geojson, csv, ndjson

Optional<Double> lat

Latitude (single point)

Optional<Double> lng

Longitude (single point)

Optional<String> locations

Pipe-separated lng,lat pairs (batch)

Optional<String> outputFields

Comma-separated property fields to include

Optional<String> outputInclude

Extra computed fields: bbox, center

Optional<Long> outputPrecision

Coordinate decimal precision (1-15, default 7)

ReturnsExpand Collapse
class ElevationLookupResult:

GeoJSON Point Feature with a 3D coordinate [lng, lat, elevation] per RFC 7946 §3.1.1. The elevation is also available in properties.elevation_m for convenience.

GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.

Coordinates coordinates

Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.

One of the following:
List<double>
List<List<double>>
List<List<List<double>>>
List<List<List<List<double>>>>
Type type

Geometry type

One of the following:
POINT("Point")
LINE_STRING("LineString")
POLYGON("Polygon")
MULTI_POINT("MultiPoint")
MULTI_LINE_STRING("MultiLineString")
MULTI_POLYGON("MultiPolygon")
Properties properties
double elevationM

Elevation in meters above mean sea level (WGS84 EGM96 geoid)

Type type

Look up elevation at one or more points

package com.plazafyi.example;

import com.plazafyi.client.PlazaClient;
import com.plazafyi.client.okhttp.PlazaOkHttpClient;
import com.plazafyi.models.elevation.ElevationLookupParams;
import com.plazafyi.models.elevation.ElevationLookupResult;

public final class Main {
    private Main() {}

    public static void main(String[] args) {
        PlazaClient client = PlazaOkHttpClient.fromEnv();

        ElevationLookupResult elevationLookupResult = client.elevation().lookup();
    }
}
{
  "geometry": {
    "coordinates": [
      2.3522,
      48.8566
    ],
    "type": "Point"
  },
  "properties": {
    "elevation_m": 35.2
  },
  "type": "Feature"
}
Returns Examples
{
  "geometry": {
    "coordinates": [
      2.3522,
      48.8566
    ],
    "type": "Point"
  },
  "properties": {
    "elevation_m": 35.2
  },
  "type": "Feature"
}