Skip to content

Commit ed6d5ef

Browse files
feat(places): update the API
#### places:v1 The following keys were added: - schemas.GoogleMapsPlacesV1Place.properties.movedPlace.description - schemas.GoogleMapsPlacesV1Place.properties.movedPlace.type - schemas.GoogleMapsPlacesV1Place.properties.movedPlaceId.description - schemas.GoogleMapsPlacesV1Place.properties.movedPlaceId.type The following keys were changed: - schemas.GoogleMapsPlacesV1PlaceConsumerAlert.properties.details.description - schemas.GoogleMapsPlacesV1Review.properties.visitDate.description
1 parent 04da00a commit ed6d5ef

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

discovery/places-v1.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
}
281281
}
282282
},
283-
"revision": "20251007",
283+
"revision": "20251021",
284284
"rootUrl": "https://places.googleapis.com/",
285285
"schemas": {
286286
"GoogleGeoTypeViewport": {
@@ -1166,6 +1166,14 @@
11661166
"description": "Place has a children's menu.",
11671167
"type": "boolean"
11681168
},
1169+
"movedPlace": {
1170+
"description": "If this Place is permanently closed and has moved to a new Place, this field contains the new Place's resource name, in `places/{place_id}` format. If this Place moved multiple times, this field will represent the first moved place. This field will not be populated if this Place has not moved.",
1171+
"type": "string"
1172+
},
1173+
"movedPlaceId": {
1174+
"description": "If this Place is permanently closed and has moved to a new Place, this field contains the new Place's place ID. If this Place moved multiple times, this field will represent the first moved Place. This field will not be populated if this Place has not moved.",
1175+
"type": "string"
1176+
},
11691177
"name": {
11701178
"description": "This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.",
11711179
"type": "string"
@@ -1433,7 +1441,7 @@
14331441
"properties": {
14341442
"details": {
14351443
"$ref": "GoogleMapsPlacesV1PlaceConsumerAlertDetails",
1436-
"description": "The details of the consumer alert message.ƒ"
1444+
"description": "The details of the consumer alert message."
14371445
},
14381446
"languageCode": {
14391447
"description": "The language code of the consumer alert message. This is a BCP 47 language code.",
@@ -1910,7 +1918,7 @@
19101918
},
19111919
"visitDate": {
19121920
"$ref": "GoogleTypeDate",
1913-
"description": "The date when the author visited the place. This is trucated to the year and month of the visit."
1921+
"description": "The date when the author visited the place. This is truncated to the year and month of the visit."
19141922
}
19151923
},
19161924
"type": "object"

src/apis/places/v1.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,14 @@ export namespace places_v1 {
749749
* Place has a children's menu.
750750
*/
751751
menuForChildren?: boolean | null;
752+
/**
753+
* If this Place is permanently closed and has moved to a new Place, this field contains the new Place's resource name, in `places/{place_id\}` format. If this Place moved multiple times, this field will represent the first moved place. This field will not be populated if this Place has not moved.
754+
*/
755+
movedPlace?: string | null;
756+
/**
757+
* If this Place is permanently closed and has moved to a new Place, this field contains the new Place's place ID. If this Place moved multiple times, this field will represent the first moved Place. This field will not be populated if this Place has not moved.
758+
*/
759+
movedPlaceId?: string | null;
752760
/**
753761
* This Place's resource name, in `places/{place_id\}` format. Can be used to look up the Place.
754762
*/
@@ -970,7 +978,7 @@ export namespace places_v1 {
970978
*/
971979
export interface Schema$GoogleMapsPlacesV1PlaceConsumerAlert {
972980
/**
973-
* The details of the consumer alert message.ƒ
981+
* The details of the consumer alert message.
974982
*/
975983
details?: Schema$GoogleMapsPlacesV1PlaceConsumerAlertDetails;
976984
/**
@@ -1361,7 +1369,7 @@ export namespace places_v1 {
13611369
*/
13621370
text?: Schema$GoogleTypeLocalizedText;
13631371
/**
1364-
* The date when the author visited the place. This is trucated to the year and month of the visit.
1372+
* The date when the author visited the place. This is truncated to the year and month of the visit.
13651373
*/
13661374
visitDate?: Schema$GoogleTypeDate;
13671375
}
@@ -2025,6 +2033,8 @@ export namespace places_v1 {
20252033
* // "liveMusic": false,
20262034
* // "location": {},
20272035
* // "menuForChildren": false,
2036+
* // "movedPlace": "my_movedPlace",
2037+
* // "movedPlaceId": "my_movedPlaceId",
20282038
* // "name": "my_name",
20292039
* // "nationalPhoneNumber": "my_nationalPhoneNumber",
20302040
* // "neighborhoodSummary": {},

0 commit comments

Comments
 (0)