Search OSM features by name
client.Search.Query(ctx, query) (*FeatureCollection, error)
GET/api/v1/search
Search OSM features by name
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"),
)
featureCollection, err := client.Search.Query(context.TODO(), githubcomplazafyiplazago.SearchQueryParams{
Q: githubcomplazafyiplazago.F("q"),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", featureCollection.Features)
}