Lines Matching defs:delta
80 foreach ($this->result->results as $delta => $item) {
81 $points[] = $this->getPoint($delta);
87 foreach ($this->result->results as $delta => $item) {
88 $polygons[] = $this->getPolygon($delta);
165 private function getPoint($delta = 0)
167 $lat = $this->result->results[$delta]->geometry->location->lat;
168 $lon = $this->result->results[$delta]->geometry->location->lng;
172 private function getPolygon($delta = 0)
175 $this->getTopLeft($delta),
176 $this->getTopRight($delta),
177 $this->getBottomRight($delta),
178 $this->getBottomLeft($delta),
179 $this->getTopLeft($delta),
185 private function getTopLeft($delta = 0)
187 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
188 $lon = $this->result->results[$delta]->geometry->bounds->southwest->lng;
192 private function getTopRight($delta = 0)
194 $lat = $this->result->results[$delta]->geometry->bounds->northeast->lat;
195 $lon = $this->result->results[$delta]->geometry->bounds->northeast->lng;
199 private function getBottomLeft($delta = 0)
201 $lat = $this->result->results[$delta]->geometry->bounds->southwest->lat;
202 $lon = $this->result->results[$delta]->geometry->bounds->southwest->lng;
206 private function getBottomRight($delta = 0)
208 $lat = $this->result->results[$delta]->geometry->bounds->southwest->lat;
209 $lon = $this->result->results[$delta]->geometry->bounds->northeast->lng;