---
name: "isGeofenceReachLimit"
mode: "kit"
deprecated: true
versionRequirements:
  - { name: "MapKit", version: "3.0.1" }
platform:
  - "iOS"
  - "Android"
async: true
title: "ty.map.isGeofenceReachLimit"
---

## isGeofenceReachLimit

> [DEPRECATED] **Deprecated**: isReachLimit

> [VERSION] MapKit >= 3.0.1

> [PLATFORM] iOS, Android

> ⚡ **Supports Promise** — Returns a Promise when success / fail / complete callbacks are omitted.

### Description

Whether the geofence limit is reached. Permission: [scope.location]

### Parameters

| Property | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `complete` | `() => void` | No | - | Callback invoked when the API call completes (runs on both success and failure) |
| `success` | `(params: Object) => void` ↓see below | No | - | Callback invoked on successful API call |
| `fail` | `(params: Object) => void` ↓see below | No | - | Callback invoked on failed API call |

#### success callback parameters

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `reachLimit` | `boolean` | `3.0.5` | Whether the geofence limit is reached |

#### fail callback parameters

| Property | Type | Description |
| --- | --- | --- |
| `errorMsg` | `string` | Error message |
| `errorCode` | `string \| number` | Error code |
| `innerError` | `Object` | Error extensions |

##### fail(params).innerError properties

| Property | Type | Description |
| --- | --- | --- |
| `errorCode` | `string \| number` | Extended error code |
| `errorMsg` | `string` | Extended error message |


### Examples

```tsx
ty.map.isGeofenceReachLimit({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
