## Elevation profile along coordinates `client.elevation.profile(ElevationProfileParamsbody, RequestOptionsoptions?): ElevationProfileResult` **post** `/api/v1/elevation/profile` Elevation profile along coordinates ### Parameters - `body: ElevationProfileParams` - `geometry: GeoJsonGeometry` Path to profile (GeoJSON LineString geometry, minimum 2 points) - `coordinates: Array | Array> | Array>> | Array>>>` GeoJSON coordinates array (nesting depth varies by geometry type) - `Array` - `Array>` - `Array>>` - `Array>>>` - `type: "Point" | "LineString" | "Polygon" | 3 more` - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` ### Returns - `ElevationProfileResult` GeoJSON LineString Feature with 3D coordinates representing an elevation profile - `geometry: GeoJsonGeometry` - `coordinates: Array | Array> | Array>> | Array>>>` GeoJSON coordinates array (nesting depth varies by geometry type) - `Array` - `Array>` - `Array>>` - `Array>>>` - `type: "Point" | "LineString" | "Polygon" | 3 more` - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` - `properties: Properties` - `avg_elevation_m?: number` Average elevation along profile - `max_elevation_m?: number` Maximum elevation along profile - `min_elevation_m?: number` Minimum elevation along profile - `total_ascent_m?: number` Total elevation gain in meters - `total_descent_m?: number` Total elevation loss in meters - `type: "Feature"` - `"Feature"` ### Example ```typescript import Plaza from '@plazafyi/sdk'; const client = new Plaza({ apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted }); const elevationProfileResult = await client.elevation.profile({ geometry: { coordinates: [0], type: 'Point' }, }); console.log(elevationProfileResult.geometry); ```