Skip to content

Commit 77c78e9

Browse files
Google APIscopybara-github
authored andcommitted
feat: make the Place ID format consistent
docs: update the navigation point usage enum documentation PiperOrigin-RevId: 890102125
1 parent 1161dbc commit 77c78e9

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

google/maps/geocode/v4/destination_service.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,13 @@ message PlaceView {
238238
GROUNDS = 4;
239239
}
240240

241-
// This place's resource name, in `places/{placeId}` format.
241+
// This Place's resource name, in `places/{placeId}` format. Can be used to
242+
// look up the Place.
242243
string place = 1;
243244

245+
// The unique identifier of a place.
246+
string place_id = 2;
247+
244248
// Human readable place description. For example, "Gate B", "McDonalds"
245249
google.type.LocalizedText display_name = 3;
246250

@@ -342,9 +346,7 @@ message NavigationPoint {
342346
// Not used.
343347
USAGE_UNSPECIFIED = 0;
344348

345-
// Unknown usage type. Most navigation points will be `UNKNOWN` and it does
346-
// not necessarily mean their usage is restricted in any way. This
347-
// navigation might still be suitable for pickup and/or dropoff.
349+
// Indicates that the usage type is unknown.
348350
UNKNOWN = 1;
349351

350352
// Suitable for dropping off a passenger. For example, a rideshare drop off
@@ -374,7 +376,9 @@ message NavigationPoint {
374376
// Travel modes that are appropriate for this navigation point.
375377
repeated TravelMode travel_modes = 4;
376378

377-
// Usages supported by this navigation point.
379+
// Lists `usages` supported by this navigation point. If empty, it does not
380+
// necessarily mean its usage is restricted in any way. All navigation
381+
// points can be used for general navigation.
378382
repeated Usage usages = 5;
379383
}
380384

google/maps/geocode/v4/geocode_service.proto

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,11 @@ message GeocodeResult {
217217
APPROXIMATE = 4;
218218
}
219219

220-
// The fully qualified place identifier for this result.
221-
// In the format of "//places.googleapis.com/places/{placeID}". See
222-
// https://developers.google.com/maps/documentation/places/web-service/place-id.
223-
// for more details.
220+
// This Place's resource name, in `places/{placeId}` format. Can be used to
221+
// look up the Place.
224222
string place = 1;
225223

226-
// The place ID for this result.
224+
// The unique identifier of a place.
227225
string place_id = 2;
228226

229227
// The latlng of this address.

0 commit comments

Comments
 (0)