Hi,
I am using MapPoint with C# in a school project. I am trying to do what seems to be a fairly simple task; retreiving addresses from a database and drawing them as pins on a MapPoint control.
I first tried using the FindAddressResults method by supplying Street, City, Postalcode and Country. What happened was that all locations were drawn in Sweden.
Then I tried creating a StreetAddress object with the same values as above. From that object I used the Country property to get a GeoCountry value to use in the FindAddressResults method. The same thing happened; the GeoCountry object was always geoCountryDefault (which is Sweden in my case), so the search results all turned out the same.
So how do I parse the country strings properly? Any answers are much appreciated.