Lines Matching full:location
1 page.title=Displaying a Location Address
10 <li><a href="#connect">Get a Geographic Location</a></li>
24 <a href="retrieve-current.html">Getting the Last Known Location</a>
27 <a href="receive-location-updates.html">Receiving Location Updates</a>
34 <a href="https://github.com/googlesamples/android-play-location/tree/master/LocationAddress" class="external-link">LocationAddress</a>
41 Location</a> and <a href="receive-location-updates.html">Receiving Location
42 Updates</a> describe how to get the user's location in the form of a
43 {@link android.location.Location} object that contains latitude and longitude
46 location is more useful. For example, if you want to let your users know where
48 geographic coordinates (latitude/longitude) of the location.</p>
50 <p>Using the {@link android.location.Geocoder} class in the Android framework
51 location APIs, you can convert an address to the corresponding geographic
53 convert a geographic location to an address. The address lookup feature is
57 {@link android.location.Geocoder#getFromLocation getFromLocation()} method to
58 convert a geographic location to an address. The method returns an estimated
61 <h2 id="connect">Get a Geographic Location</h2>
63 <p>The last known location of the device is a useful starting point for the
65 <a href="retrieve-current.html">Getting the Last Known Location</a> shows you
67 <a href="{@docRoot}reference/com/google/android/gms/location/FusedLocationProviderApi.html#getLastLocation(com.google.android.gms.common.api.GoogleApiClient)">{@code getLastLocation()}</a>
69 <a href="{@docRoot}reference/com/google/android/gms/location/FusedLocationProviderApi.html">fused
70 location provider</a> to find the latest location of the device.</p>
72 <p>To access the fused location provider, you need to create an instance of the
74 <a href="{@docRoot}training/location/retrieve-current.html#play-services">Connect
77 <p>In order for the fused location provider to retrieve a precise street
78 address, set the location permission in your app manifest to
83 package="com.google.android.gms.location.sample.locationupdates" >
91 <p>The {@link android.location.Geocoder#getFromLocation getFromLocation()}
92 method provided by the {@link android.location.Geocoder} class accepts a
111 needed by the service, including a {@link android.location.Location} object
114 android.location.Geocoder} to fetch the address for the location, and sends
123 package="com.google.android.gms.location.sample.locationaddress" >
141 <p>The process of converting a geographic location to an address is called
146 {@link android.location.Geocoder} object to handle the reverse geocoding.</p>
152 to the {@link android.location.Geocoder} object, to ensure that the resulting
177 "com.google.android.gms.location.sample.locationaddress";
186 <p>To get a street address corresponding to a geographical location, call
187 {@link android.location.Geocoder#getFromLocation getFromLocation()},
188 passing it the latitude and longitude from the location object, and the
191 found to match the given location, it returns an empty list. If there is no
199 <li><strong>No location data provided</strong> - The intent extras do not
200 include the {@link android.location.Location} object required for reverse
203 and/or longitude values provided in the {@link android.location.Location}
212 {@link android.location.Address#getAddressLine getAddressLine()}
213 method provided by the {@link android.location.Address} class. Then join the
230 // Get the location passed to this service through an extra.
231 Location location = intent.getParcelableExtra(
240 location.getLatitude(),
241 location.getLongitude(),
252 "Latitude = " + location.getLatitude() +
254 location.getLongitude(), illegalArgumentException);
322 given geographic location. When you start the service, the Android framework
342 <li>A {@link android.location.Location} object containing the latitude and
352 protected Location mLastLocation;
402 // Gets the best and most recent location currently available,
403 // which may be null in rare cases when a location is not available.