Answer the question
In order to leave comments, you need to log in
How to get an object knowing that there is a certain highway next to it?
In particular, I need cottage settlements. Since my searches did not return any results, I use php-yandex-geo :
$geo->setQuery('коттеджный поселок 12 месяцев симферопольское шоссе');
$geo->setLimit(1)->load();
$f = $geo->getResponse();
$collection = $f->getList();
foreach ($collection as $item) {
$lat = $item->getLatitude();
$lon = $item->getLongitude();
break;
}
return isset($lat) ? $lat.','.$lon : '';
Answer the question
In order to leave comments, you need to log in
In a classical GIS, this would be like: find a highway, build a buffer around it with the size "nearby" and select "KP" objects from the objects included in it. The trouble with all Yande-Googles is that they can only be used in the way the developer intended. Step to the left, step to the right in logic and they are already useless.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question