Re: [android-developers] Location API
On Tue, Nov 15, 2011 at 2:44 AM, Siva Prakash <siva.yuvan2011@gmail.com> wrote:
> Hi
> What is the best way to get Sub Location
>
What is "sub location?"
> Here is the code Im using
> double latitude = location.getLatitude() ;
> double longitude = location.getLongitude() ;
>
> List<Address> addresses = gc.getFromLocation(latitude, longitude, 1);
> Address address = addresses.get(0);
> address.getSubLocality() ;
>
> But most of the time it doesnt come back to me with SubLocality. If it is
> not able to find the sublocality then is there any way for me to search in
> another 500 - 1000 meters to get near by location and show?
>
Ah, looks like you want to ask this on a Maps API list...
kris
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home