[android-developers] Re: Reverse Geocoding

2012-06-12 Thread lbendlin
The mapping data near your location may not be granular enough to give you 
a better result.

On Wednesday, June 6, 2012 5:32:43 AM UTC-4, Jimmy Bhavsar wrote:
>
> hi. 
> I am trying to perform reverse gecoding but it is not providing me the 
> exact location. 
> it gives me location to near by area. 
>
> this is how i am performing reverse gecoding.. 
>
>
>  public boolean onTouchEvent(MotionEvent event, MapView mapView) { 
> if(event.getAction()==1) 
> { 
>   latitude = p.getLatitudeE6()/1E6; 
>   longitude = p.getLongitudeE6()/1E6; 
> } 
>
> return false; 
> } 
>
> Geocoder geocoder = new Geocoder(viewMap.this,Locale.getDefault()) ; 
> StringBuffer locationInfo=new StringBuffer(); 
> try { 
> List list = 
> geocoder.getFromLocation(latitude, longitude, 
> 10); 
>
> for(Address address : list) 
> { 
>
> locationInfo.append("\n"+ 
> address.getAddressLine(0)); 
> } 
> } catch (IOException e) { 
> // TODO Auto-generated catch block 
> System.out.println("Error"+e.getMessage()); 
> e.printStackTrace(); 
> }

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Reverse geocoding

2009-11-05 Thread Mike
I was playing around with this very concept a while back.  Turns out
at the time (I haven't checked recently) that you had to do one
location at a time.  It would be nice if you could pass the geocoder
multiple points and get multiple results back.

So, I ended up doing what you did - pick a center location and
calculate several other points within a specified radius and then
passing each one to the geocoder.  It was really slow.

On Nov 4, 1:08 pm, Nymann  wrote:
> Hi
>
> I'm using the geocoder in the android map api, this work relatively
> good, my problem though is that i want to be able to get a number of
> addresses near a geopoint !
>
> Anyone have any experience creating or using such a service, does one
> exist on the net?
>
> I thought about calculating different geopoint near the a center
> geopoint, but what about the cost of calling the reverse geocoder
> multiple times etc.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en