Maps SDK for Web

tt.services.fuzzySearch

Makes a search request using the TomTom Search API - Fuzzy Search.

Parameters need to be be passed to the constructor. The method go performs the actual call.

The list of all supported category codes are available here.

Constructor

tt.services.fuzzySearch([options])

Example
function callbackFn(result) {
  console.log(result);
};

tt.services.fuzzySearch({
  key: <Your API key>,
  query: 'Amsterdam'
})
.go()
.then(callbackFn);

The SDK provides a Promise polyfill for browsers (IE<9) without native ECMAScript 6 support.

Parameters
Name Description
options
Object
default:None
Options to be passed to the search call, or an array of such options objects to perform a batch request.

Methods

go( ): Promise

Executes a predefined asynchronous task using the current configuration.

Returns