F
FP
<script type="text/javascript">
var abc = "http://maps.googleapis.com/maps/api/geocode/json?
address=1600+Amphitheatre+Pkwy,+Mountain+View,+CA+94043&sensor=false"
var def = json.parseJSON(abc);
document.write(def.geometry.location.lng);
</script>
If I enter the URL in the variable "abc" into the browser it downloads
a file called "json" containing amongst other things the GPS co-
ordinates for the location. I want my web page to just display the
longitude for that location.
What should the code be?
var abc = "http://maps.googleapis.com/maps/api/geocode/json?
address=1600+Amphitheatre+Pkwy,+Mountain+View,+CA+94043&sensor=false"
var def = json.parseJSON(abc);
document.write(def.geometry.location.lng);
</script>
If I enter the URL in the variable "abc" into the browser it downloads
a file called "json" containing amongst other things the GPS co-
ordinates for the location. I want my web page to just display the
longitude for that location.
What should the code be?