When you have requested your place detail, the returned object is a PlaceDetailResponse
. It wraps a place detail
status, html attributions and the result.
The available status are defined by the PlaceDetailStatus
constants.
$status = $response->getStatus();
The html attributions is a set of text which must be displayed to the user.
$htmlAttributions = $response->getHtmlAttributions();
The result wraps the detailed place information requested.
$result = $response->getResult();
If you want to learn more about the place, you can read its documentation.