Skip to main content

Android Native - Points of Interest

Points of Interest

A PointOfInterest can display an image at any geographic coordinate. A common use case is to show a marker or pin representing a location that users can tap to get more information.

Adding custom POIs to the map is not available yet. Only AR is supported for now.

Add POI(s) in AR

To create a simple Point of Interest in AR, you have to provide at least its name, coordinate, and imageURL.

val poi = PointOfInterest(
"Example POI",
Coordinate(43.610628, 3.876654),
imageURL = "https://api.getwemap.com/images/pps-categories/icon_circle_maaap.png"
)

To add this newly created POI to the AR scene, provide it to the PointOfInterestManager:

geoARView.pointOfInterestManager.addPOI(poi)

To remove this POI later, use:

geoARView.pointOfInterestManager.removePOI(poi)

Make sure to remove only POIs you have added yourself. Many maps include POIs provided by the Wemap backend. Attempting to remove such POIs will result in an error, as this is not permitted.

Examples

For additional examples and sample implementations of WemapSDKs, visit the official GitHub repository.

Clone the repository and follow the README instructions to run the sample application.