placesOrNull

suspend fun Geocoder.placesOrNull(address: String): List<Place>?

Get a list of Places for a given address or null if unsuccessful.

In most cases, the list will contain a single Place. However, in some cases, it may return multiple Places.

Receiver

The Geocoder to use for geocoding.

Return

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

Parameters

address

The address to geocode.