@googlemaps/places 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/build/protos/google/maps/places/v1/attribution.proto +0 -1
  3. package/build/protos/google/maps/places/v1/content_block.proto +0 -1
  4. package/build/protos/google/maps/places/v1/contextual_content.proto +0 -1
  5. package/build/protos/google/maps/places/v1/ev_charging.proto +0 -1
  6. package/build/protos/google/maps/places/v1/fuel_options.proto +7 -2
  7. package/build/protos/google/maps/places/v1/geometry.proto +0 -1
  8. package/build/protos/google/maps/places/v1/photo.proto +0 -1
  9. package/build/protos/google/maps/places/v1/place.proto +39 -3
  10. package/build/protos/google/maps/places/v1/places_service.proto +22 -3
  11. package/build/protos/google/maps/places/v1/polyline.proto +0 -1
  12. package/build/protos/google/maps/places/v1/price_range.proto +39 -0
  13. package/build/protos/google/maps/places/v1/reference.proto +0 -1
  14. package/build/protos/google/maps/places/v1/review.proto +0 -1
  15. package/build/protos/google/maps/places/v1/route_modifiers.proto +0 -1
  16. package/build/protos/google/maps/places/v1/routing_preference.proto +0 -1
  17. package/build/protos/google/maps/places/v1/routing_summary.proto +9 -2
  18. package/build/protos/google/maps/places/v1/travel_mode.proto +0 -1
  19. package/build/protos/protos.d.ts +260 -1
  20. package/build/protos/protos.js +717 -2
  21. package/build/protos/protos.json +76 -1
  22. package/build/src/index.js +1 -1
  23. package/build/src/v1/index.js +1 -1
  24. package/build/src/v1/places_client.d.ts +16 -0
  25. package/build/src/v1/places_client.js +1 -1
  26. package/build/src/v1/places_client.js.map +1 -1
  27. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.8.0...places-v1.9.0) (2025-01-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * [places] add more fuel type enum values ([#5981](https://github.com/googleapis/google-cloud-node/issues/5981)) ([d0a1ba9](https://github.com/googleapis/google-cloud-node/commit/d0a1ba90bc3b411dfb404c5d1933650a9c46552a))
9
+
10
+ ## [1.8.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.7.0...places-v1.8.0) (2024-11-14)
11
+
12
+
13
+ ### Features
14
+
15
+ * [places] update attributes in Places API ([#5795](https://github.com/googleapis/google-cloud-node/issues/5795)) ([10a04fc](https://github.com/googleapis/google-cloud-node/commit/10a04fc297bcf2bdeb8019fb69e638b18eb2e159))
16
+
3
17
  ## [1.7.0](https://github.com/googleapis/google-cloud-node/compare/places-v1.6.0...places-v1.7.0) (2024-09-24)
4
18
 
5
19
 
@@ -16,7 +16,6 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.places.v1;
18
18
 
19
- option cc_enable_arenas = true;
20
19
  option csharp_namespace = "Google.Maps.Places.V1";
21
20
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
22
21
  option java_multiple_files = true;
@@ -19,7 +19,6 @@ package google.maps.places.v1;
19
19
  import "google/maps/places/v1/reference.proto";
20
20
  import "google/type/localized_text.proto";
21
21
 
22
- option cc_enable_arenas = true;
23
22
  option csharp_namespace = "Google.Maps.Places.V1";
24
23
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
25
24
  option java_multiple_files = true;
@@ -19,7 +19,6 @@ package google.maps.places.v1;
19
19
  import "google/maps/places/v1/photo.proto";
20
20
  import "google/maps/places/v1/review.proto";
21
21
 
22
- option cc_enable_arenas = true;
23
22
  option csharp_namespace = "Google.Maps.Places.V1";
24
23
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
25
24
  option java_multiple_files = true;
@@ -18,7 +18,6 @@ package google.maps.places.v1;
18
18
 
19
19
  import "google/protobuf/timestamp.proto";
20
20
 
21
- option cc_enable_arenas = true;
22
21
  option csharp_namespace = "Google.Maps.Places.V1";
23
22
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
24
23
  option java_multiple_files = true;
@@ -19,7 +19,6 @@ package google.maps.places.v1;
19
19
  import "google/protobuf/timestamp.proto";
20
20
  import "google/type/money.proto";
21
21
 
22
- option cc_enable_arenas = true;
23
22
  option csharp_namespace = "Google.Maps.Places.V1";
24
23
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
25
24
  option java_multiple_files = true;
@@ -41,6 +40,9 @@ message FuelOptions {
41
40
  // Diesel fuel.
42
41
  DIESEL = 1;
43
42
 
43
+ // Diesel plus fuel.
44
+ DIESEL_PLUS = 19;
45
+
44
46
  // Regular unleaded.
45
47
  REGULAR_UNLEADED = 2;
46
48
 
@@ -74,7 +76,7 @@ message FuelOptions {
74
76
  // SP 100.
75
77
  SP100 = 12;
76
78
 
77
- // LPG.
79
+ // Liquefied Petroleum Gas.
78
80
  LPG = 13;
79
81
 
80
82
  // E 80.
@@ -83,6 +85,9 @@ message FuelOptions {
83
85
  // E 85.
84
86
  E85 = 15;
85
87
 
88
+ // E 100.
89
+ E100 = 20;
90
+
86
91
  // Methane.
87
92
  METHANE = 16;
88
93
 
@@ -19,7 +19,6 @@ package google.maps.places.v1;
19
19
  import "google/api/field_behavior.proto";
20
20
  import "google/type/latlng.proto";
21
21
 
22
- option cc_enable_arenas = true;
23
22
  option csharp_namespace = "Google.Maps.Places.V1";
24
23
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
25
24
  option java_multiple_files = true;
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
20
20
  import "google/api/resource.proto";
21
21
  import "google/maps/places/v1/attribution.proto";
22
22
 
23
- option cc_enable_arenas = true;
24
23
  option csharp_namespace = "Google.Maps.Places.V1";
25
24
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
26
25
  option java_multiple_files = true;
@@ -22,13 +22,14 @@ import "google/maps/places/v1/content_block.proto";
22
22
  import "google/maps/places/v1/ev_charging.proto";
23
23
  import "google/maps/places/v1/fuel_options.proto";
24
24
  import "google/maps/places/v1/photo.proto";
25
+ import "google/maps/places/v1/price_range.proto";
25
26
  import "google/maps/places/v1/reference.proto";
26
27
  import "google/maps/places/v1/review.proto";
28
+ import "google/protobuf/timestamp.proto";
27
29
  import "google/type/date.proto";
28
30
  import "google/type/latlng.proto";
29
31
  import "google/type/localized_text.proto";
30
32
 
31
- option cc_enable_arenas = true;
32
33
  option csharp_namespace = "Google.Maps.Places.V1";
33
34
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
34
35
  option java_multiple_files = true;
@@ -193,6 +194,16 @@ message Place {
193
194
  // current_opening_hours and current_secondary_opening_hours if there are
194
195
  // exceptional hours.
195
196
  repeated SpecialDay special_days = 5;
197
+
198
+ // The next time the current opening hours period starts up to 7 days in the
199
+ // future. This field is only populated if the opening hours period is not
200
+ // active at the time of serving the request.
201
+ google.protobuf.Timestamp next_open_time = 6;
202
+
203
+ // The next time the current opening hours period ends up to 7 days in the
204
+ // future. This field is only populated if the opening hours period is
205
+ // active at the time of serving the request.
206
+ google.protobuf.Timestamp next_close_time = 7;
196
207
  }
197
208
 
198
209
  // Business status for the place.
@@ -314,6 +325,17 @@ message Place {
314
325
  repeated ContentBlock content_blocks = 4;
315
326
  }
316
327
 
328
+ // Info about the place in which this place is located.
329
+ message ContainingPlace {
330
+ // The resource name of the place in which this place is located.
331
+ string name = 1 [
332
+ (google.api.resource_reference) = { type: "places.googleapis.com/Place" }
333
+ ];
334
+
335
+ // The place id of the place in which this place is located.
336
+ string id = 2;
337
+ }
338
+
317
339
  // This Place's resource name, in `places/{place_id}` format. Can be used to
318
340
  // look up the Place.
319
341
  string name = 1;
@@ -378,7 +400,9 @@ message Place {
378
400
  // The position of this place.
379
401
  google.type.LatLng location = 12;
380
402
 
381
- // A viewport suitable for displaying the place on an average-sized map.
403
+ // A viewport suitable for displaying the place on an average-sized map. This
404
+ // viewport should not be used as the physical boundary or the service area of
405
+ // the business.
382
406
  google.geo.type.Viewport viewport = 13;
383
407
 
384
408
  // A rating between 1.0 and 5.0, based on user reviews of this place.
@@ -412,7 +436,6 @@ message Place {
412
436
  // The place's address in adr microformat: http://microformats.org/wiki/adr.
413
437
  string adr_format_address = 24;
414
438
 
415
- // The business status for the place.
416
439
  BusinessStatus business_status = 25;
417
440
 
418
441
  // Price level of the place.
@@ -562,6 +585,19 @@ message Place {
562
585
  //
563
586
  // AI-generated summary of the area that the place is in.
564
587
  AreaSummary area_summary = 81;
588
+
589
+ // List of places in which the current place is located.
590
+ repeated ContainingPlace containing_places = 82;
591
+
592
+ // Indicates whether the place is a pure service area business. Pure service
593
+ // area business is a business that visits or delivers to customers directly
594
+ // but does not serve customers at their business address. For example,
595
+ // businesses like cleaning services or plumbers. Those businesses may not
596
+ // have a physical address or location on Google Maps.
597
+ optional bool pure_service_area_business = 83;
598
+
599
+ // The price range associated with a Place.
600
+ PriceRange price_range = 86;
565
601
  }
566
602
 
567
603
  // Price level of the place.
@@ -32,7 +32,6 @@ import "google/maps/places/v1/routing_summary.proto";
32
32
  import "google/maps/places/v1/travel_mode.proto";
33
33
  import "google/type/latlng.proto";
34
34
 
35
- option cc_enable_arenas = true;
36
35
  option csharp_namespace = "Google.Maps.Places.V1";
37
36
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
38
37
  option java_multiple_files = true;
@@ -263,7 +262,7 @@ message SearchNearbyResponse {
263
262
  repeated Place places = 1;
264
263
 
265
264
  // A list of routing summaries where each entry associates to the
266
- // corresponding place in the same index in the places field. If the routing
265
+ // corresponding place in the same index in the `places` field. If the routing
267
266
  // summary is not available for one of the places, it will contain an empty
268
267
  // entry. This list should have as many entries as the list of places if
269
268
  // requested.
@@ -430,6 +429,16 @@ message SearchTextRequest {
430
429
  // Optional. Additional parameters proto for searching along a route.
431
430
  SearchAlongRouteParameters search_along_route_parameters = 17
432
431
  [(google.api.field_behavior) = OPTIONAL];
432
+
433
+ // Optional. Include pure service area businesses if the field is set to true.
434
+ // Pure service area business is a business that visits or delivers to
435
+ // customers directly but does not serve customers at their business address.
436
+ // For example, businesses like cleaning services or plumbers. Those
437
+ // businesses do not have a physical address or location on Google Maps.
438
+ // Places will not return fields including `location`, `plus_code`, and other
439
+ // location related fields for these businesses.
440
+ bool include_pure_service_area_businesses = 20
441
+ [(google.api.field_behavior) = OPTIONAL];
433
442
  }
434
443
 
435
444
  // Response proto for SearchText.
@@ -439,7 +448,7 @@ message SearchTextResponse {
439
448
  repeated Place places = 1;
440
449
 
441
450
  // A list of routing summaries where each entry associates to the
442
- // corresponding place in the same index in the places field. If the routing
451
+ // corresponding place in the same index in the `places` field. If the routing
443
452
  // summary is not available for one of the places, it will contain an empty
444
453
  // entry. This list will have as many entries as the list of places if
445
454
  // requested.
@@ -698,6 +707,16 @@ message AutocompletePlacesRequest {
698
707
  // same token for more than one session will result in each request being
699
708
  // billed individually.
700
709
  string session_token = 11 [(google.api.field_behavior) = OPTIONAL];
710
+
711
+ // Optional. Include pure service area businesses if the field is set to true.
712
+ // Pure service area business is a business that visits or delivers to
713
+ // customers directly but does not serve customers at their business address.
714
+ // For example, businesses like cleaning services or plumbers. Those
715
+ // businesses do not have a physical address or location on Google Maps.
716
+ // Places will not return fields including `location`, `plus_code`, and other
717
+ // location related fields for these businesses.
718
+ bool include_pure_service_area_businesses = 12
719
+ [(google.api.field_behavior) = OPTIONAL];
701
720
  }
702
721
 
703
722
  // Response proto for AutocompletePlaces.
@@ -16,7 +16,6 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.places.v1;
18
18
 
19
- option cc_enable_arenas = true;
20
19
  option csharp_namespace = "Google.Maps.Places.V1";
21
20
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
22
21
  option java_multiple_files = true;
@@ -0,0 +1,39 @@
1
+ // Copyright 2024 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ syntax = "proto3";
16
+
17
+ package google.maps.places.v1;
18
+
19
+ import "google/type/money.proto";
20
+
21
+ option csharp_namespace = "Google.Maps.Places.V1";
22
+ option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
23
+ option java_multiple_files = true;
24
+ option java_outer_classname = "PriceRangeProto";
25
+ option java_package = "com.google.maps.places.v1";
26
+ option objc_class_prefix = "GMPSV1";
27
+ option php_namespace = "Google\\Maps\\Places\\V1";
28
+
29
+ // The price range associated with a Place. `end_price` could be unset, which
30
+ // indicates a range without upper bound (e.g. "More than $100").
31
+ message PriceRange {
32
+ // The low end of the price range (inclusive). Price should be at or above
33
+ // this amount.
34
+ google.type.Money start_price = 1;
35
+
36
+ // The high end of the price range (exclusive). Price should be lower than
37
+ // this amount.
38
+ google.type.Money end_price = 2;
39
+ }
@@ -19,7 +19,6 @@ package google.maps.places.v1;
19
19
  import "google/api/resource.proto";
20
20
  import "google/maps/places/v1/review.proto";
21
21
 
22
- option cc_enable_arenas = true;
23
22
  option csharp_namespace = "Google.Maps.Places.V1";
24
23
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
25
24
  option java_multiple_files = true;
@@ -21,7 +21,6 @@ import "google/maps/places/v1/attribution.proto";
21
21
  import "google/protobuf/timestamp.proto";
22
22
  import "google/type/localized_text.proto";
23
23
 
24
- option cc_enable_arenas = true;
25
24
  option csharp_namespace = "Google.Maps.Places.V1";
26
25
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
27
26
  option java_multiple_files = true;
@@ -18,7 +18,6 @@ package google.maps.places.v1;
18
18
 
19
19
  import "google/api/field_behavior.proto";
20
20
 
21
- option cc_enable_arenas = true;
22
21
  option csharp_namespace = "Google.Maps.Places.V1";
23
22
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
24
23
  option java_multiple_files = true;
@@ -16,7 +16,6 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.places.v1;
18
18
 
19
- option cc_enable_arenas = true;
20
19
  option csharp_namespace = "Google.Maps.Places.V1";
21
20
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
22
21
  option java_multiple_files = true;
@@ -18,7 +18,6 @@ package google.maps.places.v1;
18
18
 
19
19
  import "google/protobuf/duration.proto";
20
20
 
21
- option cc_enable_arenas = true;
22
21
  option csharp_namespace = "Google.Maps.Places.V1";
23
22
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
24
23
  option java_multiple_files = true;
@@ -29,7 +28,7 @@ option php_namespace = "Google\\Maps\\Places\\V1";
29
28
 
30
29
  // The duration and distance from the routing origin to a place in the
31
30
  // response, and a second leg from that place to the destination, if requested.
32
- // Note: Adding `routingSummaries` in the field mask without also including
31
+ // **Note:** Adding `routingSummaries` in the field mask without also including
33
32
  // either the `routingParameters.origin` parameter or the
34
33
  // `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the
35
34
  // request causes an error.
@@ -51,4 +50,12 @@ message RoutingSummary {
51
50
  // legs: one from the origin to place, and one from the place to the
52
51
  // destination.
53
52
  repeated Leg legs = 1;
53
+
54
+ // A link to show directions on Google Maps using the waypoints from the given
55
+ // routing summary. The route generated by this link is not guaranteed to be
56
+ // the same as the route used to generate the routing summary.
57
+ // The link uses information provided in the request, from fields including
58
+ // `routingParameters` and `searchAlongRouteParameters` when applicable, to
59
+ // generate the directions link.
60
+ string directions_uri = 2;
54
61
  }
@@ -16,7 +16,6 @@ syntax = "proto3";
16
16
 
17
17
  package google.maps.places.v1;
18
18
 
19
- option cc_enable_arenas = true;
20
19
  option csharp_namespace = "Google.Maps.Places.V1";
21
20
  option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
22
21
  option java_multiple_files = true;