

# Manage costs and usage
<a name="geofence-whats-next"></a>

As you continue learning about Amazon Location Geofences, it's important to understand how to manage service capacity, ensure you follow usage limits, and get the best results through quota and API optimizations. By applying best practices for performance and accuracy, you can tailor your application to handle place-related queries efficiently and maximize your API requests.

**Topics**
+ [Geofences pricing](geofence-price.md)
+ [Geofences quotas and usage](geofence-quotas.md)

# Geofences pricing
<a name="geofence-price"></a>

For pricing information for tracking and geofencing APIs, see the [Amazon Location Service pricing page](https://aws.amazon.com/location/pricing/). 

**Position Evaluation**

You can use `BatchEvaluateGeofences` to evaluate device positions against the geofence geometries from a given geofence collection. One request will evaluate up to ten device positions against all geofences in a single geofence collection. Price is based on the number of device positions in your API requests. Unit price per device position evaluated is based on the total monthly usage volume. See the [Amazon Location Service pricing page](https://aws.amazon.com/location/pricing/) for details on unit price and volume tiers.

You can optimize your Position Evaluation cost by configuring the device position update frequency (also known as ping rate) from your tracking devices, and leveraging the filtering feature on Trackers to only evaluate relevant position updates.

**Geofence Management and Storage**

You can use `GetGeofence`, `PutGeofence`, `BatchPutGeofence`, and `BatchDeleteGeofence` to manage your geofences in a geofence collection. The price for these APIs is based on the number of geofences in your API requests. 

The storage for geofences will be charged monthly (only for geofences you store for more than one month). You can also manage your Geofence Collection using the following APIs: `CreateGeofenceCollection`, `DeleteGeofenceCollection`, `DescribeGeofenceCollection`, `ListGeofenceCollections`, `UpdateGeofenceCollection`, and `ListGeofences`. The price for these APIs is based on the number of API requests.

**Geofence Event Forecast**

You can use `ForecastGeofenceEvents` to forecast future geofence events that are likely to occur within a specified time horizon if a device continues moving at its current speed. The price is based on number of API requests. 

# Geofences quotas and usage
<a name="geofence-quotas"></a>

This topic provides a summary of rate limits and quotas for Amazon Location Service Geofences.

**Note**  
If you require a higher quota, you can use the Service Quotas console to [request quota increases](https://console.aws.amazon.com/servicequotas/home#!/services/geo/quotas) for adjustable quotas. When requesting a quota increase, select the Region you require the quota increase in, since most quotas are specific to the AWS Region. You can request up to twice the default limit for each API.  
For requests that exceed twice the default limit, your request will submit a support ticket. You can also connect to your premium support team. There are no direct charges for quota increase requests, but higher usage levels may lead to increased service costs based on the additional resources consumed. See [Manage quotas with Service Quotas](manage-quotas.md) for more information.

Service Quotas are maximum number of resources you can have per AWS account and AWS Region. Amazon Location Service denies additional requests that exceed the service quota. 

## Resources
<a name="geofence-quota-resources"></a>


| API name | Default | Max adjustable limit | 
| --- | --- | --- | 
|  Collection resources per account  |  1500  |  3000 If you need more than this, [request quota increases](https://console.aws.amazon.com/servicequotas/home#!/services/geo/quotas) or contact the support team.  | 
|  Geofences per collection  |  50000  |  Contact the support team.  | 

## CRUD API
<a name="geofence-quota-crud"></a>

**Note**  
If you need a higher limit for any of these APIs, [request quota increases](https://console.aws.amazon.com/servicequotas/home#!/services/geo/quotas) or contact the support team.


| API name | Default | Max adjustable limit | 
| --- | --- | --- | 
|  [CreateGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_CreateGeofenceCollection.html)  |  10  |  20  | 
|  [DeleteGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DeleteGeofenceCollection.html)  |  10  |  20  | 
|  [DescribeGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_DescribeGeofenceCollection.html)  |  10  |  20  | 
|  [ListGeofenceCollections](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofenceCollections.html)  |  10  |  20  | 
|  [UpdateGeofenceCollection](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_UpdateGeofenceCollection.html)  |  10  |  20  | 

## Data API
<a name="geofence-quota-data"></a>

**Note**  
If you need a higher limit for any of these APIs, [request quota increases](https://console.aws.amazon.com/servicequotas/home#!/services/geo/quotas) or contact the support team.


| API name | Default | Max adjustable limit | 
| --- | --- | --- | 
|  [BatchEvaluateGeofences](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchEvaluateGeofences.html)  |  50  |  100  | 
|  [PutGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_PutGeofence.html)  |  50  |  100  | 
|  [BatchPutGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchPutGeofence.html)  |  50  |  100  | 
|  [ListGeofences](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_ListGeofences.html)  |  50  |  100  | 
|  [GetGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_GetGeofence.html)  |  50  |  100  | 
|  [BatchDeleteGeofence](https://docs.aws.amazon.com/location/latest/APIReference/API_WaypointGeofencing_BatchDeleteGeofence.html)  |  50  |  100  | 

## Other usage limits
<a name="geofence-quota-other"></a>

