Class: GeocodingSuggest

cercalia.widget.GeocodingSuggest

new cercalia.widget.GeocodingSuggest(options)

GeocodingSuggest widget constructor

Name Type Description
options

Opciones del GeocodingSuggest

Name Type Description
div string

Widget DIV container ID.

hnrt boolean | undefined 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: apply

complete function

Call function when search is OK.

filterType boolean

If true it enables radio box to select suggest search by types (streets, city and POIs).

defaultCountry string

Default selected country in select input. Values must be in ISO 3166 alpha-3. If not specified it must be ALL. Examples ESP or FRA.

searchClosestHouseNumber boolean | undefined optional

Search closest real house number in suggest. Default: false.

Methods

to remove the focus

Clean input data

Clean current geocoding search.

Returns the object type.

Get autocomplete service. Then you can modify its properties to do accurate searches.

Returns:
Returns autocomplete service.

Modify input text

Name Type Description
text string

Text to show inside input

Modify the map which the widget is interacting with.

Name Type Description
map cercalia.Map

Map which the widget is interacting with.