private function GoogleGeocode::getTopRight in geoPHP 8
Same name and namespace in other branches
- 7 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 141  
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);
}