Skip to main content

What's Here

Performs a reverse geocoding request to find what is located at a specific coordinate.


Reverse geocode a coordinate​

val targetLatLng = LatLng(28.6139, 77.2090)

SSMap.whatHere(targetLatLng) { result, error ->
if (result != null && result.isNotEmpty()) {
val firstResult = result[0]
Log.d("WhatHere", "${firstResult.road}, ${firstResult.tehsil}, ${firstResult.district}, ${firstResult.state}")
} else {
Log.e("WhatHere", "Error: ${error?.message}")
}
}

What's Here result showing a reverse-geocoded address on the map


See also: Android Map SDK overview.