@googlemaps/places 1.5.0 → 1.7.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.
@@ -0,0 +1,54 @@
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/protobuf/duration.proto";
20
+
21
+ option cc_enable_arenas = true;
22
+ option csharp_namespace = "Google.Maps.Places.V1";
23
+ option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
24
+ option java_multiple_files = true;
25
+ option java_outer_classname = "RoutingSummaryProto";
26
+ option java_package = "com.google.maps.places.v1";
27
+ option objc_class_prefix = "GMPSV1";
28
+ option php_namespace = "Google\\Maps\\Places\\V1";
29
+
30
+ // The duration and distance from the routing origin to a place in the
31
+ // response, and a second leg from that place to the destination, if requested.
32
+ // Note: Adding `routingSummaries` in the field mask without also including
33
+ // either the `routingParameters.origin` parameter or the
34
+ // `searchAlongRouteParameters.polyline.encodedPolyline` parameter in the
35
+ // request causes an error.
36
+ message RoutingSummary {
37
+ // A leg is a single portion of a journey from one location to another.
38
+ message Leg {
39
+ // The time it takes to complete this leg of the trip.
40
+ google.protobuf.Duration duration = 1;
41
+
42
+ // The distance of this leg of the trip.
43
+ int32 distance_meters = 2;
44
+ }
45
+
46
+ // The legs of the trip.
47
+ //
48
+ // When you calculate travel duration and distance from a set origin, `legs`
49
+ // contains a single leg containing the duration and distance from the origin
50
+ // to the destination. When you do a search along route, `legs` contains two
51
+ // legs: one from the origin to place, and one from the place to the
52
+ // destination.
53
+ repeated Leg legs = 1;
54
+ }
@@ -0,0 +1,51 @@
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
+ option cc_enable_arenas = true;
20
+ option csharp_namespace = "Google.Maps.Places.V1";
21
+ option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
22
+ option java_multiple_files = true;
23
+ option java_outer_classname = "TravelModeProto";
24
+ option java_package = "com.google.maps.places.v1";
25
+ option objc_class_prefix = "GMPSV1";
26
+ option php_namespace = "Google\\Maps\\Places\\V1";
27
+
28
+ // Travel mode options.
29
+ // These options map to what [Routes API
30
+ // offers](https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteTravelMode).
31
+ enum TravelMode {
32
+ // No travel mode specified. Defaults to `DRIVE`.
33
+ TRAVEL_MODE_UNSPECIFIED = 0;
34
+
35
+ // Travel by passenger car.
36
+ DRIVE = 1;
37
+
38
+ // Travel by bicycle. Not supported with `search_along_route_parameters`.
39
+ BICYCLE = 2;
40
+
41
+ // Travel by walking. Not supported with `search_along_route_parameters`.
42
+ WALK = 3;
43
+
44
+ // Motorized two wheeled vehicles of all kinds such as scooters and
45
+ // motorcycles. Note that this is distinct from the `BICYCLE` travel mode
46
+ // which covers human-powered transport. Not supported with
47
+ // `search_along_route_parameters`. Only supported in those countries listed
48
+ // at [Countries and regions supported for two-wheeled
49
+ // vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled).
50
+ TWO_WHEELER = 4;
51
+ }