m3o-go
m3o-go copied to clipboard
Failure when using the place service to do a search
Good morning. First of all thank you for providing a library.
I am having trouble making a search using the library. The code i use is taken from the documentation
placeService := place.NewPlaceService(os.Getenv("M3O_API_TOKEN"))
rsp, err := placeService.Search(&place.SearchRequest{
Query: "nando's",
Type: "restaurant",
})
However when i run it, i get the following error
json: cannot unmarshal array into Go struct field Result.results.opening_hours of type string
Am i doing anything wrong?
go version go1.17.7 Fiber v2.29.0