placeOrNull

suspend fun Geocoder.placeOrNull(coordinates: Coordinates): Place?

Geocode a Coordinates to a Place or null if unsuccessful.

Receiver

The Geocoder to use for geocoding.

Return

A Place or null if the geocoding was unsuccessful, either due to a geocoder error or not being able to find the location.

Parameters

coordinates

The address to geocode.


suspend fun Geocoder.placeOrNull(latitude: Double, longitude: Double): Place?

Geocode a pair of coordinates to a Place or null if unsuccessful.

Receiver

The Geocoder to use for geocoding.

Return

A Place or null if the geocoding was unsuccessful, either due to a geocoder error or not being able to find the location.

Parameters

latitude

The latitude of the coordinates.

longitude

The longitude of the coordinates.