GeoCoder

Remaps CBHLAddressLocator geocoding functions only

CPPAdapter is an instance of CBHLAddressLocator*

Since

v2.1.0 Creation

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var address: Long
Link copied to clipboard

Assigns a preferential language code for address lookup. Objects for which defined language code is not available, default language will be used.

Link copied to clipboard

Returns current search status.

Link copied to clipboard

Sets the type of search.

Functions

Link copied to clipboard
open override fun dispose()

Internal method

Link copied to clipboard
fun find(pattern: String, maxResult: Long, listener: GeoCoderSearchListener)

Calls find methods depending on current search status.

Link copied to clipboard
fun findCityPostal(pattern: String, maxResult: Long, listener: GeoCoderSearchListener)

Find a city or a postal code if current search status is SearchStatus.CITY or SearchStatus.POSTAL_CODE.

Link copied to clipboard

Returns the current Address object. The address is filled after every call to GeoCoder.select.

Link copied to clipboard

Gets selected street's house number range if search status is SearchStatus.NUMBER.

Link copied to clipboard

This method returns Boolean.true if after a call to one of Find methods there are more items that match than the parameter maxItems.

Link copied to clipboard

Check if postal codes are available for current selected country

Link copied to clipboard
fun reset(): Error?

Resets the Geocoder : clears current address and sets its search status to SearchStatus.COUNTRY

Link copied to clipboard
fun select(index: Int): Boolean

This method selects the ith item found in last call to one of #Find function. Call this method before calling #FindCity or #FinPostal to select a country, before #FindRoad or #FindPOI to select a city or postal district or before #FindNumberPos or #FindPOIPos to select a road or a POI.

Link copied to clipboard
fun selectHouseNumber(houseNumber: String): Boolean

Sets a location at houseNumber street number (if search status is SearchStatus.NUMBER). Use empty string to set a location anywhere on selected street.

Link copied to clipboard

Switches search status. if search status is SearchStatus.CITY, search status becomes SearchStatus.POSTAL_CODE and vice versa. if search status is SearchStatus.ROAD, search status becomes SearchStatus.POI and vice versa. if search status is SearchStatus.NUMBER, search status becomes SearchStatus.CROSSROAD and vice versa.

Link copied to clipboard

Moves search status to upper level