Skip to content
GuidesPlaygroundDashboard

Elevation profile along coordinates

$client->elevation->profile(GeoJsonGeometry geometry): ElevationProfileResult
POST/api/v1/elevation/profile

Elevation profile along coordinates

ParametersExpand Collapse
geometry: GeoJsonGeometry

Path to profile (GeoJSON LineString geometry, minimum 2 points)

ReturnsExpand Collapse
Properties properties
Type type

Elevation profile along coordinates

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'local');

$elevationProfileResult = $client->elevation->profile(
  geometry: ['coordinates' => [0], 'type' => 'Point']
);

var_dump($elevationProfileResult);
Returns Examples