GoogleMapsResponse
class GoogleMapsResponse
Class GoogleMapsResponse
Properties
protected Response | $response | ||
protected array | $results | contains an array of places, with information about each. | |
protected string | $status | contains metadata on the request. | |
protected string | $error_message | ||
protected array | $array_response | ||
protected null|array | $http_status_code | ||
protected null|array | $html_attributions | may contain a set of attributions about this listing which must be displayed to the user (some listings may not have attribution). | |
protected null|string | $next_page_token |
Methods
__construct(Response $response)
GoogleMapsResponse constructor.
setResponse(Response $response)
No description
parseResponse()
No description
array
toArray(string $json_response)
No description
string
getStatus()
No description
setStatus(string $status)
No description
int
checkHttpStatusCode()
Check HTTP status code (silent/No exceptions!)
array
getResults()
No description
$this
setResults(array $results)
No description
array
getArrayResponse()
No description
setArrayResponse(array $array_response)
No description
mixed
getErrorMessage()
No description
setErrorMessage($error_message)
No description
int
getHttpStatusCode()
No description
array|null
getHtmlAttributions()
No description
setHtmlAttributions(array|null $html_attributions)
No description
string
getNextPageToken()
No description
setNextPageToken($next_page_token)
No description
Details
at line 83
__construct(Response $response)
GoogleMapsResponse constructor.
at line 98
GoogleMapsResponse
setResponse(Response $response)
at line 112
protected GoogleMapsResponse
parseResponse()
at line 164
array
toArray(string $json_response)
at line 175
string
getStatus()
at line 186
GoogleMapsResponse
setStatus(string $status)
at line 198
protected int
checkHttpStatusCode()
Check HTTP status code (silent/No exceptions!)