<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to Use Geonames API(reverse geocode)"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "How to Use Geonames API(reverse geocode)"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to Use Geonames API(reverse geocode)</title>
				<description><![CDATA[ hi there.. Help me use Geonames API,
iam newbie, i run the script with HTML5 Geolocation, i already got latitude and longitude, how to convert that two into city name here is my code
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
	&lt;title&gt;Geolocation&lt;/title&gt;
	&lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"/&gt;
	&lt;meta charset="utf-8"/&gt;
	
	&lt;script type="text/javascript"&gt;
	
	var options = 
	{
		enableHighAccuracy: true,
		maximumAge:1000,
		timeout: 45000
	};
	if &#40;window.navigator.geolocation&#41;
		{
			navigator.geolocation.getCurrentPosition&#40;succesCallback, errorCallback, options&#41;;
		} else 
		{
			alert&#40;'The browser is not supported'&#41;;
		}

	function succesCallback&#40;position&#41;
	{
		var output = '';
		output += "Found YOU.\n\n";
		output += 'Latitude: ' + position.coords.latitude + "\n";
		output += 'Longitude: ' + position.coords.longitude + "\n";
		output += 'Accuracy: ' + position.coords.accuracy + " meters\n";
		alert&#40;output&#41;;

	}

	function errorCallback&#40;error&#41;
	{
		switch &#40;error.code&#41;
		{
		case error.PERMISSION_DENIED:
			alert&#40;'You didn't grant us PERMISSION&#41;;
			break;
		case error.POSITION_UNAVAILABLE:
			alert&#40;'Where the hell are you'&#41;;
			break;
		case error.TIMEOUT:
			alert&#40;'Time is over'&#41;;
			break;
		}
	};

	&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Reverse Geolocation&lt;/h1&gt;


&lt;/body&gt;
&lt;/html&gt;
</pre>
		</div>

where i put geonames api
how to alert the user's city, just like lat and long
simply iam super newbie, i hope someone could help me
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/4055.page#12042</guid>
				<link>http://forum.geonames.org/gforum/posts/list/4055.page#12042</link>
				<pubDate><![CDATA[Fri, 30 Nov 2012 07:00:38]]> GMT</pubDate>
				<author><![CDATA[ nagasir]]></author>
			</item>
	</channel>
</rss>