mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-21 22:45:06 +00:00
20 lines
343 B
Go
Executable File
20 lines
343 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/place"
|
|
)
|
|
|
|
// Find places nearby using a location
|
|
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)
|
|
}
|