Skip to content

Instantly share code, notes, and snippets.

@gubi
Created March 30, 2014 13:23
Show Gist options
  • Select an option

  • Save gubi/9872752 to your computer and use it in GitHub Desktop.

Select an option

Save gubi/9872752 to your computer and use it in GitHub Desktop.
Earth tools
$.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