# Class: Autocomplete

## (abstract) bemap.Autocomplete(context, options)

Base class for Autocomplete.

## Constructor

#### (abstract) new Autocomplete(context, options)

##### Parameters:

Name | Type | Description
--- | --- | ---
`context` | bemap.Context | BeMap-JS-API Context. Mandatory.
`options` | object | see below the available values.

Source:
  - bemap-services/bemap-autocomplete.js, line 14

### Methods

#### query(map, query, listener)

Generate the BeMap request in URL encoded format. Excute the request by calling the BeMap server and wait the answer.

##### Parameters:

Name | Type | Description
--- | --- | ---
`map` | bemap.map | To get coords needed in autocomplete propositions.
`query` | string | String to search.
`listener` | function | The function to call to get click data.

Source:
  - bemap-services/bemap-autocomplete.js, line 33

#### showOnMap(map, coordinates, options)

Parse data to create marker on map

##### Parameters:

Name | Type | Description
--- | --- | ---
`map` | bemap.Map | for creating new marker.
`coordinates` | bemap.Coordinate | Array of bemap.Coordinate.
`options` | object | see below the available values.

Source:
  - bemap-services/bemap-autocomplete.js, line 132