I have a line with the address

You need to send a request and get a map in response with a note on this address on it

I know that Yandex can be manually clicked, but I just need the program to search for addresses and draw a map, there are a lot of addresses

Who knows how to solve this problem?

1 answer 1

In Yandex maps, this is called a geocoder. Here is an example from the documentation:

var myGeocoder = ymaps.geocode( // Строка с адресом, который нужно геокодировать "Москва", { /* Опции поиска: - область поиска */ boundedBy: myMap.getBounds(), // - искать только в этой области strictBounds: true, // - требуемое количество результатов results: 1 } ); /* После того, как поиск вернул результат, вызывается callback-функция */myGeocoder.then( function (res) { /* Размещение полученной коллекции геообъектов на карте */ myMap.geoObjects.add(res.geoObjects); } 

);