In the linked jsfiddle I am trying to output a certain result from the JSON. I assume the issue is the line
var address = data[results][0][address_components][1][long_name];
but through trial and error I am still unable to target the desired data.
Many thanks
http://maps.googleapis.com/maps/api/geocode/json?latlng=54.9882,-1.5747&sensor=false. Originhttp://fiddle.jshell.netis not allowed by Access-Control-Allow-Origin." (2)results,address_components, andlong_nameare treated as undefined variables.