Suggests (deprecated)
Autocomplete (2.0)
Autocomplete
Method support discontinued. To see the list of suggestions, use /3.0/suggests method.
query Parameters
| q required | string [ 1 .. 500 ] characters An arbitrary search string. |
| key required | string A unique key of API user. |
| region_id required | integer Region |
| types | Array of strings The types of objects among which the search is performed. When passing several types, less relevant results of some types may be crowded out by more relevant other types. Types should be comma separated.
The list of available subtypes ( subtype) for different types of objects can be viewed in the response schema inside items.
|
| type | string Default: "default" The type of tips to use. Available types:
|
| viewpoint1 | string Example: viewpoint1=82.921663,55.030195 The coordinates of the upper left vertex of a rectangular visibility scope, in the |
| viewpoint2 | string Example: viewpoint2=82.921663,55.030195 The coordinates of the lower right vertex of a rectangular visibility scope, in the |
| page_size | integer [ 1 .. 100 ] Default: 10 Number of search results displayed on one page. |
Responses
Response Schema:
required | object (ObjMeta) Response metadata |
required | object Main result |
Response samples
- 200
- 400
- 403
- 404
- 408
- 500
{- "meta": {
- "api_version": "dev",
- "issue_date": "string",
- "code": 200
}, - "result": {
- "total": 1,
- "items": [
- {
- "hint": {
- "id": "string",
- "highlighted_text": [
- {
- "style": "highlighted",
- "text": "string"
}
], - "text": "string",
- "label": "string",
- "hint_type": "string"
}
}
]
}
}