Batch geocode multiple addresses
client.Geocode.Batch(ctx, body) (*GeocodeBatchResponse, error)
POST/api/v1/geocode/batch
Batch geocode multiple addresses
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"),
)
response, err := client.Geocode.Batch(context.TODO(), githubcomplazafyiplazago.GeocodeBatchParams{
Addresses: githubcomplazafyiplazago.F([]string{"string"}),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{}Returns Examples
{}