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.multisearch
Create an instance of the Multisearch library.
Constructor |
multisearch(defaultSearchOptions) Parameters:
Create an instance of the Multisearch library. |
ApiOptions Interface
Properties | |
Type:
number Either | |
Type:
string Authentication key to be able to call the API. | |
Type:
number Empty result will be sent by the API and no fallback will be triggered if the input length does not reach the minInputLength value.. | |
Type:
Object List of the API params to send. Checkout:
|
AutocompleteResponseItem Interface
Properties | |
Type:
"localities" The api the result was retrieved from | |
Type:
string Contains the human-readable name for the returned result. | |
Type:
string HTML description in which the entered term in the prediction result text are in | |
Type:
string Item identifier | |
Type:
object The item returned by the API “as is”. | |
Type:
array Contains 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:
array Array of types that apply to this item. |
DetailsResponseItem Interface
Properties | |
Type:
array Array 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:
string String containing the human-readable address of this item. | |
Type:
object Item geometry ( | |
Type:
string Item identifier | |
Type:
object Item returned by the API “as is”. | |
Type:
string Item name | |
Type:
array Types of the given item (like |
MultiApiOptions Interface
Properties | |
Type:
number The amount of time in ms the autocomplete function will wait after the last received call before executing the next one. | |
Type:
ApiOptions Options for the Woosmap Localities API. | |
Type:
ApiOptions Options for the Google Places API. | |
Type:
ApiOptions Options for the Woosmap Store API. |
autocompleteLocalities Interface
Function
Query 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
Function
Query 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
Function
Query the autocomplete Woosmap Store API.
Function |
autocompleteStore(input, options?, callback?) Parameters:
Query the autocomplete Woosmap Store API. |
detailsPlaces Interface
Function
Query 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
Function
Query 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
Function
Query 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 |