joeyps joeyps - 1 year ago 134
Android Question

Google Maps Android API v2: How to make the default POI clickable and get the place detail

When using Google Maps Android or iOS API, the map will show some place icons.

I want to know:

  1. How to make the places clickable?

  2. How to get the place detail? It
    there a google place id?

  3. How to disable POI layer?

When using Google Maps Javascript API, there are also POI on the map. By default, you can click on them, and will show info window of the place. You can also disable the POI layer easily. However, I didn't find any relevant APIs to do that.


Answer Source

Google just added this feature in Google Maps Android SDK v9.6.

Now you can register GoogleMap.OnPoiClickListener to GoogleMap to handle onPoiClick(PointOfInterest poi)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download