class GoogleMapsApi

Class GoogleMapsApi

Properties

static protected GoogleMapsApi $instance
protected GoogleMapsRequest $request

Methods

__construct(array $config = [])

GoogleMapsApi constructor.

string
getApiUrl()

No description

get(GoogleMapsRequest $request)

Perform the Google Maps API call

string
getUrl()

No description

string
getServiceEndpoint()

No description

setServiceEndpoint(string $service_endpoint)

No description

string
getQuery()

No description

string
getKey()

No description

setKey(string $key)

No description

string
getSensor()

No description

setSensor(bool|string $sensor)

Set sensor parameter

getRequest()

No description

setRequest(GoogleMapsRequest $request)

No description

getClient()

No description

setClient(GoogleMapsClient|null $client = null)

No description

setType(string $type)

No description

Details

at line 83
__construct(array $config = [])

GoogleMapsApi constructor.

Parameters

array $config

at line 105
string getApiUrl()

Return Value

string

at line 118
GoogleMapsResponse|string get(GoogleMapsRequest $request)

Perform the Google Maps API call

Parameters

GoogleMapsRequest $request

Return Value

GoogleMapsResponse|string

at line 136
string getUrl()

Return Value

string

Exceptions

RequestException

at line 159
string getServiceEndpoint()

Return Value

string

at line 170
GoogleMapsApi setServiceEndpoint(string $service_endpoint)

Parameters

string $service_endpoint

Return Value

GoogleMapsApi

at line 181
string getQuery()

Return Value

string

at line 200
string getKey()

Return Value

string

at line 211
GoogleMapsApi setKey(string $key)

Parameters

string $key

Return Value

GoogleMapsApi

at line 222
string getSensor()

Return Value

string

at line 235
GoogleMapsApi setSensor(bool|string $sensor)

Set sensor parameter

Parameters

bool|string $sensor

Return Value

GoogleMapsApi

at line 249
GoogleMapsRequest getRequest()

Return Value

GoogleMapsRequest

at line 260
GoogleMapsApi setRequest(GoogleMapsRequest $request)

Parameters

GoogleMapsRequest $request

Return Value

GoogleMapsApi

at line 271
GoogleMapsClient getClient()

Return Value

GoogleMapsClient

at line 282
GoogleMapsApi setClient(GoogleMapsClient|null $client = null)

Parameters

GoogleMapsClient|null $client

Return Value

GoogleMapsApi

at line 295
protected GoogleMapsApi setType(string $type)

Parameters

string $type

Return Value

GoogleMapsApi