mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
19 lines
285 B
Go
Executable File
19 lines
285 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/place"
|
|
)
|
|
|
|
//
|
|
func main() {
|
|
placeService := place.NewPlaceService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := placeService.Search(&place.SearchRequest{
|
|
Location: "51.5074577,-0.1297515",
|
|
Query: "food",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|