Look up elevation at one or more points
client.Elevation.Lookup(ctx, query) (*ElevationLookupResult, error)
GET/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.Lookup(context.TODO(), githubcomplazafyiplazago.ElevationLookupParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", elevationLookupResult.Geometry)
}