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