Skip to main content
This example demonstrates how you can use the baato-java-client library to allow users drop a pin into any location within a given MapView and generate an address corresponding to the location.
A pin dropped on an Android map, resolved to an address

A dropped pin resolved to an address

Before you begin, please make sure you have the Baato Java Library installed in your app.
1

Add the dependency

Specify the required dependency configuration in your app’s build.gradle file.
If you are using MapBox as your map service, the Baato client currently supports only the versions pinned above.
2

Add a MapView to your layout

3

Instantiate the MapView with a Baato style

4

Handle map taps with a MapClickListener

5

Reverse geocode the marker position

Follow java-library to add the required dependency and perform reverse search using baato reverse search library wherever the user taps on the map.

View the full example on GitHub