I’m trying to use Google’s geolocation API, my Ajax call successfully returns what appears to be Json.
Handling Ajax.Done is done as follows:
Dim Resp = req.responseText
console.log("Geoloc: ")
console.log(Resp )
Which will show me in the console:
{
"location": {
"lat": 47.510629099999996,
"lng": 8.5961641
},
"accuracy": 1665
}
Unfortunately, I can’t access the response data fields, console.log(Resp.accuracy) gives me “undefined”, what am I doing wrong?