0

how to parse a location from google geocode json?

I am able to get the JSON to return from the google API call, but when I attempt to use item function to parse the JSON, I am getting errors. I attempted to use the solution at Parsing formatted_address from Google Geocode JSON - Get help - Ninox Community, but the item function is throwing an error and not allowing me to save the field. 

let JSON := null;
let googlecoder := http("GET", "https://maps.googleapis.com/maps/api/geocode/json?address=1600+" + 'Service Address' + "&key=" + API_KEY);
if googlecoder.error then
    alert(text(googlecoder.error))
else
    JSON := text(googlecoder.result)
end;
let ltest := parseJSON(JSON);
alert(JSON)

Reply

null

Content aside

  • 1 yr agoLast active
  • 77Views
  • 1 Following