searchPlaces

fun searchPlaces(radius: Int, chains: Array<String>?, categories: Array<String>?, groups: Array<String>?, limit: Int?, callback: Radar.RadarSearchPlacesCallback)

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

See also

Parameters

radius

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

chains

An array of chain slugs to filter. See

categories

An array of categories to filter. See

groups

An array of groups to filter. See

limit

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

callback

A callback.

fun searchPlaces(radius: Int, chains: Array<String>?, categories: Array<String>?, groups: Array<String>?, limit: Int?, block: (status: Radar.RadarStatus, location: Location?, places: Array<RadarPlace>?) -> Unit)

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

See also

Parameters

radius

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

chains

An array of chain slugs to filter. See

categories

An array of categories to filter. See

groups

An array of groups to filter. See

limit

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

block

A block callback.

fun searchPlaces(near: Location, radius: Int, chains: Array<String>?, categories: Array<String>?, groups: Array<String>?, limit: Int?, callback: Radar.RadarSearchPlacesCallback)

Search for places 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.

chains

An array of chain slugs to filter. See

categories

An array of categories to filter. See

groups

An array of groups to filter. See

limit

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

callback

A callback.

fun searchPlaces(near: Location, radius: Int, chains: Array<String>?, categories: Array<String>?, groups: Array<String>?, limit: Int?, block: (status: Radar.RadarStatus, location: Location?, places: Array<RadarPlace>?) -> Unit)

Search for places 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.

chains

An array of chain slugs to filter. See

categories

An array of categories to filter. See

groups

An array of groups to filter. See

limit

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

block

A block callback.