Login   Register  
Icontem

File: demos/001.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  >  GeoNames  >  demos/001.html  >  Download  
File: demos/001.html
Role: Example script
Content type: text/plain
Description: first steps
Class: GeoNames
Get geographic information using the GeoNames API
Author: By
Last change:
Date: 2013-01-05 05:08
Size: 579 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>Insert title here</title>
<script type="text/javascript" src="../geonames.js"></script>
<script type="text/javascript">

var w = new geonames({
	service: "cities",
	options: {
		north: 50, south:20, east:15, west: 0 
	},
	culture: "DE",
	apikey: "demo"
});
w.getData(function(response){ 
	console.log(response)
});

</script>
</head>
<body>

</body>
</html>