You are here

private function GoogleGeocode::getTopLeft in geoPHP 8

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

File

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

Class

GoogleGeocode
PHP Google Geocoder Adapter

Code

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