Classes
Members
-
module:cercaliagl/service/Autocomplete.FilterTypes{string}
-
Type Definitions
-
AutocompleteOptions{Object}
-
Properties:
Name Type Argument Description callbackSuggestionsFunctionfunction <optional>
Callback function when suggestions changed.
callbackFunctionfunction <optional>
Callback function when selecting autocomplete element.
onInputFunctionfunction | undefined <optional>
Callback function when on input event.
autocompleteIdstring <div id="xxxx">element ID where create add autocomplete functionality.elementElement <optional>
Element
placeholderstring <optional>
Input placeholder. If not specified default is
Address.pAutocomhnrtboolean <optional>
Apply a tolerance in house number ranges. Cercalia suggest search prioritize address that contains the house numbers searched. This parameters lets you apply a tolerance in the house numbers ranges available in the database (+/-50 numbers in general, and +/- 500 in USA), in order to avoid some gaps in this database. Values:
false: don’t apply. Default value
true: applylabelstring <optional>
Label text for placeholder
closeSuggestionsIfInputIsEmptyboolean <optional>
Close suggestions if input is empty. Default
false.maxCandidatesnumber <optional>
Max candidates to show. Default
5.searchInsideCountrystring | null <optional>
Autocomplete search inside a country (3 characters ISO code), for exemple:
ESP. Default value null (all countries).searchInsideRegionstring | null <optional>
Autocomplete search inside a region (Country ISO code + Region code), for exemple:
ESPMADor several regions, for example:ESPCAT,ESPMAD,ESPVAL. Please, contact with Nexus if you need to know region codes.searchInsideProvincestring | null <optional>
Autocomplete search inside a province (Country ISO code + Province code), for exemple:
ESP08(Barcelona),ESP17(Girona) or several provinces, for example:ESP08,ESP17. Please, contact with Nexus if you need to know province codes.searchInsideMunicipalitystring | null <optional>
Autocomplete search inside a municipality (Country ISO code + Province code), for exemple:
ESP410917(Sevilla),ESP502973(Zaragoza) or several municipality, for example:ESP08,ESP17. Please, contact with Nexus if you need to know municipality codes.searchInsideLocalitystring | null <optional>
Autocomplete search inside a locality for exemple:
ESP17240205565747(Barcelona),ESP17240205565484(Badalona) or several localities, for example:ESP17240205565747,ESP17240205565484. Please, contact with Nexus if you need to know locality codes.searchClosestHouseNumberboolean <optional>
Search closest real house number in suggest. Default:
false.searchFilterEntitystring <optional>
Set filter by municipality / region / subregion / country (by entity code). You can mix that entities. Examples:
ESP170792,ESPCAT,ES08
SolrItemESP,ESP08,ESP17,PRT,AND.searchPriorityEntitystring | Array.<string> <optional>
Set priority municipality / region / subregion / country (by entity code). This filter, prioritizes the results that are in the specified regions above the other candidates, but does not eliminate the results from other regions or countries. This filter can be combined with the "csr" filter for maximum results filter beyond the priority. Example:
ESPVAL. In case you need to prioritize candidates in the list of preferred regions, the regions may be separated by parameters according to priority level: first element: maximum priority, second element: second level priority, etc
Examples:
['ESP170792', 'AND', 'ESP,FRA'].
['ESPCAT', 'ESPMAD', 'PRT,AND,FRA'].searchPreferredEntitystring | Array.<string> <optional>
Set preferred municipality / region / subregion / country (by entity code). This filter, prioritizes the results that are in the specified regions above the other candidates, but does not eliminate the results from other regions or countries. This filter can be combined with the "csr" filter for maximum results filter beyond the preferred. Example:
ESPVAL. In case you need to prioritize candidates in the list of preferred regions, the regions may be separated by parameters according to priority level: first element: maximum priority, second element: second level priority, etc
Examples:poiCategoriesstring <optional>
Set POI categories. If not specified Cercalia will return default POI categories. Categories. For example:
['C012', 'D00CAM', 'C027', 'C016']['ESP170792', 'AND', 'ESP,FRA'].
['ESPCAT', 'ESPMAD', 'PRT,AND,FRA'].floatingLabelboolean <optional>
Floating label for input UI element. Default
false.langstring | Array.<string> <optional>
Set preferred lang to return suggestions. Default
null.searchCoordinateReferencemodule:cercaliagl/LonLat~LonLat <optional>
Radius for geographic search. Default
undefined.searchInsideRadiusnumber <optional>
Filter results by proximity to a point. Default
null. -
GeEntitySuggest{Object}
-
Properties:
Name Type Argument Description articlestring | null <optional>
citymodule:cercaliagl/servers~ObjectJSON | null <optional>
coordmodule:cercaliagl/servers~Coord | null <optional>
countrymodule:cercaliagl/servers~ObjectJSON | null <optional>
diststring | null <optional>
frcstring | null <optional>
housenumbermodule:cercaliagl/servers~ObjectJSON | null <optional>
idstring | null <optional>
intersectionmodule:cercaliagl/servers~ObjectJSON | null <optional>
kmmodule:cercaliagl/servers~ObjectJSON | null <optional>
kmhstring | null <optional>
labelstring | null <optional>
geometrymodule:cercaliagl/servers~GeEntityGeometry | null <optional>
municipalitymodule:cercaliagl/servers~ObjectJSON | null <optional>
namemodule:cercaliagl/servers~ObjectJSON <optional>
posstring | null <optional>
postalcodemodule:cercaliagl/servers~ObjectJSON | module:cercaliagl/servers~PostalCode | null <optional>
prefixstring | null <optional>
regionmodule:cercaliagl/servers~ObjectJSON | null <optional>
snamestring | null <optional>
subcategory_idmodule:cercaliagl/servers~ObjectJSON | string | null <optional>
subregionmodule:cercaliagl/servers~ObjectJSON | null <optional>
typestring | null <optional>
zonenamestring | null <optional>
paramArray.<module:cercaliagl/servers~ParamEntity> <optional>
idstring <optional>
category_idstring <optional>
formatted_addressstring <optional>
poi_dataObject <optional>
pc2string <optional>