Created
March 30, 2014 13:23
-
-
Save gubi/9872752 to your computer and use it in GitHub Desktop.
Earth tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.get("http://www.earthtools.org/height/" + LATITUDE + "/" + LONGITUDE, function(heightdata) { | |
| var xml = heightdata, | |
| xmlDoc = $.parseXML(xml), | |
| $xml = $(xmlDoc), | |
| $height_mt = $xml.find("meters"), | |
| $height_ft = $xml.find("feet"); | |
| console.log("Metri: " + $height_mt.text(), "Piedi: " + $height_ft.text()); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment