If you need functionality in the AWSLocation framework used by the Amplify Geo category that isn't available, we provide an escape hatch so you can reference it directly.

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.

<BlockSwitcher>

<Block name="Swift Package Manager">

```swift
import AWSLocationXCF
```
</Block>

<Block name="CocoaPods">

```swift
import AWSLocation
```

</Block>

</BlockSwitcher>

Then retrieve the escape hatch and call methods on `AWSLocation` directly:


```swift
do {
    // Retrieve AWSLocationGeoPlugin
    let plugin = try Amplify.Geo.getPlugin(for: "awsLocationGeoPlugin")
    guard let locationPlugin = plugin as? AWSLocationGeoPlugin else {
        return
    }

    // Retrieve reference to AWSLocation
    let awsLocation = locationPlugin.getEscapeHatch()

    // Make Request
    let request = AWSLocationListMapsRequest()!
    request.maxResults = 5
    awsLocation.listMaps(request) { response, error in
        // handle response ...
    }
} catch {
    print("Error occurred while fetching the escape hatch \(error)")
}
```

### 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)