<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Reverse Geocode FindNearestAddress"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Reverse Geocode FindNearestAddress"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Reverse Geocode FindNearestAddress</title>
				<description><![CDATA[ Hello,
I have a mobile device where I am trying to develop an app that takes a photo, gets the GPS location, and returns an address on where I am or where the picture was taken.  I have added Myren.GeoNames.Client.dll into my Visual Studio project and I have the following:

String Latitude = "40.68913";
String Longitude = "-74.0446";
String Address = getAddress(Latitude, Longitude);

private String getAddress(String Latitude, String Longitude) 
        {
            String address = "";

           address = client.FindNearestAddress(Double.Parse(Latitude),Double.Parse(Longitude)).Address;
 
           return (address);
        }
which gives me a compilation address: Cannot implicitly convert type 'Myren.GeoNames.Client.GeoStreetAddressResponse' to 'string'

when I have :
address = client.FindNearestAddress(Double.Parse(Latitude),Double.Parse(Longitude)).Address.ToString();
which gives me NullReferenceEception error


Can somebody please tell me what type does .Address return or maybe what I am missing in order to get this to work.
Are there any other libraries that I have to add to my project, or do i have to download anything else.  Or any other usefull information on FindNearestAddress would help

Thanks!
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1404.page#5877</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1404.page#5877</link>
				<pubDate><![CDATA[Mon, 18 May 2009 20:58:10]]> GMT</pubDate>
				<author><![CDATA[ mil23]]></author>
			</item>
			<item>
				<title>Re:Reverse Geocode FindNearestAddress</title>
				<description><![CDATA[ use var address]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1404.page#12382</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1404.page#12382</link>
				<pubDate><![CDATA[Mon, 6 May 2013 07:03:27]]> GMT</pubDate>
				<author><![CDATA[ mcupryk]]></author>
			</item>
	</channel>
</rss>