fetchAddressAndPostalCodeFromLatLng

fun fetchAddressAndPostalCodeFromLatLng(context: Context, location: LatLng, callback: (address: String, postalCode: String) -> Unit)

Performs reverse geocoding to retrieve the address and postal code for the given LatLng coordinates.

Parameters

context

The current Android Context.

location

The LatLng coordinates to reverse-geocode.

callback

Callback returning the retrieved full address and postal code.