V
V
vector20142020-09-18 16:45:51
Yandex
vector2014, 2020-09-18 16:45:51

How to get addresses from Ymaps by geo-points found by search?

In general, there is such a simple script - just a query is driven into the search and Yandex maps give marks on the map

$(function() {
            ymaps.ready(init);
            function init(){
                var myMap = new ymaps.Map("map", {
                    center: [55.754253, 37.715318],
                    zoom: 10
                });

                var searchControl = new ymaps.control.SearchControl({
                    options: {
                        provider: 'yandex#search'
                    }
                });
                
                myMap.controls.add(searchControl);
                searchControl.search('Банк Открытие в Москве');
   
            }
        });


- How can I extract the addresses that he found in the html code?

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