You are here

private function GoogleGeocode::getBottomLeft in geoPHP 7

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

File

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

Class

GoogleGeocode
PHP Google Geocoder Adapter

Code

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