Package-level declarations

Types

Link copied to clipboard
interface ForwardGeocoder
Link copied to clipboard

Provides geocoding operations:

Link copied to clipboard
sealed interface GeocoderResult<out T>

Represents the result of a geocoding operation.

Link copied to clipboard

A no-op PlatformGeocoder that is used when the platform does not support geocoding.

Link copied to clipboard

Wrapper for platform-specific geocoding services.

Link copied to clipboard
interface ReverseGeocoder

Functions

Link copied to clipboard

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

Link copied to clipboard

Get a Coordinates for a given address or null if unsuccessful.

Link copied to clipboard
fun ForwardGeocoder(platformGeocoder: PlatformGeocoder, dispatcher: CoroutineDispatcher = Dispatchers.Default): ForwardGeocoder

Create a new ForwardGeocoder using the provided PlatformGeocoder.

Link copied to clipboard
fun Geocoder(platformGeocoder: PlatformGeocoder, dispatcher: CoroutineDispatcher = Dispatchers.Default): Geocoder

Create a new Geocoder instance for geocoding operations.

Link copied to clipboard
suspend fun Geocoder.placeOrNull(coordinates: Coordinates): Place?

Geocode a Coordinates to a Place or null if unsuccessful.

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

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

Link copied to clipboard
suspend fun Geocoder.placesOrNull(coordinates: Coordinates): List<Place>?

Geocode a Coordinates to a list of Places or null if unsuccessful.

suspend fun Geocoder.placesOrNull(latitude: Double, longitude: Double): List<Place>?

Geocode a pair of coordinates to a list of Places or null if unsuccessful.

Link copied to clipboard
fun ReverseGeocoder(platformGeocoder: PlatformGeocoder, dispatcher: CoroutineDispatcher = Dispatchers.Default): ReverseGeocoder

Create a new ReverseGeocoder using the provided PlatformGeocoder.