@googlemaps/places 1.6.0 → 1.8.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,50 @@
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 csharp_namespace = "Google.Maps.Places.V1";
20
+ option go_package = "cloud.google.com/go/maps/places/apiv1/placespb;placespb";
21
+ option java_multiple_files = true;
22
+ option java_outer_classname = "TravelModeProto";
23
+ option java_package = "com.google.maps.places.v1";
24
+ option objc_class_prefix = "GMPSV1";
25
+ option php_namespace = "Google\\Maps\\Places\\V1";
26
+
27
+ // Travel mode options.
28
+ // These options map to what [Routes API
29
+ // offers](https://developers.google.com/maps/documentation/routes/reference/rest/v2/RouteTravelMode).
30
+ enum TravelMode {
31
+ // No travel mode specified. Defaults to `DRIVE`.
32
+ TRAVEL_MODE_UNSPECIFIED = 0;
33
+
34
+ // Travel by passenger car.
35
+ DRIVE = 1;
36
+
37
+ // Travel by bicycle. Not supported with `search_along_route_parameters`.
38
+ BICYCLE = 2;
39
+
40
+ // Travel by walking. Not supported with `search_along_route_parameters`.
41
+ WALK = 3;
42
+
43
+ // Motorized two wheeled vehicles of all kinds such as scooters and
44
+ // motorcycles. Note that this is distinct from the `BICYCLE` travel mode
45
+ // which covers human-powered transport. Not supported with
46
+ // `search_along_route_parameters`. Only supported in those countries listed
47
+ // at [Countries and regions supported for two-wheeled
48
+ // vehicles](https://developers.google.com/maps/documentation/routes/coverage-two-wheeled).
49
+ TWO_WHEELER = 4;
50
+ }