autocomplete

fun autocomplete(query: String, near: Location? = null, limit: Int? = null, callback: Radar.RadarGeocodeCallback)

Autocompletes partial addresses and place names, sorted by relevance.

See also

Parameters

query

The partial address or place name to autocomplete.

near

A location for the search.

limit

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

callback

A callback.

fun autocomplete(query: String, near: Location? = null, limit: Int? = null, block: (status: Radar.RadarStatus, addresses: Array<RadarAddress>?) -> Unit)

Autocompletes partial addresses and place names, sorted by relevance.

See also

Parameters

query

The partial address or place name to autocomplete.

near

A location for the search.

limit

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

block

A block callback.

fun autocomplete(query: String, near: Location? = null, layers: Array<String>? = null, limit: Int? = null, country: String? = null, callback: Radar.RadarGeocodeCallback)

Autocompletes partial addresses and place names, sorted by relevance.

See also

Parameters

query

The partial address or place name to autocomplete.

near

A location for the search.

layers

Optional layer filters.

limit

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

country

An optional country filter. A string, the unique 2-letter country code.

callback

A callback.

fun autocomplete(query: String, near: Location? = null, layers: Array<String>? = null, limit: Int? = null, country: String? = null, block: (status: Radar.RadarStatus, addresses: Array<RadarAddress>?) -> Unit)

Autocompletes partial addresses and place names, sorted by relevance.

See also

Parameters

query

The partial address or place name to autocomplete.

near

A location for the search.

layers

Optional layer filters.

limit

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

country

An optional country filter. A string, the unique 2-letter country code.

block

A block callback.