searchGeofences

fun searchGeofences(radius: Int, tags: Array<String>?, metadata: JSONObject?, limit: Int?, callback: Radar.RadarSearchGeofencesCallback)

Gets the device's current location, then searches for geofences near that location, sorted by distance.

See also

Parameters

radius

The radius to search, in meters. A number between 100 and 10000.

tags

An array of tags to filter. See

metadata

A dictionary of metadata to filter. See

limit

The max number of places to return. A number between 1 and 100.

callback

A callback.

fun searchGeofences(radius: Int, tags: Array<String>?, metadata: JSONObject?, limit: Int?, block: (status: Radar.RadarStatus, location: Location?, geofences: Array<RadarGeofence>?) -> Unit)

Gets the device's current location, then searches for geofences near that location, sorted by distance.

See also

Parameters

radius

The radius to search, in meters. A number between 100 and 10000.

tags

An array of tags to filter. See

metadata

A dictionary of metadata to filter. See

limit

The max number of places to return. A number between 1 and 100.

block

A block callback.

fun searchGeofences(near: Location, radius: Int, tags: Array<String>?, metadata: JSONObject?, limit: Int?, callback: Radar.RadarSearchGeofencesCallback)

Search for geofences near a location, sorted by distance.

See also

Parameters

near

The location to search.

radius

The radius to search, in meters. A number between 100 and 10000.

tags

An array of tags to filter. See

metadata

A dictionary of metadata to filter. See

limit

The max number of places to return. A number between 1 and 100.

callback

A callback.

fun searchGeofences(near: Location, radius: Int, tags: Array<String>?, metadata: JSONObject?, limit: Int?, block: (status: Radar.RadarStatus, location: Location?, geofences: Array<RadarGeofence>?) -> Unit)

Search for geofences near a location, sorted by distance.

See also

Parameters

near

The location to search.

radius

The radius to search, in meters. A number between 100 and 10000.

tags

An array of tags to filter. See

metadata

A dictionary of metadata to filter. See

limit

The max number of places to return. A number between 1 and 100.

block

A block callback.