I have a map view with several contacts printed on different addresses. Everything works very well. The problem occurs when you have multiple elements pointing to the same address. For instance,
Unit 1/45 ABC Street, XYZ
Unit 7/45 ABC Street, XYZ.
I use the following line of code to extract lat and long to create a GeoPoint.
List<Address> listfromGoogle = gc.getFromLocationName(a, 1);
where a is the address, and gc is the GeoCoder object.
According to the API, the two addresses mentioned above return the same coordinates.
Thus, when constructing the pins on the map, they rewrite each other, ending with one output for several addresses.
I tried to implement a list displaying all duplicate addresses in a balloon. The attempt was in vain, and I realized that
OverlayItem(GeoPoint point, java.lang.String title, java.lang.String snippet)
Allows me to only specify two lines to be shown on the balloon.
Any hint on how I could compress in a list that displays multiple addresses?
source share