while (p < b.length)
{
alert(p);
var geocoder = new ymaps.geocode('"'+b[p].Adress+'"');
alert(p);
var j = 0;
alert(p);
geocoder.then(
function (res) {
alert(p);
var nearest = res.geoObjects.get(0);
nearest.properties.set('balloonContentBody', 'тест');
myMap.geoObjects.add(res.geoObjects);
},
function (err) {
}
);
p++;
}