Get feature by type and ID
client.Elements.Get(ctx, type_, id) (*GeoJsonFeature, error)
GET/api/v1/features/{type}/{id}
Get feature by type and ID
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"),
)
geoJsonFeature, err := client.Elements.Get(
context.TODO(),
"type",
int64(0),
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", geoJsonFeature.ID)
}