Documentation

GoogleGeocode extends Base
in package

Address finder Google class.

Table of Contents

$config  : array<string|int, mixed>
Config data.
$customFields  : array<string|int, mixed>
Custom Fields.
$docUrl  : string
Provider documentation url address.
$name  : string
Provider name.
$url  : string
API Address to retrieve data.
__construct()  : mixed
Construct.
find()  : array<string|int, mixed>
Find address.
getCustomFields()  : array<string|int, mixed>
Get provider custom fields.
getDataFromRequest()  : array<string|int, mixed>
Gets data from request.
getDocUrl()  : string
Get provider documentation url address.
getName()  : string
Get provider name.
isActive()  : bool
Function checks if provider is active.
isConfigured()  : bool
Function checks if provider been configured?
validate()  : bool
Validate configuration.
parse()  : array<string|int, string>
Parse response.

Properties

$config

Config data.

public array<string|int, mixed> $config

$customFields

Custom Fields.

public array<string|int, mixed> $customFields = ['key' => ['validator' => [['name' => 'AlphaNumeric']], 'uitype' => 1, 'label' => 'LBL_KEY', 'purifyType' => \App\Purifier::ALNUM, 'maximumlength' => '200', 'typeofdata' => 'V~M', 'tooltip' => 'LBL_KEY_PLACEHOLDER']]

$docUrl

Provider documentation url address.

public string $docUrl = 'https://code.google.com/apis/console/?noredirect'

$name

Provider name.

public string $name

$url

API Address to retrieve data.

protected static string $url = 'https://maps.googleapis.com/maps/api/geocode/json?'

Methods

__construct()

Construct.

public __construct() : mixed
Return values
mixed

find()

Find address.

public find(mixed $value) : array<string|int, mixed>
Parameters
$value : mixed

string

Return values
array<string|int, mixed>

getCustomFields()

Get provider custom fields.

public getCustomFields([array<string|int, mixed> $data = [] ]) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed> = []
Return values
array<string|int, mixed>

getDataFromRequest()

Gets data from request.

public getDataFromRequest(Request $request) : array<string|int, mixed>
Parameters
$request : Request
Return values
array<string|int, mixed>

getDocUrl()

Get provider documentation url address.

public getDocUrl() : string
Return values
string

getName()

Get provider name.

public getName() : string
Return values
string

isActive()

Function checks if provider is active.

public isActive() : bool
Return values
bool

isConfigured()

Function checks if provider been configured?

public isConfigured() : bool
Return values
bool

validate()

Validate configuration.

public validate() : bool
Return values
bool

parse()

Parse response.

private parse(array<string|int, mixed> $rows) : array<string|int, string>
Parameters
$rows : array<string|int, mixed>
Return values
array<string|int, string>

        

Search results