Click here to Skip to main content
12,948,385 members (67,209 online)
Click here to Skip to main content
Add your own
alternative version


1 bookmarked
Posted 12 Jan 2012

An Implementation of ICivicAddressResolver for WP7

, 12 Jan 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
An implementation of ICivicAddressResolver for Windows Phone 7

In the WP7 library, there is an interesting utility class: CivicAddressResolver. This class should help us in doing the so called Reverse GeoCoding: given a coordinate in terms of latitude and longitude, we want a readable address near that place. Unfortunately, there is a bad surprise: as we read in the documentation, “this method is not implemented in the current release”. So what if we need something like this, waiting for the fully fledged implementation? Since the class implements the interface ICivicAddressResolver, we can provide our own implementation, for example based on the Google Maps geocoding API. So I created a little project and a demo application. The main class implementing the resolver is GMapCivicAddressResolver.AddressResolver. You can use it in an application awaiting the definitive implementation, with the limitation that this implementation returns something meaningful just in the field CivicAddress.AddressLine1. Another limit is that you can’t call the blocking version of the resolve method, in any case, this should not be a problem since the asynchronous call is the one to prefer. Please check out the project here on Bitbucket. Below is a screenshot of the running app, showing a totally random address in Rome:



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

No Biography provided

You may also be interested in...


Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170524.1 | Last Updated 12 Jan 2012
Article Copyright 2012 by Felice Pollano
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid