mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 12:04:41 +00:00
18 lines
425 B
Go
Executable File
18 lines
425 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/micro/services/clients/go/evchargers"
|
|
)
|
|
|
|
// 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)
|
|
}
|