If you need functionality in the AWS services used by the Amplify Geo category that isn't available, we provide an escape hatch so you can get a reference to that service. Note: If you provisioned your Geo resources via Amplify CLI, then the IAM policy will be specifically scoped to only allow actions required by the library. Please [adjust your authorization permissions](/lib-v1/geo/existing-resources) accordingly for your escape hatch use-cases. ```java import android.util.Log; import com.amazonaws.services.geo.AmazonLocationClient; import com.amazonaws.services.geo.model.ListMapsRequest; import com.amazonaws.services.geo.model.ListMapsResult; import com.amplifyframework.core.Amplify; import com.amplifyframework.geo.location.AWSLocationGeoPlugin; ``` ```java // Obtain reference to the plugin AWSLocationGeoPlugin geoPlugin = (AWSLocationGeoPlugin) Amplify.Geo.getPlugin("awsLocationGeoPlugin"); AmazonLocationClient locationClient = geoPlugin.getEscapeHatch(); // Send a new request to the Location Maps endpoint directly using the client ListMapsRequest request = new ListMapsRequest(); ListMapsResult response = locationClient.listMaps(request); Log.i("MyAmplifyApp", response.getEntries().toString()); ``` ```kotlin import android.util.Log import com.amazonaws.services.geo.AmazonLocationClient import com.amazonaws.services.geo.model.ListMapsRequest import com.amplifyframework.core.Amplify ``` ```kotlin // Obtain reference to the Amazon Location Service client val geoPlugin = Amplify.Geo.getPlugin("awsLocationGeoPlugin") val locationClient = geoPlugin.escapeHatch as AmazonLocationClient // Send a new request to the Location Maps endpoint directly using the client val request = ListMapsRequest() val response = locationClient.listMaps(request) Log.i("MyAmplifyApp", response.entries.toString()) ``` ### Documentation Resources * [How to manage Amazon Location Service resources through console](https://docs.aws.amazon.com/location/latest/developerguide/welcome.html) **Maps** * [Using Amazon Location Maps in your application](https://docs.aws.amazon.com/location/latest/developerguide/using-maps.html) * [Amazon Location Maps API Reference](https://docs.aws.amazon.com/location-maps/latest/APIReference/API_Operations.html) **Places** * [Searching place and geolocation data using Amazon Location](https://docs.aws.amazon.com/location/latest/developerguide/searching-for-places.html) * [Amazon Location Places API Reference](https://docs.aws.amazon.com/location-places/latest/APIReference/API_Operations.html) **Device Tracking** * [Managing your tracker resources](https://docs.aws.amazon.com/location/latest/developerguide/managing-trackers.html) * [Amazon Location Trackers API Reference](https://docs.aws.amazon.com/location-trackers/latest/APIReference/API_Operations.html)