<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Get location description using geonameId"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Get location description using geonameId"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Get location description using geonameId</title>
				<description><![CDATA[ Hi

Is there a way to get a short description about a location by providing geonameId?  I found that there are APIs like "findNearbyWikipedia", "wikipediaSearch" and "wikipediaBoundingBox" which can be used to get location descriptions, but all of these accept latitude and longitudes.  I am looking for a way to get accurate information pertaining to a specific location (represented by its geonameId).

Can you please let me know whether this is possible?

Thanks in advance.]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/11417.page#20103</guid>
				<link>http://forum.geonames.org/gforum/posts/list/11417.page#20103</link>
				<pubDate><![CDATA[Tue, 7 Oct 2014 20:52:04]]> GMT</pubDate>
				<author><![CDATA[ sujithm]]></author>
			</item>
			<item>
				<title>Re:Get location description using geonameId</title>
				<description><![CDATA[ I don't know if you're familiar with C# and the <a href="https://github.com/RobThree/NGeoNames" target="_new" rel="nofollow">NGeoNames package</a> but if you are:

If you need to do a single lookup:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
using NGeoNames;
using System;
using System.IO;
using System.Linq;

class Program
{
    static void Main&#40;string&#91;&#93; args&#41;
    {
        var datadir = @&quot;d:\test\geo&quot;;

        // Download file &#40;optional; you can point a GeoFileReader to existing files ofcourse&#41;
        GeoFileDownloader.CreateGeoFileDownloader&#40;&#41;.DownloadFile&#40;&quot;NL.zip&quot;, datadir&#41;;

        // Lookup entry
        var entry = GeoFileReader.ReadExtendedGeoNames&#40;Path.Combine&#40;datadir, &quot;NL.txt&quot;&#41;&#41;
            .Where&#40;g =&gt; g.Id == 6544279&#41;
            .FirstOrDefault&#40;&#41;;


        Console.WriteLine&#40;entry.Name&#41;;
    }
}
</pre>
		</div>

If you want to do lots of lookups in O(1):

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
using NGeoNames;
using System;
using System.IO;
using System.Linq;

class Program
{
    static void Main&#40;string&#91;&#93; args&#41;
    {
        var datadir = @&quot;d:\test\geo&quot;;

        // Download file &#40;optional; you can point a GeoFileReader to existing files ofcourse&#41;
        GeoFileDownloader.CreateGeoFileDownloader&#40;&#41;.DownloadFile&#40;&quot;NL.zip&quot;, datadir&#41;;

        // Build dictionary
        var entries = GeoFileReader.ReadExtendedGeoNames&#40;Path.Combine&#40;datadir, &quot;NL.txt&quot;&#41;&#41;
            .ToDictionary&#40;g =&gt; g.Id&#41;;


        Console.WriteLine&#40;entries&#91;6544279&#93;.Name&#41;;
        Console.WriteLine&#40;entries&#91;2759794&#93;.Name&#41;;
        Console.WriteLine&#40;entries&#91;2745912&#93;.Name&#41;;
    }
}
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/11417.page#20531</guid>
				<link>http://forum.geonames.org/gforum/posts/list/11417.page#20531</link>
				<pubDate><![CDATA[Sun, 19 Oct 2014 09:14:28]]> GMT</pubDate>
				<author><![CDATA[ RobIII]]></author>
			</item>
	</channel>
</rss>