J
J
Jedi2018-10-24 17:00:19
JavaScript
Jedi, 2018-10-24 17:00:19

How to make it so that only Russian cities drop out in the list of tips on the Yandex Maps API?

Good evening.
How to implement so that when prompting Yandex in the search field, only Russian CITIES fall out?
Here is an example code:

var myMap = new ymaps.Map('map', {
            center: [60.906882, 30.067233],
            zoom: 9,
            type: 'yandex#map',
            controls: []
        }),
        search = new ymaps.control.SearchControl({
            options: {
                useMapBounds: true,
                noPlacemark: true,
                noPopup: true,
                placeholderContent: 'Адрес',
                size: 'large'
            }
        }),

Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2018-10-24
@freeExec

searchIn("Russia");There is no magic
parameters.options.boundedBy —
Type: Number[][]
Rectangular area on the map where the searched object is supposed to be. When ranking, objects within the specified area will receive higher priority.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question