Code: Select all
on mouseUp
put the text of fld "city" into tCityName
put the text of fld "country" into tCountry
put the text of fld "vanue" into tVanue
//put "address=(& tVanue,& tCityName,& tCountry)" into tAddress
//put "&key=AIzaSyBmOIfVwbXdFd0_zFjz8kmHi5KqyJvjIKw" into appID
put "[https:]//maps.googleapis.[com]/maps/api/geocode/json?"&tAddress&appID into tURL
put URL tURL into tRawJSON
put textDecode(tRawJSON,"UTF8") into fld "weatherdata"
put arrayFromJson(tRawJSON) into tArray
end mouseUp
Code: Select all
{
"error_message" : "Invalid request. Missing the 'address', 'bounds', 'components', 'latlng' or 'place_id' parameter.",
"results" : [],
"status" : "INVALID_REQUEST"
}