Source: https://developers.woosmap.com/products/geofencing-sdk/react-native-plugin/guides/find-nearest-pois/

> For clean Markdown of any page, append `.md` to the page URL.

> For a complete documentation index, see https://developers.woosmap.com/llms.txt

# Tracking Profiles



## Use Search API to monitor region around POIs

Regions creation is enabled on the nearest result of the Search API request. More details in
the [Monitor POIs documentation](/products/geofencing-sdk/react-native-plugin/guides/monitor-pois/#create-regions-from-woosmap-search-api-assets)

### Radius of POI

When you create a Geofence around a POI, manually define the radius value:

```js
WoosmapGeofencing.setPoiRadius("100")
    .then((value: string) => {
        console.log(value);
    })
    .catch((error: any) => {
        alert('message: ' + error.message);
    });
```

or choose the user_properties subfield that corresponds to radius value of the Geofence:

```js
WoosmapGeofencing.setPoiRadius("radiusPOI")
    .then((value: string) => {
        console.log(value);
    })
    .catch((error: any) => {
        alert('message: ' + error.message);
    });
```

### Get POI (Woosmap Assests) from the local database

Call `getPois` method to get an array of POI from the local db.

```js
WoosmapGeofencing.getPois(storeId) //storeId is optional
    .then((value: Location[]) => {
        console.log(String(value.length));
    })
    .catch((error: any) => {
        console.error(error);
    });
```

### Remove POI (Woosmap Assets)

Call `removePois` method to remove all POIs

```js
WoosmapGeofencing.removePois()
    .then((value: string) => {
        console.log(value);
    })
    .catch((error: any) => {
        console.error(error);
    });
```

### Refresh POI (Woosmap Assets)

Call the `refreshPois` method to get updated information about POIs from the Woosmap server.

```js
WoosmapGeofencing.refreshPois()
    .then((value: string) => {
        console.log(value);
    })
    .catch((error: any) => {
        console.error(error);
    });
```
