P
P
Petr Ponomarev2017-04-06 14:28:46
Yandex
Petr Ponomarev, 2017-04-06 14:28:46

How to get object id by coordinates received from geocoder?

Objects added to the map
function parseJson(url){
$.getJSON(url)
.done(function (geoJson) {
geoJson.features.forEach(function (obj) {
// Set balloon content.
inc_price = obj.properties.price;
itogsum = obj.properties.price;
//obj.properties.balloonContent = itogsum;
// Set the preset for labels with the iconCaption field
if (obj.properties.iconCaption) {
obj.options = {
preset: "islands#greenDotIconWithCaption"
}
}
});
// Add a description of the objects in JSON format to the object manager.
objectManager.add(geoJson);
// Add objects to the map.
map.geoObjects.add(objectManager);
});
}
How to get object id by coordinates like 61.22265466,56.2665665

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