You are here

private function GoogleGeocode::getTopRight in geoPHP 7

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

File

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

Class

GoogleGeocode
PHP Google Geocoder Adapter

Code

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