Files
services/examples/evchargers/search/go/searchByBoundingBox.go
2021-10-01 14:17:54 +01:00

17 lines
424 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/evchargers"
"os"
)
// Search by giving a coordinate and a max distance, or bounding box and optional filters
func SearchByBoundingBox() {
evchargersService := evchargers.NewEvchargersService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := evchargersService.Search(&evchargers.SearchRequest{
Box: &evchargers.BoundingBox{},
})
fmt.Println(rsp, err)
}