Files
m3o-go/examples/place/nearby/findPlacesNearby/main.go
2022-02-15 15:10:47 +00:00

20 lines
377 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/place"
)
// Search for places nearby, points of interest and geographic locations
func main() {
placeService := place.NewPlaceService(os.Getenv("M3O_API_TOKEN"))
rsp, err := placeService.Nearby(&place.NearbyRequest{
Keyword: "tesco",
Location: "51.5074577,-0.1297515",
Type: "store",
})
fmt.Println(rsp, err)
}