I was thinking that using google geolocation request is the same as using google distance matrix, but I'm wrong.
So, I don't understand how it works. I tried putting this url in the address bar
https://www.googleapis.com/geolocation/v1/geolocate?key=MyAPIKey
I got nothing but Not found
response. I'm expecting a response like:
{
"location": {
"lat": 51.0,
"lng": -0.1
},
"accuracy": 1200.4
}
Then I read there are some request body information in json that also have to be sent in the request but I don't know how to include them into the request. I want to do it with php. Please any help would be appreciated. Thanks.