/** * Constructor. The request is not executed until `geocode()` is called. * * @param string $address optional address to geocode * @param string $format optional response format (JSON default) * @param bool|string $sensor optional whether device has location sensor * @return GoogleMapsGeocoder */ function __construct($address, $format = self::FORMAT_JSON, $sensor = false) { parent::__construct(self::URL_PATH, self::URL_HTTP, self::URL_HTTPS, $format, $sensor); $this->setAddress($address)->setFormat($format)->setSensor($sensor); }
/** * FIXME: This hook is necessary as the DirectionsService is not accepting the encoded ampersands. * Though the encoded ampersand is replaced by the native & * * @see GoogleMapsWebService::override_http_build_query() */ function override_http_build_query($pQuery) { $retVal = parent::override_http_build_query($pQuery); return str_replace("&", "&", $retVal); }