Skip to content Skip to sidebar Skip to footer

Google Maps Pincode Latitude-longitude

How do I get postal code value for a location if I have Latitude and Longitude values of that location

Solution 1:

I think you can use getPostalCode() for this.

Geocoder geo = new Geocoder(getApplicationContext(),
            Locale.getDefault());
    List<Address> add;
    try {

        add = geo.getFromLocation(taplat, taplon, 1);
        addstr = add.get(0).getPostalCode(); //u'll get postal code in addstr

    }   

Post a Comment for "Google Maps Pincode Latitude-longitude"