N
N
nur20502018-02-01 12:27:35
JavaScript
nur2050, 2018-02-01 12:27:35

How to get addresses from a specific city SuggestView Yandex API?

Good hour.
I can not figure out how to get addresses entered by the user from a particular city. Those. if you enter now, addresses are shown from all cities, but I only need the addresses of a specific city. Thanks for the help!
<input type="text" id="suggest"/>

<script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU&amp;load=SuggestView&amp;onload=onLoad"></script>
<script>
function onLoad (ymaps) {
    var suggestView = new ymaps.SuggestView('suggest');
}
</script>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question