google-apis-places_v1 0.24.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31bf75d639681e105dd6e4cec8017e799cbe5acd00a4fd1d0438dcf51b45805e
4
- data.tar.gz: 5175ba147d8601604b5f40f700d26516f6c686cd6703a4b451219db34850452d
3
+ metadata.gz: 38df5b3a116cbe677c4fe69934ef3e575b65dd81d72dacc03475148c280b36b4
4
+ data.tar.gz: 0eb52e55967c99db5775c5d86cbe8bb2ff48515405df7e5adf658f52ae56661a
5
5
  SHA512:
6
- metadata.gz: 11b491779e06dbbc2a978f509ace3116de5a3ebe0b51d7736a78996f2f8fc8b4114d9dc70199ea5987fef9d2a643e7213456e9d55f59a16c5800de07d27e1b51
7
- data.tar.gz: d1fc3f9c548e8a15e5ad9e9908101c6a4363e52b6df66eb66f37d150c0f4cf57aae546f4de9c2436ec0b694f690f3030cebdbd8347e72d967ea6d86b1017801b
6
+ metadata.gz: da241d9ae89f1c0ac7543f0dfe50e10edb4757b5b10450451d2510c193085c7fd8537cb2ca5c7f71762c96a9c30a2c19d8f2ca9b065fc8649c680df7c3161153
7
+ data.tar.gz: 1ed7ebd36b6c18679232bd4ac2586d86d290fd614e3cf6df077bf96ed6ab51fb126a01c4e2831805e882476e8cb1f1f15404ffb13a252386be6d1c099762ad7a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-places_v1
2
2
 
3
+ ### v0.26.0 (2024-09-29)
4
+
5
+ * Regenerated from discovery document revision 20240920
6
+
7
+ ### v0.25.0 (2024-09-22)
8
+
9
+ * Regenerated from discovery document revision 20240918
10
+
3
11
  ### v0.24.0 (2024-09-01)
4
12
 
5
13
  * Regenerated from discovery document revision 20240825
@@ -1939,6 +1939,33 @@ module Google
1939
1939
  end
1940
1940
  end
1941
1941
 
1942
+ # A route polyline. Only supports an [encoded polyline](https://developers.
1943
+ # google.com/maps/documentation/utilities/polylinealgorithm), which can be
1944
+ # passed as a string and includes compression with minimal lossiness. This is
1945
+ # the Routes API default output.
1946
+ class GoogleMapsPlacesV1Polyline
1947
+ include Google::Apis::Core::Hashable
1948
+
1949
+ # An [encoded polyline](https://developers.google.com/maps/documentation/
1950
+ # utilities/polylinealgorithm), as returned by the [Routes API by default](https:
1951
+ # //developers.google.com/maps/documentation/routes/reference/rest/v2/TopLevel/
1952
+ # computeRoutes#polylineencoding). See the [encoder](https://developers.google.
1953
+ # com/maps/documentation/utilities/polylineutility) and [decoder](https://
1954
+ # developers.google.com/maps/documentation/routes/polylinedecoder) tools.
1955
+ # Corresponds to the JSON property `encodedPolyline`
1956
+ # @return [String]
1957
+ attr_accessor :encoded_polyline
1958
+
1959
+ def initialize(**args)
1960
+ update!(**args)
1961
+ end
1962
+
1963
+ # Update properties of this object
1964
+ def update!(**args)
1965
+ @encoded_polyline = args[:encoded_polyline] if args.key?(:encoded_polyline)
1966
+ end
1967
+ end
1968
+
1942
1969
  # Experimental: See https://developers.google.com/maps/documentation/places/web-
1943
1970
  # service/experimental/places-generative for more details. Reference that the
1944
1971
  # generative content is related to.
@@ -2025,6 +2052,154 @@ module Google
2025
2052
  end
2026
2053
  end
2027
2054
 
2055
+ # Encapsulates a set of optional conditions to satisfy when calculating the
2056
+ # routes.
2057
+ class GoogleMapsPlacesV1RouteModifiers
2058
+ include Google::Apis::Core::Hashable
2059
+
2060
+ # Optional. When set to true, avoids ferries where reasonable, giving preference
2061
+ # to routes not containing ferries. Applies only to the `DRIVE` and `TWO_WHEELER`
2062
+ # `TravelMode`.
2063
+ # Corresponds to the JSON property `avoidFerries`
2064
+ # @return [Boolean]
2065
+ attr_accessor :avoid_ferries
2066
+ alias_method :avoid_ferries?, :avoid_ferries
2067
+
2068
+ # Optional. When set to true, avoids highways where reasonable, giving
2069
+ # preference to routes not containing highways. Applies only to the `DRIVE` and `
2070
+ # TWO_WHEELER` `TravelMode`.
2071
+ # Corresponds to the JSON property `avoidHighways`
2072
+ # @return [Boolean]
2073
+ attr_accessor :avoid_highways
2074
+ alias_method :avoid_highways?, :avoid_highways
2075
+
2076
+ # Optional. When set to true, avoids navigating indoors where reasonable, giving
2077
+ # preference to routes not containing indoor navigation. Applies only to the `
2078
+ # WALK` `TravelMode`.
2079
+ # Corresponds to the JSON property `avoidIndoor`
2080
+ # @return [Boolean]
2081
+ attr_accessor :avoid_indoor
2082
+ alias_method :avoid_indoor?, :avoid_indoor
2083
+
2084
+ # Optional. When set to true, avoids toll roads where reasonable, giving
2085
+ # preference to routes not containing toll roads. Applies only to the `DRIVE`
2086
+ # and `TWO_WHEELER` `TravelMode`.
2087
+ # Corresponds to the JSON property `avoidTolls`
2088
+ # @return [Boolean]
2089
+ attr_accessor :avoid_tolls
2090
+ alias_method :avoid_tolls?, :avoid_tolls
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @avoid_ferries = args[:avoid_ferries] if args.key?(:avoid_ferries)
2099
+ @avoid_highways = args[:avoid_highways] if args.key?(:avoid_highways)
2100
+ @avoid_indoor = args[:avoid_indoor] if args.key?(:avoid_indoor)
2101
+ @avoid_tolls = args[:avoid_tolls] if args.key?(:avoid_tolls)
2102
+ end
2103
+ end
2104
+
2105
+ # Parameters to configure the routing calculations to the places in the response,
2106
+ # both along a route (where result ranking will be influenced) and for
2107
+ # calculating travel times on results.
2108
+ class GoogleMapsPlacesV1RoutingParameters
2109
+ include Google::Apis::Core::Hashable
2110
+
2111
+ # An object that represents a latitude/longitude pair. This is expressed as a
2112
+ # pair of doubles to represent degrees latitude and degrees longitude. Unless
2113
+ # specified otherwise, this object must conform to the WGS84 standard. Values
2114
+ # must be within normalized ranges.
2115
+ # Corresponds to the JSON property `origin`
2116
+ # @return [Google::Apis::PlacesV1::GoogleTypeLatLng]
2117
+ attr_accessor :origin
2118
+
2119
+ # Encapsulates a set of optional conditions to satisfy when calculating the
2120
+ # routes.
2121
+ # Corresponds to the JSON property `routeModifiers`
2122
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1RouteModifiers]
2123
+ attr_accessor :route_modifiers
2124
+
2125
+ # Optional. Specifies how to compute the routing summaries. The server attempts
2126
+ # to use the selected routing preference to compute the route. The traffic aware
2127
+ # routing preference is only available for the `DRIVE` or `TWO_WHEELER` `
2128
+ # travelMode`.
2129
+ # Corresponds to the JSON property `routingPreference`
2130
+ # @return [String]
2131
+ attr_accessor :routing_preference
2132
+
2133
+ # Optional. The travel mode.
2134
+ # Corresponds to the JSON property `travelMode`
2135
+ # @return [String]
2136
+ attr_accessor :travel_mode
2137
+
2138
+ def initialize(**args)
2139
+ update!(**args)
2140
+ end
2141
+
2142
+ # Update properties of this object
2143
+ def update!(**args)
2144
+ @origin = args[:origin] if args.key?(:origin)
2145
+ @route_modifiers = args[:route_modifiers] if args.key?(:route_modifiers)
2146
+ @routing_preference = args[:routing_preference] if args.key?(:routing_preference)
2147
+ @travel_mode = args[:travel_mode] if args.key?(:travel_mode)
2148
+ end
2149
+ end
2150
+
2151
+ # The duration and distance from the routing origin to a place in the response,
2152
+ # and a second leg from that place to the destination, if requested. **Note:**
2153
+ # Adding `routingSummaries` in the field mask without also including either the `
2154
+ # routingParameters.origin` parameter or the `searchAlongRouteParameters.
2155
+ # polyline.encodedPolyline` parameter in the request causes an error.
2156
+ class GoogleMapsPlacesV1RoutingSummary
2157
+ include Google::Apis::Core::Hashable
2158
+
2159
+ # The legs of the trip. When you calculate travel duration and distance from a
2160
+ # set origin, `legs` contains a single leg containing the duration and distance
2161
+ # from the origin to the destination. When you do a search along route, `legs`
2162
+ # contains two legs: one from the origin to place, and one from the place to the
2163
+ # destination.
2164
+ # Corresponds to the JSON property `legs`
2165
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummaryLeg>]
2166
+ attr_accessor :legs
2167
+
2168
+ def initialize(**args)
2169
+ update!(**args)
2170
+ end
2171
+
2172
+ # Update properties of this object
2173
+ def update!(**args)
2174
+ @legs = args[:legs] if args.key?(:legs)
2175
+ end
2176
+ end
2177
+
2178
+ # A leg is a single portion of a journey from one location to another.
2179
+ class GoogleMapsPlacesV1RoutingSummaryLeg
2180
+ include Google::Apis::Core::Hashable
2181
+
2182
+ # The distance of this leg of the trip.
2183
+ # Corresponds to the JSON property `distanceMeters`
2184
+ # @return [Fixnum]
2185
+ attr_accessor :distance_meters
2186
+
2187
+ # The time it takes to complete this leg of the trip.
2188
+ # Corresponds to the JSON property `duration`
2189
+ # @return [String]
2190
+ attr_accessor :duration
2191
+
2192
+ def initialize(**args)
2193
+ update!(**args)
2194
+ end
2195
+
2196
+ # Update properties of this object
2197
+ def update!(**args)
2198
+ @distance_meters = args[:distance_meters] if args.key?(:distance_meters)
2199
+ @duration = args[:duration] if args.key?(:duration)
2200
+ end
2201
+ end
2202
+
2028
2203
  # Request proto for Search Nearby.
2029
2204
  class GoogleMapsPlacesV1SearchNearbyRequest
2030
2205
  include Google::Apis::Core::Hashable
@@ -2130,6 +2305,13 @@ module Google
2130
2305
  # @return [String]
2131
2306
  attr_accessor :region_code
2132
2307
 
2308
+ # Parameters to configure the routing calculations to the places in the response,
2309
+ # both along a route (where result ranking will be influenced) and for
2310
+ # calculating travel times on results.
2311
+ # Corresponds to the JSON property `routingParameters`
2312
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters]
2313
+ attr_accessor :routing_parameters
2314
+
2133
2315
  def initialize(**args)
2134
2316
  update!(**args)
2135
2317
  end
@@ -2145,6 +2327,7 @@ module Google
2145
2327
  @max_result_count = args[:max_result_count] if args.key?(:max_result_count)
2146
2328
  @rank_preference = args[:rank_preference] if args.key?(:rank_preference)
2147
2329
  @region_code = args[:region_code] if args.key?(:region_code)
2330
+ @routing_parameters = args[:routing_parameters] if args.key?(:routing_parameters)
2148
2331
  end
2149
2332
  end
2150
2333
 
@@ -2177,6 +2360,14 @@ module Google
2177
2360
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>]
2178
2361
  attr_accessor :places
2179
2362
 
2363
+ # A list of routing summaries where each entry associates to the corresponding
2364
+ # place in the same index in the `places` field. If the routing summary is not
2365
+ # available for one of the places, it will contain an empty entry. This list
2366
+ # should have as many entries as the list of places if requested.
2367
+ # Corresponds to the JSON property `routingSummaries`
2368
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary>]
2369
+ attr_accessor :routing_summaries
2370
+
2180
2371
  def initialize(**args)
2181
2372
  update!(**args)
2182
2373
  end
@@ -2184,6 +2375,7 @@ module Google
2184
2375
  # Update properties of this object
2185
2376
  def update!(**args)
2186
2377
  @places = args[:places] if args.key?(:places)
2378
+ @routing_summaries = args[:routing_summaries] if args.key?(:routing_summaries)
2187
2379
  end
2188
2380
  end
2189
2381
 
@@ -2294,6 +2486,28 @@ module Google
2294
2486
  # @return [String]
2295
2487
  attr_accessor :region_code
2296
2488
 
2489
+ # Parameters to configure the routing calculations to the places in the response,
2490
+ # both along a route (where result ranking will be influenced) and for
2491
+ # calculating travel times on results.
2492
+ # Corresponds to the JSON property `routingParameters`
2493
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters]
2494
+ attr_accessor :routing_parameters
2495
+
2496
+ # Specifies a precalculated polyline from the [Routes API](https://developers.
2497
+ # google.com/maps/documentation/routes) defining the route to search. Searching
2498
+ # along a route is similar to using the `locationBias` or `locationRestriction`
2499
+ # request option to bias the search results. However, while the `locationBias`
2500
+ # and `locationRestriction` options let you specify a region to bias the search
2501
+ # results, this option lets you bias the results along a trip route. Results are
2502
+ # not guaranteed to be along the route provided, but rather are ranked within
2503
+ # the search area defined by the polyline and, optionally, by the `locationBias`
2504
+ # or `locationRestriction` based on minimal detour times from origin to
2505
+ # destination. The results might be along an alternate route, especially if the
2506
+ # provided polyline does not define an optimal route from origin to destination.
2507
+ # Corresponds to the JSON property `searchAlongRouteParameters`
2508
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters]
2509
+ attr_accessor :search_along_route_parameters
2510
+
2297
2511
  # Used to set strict type filtering for included_type. If set to true, only
2298
2512
  # results of the same type will be returned. Default to false.
2299
2513
  # Corresponds to the JSON property `strictTypeFiltering`
@@ -2325,6 +2539,8 @@ module Google
2325
2539
  @price_levels = args[:price_levels] if args.key?(:price_levels)
2326
2540
  @rank_preference = args[:rank_preference] if args.key?(:rank_preference)
2327
2541
  @region_code = args[:region_code] if args.key?(:region_code)
2542
+ @routing_parameters = args[:routing_parameters] if args.key?(:routing_parameters)
2543
+ @search_along_route_parameters = args[:search_along_route_parameters] if args.key?(:search_along_route_parameters)
2328
2544
  @strict_type_filtering = args[:strict_type_filtering] if args.key?(:strict_type_filtering)
2329
2545
  @text_query = args[:text_query] if args.key?(:text_query)
2330
2546
  end
@@ -2433,6 +2649,38 @@ module Google
2433
2649
  end
2434
2650
  end
2435
2651
 
2652
+ # Specifies a precalculated polyline from the [Routes API](https://developers.
2653
+ # google.com/maps/documentation/routes) defining the route to search. Searching
2654
+ # along a route is similar to using the `locationBias` or `locationRestriction`
2655
+ # request option to bias the search results. However, while the `locationBias`
2656
+ # and `locationRestriction` options let you specify a region to bias the search
2657
+ # results, this option lets you bias the results along a trip route. Results are
2658
+ # not guaranteed to be along the route provided, but rather are ranked within
2659
+ # the search area defined by the polyline and, optionally, by the `locationBias`
2660
+ # or `locationRestriction` based on minimal detour times from origin to
2661
+ # destination. The results might be along an alternate route, especially if the
2662
+ # provided polyline does not define an optimal route from origin to destination.
2663
+ class GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters
2664
+ include Google::Apis::Core::Hashable
2665
+
2666
+ # A route polyline. Only supports an [encoded polyline](https://developers.
2667
+ # google.com/maps/documentation/utilities/polylinealgorithm), which can be
2668
+ # passed as a string and includes compression with minimal lossiness. This is
2669
+ # the Routes API default output.
2670
+ # Corresponds to the JSON property `polyline`
2671
+ # @return [Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline]
2672
+ attr_accessor :polyline
2673
+
2674
+ def initialize(**args)
2675
+ update!(**args)
2676
+ end
2677
+
2678
+ # Update properties of this object
2679
+ def update!(**args)
2680
+ @polyline = args[:polyline] if args.key?(:polyline)
2681
+ end
2682
+ end
2683
+
2436
2684
  # Response proto for SearchText.
2437
2685
  class GoogleMapsPlacesV1SearchTextResponse
2438
2686
  include Google::Apis::Core::Hashable
@@ -2460,6 +2708,14 @@ module Google
2460
2708
  # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1Place>]
2461
2709
  attr_accessor :places
2462
2710
 
2711
+ # A list of routing summaries where each entry associates to the corresponding
2712
+ # place in the same index in the `places` field. If the routing summary is not
2713
+ # available for one of the places, it will contain an empty entry. This list
2714
+ # will have as many entries as the list of places if requested.
2715
+ # Corresponds to the JSON property `routingSummaries`
2716
+ # @return [Array<Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary>]
2717
+ attr_accessor :routing_summaries
2718
+
2463
2719
  def initialize(**args)
2464
2720
  update!(**args)
2465
2721
  end
@@ -2469,6 +2725,7 @@ module Google
2469
2725
  @contextual_contents = args[:contextual_contents] if args.key?(:contextual_contents)
2470
2726
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2471
2727
  @places = args[:places] if args.key?(:places)
2728
+ @routing_summaries = args[:routing_summaries] if args.key?(:routing_summaries)
2472
2729
  end
2473
2730
  end
2474
2731
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PlacesV1
18
18
  # Version of the google-apis-places_v1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.26.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240825"
25
+ REVISION = "20240920"
26
26
  end
27
27
  end
28
28
  end
@@ -262,6 +262,12 @@ module Google
262
262
  include Google::Apis::Core::JsonObjectSupport
263
263
  end
264
264
 
265
+ class GoogleMapsPlacesV1Polyline
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
265
271
  class GoogleMapsPlacesV1References
266
272
  class Representation < Google::Apis::Core::JsonRepresentation; end
267
273
 
@@ -274,6 +280,30 @@ module Google
274
280
  include Google::Apis::Core::JsonObjectSupport
275
281
  end
276
282
 
283
+ class GoogleMapsPlacesV1RouteModifiers
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class GoogleMapsPlacesV1RoutingParameters
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class GoogleMapsPlacesV1RoutingSummary
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
301
+ class GoogleMapsPlacesV1RoutingSummaryLeg
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
277
307
  class GoogleMapsPlacesV1SearchNearbyRequest
278
308
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
309
 
@@ -316,6 +346,12 @@ module Google
316
346
  include Google::Apis::Core::JsonObjectSupport
317
347
  end
318
348
 
349
+ class GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
319
355
  class GoogleMapsPlacesV1SearchTextResponse
320
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
321
357
 
@@ -831,6 +867,13 @@ module Google
831
867
  end
832
868
  end
833
869
 
870
+ class GoogleMapsPlacesV1Polyline
871
+ # @private
872
+ class Representation < Google::Apis::Core::JsonRepresentation
873
+ property :encoded_polyline, as: 'encodedPolyline'
874
+ end
875
+ end
876
+
834
877
  class GoogleMapsPlacesV1References
835
878
  # @private
836
879
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -856,6 +899,44 @@ module Google
856
899
  end
857
900
  end
858
901
 
902
+ class GoogleMapsPlacesV1RouteModifiers
903
+ # @private
904
+ class Representation < Google::Apis::Core::JsonRepresentation
905
+ property :avoid_ferries, as: 'avoidFerries'
906
+ property :avoid_highways, as: 'avoidHighways'
907
+ property :avoid_indoor, as: 'avoidIndoor'
908
+ property :avoid_tolls, as: 'avoidTolls'
909
+ end
910
+ end
911
+
912
+ class GoogleMapsPlacesV1RoutingParameters
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :origin, as: 'origin', class: Google::Apis::PlacesV1::GoogleTypeLatLng, decorator: Google::Apis::PlacesV1::GoogleTypeLatLng::Representation
916
+
917
+ property :route_modifiers, as: 'routeModifiers', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RouteModifiers, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RouteModifiers::Representation
918
+
919
+ property :routing_preference, as: 'routingPreference'
920
+ property :travel_mode, as: 'travelMode'
921
+ end
922
+ end
923
+
924
+ class GoogleMapsPlacesV1RoutingSummary
925
+ # @private
926
+ class Representation < Google::Apis::Core::JsonRepresentation
927
+ collection :legs, as: 'legs', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummaryLeg, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummaryLeg::Representation
928
+
929
+ end
930
+ end
931
+
932
+ class GoogleMapsPlacesV1RoutingSummaryLeg
933
+ # @private
934
+ class Representation < Google::Apis::Core::JsonRepresentation
935
+ property :distance_meters, as: 'distanceMeters'
936
+ property :duration, as: 'duration'
937
+ end
938
+ end
939
+
859
940
  class GoogleMapsPlacesV1SearchNearbyRequest
860
941
  # @private
861
942
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -869,6 +950,8 @@ module Google
869
950
  property :max_result_count, as: 'maxResultCount'
870
951
  property :rank_preference, as: 'rankPreference'
871
952
  property :region_code, as: 'regionCode'
953
+ property :routing_parameters, as: 'routingParameters', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters::Representation
954
+
872
955
  end
873
956
  end
874
957
 
@@ -885,6 +968,8 @@ module Google
885
968
  class Representation < Google::Apis::Core::JsonRepresentation
886
969
  collection :places, as: 'places', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
887
970
 
971
+ collection :routing_summaries, as: 'routingSummaries', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary::Representation
972
+
888
973
  end
889
974
  end
890
975
 
@@ -907,6 +992,10 @@ module Google
907
992
  collection :price_levels, as: 'priceLevels'
908
993
  property :rank_preference, as: 'rankPreference'
909
994
  property :region_code, as: 'regionCode'
995
+ property :routing_parameters, as: 'routingParameters', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingParameters::Representation
996
+
997
+ property :search_along_route_parameters, as: 'searchAlongRouteParameters', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters::Representation
998
+
910
999
  property :strict_type_filtering, as: 'strictTypeFiltering'
911
1000
  property :text_query, as: 'textQuery'
912
1001
  end
@@ -938,6 +1027,14 @@ module Google
938
1027
  end
939
1028
  end
940
1029
 
1030
+ class GoogleMapsPlacesV1SearchTextRequestSearchAlongRouteParameters
1031
+ # @private
1032
+ class Representation < Google::Apis::Core::JsonRepresentation
1033
+ property :polyline, as: 'polyline', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Polyline::Representation
1034
+
1035
+ end
1036
+ end
1037
+
941
1038
  class GoogleMapsPlacesV1SearchTextResponse
942
1039
  # @private
943
1040
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -946,6 +1043,8 @@ module Google
946
1043
  property :next_page_token, as: 'nextPageToken'
947
1044
  collection :places, as: 'places', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1Place::Representation
948
1045
 
1046
+ collection :routing_summaries, as: 'routingSummaries', class: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary, decorator: Google::Apis::PlacesV1::GoogleMapsPlacesV1RoutingSummary::Representation
1047
+
949
1048
  end
950
1049
  end
951
1050
 
@@ -41,6 +41,9 @@ module Google
41
41
  # Private Service: https://www.googleapis.com/auth/maps-platform.places.details
42
42
  AUTH_MAPS_PLATFORM_PLACES_DETAILS = 'https://www.googleapis.com/auth/maps-platform.places.details'
43
43
 
44
+ # Private Service: https://www.googleapis.com/auth/maps-platform.places.getphotomedia
45
+ AUTH_MAPS_PLATFORM_PLACES_GETPHOTOMEDIA = 'https://www.googleapis.com/auth/maps-platform.places.getphotomedia'
46
+
44
47
  # Private Service: https://www.googleapis.com/auth/maps-platform.places.nearbysearch
45
48
  AUTH_MAPS_PLATFORM_PLACES_NEARBYSEARCH = 'https://www.googleapis.com/auth/maps-platform.places.nearbysearch'
46
49
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-places_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-01 00:00:00.000000000 Z
11
+ date: 2024-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-places_v1/v0.26.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-places_v1
63
63
  post_install_message:
64
64
  rdoc_options: []