class GeocodingResult extends GoogleMapsResult

Class GeocodingResult

Standard and Reverse Geocoding have the same Response/Result format

Properties

protected array $typeCheck
protected array $required from AbstractObject
protected array $errors from AbstractObject
protected Address $address_components
protected string $formatted_address
protected Geometry $geometry
protected string $place_id
protected array $types

Methods

__construct(array|null $args = [])

AbstractObject constructor.

setArgs(array $args)

No description

bool
isFieldRequired(string $field_name)

No description

array
addError(string $error)

No description

mixed
parseFieldValue(string $field_type, string $field_value)

No description

throwErrors()

No description

string
toJson()

No description

array
toArray()

No description

string
__toString()

No description

mixed
__call($name, $arguments)

No description

getAddress()

No description

Address
getAddressComponents()

No description

string
getFormattedAddress()

No description

Geometry
getGeometry()

No description

string
getPlaceId()

No description

array
getTypes()

No description

GeocodingResult
setAddressComponents($args)

No description

GeocodingResult
setFormattedAddress($args)

No description

GeocodingResult
setGeometry($args)

No description

GeocodingResult
setPlaceId($args)

No description

GeocodingResult
setTypes($args)

No description

Details

in AbstractObject at line 43
__construct(array|null $args = [])

AbstractObject constructor.

Parameters

array|null $args

in AbstractObject at line 58
protected setArgs(array $args)

Parameters

array $args

Exceptions

Exception

in AbstractObject at line 78
protected bool isFieldRequired(string $field_name)

Parameters

string $field_name

Return Value

bool

in AbstractObject at line 89
protected array addError(string $error)

Parameters

string $error

Return Value

array

in AbstractObject at line 103
protected mixed parseFieldValue(string $field_type, string $field_value)

Parameters

string $field_type
string $field_value

Return Value

mixed

in AbstractObject at line 121
protected throwErrors()

Exceptions

Exception

in AbstractObject at line 132
string toJson()

Return Value

string

in AbstractObject at line 141
array toArray()

Return Value

array

in AbstractObject at line 159
string __toString()

Return Value

string

in AbstractObject at line 171
mixed __call($name, $arguments)

Parameters

$name
$arguments

Return Value

mixed

at line 77
Address getAddress()

Return Value

Address

at line 35
Address getAddressComponents()

Return Value

Address

at line 35
string getFormattedAddress()

Return Value

string

at line 35
Geometry getGeometry()

Return Value

Geometry

at line 35
string getPlaceId()

Return Value

string

at line 35
array getTypes()

Return Value

array

at line 35
GeocodingResult setAddressComponents($args)

Parameters

$args

Return Value

GeocodingResult

at line 35
GeocodingResult setFormattedAddress($args)

Parameters

$args

Return Value

GeocodingResult

at line 35
GeocodingResult setGeometry($args)

Parameters

$args

Return Value

GeocodingResult

at line 35
GeocodingResult setPlaceId($args)

Parameters

$args

Return Value

GeocodingResult

at line 35
GeocodingResult setTypes($args)

Parameters

$args

Return Value

GeocodingResult