Hello jj,
Is your problem solved?
I found that there are apis in android.location to get all.
Geocoder class is basically used to give the location based on
lat ,long nad viceversa.
I am writing a code to get the latitude,longi and then location based
on that lat and long.
It is wrong somewhere.But you can just see Geocoder 's getFromLocation
(), to get the location from lat long.
I am also struggling to do the same.If urs is working ,do rep...


public void onLocationChanged(Location location) {
                Double lat =location.getLatitude();
                Double longitude =location.getLongitude();

                Geocoder ge=new Geocoder( ctx.getApplicationContext());
                try {
                        List<Address> address=ge.getFromLocation(lat, 
longitude, 3);
                        for(int i=0;i<=address.size();i++){


                                ad=new Address(Locale.ENGLISH);
                                ad=address.get(i);
                                 String city=ad.getSubAdminArea();
                                 TextView tv=new TextView(this);
                                 tv.append(city);
                                 setContentView(tv);


                        }
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }//new ArrayList<Address>();


        }

Regards,
Nish


On May 5, 12:35 pm, mf-team <[email protected]> wrote:
> Hi jj,
>
> GeoLocation API is currently available as part of Google Gears but, as
> far as i know, still not included in the Android platform. The only
> solution is to call an external service in order to get the
> information you need. In my opinion an external web service call will
> also be the solution taken by the Android platform in the case this
> functionality will be bundled in one of the future releases. The
> amount of data needed is too big for such a small device.
> Regards,
>         MF
>
> On May 5, 7:51 am, jj <[email protected]> wrote:
>
>
>
> > hello everybody
>
> > Is there any API method{[android.location " pack ] to get location
> > name?
> > did not find related method to to retrieve location name for given
> > GeoPoint(lat,lon);
>
> > I wanted to keep list of location names for particular GeoPoints
> > (lat,Lon)
> > in journey.
>
> > can this be achievable in Android to calculate the name of location
> > from lat , lon. please guide for soluation.
>
> > thank you- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to