api - why does golang give different nominatim results -
i calling api url golang:
when click url single valid response open street maps.
when call golang, 10 results back, invalid.
my code looks like:
var myresponse []openstreetmapresponse request, err := http.newrequest("get", serviceurl, nil) request.header.set("content-type", "application/json") client := &http.client{} response, err := client.do(request) defer response.body.close() body, _ := ioutil.readall(response.body) json.unmarshal(body, &myresponse)
what doing wrong? makes absolutely no sense. can write api call in 4 different programming languages , correct response, golang giving different results. can provide appreciated.
Comments
Post a Comment