Login   Register  
Icontem

File: demos/003.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  Wunderground Weather API  >  demos/003.html  >  Download  
File: demos/003.html
Role: Example script
Content type: text/plain
Description: options with layer service
Class: Wunderground Weather API
Retrieve weather information with Wunderground API
Author: By
Last change:
Date: 2013-01-04 14:05
Size: 688 bytes
 

Contents

Class file image Download
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Layer Radar Example</title>
<script type="text/javascript" src="../wunderground.js"></script>
<script type="text/javascript">

var w = new wunderground({
	service: "layerradar",
	options: {
		minlat: 50, maxlat:54 // for more options see api documentation
	},
	type: "CityCountry",
	params:["Erftstadt", "Germany"],
	culture: "DE",
	apikey: "d40483b95827fed5"
});
w.getData(function(response){ 
	console.log(response)
});

</script>
</head>
<body>

</body>
</html>