I want Institute, Company, Business name along with it's address when I tap 
on icon which is on Google Map.

Example :- On Google Map Application, when be will tap on icon then it will 
show complete detail and address for that icon.

Find three images. There when I tap on "HealthCare Global Enterprise Ltd." 
icon then it gives complete address with Hospital name on top of the screen.

I am using Geocoder to get address for particular latitude-longitude. I am 
getting street, country, pincode etc but not able to get institute, 
company, business name.

Here Hospital Name : HealthCare Global Enterprise Ltd.

Code :-

private String getCompleteAddressString(double LATITUDE, double LONGITUDE) {
    String strAdd = "";
    Geocoder geocoder = new Geocoder(this, Locale.getDefault());
    StringBuilder strReturnedAddress = null;
    try {
        List<Address> addresses = geocoder.getFromLocation(LATITUDE, LONGITUDE, 
1);
        if (addresses != null) {
            System.out.println("Address Size ->>: " + addresses.size());
            System.out.println("Address 0th Position ->>: " + addresses.get(0));
            Address returnedAddress = addresses.get(0);
            strReturnedAddress = new StringBuilder("");

            for (int i = 0; i < returnedAddress.getMaxAddressLineIndex(); i++) {
                
strReturnedAddress.append(returnedAddress.getAddressLine(i)).append("\n");

                System.out.println("*****************************");
                System.out.println("Admin Area: ->> " + 
returnedAddress.getAdminArea());
                System.out.println("Country Code: ->> " + 
returnedAddress.getCountryCode());
                System.out.println("Country Name: ->> " + 
returnedAddress.getCountryName());
                System.out.println("Feature Name: ->> " + 
returnedAddress.getFeatureName());
                System.out.println("Admin Area: ->> " + 
returnedAddress.getLatitude());
                System.out.println("Latitude: ->> " + 
returnedAddress.getLocality());
                System.out.println("Longitude: ->> " + 
returnedAddress.getLongitude());
                System.out.println("Max Address Line Index: ->> " + 
returnedAddress.getMaxAddressLineIndex());
                System.out.println("Phone: ->> " + returnedAddress.getPhone());
                System.out.println("PostalCode: ->> " + 
returnedAddress.getPostalCode());
                System.out.println("Premises: ->> " + 
returnedAddress.getPremises());
                System.out.println("SubAdminArea: ->> " + 
returnedAddress.getSubAdminArea());
                System.out.println("SubLocality: ->> " + 
returnedAddress.getSubLocality());
                System.out.println("SubThoroughfare: ->> " + 
returnedAddress.getSubThoroughfare());
                System.out.println("Thoroughfare: ->> " + 
returnedAddress.getThoroughfare());
                System.out.println("Url: ->> " + returnedAddress.getUrl());
                System.out.println("*****************************");
            }
            strAdd = strReturnedAddress.toString();
            Log.w("My Current loction address", "" + 
strReturnedAddress.toString());
        } else {
            Log.w("My Current loction address", "No Address returned!");
        }
    } catch (Exception e) {
         strReturnedAddress.append("Address Not Avilable");
         strAdd = strReturnedAddress.toString();
    }
    return strAdd;}

<https://lh3.googleusercontent.com/-O-EICT82jdg/VB_9vd0KVgI/AAAAAAAAC3s/GZS2ys9MLoY/s1600/device-2014-09-22-153649.png>

<https://lh6.googleusercontent.com/-fgJQ-i84z3Y/VB_93dgxHcI/AAAAAAAAC30/2kterFA27cE/s1600/device-2014-09-22-153252.png>

<https://lh3.googleusercontent.com/-Q0zGZChOq0A/VB_98eY6EbI/AAAAAAAAC38/D2vXU7lqm3M/s1600/device-2014-09-22-153324.png>



-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to