google-maps-isochrones-v1 0.a → 0.1.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,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/maps/isochrones/v1/version"
24
+
25
+ require "google/maps/isochrones/v1/isochrone_service/credentials"
26
+ require "google/maps/isochrones/v1/isochrone_service/paths"
27
+ require "google/maps/isochrones/v1/isochrone_service/client"
28
+ require "google/maps/isochrones/v1/isochrone_service/rest"
29
+
30
+ module Google
31
+ module Maps
32
+ module Isochrones
33
+ module V1
34
+ ##
35
+ # Service for calculating isochrones. An isochrone is an area of reachability
36
+ # from a given origin point within a specified travel time.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/maps/isochrones/v1/isochrone_service"
41
+ # client = ::Google::Maps::Isochrones::V1::IsochroneService::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/maps/isochrones/v1/isochrone_service/rest"
46
+ # client = ::Google::Maps::Isochrones::V1::IsochroneService::Rest::Client.new
47
+ #
48
+ module IsochroneService
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "isochrone_service", "helpers.rb"
56
+ require "google/maps/isochrones/v1/isochrone_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/maps/isochrones/v1/isochrones_service.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/protobuf/duration_pb'
12
+ require 'google/protobuf/struct_pb'
13
+ require 'google/type/latlng_pb'
14
+
15
+
16
+ descriptor_data = "\n2google/maps/isochrones/v1/isochrones_service.proto\x12\x19google.maps.isochrones.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x18google/type/latlng.proto\"\xab\x07\n\x18GenerateIsochroneRequest\x12\'\n\x08location\x18\x01 \x01(\x0b\x32\x13.google.type.LatLngH\x00\x12\x31\n\x05place\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1bplaces.googleapis.com/PlaceH\x00\x12\x37\n\x0ftravel_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12X\n\x0btravel_mode\x18\x04 \x01(\x0e\x32>.google.maps.isochrones.v1.GenerateIsochroneRequest.TravelModeB\x03\xe0\x41\x02\x12\x62\n\x10travel_direction\x18\x05 \x01(\x0e\x32\x43.google.maps.isochrones.v1.GenerateIsochroneRequest.TravelDirectionB\x03\xe0\x41\x02\x12\x66\n\x12routing_preference\x18\x06 \x01(\x0e\x32\x45.google.maps.isochrones.v1.GenerateIsochroneRequest.RoutingPreferenceB\x03\xe0\x41\x01\x12\x1d\n\x10\x65nable_smoothing\x18\x07 \x01(\x08\x42\x03\xe0\x41\x01\x12\x62\n\x10polygon_fidelity\x18\x08 \x01(\x0e\x32\x43.google.maps.isochrones.v1.GenerateIsochroneRequest.PolygonFidelityB\x03\xe0\x41\x01\"K\n\nTravelMode\x12\x1b\n\x17TRAVEL_MODE_UNSPECIFIED\x10\x00\x12\t\n\x05\x44RIVE\x10\x01\x12\x0b\n\x07\x42ICYCLE\x10\x02\x12\x08\n\x04WALK\x10\x03\"E\n\x0fTravelDirection\x12 \n\x1cTRAVEL_DIRECTION_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ROM\x10\x01\x12\x06\n\x02TO\x10\x02\"_\n\x11RoutingPreference\x12\"\n\x1eROUTING_PREFERENCE_UNSPECIFIED\x10\x00\x12\x13\n\x0fTRAFFIC_UNAWARE\x10\x01\x12\x11\n\rTRAFFIC_AWARE\x10\x02\"R\n\x0fPolygonFidelity\x12 \n\x1cPOLYGON_FIDELITY_UNSPECIFIED\x10\x00\x12\x07\n\x03LOW\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x08\n\x04HIGH\x10\x03\x42\x08\n\x06origin\"Y\n\x19GenerateIsochroneResponse\x12<\n\tisochrone\x18\x01 \x01(\x0b\x32$.google.maps.isochrones.v1.IsochroneB\x03\xe0\x41\x03\"I\n\tIsochrone\x12\x30\n\x08geo_json\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructB\x03\xe0\x41\x03H\x00\x42\n\n\x08geometry2\xc0\x02\n\x10IsochroneService\x12\xa2\x01\n\x11GenerateIsochrone\x12\x33.google.maps.isochrones.v1.GenerateIsochroneRequest\x1a\x34.google.maps.isochrones.v1.GenerateIsochroneResponse\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/v1/isochrones:generate:\x01*\x1a\x86\x01\xca\x41\x19isochrones.googleapis.com\xd2\x41ghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/maps-platform.isochronesB\x8f\x02\n\x1d\x63om.google.maps.isochrones.v1B\x16IsochronesServiceProtoP\x01ZCcloud.google.com/go/maps/isochrones/apiv1/isochronespb;isochronespb\xa2\x02\x04GMPI\xaa\x02\x19Google.Maps.Isochrones.V1\xca\x02\x19Google\\Maps\\Isochrones\\V1\xea\x02\x1cGoogle::Maps::Isochrones::V1\xea\x41\x30\n\x1bplaces.googleapis.com/Place\x12\x11places/{place_id}b\x06proto3"
17
+
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
20
+
21
+ module Google
22
+ module Maps
23
+ module Isochrones
24
+ module V1
25
+ GenerateIsochroneRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneRequest").msgclass
26
+ GenerateIsochroneRequest::TravelMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneRequest.TravelMode").enummodule
27
+ GenerateIsochroneRequest::TravelDirection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneRequest.TravelDirection").enummodule
28
+ GenerateIsochroneRequest::RoutingPreference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneRequest.RoutingPreference").enummodule
29
+ GenerateIsochroneRequest::PolygonFidelity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneRequest.PolygonFidelity").enummodule
30
+ GenerateIsochroneResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.GenerateIsochroneResponse").msgclass
31
+ Isochrone = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.maps.isochrones.v1.Isochrone").msgclass
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,46 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/maps/isochrones/v1/isochrones_service.proto for package 'Google.Maps.Isochrones.V1'
3
+ # Original file comments:
4
+ # Copyright 2026 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/maps/isochrones/v1/isochrones_service_pb'
21
+
22
+ module Google
23
+ module Maps
24
+ module Isochrones
25
+ module V1
26
+ module IsochroneService
27
+ # Service for calculating isochrones. An isochrone is an area of reachability
28
+ # from a given origin point within a specified travel time.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.maps.isochrones.v1.IsochroneService'
36
+
37
+ # Calculates and returns a single isochrone for a given set of parameters.
38
+ rpc :GenerateIsochrone, ::Google::Maps::Isochrones::V1::GenerateIsochroneRequest, ::Google::Maps::Isochrones::V1::GenerateIsochroneResponse
39
+ end
40
+
41
+ Stub = Service.rpc_stub_class
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/maps/isochrones/v1/isochrone_service/rest"
20
+ require "google/maps/isochrones/v1/version"
21
+
22
+ module Google
23
+ module Maps
24
+ module Isochrones
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/maps/isochrones/v1/rest"
31
+ # client = ::Google::Maps::Isochrones::V1::IsochroneService::Rest::Client.new
32
+ #
33
+ module V1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -1,10 +1,12 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright 2026 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
5
7
  # You may obtain a copy of the License at
6
8
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
9
+ # https://www.apache.org/licenses/LICENSE-2.0
8
10
  #
9
11
  # Unless required by applicable law or agreed to in writing, software
10
12
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -12,11 +14,14 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
15
20
  module Google
16
21
  module Maps
17
22
  module Isochrones
18
23
  module V1
19
- VERSION = "0.a"
24
+ VERSION = "0.1.0"
20
25
  end
21
26
  end
22
27
  end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/maps/isochrones/v1/isochrone_service"
20
+ require "google/maps/isochrones/v1/version"
21
+
22
+ module Google
23
+ module Maps
24
+ module Isochrones
25
+ ##
26
+ # API client module.
27
+ #
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
+ #
30
+ # require "google/maps/isochrones/v1"
31
+ # client = ::Google::Maps::Isochrones::V1::IsochroneService::Client.new
32
+ #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/maps/isochrones/v1"
36
+ # client = ::Google::Maps::Isochrones::V1::IsochroneService::Rest::Client.new
37
+ #
38
+ module V1
39
+ end
40
+ end
41
+ end
42
+ end
43
+
44
+ helper_path = ::File.join __dir__, "v1", "_helpers.rb"
45
+ require "google/maps/isochrones/v1/_helpers" if ::File.file? helper_path
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # This gem does not autoload during Bundler.require. To load this gem,
20
+ # issue explicit require statements for the packages desired, e.g.:
21
+ # require "google/maps/isochrones/v1"
@@ -0,0 +1,4 @@
1
+ # Isochrones V1 Protocol Buffer Documentation
2
+
3
+ These files are for the YARD documentation of the generated protobuf files.
4
+ They are not intended to be required or loaded at runtime.