<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>GeonamesDotOrgDotNet Wiki &amp; Documentation Rss Feed</title><link>http://www.codeplex.com/GeonamesDotOrgDotNet/Wiki/View.aspx?title=Home</link><description>GeonamesDotOrgDotNet Wiki Rss Description</description><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/GeonamesDotOrgDotNet/Wiki/View.aspx?title=Home&amp;version=10</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;i&gt;GeonamesDotOrgDotNet&lt;/i&gt; is a libaray to access the webservice of &lt;b&gt;GeoNames&lt;/b&gt; (&lt;a href="www.geonames.org" class="externalLink"&gt;www.geonames.org&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;) from a dotnet application. It provides easy to use methods to call the webservice functions and returns dotnet classes. There is no need to parse xml or anything similar.&lt;br /&gt; &lt;br /&gt;Currently only the following webservice calls are supported:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;findNearby&lt;/li&gt;&lt;li&gt;findNearbyPlaceName&lt;/li&gt;&lt;li&gt;findNearByWeather&lt;/li&gt;&lt;li&gt;findNearbyWikipedia&lt;/li&gt;&lt;li&gt;get&lt;/li&gt;&lt;li&gt;hierarchy&lt;/li&gt;&lt;li&gt;children&lt;/li&gt;&lt;li&gt;gtopo30&lt;/li&gt;&lt;li&gt;srtm3&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;For more information see &lt;a href="http://www.geonames.org/export/ws-overview.html" class="externalLink"&gt;http://www.geonames.org/export/ws-overview.html&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;Starting point is the class &lt;span class="codeInline"&gt;GeoNamesOrgWebservice&lt;/span&gt; that provides static methods. Most methods are returning a single object or a list of the following classes:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;span class="codeInline"&gt;Geoname&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="codeInline"&gt;WeatherObservation&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="codeInline"&gt;WikipediaArticle&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;pre&gt;
// finding some place in Berlin, Germany
// (using prefix m for decimal literals)
Geoname Place = GeoNamesOrgWebservice.FindNearbyPlaceName(52.51m, 13.4m);
 
// getting all parents
IEnumerable&amp;lt;Geoname&amp;gt; ParentPlaces = Place.Hierarchy();
 
// display the partents
// (will print out something like: &amp;quot;Globe &amp;gt; Europe &amp;gt; Germany &amp;gt; Land Berlin &amp;gt; Berlin &amp;gt;&amp;quot;)
foreach (Geoname x in ParentPlaces)
    Console.Write(x.Name + &amp;quot; &amp;gt; &amp;quot;);
&lt;/pre&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Classes&lt;/b&gt;&lt;br /&gt;&lt;img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=GeonamesDotOrgDotNet&amp;amp;DownloadId=47472" alt="classes.png" /&gt;&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;br /&gt;A little WinForms applications allows you to call these methods and visualize the data:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=GeonamesDotOrgDotNet&amp;amp;DownloadId=47476" alt="testapp.png" /&gt;&lt;br /&gt; &lt;br /&gt;Fell free to take a look on the sourcecode.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Remarks&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Since a webservice is involved every method call can throw exceptions on network errors (e.g. timeouts). You should catch the &lt;span class="codeInline"&gt;WebException&lt;/span&gt; to handle these situations.&lt;/li&gt;&lt;li&gt;Not all Methods provided by the Geonames.org team are implemented yet. Please feel free to contact me or help me with the programming.&lt;/li&gt;&lt;li&gt;If you need asynchronous access to the webservice you have to handle the threading part yourself. All methods are blocking at the moment. &lt;/li&gt;&lt;li&gt;You need .NET Framework 3.5 to use GeonamesDotOrgDotNet&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>BenjaminSchroeter</author><pubDate>Sun, 02 Nov 2008 14:02:12 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20081102020212P</guid></item><item><title>Updated Wiki: Home</title><link>http://www.codeplex.com/GeonamesDotOrgDotNet/Wiki/View.aspx?title=Home&amp;version=9</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Project Description&lt;/b&gt;&lt;br /&gt;&lt;i&gt;GeonamesDotOrgDotNet&lt;/i&gt; is a libaray to access the webservice of &lt;b&gt;GeoNames&lt;/b&gt; (&lt;a href="www.geonames.org" class="externalLink"&gt;www.geonames.org&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;) from a dotnet application. It provides easy to use methods to call the webservice functions and returns dotnet classes. There is no need to parse xml or anything similar.&lt;br /&gt; &lt;br /&gt;Currently only the following webservice calls are supported:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;findNearby&lt;/li&gt;&lt;li&gt;findNearbyPlaceName&lt;/li&gt;&lt;li&gt;findNearByWeather&lt;/li&gt;&lt;li&gt;findNearbyWikipedia&lt;/li&gt;&lt;li&gt;get&lt;/li&gt;&lt;li&gt;hierarchy&lt;/li&gt;&lt;li&gt;children&lt;/li&gt;&lt;li&gt;gtopo30&lt;/li&gt;&lt;li&gt;srtm3&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;For more information see &lt;a href="http://www.geonames.org/export/ws-overview.html" class="externalLink"&gt;http://www.geonames.org/export/ws-overview.html&lt;span class="externalLinkIcon"&gt;&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;Starting point is the class &lt;span class="codeInline"&gt;GeoNamesOrgWebservice&lt;/span&gt; that provides static methods. Most methods are returning a single object or a list of the following classes:&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;&lt;span class="codeInline"&gt;Geoname&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="codeInline"&gt;WeatherObservation&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class="codeInline"&gt;WikipediaArticle&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;pre&gt;
// finding some palce in Berlin, Germany
// (using prefix m for decimal literals)
Geoname Place = GeoNamesOrgWebservice.FindNearbyPlaceName(52.51m, 13.4m);
 
// getting all parents
IEnumerable&amp;lt;Geoname&amp;gt; ParentPlaces = Place.Hierarchy();
 
// display the partents
// (will print out something like: &amp;quot;Globe &amp;gt; Europe &amp;gt; Germany &amp;gt; Land Berlin &amp;gt; Berlin &amp;gt;&amp;quot;)
foreach (Geoname x in ParentPlaces)
    Console.Write(x.Name + &amp;quot; &amp;gt; &amp;quot;);
&lt;/pre&gt; &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Classes&lt;/b&gt;&lt;br /&gt;&lt;img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=GeonamesDotOrgDotNet&amp;amp;DownloadId=47472" alt="classes.png" /&gt;&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Testing&lt;/b&gt;&lt;br /&gt;A little WinForms applications allows you to call these methods and visualize the data:&lt;br /&gt; &lt;br /&gt;&lt;img src="http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=GeonamesDotOrgDotNet&amp;amp;DownloadId=47476" alt="testapp.png" /&gt;&lt;br /&gt; &lt;br /&gt;Fell free to take a look on the sourcecode.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Remarks&lt;/b&gt;&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;Since a webservice is involved every method call can throw exceptions on network errors (e.g. timeouts). You should catch the &lt;span class="codeInline"&gt;WebException&lt;/span&gt; to handle these situations.&lt;/li&gt;&lt;li&gt;Not all Methods provided by the Geonames.org team are implemented yet. Please feel free to contact me or help me with the programming.&lt;/li&gt;&lt;li&gt;If you need asynchronous access to the webservice you have to handle the threading part yourself. All methods are blocking at the moment. &lt;/li&gt;&lt;li&gt;You need .NET Framework 3.5 to use GeonamesDotOrgDotNet&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;</description><author>BenjaminSchroeter</author><pubDate>Sun, 26 Oct 2008 21:47:44 GMT</pubDate><guid isPermaLink="false">Updated Wiki: Home 20081026094744P</guid></item></channel></rss>