Returning multiple addresses on search

Jan 26, 2009 at 4:14 PM
Radioman, I found the solution to returning multiple address when using the geocoder.

instead of using the csv output format I tried xml, and ther it was:


public static string MakeGeocoderListUrl(string keywords)
string key = keywords.Replace(' ', '+');
return string.Format("{0}&output=xml", key);

for eaxample if I pass "gare paris" as keywords I get a response containing 5 placemark objects.

For implementation I suggest adding  new methods:

    public static string MakeGeoCoderListUrl(string keywords)
    public static GeoCoderResponse GetResponseFromGeoCoderUrl(...)

the response is all in xml and I've written a few classes to deserialize it into something usefull.  To save you much work is there some way for me send ou the code?


Jan 26, 2009 at 4:32 PM
upload patch system in source section
Jan 26, 2009 at 5:05 PM
Ok done uploading code.

In my gPoint class a copy/paste generated an error


return new GMapNET.PointLatLng(double.Parse(coords[1], CultureInfo.InvariantCulture), double.Parse(coords[1], CultureInfo.InvariantCulture));

should be



return new GMapNET.PointLatLng(double.Parse(coords[1], CultureInfo.InvariantCulture), double.Parse(coords[0], CultureInfo.InvariantCulture));


Jan 26, 2009 at 5:07 PM
Another point, a function to test wether a point is in the Viewed  area would be great to avoid relaoding the maps when unneccesary when changing the currentPosition

Jan 26, 2009 at 5:13 PM
ok, ..and its not reloading