Skip to content

Commit ed5cf07

Browse files
1 parent b458452 commit ed5cf07

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

src/MapsPlaces/GoogleMapsPlacesV1Place.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class GoogleMapsPlacesV1Place extends \Google\Collection
150150
public $goodForWatchingSports;
151151
protected $googleMapsLinksType = GoogleMapsPlacesV1PlaceGoogleMapsLinks::class;
152152
protected $googleMapsLinksDataType = '';
153+
protected $googleMapsTypeLabelType = GoogleTypeLocalizedText::class;
154+
protected $googleMapsTypeLabelDataType = '';
153155
/**
154156
* A URL providing more information about this place.
155157
*
@@ -848,6 +850,27 @@ public function getGoogleMapsLinks()
848850
{
849851
return $this->googleMapsLinks;
850852
}
853+
/**
854+
* The type label of the place on Google Maps, localized to the request
855+
* language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
856+
* The type label may be different from the primary type display name and may
857+
* not be a supported type in [Places API Place Types
858+
* table](https://developers.google.com/maps/documentation/places/web-
859+
* service/place-types).
860+
*
861+
* @param GoogleTypeLocalizedText $googleMapsTypeLabel
862+
*/
863+
public function setGoogleMapsTypeLabel(GoogleTypeLocalizedText $googleMapsTypeLabel)
864+
{
865+
$this->googleMapsTypeLabel = $googleMapsTypeLabel;
866+
}
867+
/**
868+
* @return GoogleTypeLocalizedText
869+
*/
870+
public function getGoogleMapsTypeLabel()
871+
{
872+
return $this->googleMapsTypeLabel;
873+
}
851874
/**
852875
* A URL providing more information about this place.
853876
*

0 commit comments

Comments
 (0)