Dear All I am using GEO-CODER for getting Address of place by Lat-Long.
But some times, i get "Unable to parse output from server" . So i have decided to use following web service: http://maps.googleapis.com/maps/api/geocode/json?latlng=22.508507985602836,73.474991977022533&sensor=false SO my question is : 1. Am i on right path? 2. How to parse output of this web-service for getting address of location (Given as follows & which is in form of Json file) ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// { "results" : [ { "address_components" : [ { "long_name" : "Vadodara To Kevdi Eco Campsite", "short_name" : "Vadodara To Kevdi Eco Campsite", "types" : [ "route" ] }, { "long_name" : "Halol", "short_name" : "Halol", "types" : [ "locality", "political" ] }, { "long_name" : "Panchmahal", "short_name" : "Panchmahal", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Gujarat", "short_name" : "Gujarat", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Vadodara To Kevdi Eco Campsite, Halol, Gujarat, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 22.50734720, "lng" : 73.47208049999999 }, "southwest" : { "lat" : 22.50672910, "lng" : 73.47165799999999 } }, "location" : { "lat" : 22.50703820, "lng" : 73.47186930000001 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 22.50838713029150, "lng" : 73.47321823029149 }, "southwest" : { "lat" : 22.50568916970850, "lng" : 73.47052026970849 } } }, "types" : [ "route" ] }, { "address_components" : [ { "long_name" : "Halol", "short_name" : "Halol", "types" : [ "locality", "political" ] }, { "long_name" : "Panchmahal", "short_name" : "Panchmahal", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Gujarat", "short_name" : "Gujarat", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Halol, Gujarat, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 22.55368250, "lng" : 73.48585369999999 }, "southwest" : { "lat" : 22.49457680, "lng" : 73.44731569999999 } }, "location" : { "lat" : 22.5012610, "lng" : 73.47348800000002 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 22.55368250, "lng" : 73.48585369999999 }, "southwest" : { "lat" : 22.49457680, "lng" : 73.44731569999999 } } }, "types" : [ "locality", "political" ] }, { "address_components" : [ { "long_name" : "Panchmahal", "short_name" : "Panchmahal", "types" : [ "administrative_area_level_2", "political" ] }, { "long_name" : "Gujarat", "short_name" : "Gujarat", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Panchmahal, Gujarat, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 23.36486150, "lng" : 73.98468020 }, "southwest" : { "lat" : 22.22999730, "lng" : 73.38661189999999 } }, "location" : { "lat" : 22.82086230, "lng" : 73.74778569999999 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 23.36486150, "lng" : 73.98468020 }, "southwest" : { "lat" : 22.22999730, "lng" : 73.38661189999999 } } }, "types" : [ "administrative_area_level_2", "political" ] }, { "address_components" : [ { "long_name" : "Gujarat", "short_name" : "Gujarat", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "Gujarat, India", "geometry" : { "bounds" : { "northeast" : { "lat" : 24.7331750, "lng" : 74.55265199999999 }, "southwest" : { "lat" : 20.1020120, "lng" : 68.16283419999999 } }, "location" : { "lat" : 22.2586520, "lng" : 71.19238050 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 24.7331750, "lng" : 74.55265199999999 }, "southwest" : { "lat" : 20.1020120, "lng" : 68.16283419999999 } } }, "types" : [ "administrative_area_level_1", "political" ] }, { "address_components" : [ { "long_name" : "India", "short_name" : "IN", "types" : [ "country", "political" ] } ], "formatted_address" : "India", "geometry" : { "bounds" : { "northeast" : { "lat" : 35.50715650, "lng" : 97.3955550 }, "southwest" : { "lat" : 6.7471390, "lng" : 68.1623860 } }, "location" : { "lat" : 20.5936840, "lng" : 78.962880 }, "location_type" : "APPROXIMATE", "viewport" : { "northeast" : { "lat" : 35.50715650, "lng" : 97.3955550 }, "southwest" : { "lat" : 6.7471390, "lng" : 68.1623860 } } }, "types" : [ "country", "political" ] } ], "status" : "OK" } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// I need just Address from it. Please suggest some solution. Thanks & Best Regards. ---------------------------------------------------------------------------------------- Dhaval varia -- 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