MultiSearch Reference
MultiSearch Javascript API Reference- multisearch class
- ApiOptions Interface
- AutocompleteResponseItem Interface
- DetailsResponseItem Interface
- MultiApiOptions Interface
- autocompleteLocalities Interface
- autocompleteMulti Interface
- autocompleteStore Interface
- detailsPlaces Interface
- detailsMulti Interface
- autocompletePlaces Interface
multisearch class
woosmap.multisearchCreate an instance of the Multisearch library.
| Constructor |
multisearch(defaultSearchOptions)Parameters:
Create an instance of the Multisearch library. |
ApiOptions Interface
| Properties | |
|
Type:
numberEither | |
|
Type:
stringAuthentication key to be able to call the API. | |
|
Type:
numberEmpty result will be sent by the API and no fallback will be triggered if the input length does not reach the minInputLength value.. | |
|
Type:
ObjectList of the API params to send. Checkout:
| |
AutocompleteResponseItem Interface
| Properties | |
|
Type:
"localities"The api the result was retrieved from | |
|
Type:
stringContains the human-readable name for the returned result. | |
|
Type:
stringHTML description in which the entered term in the prediction result text are in | |
|
Type:
stringItem identifier | |
|
Type:
objectThe item returned by the API “as is”. | |
|
Type:
arrayContains an array with offset value and length. These describe the location of the entered term in the prediction result text, so that the term can be highlighted if desired. | |
|
Type:
arrayArray of types that apply to this item. | |
DetailsResponseItem Interface
| Properties | |
|
Type:
arrayArray containing the separate components applicable to this address. Each component has a long name (full text description or name of the address component), a short name (abbreviated textual name for the address component, if available) and types (array indicating the type of the address component like | |
|
Type:
stringString containing the human-readable address of this item. | |
|
Type:
objectItem geometry ( | |
|
Type:
stringItem identifier | |
|
Type:
objectItem returned by the API “as is”. | |
|
Type:
stringItem name | |
|
Type:
arrayTypes of the given item (like | |
MultiApiOptions Interface
| Properties | |
|
Type:
numberThe amount of time in ms the autocomplete function will wait after the last received call before executing the next one. | |
|
Type:
ApiOptionsOptions for the Woosmap Localities API. | |
|
Type:
ApiOptionsOptions for the Google Places API. | |
|
Type:
ApiOptionsOptions for the Woosmap Store API. | |
autocompleteLocalities Interface
FunctionQuery the autocomplete Woosmap Localities API. Check out the API documentation
| Function |
autocompleteLocalities(input, options?, callback?)Parameters:
Query the autocomplete Woosmap Localities API. Check out the API documentation |
autocompleteMulti Interface
FunctionQuery the different autocomplete APIs defined in the apiOrder list.
Depending on the fallbackBreakpoint and the minInputLength defined for each API, if the first API does not send revelant enough results, it will query the next one, until results are relevant or no other API is in the list.
| Function |
autocompleteMulti(input, options?, callback?)Parameters:
Query the different autocomplete APIs defined in the |
autocompleteStore Interface
FunctionQuery the autocomplete Woosmap Store API.
| Function |
autocompleteStore(input, options?, callback?)Parameters:
Query the autocomplete Woosmap Store API. |
detailsPlaces Interface
FunctionQuery the details Google Places API to get details of a place. Check out the API documentation
| Function |
detailsPlaces(id, callback?)Parameters:
Query the details Google Places API to get details of a place. Check out the API documentation |
detailsMulti Interface
FunctionQuery the details api to get details of an item.
| Function |
detailsMulti(id, api, callback?)Parameters:
Query the details api to get details of an item. |
autocompletePlaces Interface
FunctionQuery the autocomplete Google Places API. Check out the API documentation
| Function |
autocompletePlaces(input, options?, callback?)Parameters:
Query the autocomplete Google Places API. Check out the API documentation |