<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "No country after querying by lat/long?"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "No country after querying by lat/long?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>No country after querying by lat/long?</title>
				<description><![CDATA[ Hello
Using this line gives me 0 results.
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>SELECT g.`country` FROM geoname g WHERE g.`latitude` LIKE 29.313757 AND g.`longitude` LIKE 48.016216</pre>
		</div>Edit: I might have had the syntax wrong. Tried this but no better:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>SELECT g.`country` FROM geoname g WHERE g.`latitude` = 29.313757 AND g.`longitude` = 48.016216</pre>
		</div>Using the same coordinates as input in Google Maps gives me that this is Kuwait.
I'm using MySQL and GeoNames have worked like a charm for other queries.  The same happens with other coordinates. Am I doing something wrong as I was able to get out country BZ from another pair of coordinates? 
Small description: I've imported GeoNames as per guide in another post on how to do that. I've successfully queried geonames for lat/long using location names (both from MySQL query browser as well as my Java app). Now given these lat/long I also want to look up what country those lat/long belong to since not all of my lat/long data was queried from GN but available from the beginning in my source data. ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2501.page#9290</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2501.page#9290</link>
				<pubDate><![CDATA[Wed, 2 Mar 2011 09:55:13]]> GMT</pubDate>
				<author><![CDATA[ oscar.almgren]]></author>
			</item>
			<item>
				<title>Re:No country after querying by lat/long?</title>
				<description><![CDATA[ Oscar

The query will only return a result if the lat/long is identical, you will have to use some range query.

There are a couple of threads how to do this:
http://forum.geonames.org/gforum/posts/list/522.page
http://forum.geonames.org/gforum/posts/list/1500.page
and many others.

Best

Marc

PS: I have deleted a spam answer and blocked the forum user.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/2501.page#9295</guid>
				<link>http://forum.geonames.org/gforum/posts/list/2501.page#9295</link>
				<pubDate><![CDATA[Thu, 3 Mar 2011 06:13:07]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>