Answer the question
In order to leave comments, you need to log in
How to get a list of settlements from a Yandex map - from a defined. Zones?
Created a delivery zone on the Yandex.Maps service.
For example:
Or
How can I get a list of settlements located in each of the zones?
Names are required
Answer the question
In order to leave comments, you need to log in
The first option allows you to separate the libraries from the linking code. In this case, you can move someFunction into a separate package and reuse it from project to project. Well, it just helps keep the code clean.
The second option is good because the function does not flow beyond the boundaries of the closure, but in reality this is a dubious plus.
the first option can be done
(function(){
function someFunction(){
//some code
}
$(document).ready(someFunction);
})();
The second option is only if you want to close the function in scope $(document).ready(function(){
...
});
Maybe try math?
Take a list of settlements whose coordinates are within a large zone (outer figure). And exclude from the list the list of settlements, the coordinates of which are within the small zone (inner figure). Then, by coordinates, pull out information about settlements.
As an option. But it is better to first clarify in the Yandex TP.
It is better to ask in Yandex. I have not seen this in their API. But I didn't specifically look for it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question