Converting places and addresses with Geocoder

Geocoding is described in the documentation as converting a "street address or other description of a location" into latitude and longitude coordinates. Reverse geocoding is the opposite, converting latitude and longitude into an address. To accomplish this, the Geocoder class makes a network call (automatically) to a web service.

We aren't using geocoding in the Wind and Waves application because it's obviously not as useful in the ocean as it is with landmarks, cities, addresses, and so on. Nevertheless, geocoding is an invaluable tool to have at your disposal when working with coordinates and maps. To demonstrate the concepts surrounding geocoding, listing 11.11 includes a new single Activity application, GeocoderExample.

0 0

Post a comment