@googlemaps/places 2.2.0 → 2.4.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.
- package/build/protos/google/maps/places/v1/address_descriptor.proto +1 -1
- package/build/protos/google/maps/places/v1/attribution.proto +1 -1
- package/build/protos/google/maps/places/v1/content_block.proto +7 -11
- package/build/protos/google/maps/places/v1/contextual_content.proto +4 -4
- package/build/protos/google/maps/places/v1/ev_charging.proto +1 -1
- package/build/protos/google/maps/places/v1/fuel_options.proto +1 -1
- package/build/protos/google/maps/places/v1/geometry.proto +1 -1
- package/build/protos/google/maps/places/v1/photo.proto +1 -1
- package/build/protos/google/maps/places/v1/place.proto +37 -1
- package/build/protos/google/maps/places/v1/places_service.proto +16 -1
- package/build/protos/google/maps/places/v1/polyline.proto +1 -1
- package/build/protos/google/maps/places/v1/price_range.proto +1 -1
- package/build/protos/google/maps/places/v1/review.proto +1 -1
- package/build/protos/google/maps/places/v1/route_modifiers.proto +1 -1
- package/build/protos/google/maps/places/v1/routing_preference.proto +1 -1
- package/build/protos/google/maps/places/v1/routing_summary.proto +1 -1
- package/build/protos/google/maps/places/v1/travel_mode.proto +1 -1
- package/build/protos/protos.d.ts +450 -298
- package/build/protos/protos.js +2753 -2307
- package/build/protos/protos.json +129 -71
- package/build/src/v1/index.js +1 -1
- package/build/src/v1/places_client.d.ts +9 -0
- package/build/src/v1/places_client.js +1 -1
- package/build/src/v1/places_client.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -16,7 +16,7 @@ syntax = "proto3";
|
|
|
16
16
|
|
|
17
17
|
package google.maps.places.v1;
|
|
18
18
|
|
|
19
|
-
import "google/
|
|
19
|
+
import "google/api/resource.proto";
|
|
20
20
|
import "google/type/localized_text.proto";
|
|
21
21
|
|
|
22
22
|
option csharp_namespace = "Google.Maps.Places.V1";
|
|
@@ -29,16 +29,12 @@ option php_namespace = "Google\\Maps\\Places\\V1";
|
|
|
29
29
|
|
|
30
30
|
// A block of content that can be served individually.
|
|
31
31
|
message ContentBlock {
|
|
32
|
-
// The topic of the content, for example "overview" or "restaurant".
|
|
33
|
-
string topic = 1;
|
|
34
|
-
|
|
35
32
|
// Content related to the topic.
|
|
36
33
|
google.type.LocalizedText content = 2;
|
|
37
34
|
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
References references = 3;
|
|
35
|
+
// The list of resource names of the referenced places. This name can be used
|
|
36
|
+
// in other APIs that accept Place resource names.
|
|
37
|
+
repeated string referenced_places = 4 [
|
|
38
|
+
(google.api.resource_reference) = { type: "places.googleapis.com/Place" }
|
|
39
|
+
];
|
|
44
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -103,11 +103,11 @@ message ContextualContent {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// List of reviews about this place,
|
|
106
|
+
// List of reviews about this place, contextual to the place query.
|
|
107
107
|
repeated Review reviews = 1;
|
|
108
108
|
|
|
109
|
-
// Information (including references) about photos of this place,
|
|
110
|
-
// the place query.
|
|
109
|
+
// Information (including references) about photos of this place, contextual
|
|
110
|
+
// to the place query.
|
|
111
111
|
repeated Photo photos = 2;
|
|
112
112
|
|
|
113
113
|
// Experimental: See
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -238,6 +238,9 @@ message Place {
|
|
|
238
238
|
|
|
239
239
|
// The establishment is permanently closed.
|
|
240
240
|
CLOSED_PERMANENTLY = 3;
|
|
241
|
+
|
|
242
|
+
// The establishment will open in the future.
|
|
243
|
+
FUTURE_OPENING = 4;
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
// Information about data providers of this place.
|
|
@@ -348,6 +351,25 @@ message Place {
|
|
|
348
351
|
string id = 2;
|
|
349
352
|
}
|
|
350
353
|
|
|
354
|
+
// Links to trigger different Google Maps actions.
|
|
355
|
+
message GoogleMapsLinks {
|
|
356
|
+
// A link to show the directions to the place. The link only populates the
|
|
357
|
+
// destination location and uses the default travel mode `DRIVE`.
|
|
358
|
+
string directions_uri = 1;
|
|
359
|
+
|
|
360
|
+
// A link to show this place.
|
|
361
|
+
string place_uri = 2;
|
|
362
|
+
|
|
363
|
+
// A link to write a review for this place on Google Maps.
|
|
364
|
+
string write_a_review_uri = 3;
|
|
365
|
+
|
|
366
|
+
// A link to show reviews of this place on Google Maps.
|
|
367
|
+
string reviews_uri = 4;
|
|
368
|
+
|
|
369
|
+
// A link to show photos of this place on Google Maps.
|
|
370
|
+
string photos_uri = 5;
|
|
371
|
+
}
|
|
372
|
+
|
|
351
373
|
// AI-generated summary of the place using user reviews.
|
|
352
374
|
message ReviewSummary {
|
|
353
375
|
// The summary of user reviews.
|
|
@@ -480,6 +502,13 @@ message Place {
|
|
|
480
502
|
// supported type.
|
|
481
503
|
google.type.LocalizedText primary_type_display_name = 32;
|
|
482
504
|
|
|
505
|
+
// The type label of the place on Google Maps, localized to the request
|
|
506
|
+
// language if applicable, for example, "Restaurant", "Cafe", "Airport", etc.
|
|
507
|
+
// The type label may be different from the primary type display name and may
|
|
508
|
+
// not be a supported type in [Places API Place Types
|
|
509
|
+
// table](https://developers.google.com/maps/documentation/places/web-service/place-types).
|
|
510
|
+
google.type.LocalizedText google_maps_type_label = 96;
|
|
511
|
+
|
|
483
512
|
// A human-readable phone number for the place, in national format.
|
|
484
513
|
string national_phone_number = 7;
|
|
485
514
|
|
|
@@ -569,6 +598,10 @@ message Place {
|
|
|
569
598
|
// The business status for the place.
|
|
570
599
|
BusinessStatus business_status = 25;
|
|
571
600
|
|
|
601
|
+
// The date this place will open in the future. This field is only
|
|
602
|
+
// populated if the business status is FUTURE_OPENING.
|
|
603
|
+
google.type.Date opening_date = 95;
|
|
604
|
+
|
|
572
605
|
// Price level of the place.
|
|
573
606
|
PriceLevel price_level = 26;
|
|
574
607
|
|
|
@@ -722,6 +755,9 @@ message Place {
|
|
|
722
755
|
// https://developers.google.com/maps/documentation/geocoding/address-descriptors/coverage.
|
|
723
756
|
AddressDescriptor address_descriptor = 84;
|
|
724
757
|
|
|
758
|
+
// Links to trigger different Google Maps actions.
|
|
759
|
+
GoogleMapsLinks google_maps_links = 85;
|
|
760
|
+
|
|
725
761
|
// The price range associated with a Place.
|
|
726
762
|
PriceRange price_range = 86;
|
|
727
763
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2026 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -255,6 +255,11 @@ message SearchNearbyRequest {
|
|
|
255
255
|
// Optional. Parameters that affect the routing to the search results.
|
|
256
256
|
RoutingParameters routing_parameters = 10
|
|
257
257
|
[(google.api.field_behavior) = OPTIONAL];
|
|
258
|
+
|
|
259
|
+
// Optional. If true, include businesses that are not yet open but will open
|
|
260
|
+
// in the future.
|
|
261
|
+
bool include_future_opening_businesses = 15
|
|
262
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
258
263
|
}
|
|
259
264
|
|
|
260
265
|
// Response proto for Search Nearby.
|
|
@@ -442,6 +447,11 @@ message SearchTextRequest {
|
|
|
442
447
|
// location related fields for these businesses.
|
|
443
448
|
bool include_pure_service_area_businesses = 20
|
|
444
449
|
[(google.api.field_behavior) = OPTIONAL];
|
|
450
|
+
|
|
451
|
+
// Optional. If true, include businesses that are not yet open but will open
|
|
452
|
+
// in the future.
|
|
453
|
+
bool include_future_opening_businesses = 21
|
|
454
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
445
455
|
}
|
|
446
456
|
|
|
447
457
|
// Response proto for SearchText.
|
|
@@ -720,6 +730,11 @@ message AutocompletePlacesRequest {
|
|
|
720
730
|
// location related fields for these businesses.
|
|
721
731
|
bool include_pure_service_area_businesses = 12
|
|
722
732
|
[(google.api.field_behavior) = OPTIONAL];
|
|
733
|
+
|
|
734
|
+
// Optional. If true, include businesses that are not yet open but will open
|
|
735
|
+
// in the future.
|
|
736
|
+
bool include_future_opening_businesses = 13
|
|
737
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
723
738
|
}
|
|
724
739
|
|
|
725
740
|
// Response proto for AutocompletePlaces.
|