Skip to content

Commit f54e08b

Browse files
feat(places)!: update the API
BREAKING CHANGE: This release has breaking changes. #### places:v1 The following keys were deleted: - schemas.GoogleMapsPlacesV1Review.properties.visitDate.$ref - schemas.GoogleMapsPlacesV1Review.properties.visitDate.description - schemas.GoogleMapsPlacesV1ReviewVisitDate.description - schemas.GoogleMapsPlacesV1ReviewVisitDate.id - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.month.description - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.month.format - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.month.type - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.year.description - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.year.format - schemas.GoogleMapsPlacesV1ReviewVisitDate.properties.year.type - schemas.GoogleMapsPlacesV1ReviewVisitDate.type The following keys were changed: - schemas.GoogleMapsPlacesV1PlaceGoogleMapsLinks.properties.photosUri.description - schemas.GoogleMapsPlacesV1PlaceGoogleMapsLinks.properties.reviewsUri.description - schemas.GoogleMapsPlacesV1PlaceGoogleMapsLinks.properties.writeAReviewUri.description
1 parent d05a47a commit f54e08b

File tree

2 files changed

+7
-45
lines changed

2 files changed

+7
-45
lines changed

discovery/places-v1.json

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@
280280
}
281281
}
282282
},
283-
"revision": "20250429",
283+
"revision": "20250504",
284284
"rootUrl": "https://places.googleapis.com/",
285285
"schemas": {
286286
"GoogleGeoTypeViewport": {
@@ -1497,19 +1497,19 @@
14971497
"type": "string"
14981498
},
14991499
"photosUri": {
1500-
"description": "A link to show photos of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.",
1500+
"description": "A link to show reviews of this place on Google Maps.",
15011501
"type": "string"
15021502
},
15031503
"placeUri": {
15041504
"description": "A link to show this place.",
15051505
"type": "string"
15061506
},
15071507
"reviewsUri": {
1508-
"description": "A link to show reviews of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.",
1508+
"description": "A link to show reviews of this place on Google Maps.",
15091509
"type": "string"
15101510
},
15111511
"writeAReviewUri": {
1512-
"description": "A link to write a review for this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.",
1512+
"description": "A link to show reviews of this place on Google Maps.",
15131513
"type": "string"
15141514
}
15151515
},
@@ -1846,27 +1846,6 @@
18461846
"text": {
18471847
"$ref": "GoogleTypeLocalizedText",
18481848
"description": "The localized text of the review."
1849-
},
1850-
"visitDate": {
1851-
"$ref": "GoogleMapsPlacesV1ReviewVisitDate",
1852-
"description": "The date when the author visited the place. This is trucated to month."
1853-
}
1854-
},
1855-
"type": "object"
1856-
},
1857-
"GoogleMapsPlacesV1ReviewVisitDate": {
1858-
"description": "The date when the author visited the place. This is trucated to month.",
1859-
"id": "GoogleMapsPlacesV1ReviewVisitDate",
1860-
"properties": {
1861-
"month": {
1862-
"description": "The month the author visited the place, e.g. 4. The value is between 1 and 12.",
1863-
"format": "int32",
1864-
"type": "integer"
1865-
},
1866-
"year": {
1867-
"description": "The year the author visited the place, e.g. 2025.",
1868-
"format": "int32",
1869-
"type": "integer"
18701849
}
18711850
},
18721851
"type": "object"

src/apis/places/v1.ts

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,19 +1029,19 @@ export namespace places_v1 {
10291029
*/
10301030
directionsUri?: string | null;
10311031
/**
1032-
* A link to show photos of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
1032+
* A link to show reviews of this place on Google Maps.
10331033
*/
10341034
photosUri?: string | null;
10351035
/**
10361036
* A link to show this place.
10371037
*/
10381038
placeUri?: string | null;
10391039
/**
1040-
* A link to show reviews of this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
1040+
* A link to show reviews of this place on Google Maps.
10411041
*/
10421042
reviewsUri?: string | null;
10431043
/**
1044-
* A link to write a review for this place. This link is currently not supported on Google Maps Mobile and only works on the web version of Google Maps.
1044+
* A link to show reviews of this place on Google Maps.
10451045
*/
10461046
writeAReviewUri?: string | null;
10471047
}
@@ -1305,23 +1305,6 @@ export namespace places_v1 {
13051305
* The localized text of the review.
13061306
*/
13071307
text?: Schema$GoogleTypeLocalizedText;
1308-
/**
1309-
* The date when the author visited the place. This is trucated to month.
1310-
*/
1311-
visitDate?: Schema$GoogleMapsPlacesV1ReviewVisitDate;
1312-
}
1313-
/**
1314-
* The date when the author visited the place. This is trucated to month.
1315-
*/
1316-
export interface Schema$GoogleMapsPlacesV1ReviewVisitDate {
1317-
/**
1318-
* The month the author visited the place, e.g. 4. The value is between 1 and 12.
1319-
*/
1320-
month?: number | null;
1321-
/**
1322-
* The year the author visited the place, e.g. 2025.
1323-
*/
1324-
year?: number | null;
13251308
}
13261309
/**
13271310
* Encapsulates a set of optional conditions to satisfy when calculating the routes.

0 commit comments

Comments
 (0)