You are here

private function GoogleGeocode::getBottomRight in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/adapters/GoogleGeocode.class.php \GoogleGeocode::getBottomRight()
1 call to GoogleGeocode::getBottomRight()
GoogleGeocode::getPolygon in geoPHP/lib/adapters/GoogleGeocode.class.php

File

geoPHP/lib/adapters/GoogleGeocode.class.php, line 151

Class

GoogleGeocode
PHP Google Geocoder Adapter

Code

private function getBottomRight($delta = 0) {
  $lat = $this->result->results[$delta]->geometry->bounds->southwest->lat;
  $lon = $this->result->results[$delta]->geometry->bounds->northeast->lng;
  return new Point($lon, $lat);
}