View Single Post

  #3 (permalink)  
Old 01-09-2005
Anonymous Anonymous is offline
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Thanks Wilfried, but that didn't work. When using that, I got no locations at all, since there were no good results, since the country always got parsed wrong. If I supply a correct street, city and postal code for a German location, but the country is Sweden, the address result is of poor quality.

The thing is, if I use a code that looks like this:
Code:
FindResults Results = MP.ActiveMap.FindAddressResults("A street", "A city", "Other city", "Region", "Postal code", "Germany");
(assume that all attributes point to an existing address)

I want the result to be the same as in:
Code:
FindResults Results = MP.ActiveMap.FindAddressResults("A street", "A city", "Other city", "Region", "Postal code", GeoCountry.geoCountryGermany);
Note that the country is the only different thing in the two examples. However, the method doesn't understand that "Germany" as a string object is the same thing as GeoCountry.geoCountryGermany.
Reply With Quote