Normalizing address information

Topics: Help
May 22, 2012 at 12:58 PM

Is there a simple way to get normalised address details in response to an address lookup like

I'm looking at the code for the first time (awesome library), and I haven't yet tested how to geocode some user-entered keywords into a normalised address such as described in the Placemark class.

Can someone let me know if I'm on the the right track with this pseudo code, or alternatively recommend a better method:

String keywords = "my address, my country";
PointLatLng? location;
GeoCoderStatusCode result;
location = GetPoint(keywords, out result); 
if (result == GeoCoderStatusCode.G_GEO_SUCCESS && location!=null) {
  Placemark placemark = GetPlacemark(location, out result);
  // Placemark now holds address: Locality, PostCode, Street etc.

What I'm not sure about is whether the instance of the Placemark class returned by the MapProvider will populate the various public fields with data returned from the geocoding service?