Look up elevation at one or more points
client.Elevation.LookupPost(ctx, body) (*ElevationLookupResult, error)
POST/api/v1/elevation
Look up elevation at one or more points
package main
import (
"context"
"fmt"
"github.com/plazafyi/plaza-go"
"github.com/plazafyi/plaza-go/option"
)
func main() {
client := githubcomplazafyiplazago.NewClient(
option.WithAPIKey("My API Key"),
)
elevationLookupResult, err := client.Elevation.LookupPost(context.TODO(), githubcomplazafyiplazago.ElevationLookupPostParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", elevationLookupResult.Geometry)
}
{
"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"
}