android.location package provides facilities for location-based services. In this section, we are going to discuss two important pieces of this package: the
Geocoder class and the
LocationManager service. We'll start with
If you are going to do anything practical with maps, you'll likely have to convert an address (or location) to a latitude/longitude pair. This concept is known as geocoding, and the
android.location.Geocoder class provides this facility. In fact, the
Geocoder class provides both forward and backward conversion—it can take an address and return a latitude/longitude pair, and it can translate a latitude/longitude pair into a list of addresses. The class provides ...