@magiclane/maps-sdk
    Preparing search index...

    Class SearchPreferences

    Search preferences

    Hierarchy

    • GemAutoreleaseObject
      • SearchPreferences
    Index

    Constructors

    • Internal

      Parameters

      • id: any

      Returns SearchPreferences

    Accessors

    • get allowFuzzyResults(): boolean

      Test if fuzzy search results are allowed

      Default is true

      Returns boolean

      True if fuzzy search results are allowed, false otherwise

      An exception if it fails

    • set allowFuzzyResults(value: boolean): void

      Enable or disable the inclusion of fuzzy search results

      Default is true

      Parameters

      • value: boolean

        True if fuzzy search results are allowed, false otherwise

      Returns void

      An exception if it fails

    • get easyAccessOnlyResults(): boolean

      Test if easy access filter is enabled

      Default is false

      Returns boolean

      True if easy access filter is enabled, false otherwise

      An exception if it fails

    • set easyAccessOnlyResults(value: boolean): void

      Enable or disable the easy access filter for results

      Default is false

      Parameters

      • value: boolean

        True if easy access filter is enabled, false otherwise

      Returns void

      An exception if it fails

    • get estimateMissingHouseNumbers(): boolean

      Test if estimating house numbers not present in map data is allowed

      Default is true

      Returns boolean

      True if estimating house numbers not present in map data is allowed, false otherwise

      An exception if it fails

    • set estimateMissingHouseNumbers(value: boolean): void

      Enable or disable the estimation of house number results not found in map data

      Default is true

      Parameters

      • value: boolean

        True if estimating house numbers not present in map data is allowed, false otherwise

      Returns void

      An exception if it fails

    • get exactMatch(): boolean

      Test if exact match is used.

      Default is false.

      Returns boolean

      True if exact match is used, false otherwise

      An exception if it fails

    • set exactMatch(value: boolean): void

      Set/unset the exact match.

      If set to true, only an exact match of free text search token is returned as result

      Default is false.

      Parameters

      • value: boolean

        True if exact match is used, false otherwise

      Returns void

      An exception if it fails

    • get landmarks(): LandmarkStoreCollection

      Get access to the search target landmark stores collection

      Returns LandmarkStoreCollection

      The landmark stores collection

      An exception if it fails

    • get maxMatches(): number

      Get the max number of matches.

      Default is 40

      Returns number

      Max number of matches

      An exception if it fails

    • set maxMatches(value: number): void

      Set the max number of matches.

      Default is 40

      Parameters

      • value: number

        Max number of matches

      Returns void

      An exception if it fails

    • get pointerId(): any

      Returns any

    • get searchAddresses(): boolean

      Check if search through addresses is enabled.

      Default is true.

      Returns boolean

      True if search through addresses is enabled, false otherwise

      An exception if it fails

    • set searchAddresses(value: boolean): void

      Enable or disable search through addresses.

      Default is true

      Parameters

      • value: boolean

        True if search through addresses is enabled, false otherwise

      Returns void

      An exception if it fails

    • get searchMapPOIs(): boolean

      Check if search through addresses is enabled.

      Default is true

      Returns boolean

      True if search through map POIs is enabled, false otherwise

      An exception if it fails

    • set searchMapPOIs(value: boolean): void

      Enable or disable search through map POIs.

      Default is true

      Parameters

      • value: boolean

        True if search through map POIs is enabled, false otherwise

      Returns void

      An exception if it fails

    • get searchOnlyOnboard(): boolean

      Get the flag for onboard search.

      Default is false

      Returns boolean

      True if the search will be done using only onboard data, false otherwise

      An exception if it fails

    • set searchOnlyOnboard(value: boolean): void

      Set the flag for onboard search.

      If this flag is true then the search will be done using only onboard data. Default is false

      Parameters

      • value: boolean

      Returns void

    • get thresholdDistance(): number

      Get the threshold distance for the request.

      Default is the maximum value of int

      Returns number

      The threshold distance for the request

      An exception if it fails

    • set thresholdDistance(value: number): void

      Set the threshold distance for the operation.

      This may be used to control the reverse geocoding and search along route lookup area. When searching along route, the threshold is the result maximum distance from the target route When searching around position, the threshold is the result maximum distance from the reference point Default is the maximum value of int

      Parameters

      • value: number

        The threshold distance for the request

      Returns void

      An exception if it fails

    Methods

    • Returns void

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void

    • Creates a new SearchPreferences instance with default or specified values

      Parameters

      • __namedParameters: {
            allowFuzzyResults?: boolean;
            easyAccessOnlyResults?: boolean;
            estimateMissingHouseNumbers?: boolean;
            exactMatch?: boolean;
            maxMatches?: number;
            searchAddresses?: boolean;
            searchMapPOIs?: boolean;
            searchOnlyOnboard?: boolean;
            thresholdDistance?: number;
        } = {}

      Returns SearchPreferences