You are here

private function GoogleGeocode::getPoint in geoPHP 7

Same name and namespace in other branches
  1. 8 geoPHP/lib/adapters/GoogleGeocode.class.php \GoogleGeocode::getPoint()
1 call to GoogleGeocode::getPoint()
GoogleGeocode::read in geoPHP/lib/adapters/GoogleGeocode.class.php
Read an address string or array geometry objects

File

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

Class

GoogleGeocode
PHP Google Geocoder Adapter

Code

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