Google Maps
Obtain an API key
Create the Geocoder
val geocoder = GoogleMapsGeocoder(apiKey = "your-api-key")
// Or this helper function
val geocoder = Geocoder(apiKey = "your-api-key")Customizing Google Maps request
val geocoder = GoogleMapsGeocoder(apiKey = "your-api-key") {
locationTypes(GoogleMapsLocationType.GeometricCenter)
}Last updated
Was this helpful?