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<Address> 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

Reply via email to