GuidedAddressSearchService

class GuidedAddressSearchService(var onStarted: OnStarted? = null, var onCompleted: OnGuidedAddressSearchComplete? = null) : GemNativeObj

Class representing a guided address search service session.

Constructors

Link copied to clipboard
constructor(onStarted: OnStarted? = null, onCompleted: OnGuidedAddressSearchComplete? = null)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

On completed trigger.

Link copied to clipboard

On started trigger.

Link copied to clipboard

Guided Address Search preferences (for this session).

Link copied to clipboard

Data transfer statistics for this service.

Functions

Link copied to clipboard

Cancel currently active search command.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard

Get the address detail level for a landmark.

Link copied to clipboard
external fun getCountryLevelItem(countryIsoCode: String): Landmark?

Get the country level item for specific country iso code that can be used by guided address search.

Link copied to clipboard
external fun getNextAddressDetailLevel(landmark: Landmark): ArrayList<Int>?

Get the list of next possible address detail levels that can be searched for a landmark. It is country dependent.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
fun search(parent: Landmark, filter: String, detailToSearch: EAddressDetailLevel, onCompleted: OnGuidedAddressSearchComplete? = null): Int

Search for more details starting at the selected parent landmark. Starting at the selected parent landmark the engine will search the required detail level using the provided filter.