B
B
Blyabtroi2015-11-24 11:29:34
Yandex maps
Blyabtroi, 2015-11-24 11:29:34

How to get an error if ymaps.geocode() could not determine the name of the object by coordinates?

ymaps.geocode([%f, %f]).then(
function (res) { 
var firstGeoObject = res.geoObjects.get(0); 
alert(firstGeoObject.properties.get('name'); 
}, 
function (e) {//сюда не приходит 
});

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