Answer the question
In order to leave comments, you need to log in
Yandex map Api how to get coordinates from an address and extract them from an object?
There is a working code:
var myGeocoder = ymaps.geocode("Петрозаводск");
res = myGeocoder.then(
function (result) {
var coordinates = result.geoObjects.get(0).geometry.getCoordinates();
console.log(coordinates);
},
function (err) {
alert('Ошибка');
}
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question