Files
m3o-go/examples/evchargers/search/searchByBoundingBox.go
2021-10-29 06:38:17 +00:00

18 lines
408 B
Go
Executable File

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