google-maps-api-sdk 1.0.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.
Files changed (127) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +169 -0
  4. data/bin/console +15 -0
  5. data/lib/google_maps_platform/api_helper.rb +10 -0
  6. data/lib/google_maps_platform/client.rb +123 -0
  7. data/lib/google_maps_platform/configuration.rb +181 -0
  8. data/lib/google_maps_platform/controllers/base_controller.rb +67 -0
  9. data/lib/google_maps_platform/controllers/directions_api_controller.rb +341 -0
  10. data/lib/google_maps_platform/controllers/distance_matrix_api_controller.rb +224 -0
  11. data/lib/google_maps_platform/controllers/elevation_api_controller.rb +71 -0
  12. data/lib/google_maps_platform/controllers/geocoding_api_controller.rb +214 -0
  13. data/lib/google_maps_platform/controllers/geolocation_api_controller.rb +46 -0
  14. data/lib/google_maps_platform/controllers/places_api_controller.rb +866 -0
  15. data/lib/google_maps_platform/controllers/roads_api_controller.rb +81 -0
  16. data/lib/google_maps_platform/controllers/street_view_api_controller.rb +198 -0
  17. data/lib/google_maps_platform/controllers/time_zone_api_controller.rb +65 -0
  18. data/lib/google_maps_platform/exceptions/api_exception.rb +21 -0
  19. data/lib/google_maps_platform/exceptions/error_response_exception.rb +48 -0
  20. data/lib/google_maps_platform/exceptions/nearest_roads_error_response_exception.rb +46 -0
  21. data/lib/google_maps_platform/http/api_response.rb +19 -0
  22. data/lib/google_maps_platform/http/auth/custom_query_authentication.rb +52 -0
  23. data/lib/google_maps_platform/http/http_call_back.rb +10 -0
  24. data/lib/google_maps_platform/http/http_method_enum.rb +10 -0
  25. data/lib/google_maps_platform/http/http_request.rb +10 -0
  26. data/lib/google_maps_platform/http/http_response.rb +10 -0
  27. data/lib/google_maps_platform/http/proxy_settings.rb +22 -0
  28. data/lib/google_maps_platform/logging/configuration/api_logging_configuration.rb +186 -0
  29. data/lib/google_maps_platform/logging/sdk_logger.rb +17 -0
  30. data/lib/google_maps_platform/models/address_component.rb +97 -0
  31. data/lib/google_maps_platform/models/base_model.rb +110 -0
  32. data/lib/google_maps_platform/models/bounds.rb +85 -0
  33. data/lib/google_maps_platform/models/business_status.rb +41 -0
  34. data/lib/google_maps_platform/models/cell_tower.rb +146 -0
  35. data/lib/google_maps_platform/models/directions_geocoded_waypoint.rb +181 -0
  36. data/lib/google_maps_platform/models/directions_leg.rb +224 -0
  37. data/lib/google_maps_platform/models/directions_polyline.rb +93 -0
  38. data/lib/google_maps_platform/models/directions_response.rb +185 -0
  39. data/lib/google_maps_platform/models/directions_route.rb +188 -0
  40. data/lib/google_maps_platform/models/directions_status.rb +94 -0
  41. data/lib/google_maps_platform/models/directions_step.rb +216 -0
  42. data/lib/google_maps_platform/models/directions_traffic_speed_entry.rb +84 -0
  43. data/lib/google_maps_platform/models/directions_transit_agency.rb +95 -0
  44. data/lib/google_maps_platform/models/directions_transit_details.rb +176 -0
  45. data/lib/google_maps_platform/models/directions_transit_line.rb +152 -0
  46. data/lib/google_maps_platform/models/directions_transit_stop.rb +83 -0
  47. data/lib/google_maps_platform/models/directions_transit_vehicle.rb +126 -0
  48. data/lib/google_maps_platform/models/directions_via_waypoint.rb +99 -0
  49. data/lib/google_maps_platform/models/distance_matrix_element.rb +132 -0
  50. data/lib/google_maps_platform/models/distance_matrix_element_status.rb +48 -0
  51. data/lib/google_maps_platform/models/distance_matrix_response.rb +149 -0
  52. data/lib/google_maps_platform/models/distance_matrix_row.rb +89 -0
  53. data/lib/google_maps_platform/models/distance_matrix_status.rb +74 -0
  54. data/lib/google_maps_platform/models/elevation_response.rb +132 -0
  55. data/lib/google_maps_platform/models/elevation_result.rb +99 -0
  56. data/lib/google_maps_platform/models/elevation_status.rb +65 -0
  57. data/lib/google_maps_platform/models/error_detail.rb +135 -0
  58. data/lib/google_maps_platform/models/error_object.rb +130 -0
  59. data/lib/google_maps_platform/models/fare.rb +92 -0
  60. data/lib/google_maps_platform/models/field_violation.rb +82 -0
  61. data/lib/google_maps_platform/models/geocoder_status.rb +37 -0
  62. data/lib/google_maps_platform/models/geocoding_geometry.rb +117 -0
  63. data/lib/google_maps_platform/models/geocoding_response.rb +140 -0
  64. data/lib/google_maps_platform/models/geocoding_result.rb +174 -0
  65. data/lib/google_maps_platform/models/geocoding_status.rb +71 -0
  66. data/lib/google_maps_platform/models/geolocation_request.rb +166 -0
  67. data/lib/google_maps_platform/models/geolocation_response.rb +91 -0
  68. data/lib/google_maps_platform/models/geometry.rb +84 -0
  69. data/lib/google_maps_platform/models/inputtype.rb +36 -0
  70. data/lib/google_maps_platform/models/language.rb +240 -0
  71. data/lib/google_maps_platform/models/lat_lng_literal.rb +83 -0
  72. data/lib/google_maps_platform/models/latitude_longitude_literal.rb +83 -0
  73. data/lib/google_maps_platform/models/location_type.rb +54 -0
  74. data/lib/google_maps_platform/models/location_type1.rb +44 -0
  75. data/lib/google_maps_platform/models/maneuver.rb +110 -0
  76. data/lib/google_maps_platform/models/maps_api_elevation_json_response.rb +132 -0
  77. data/lib/google_maps_platform/models/maxprice.rb +48 -0
  78. data/lib/google_maps_platform/models/minprice.rb +48 -0
  79. data/lib/google_maps_platform/models/mode.rb +44 -0
  80. data/lib/google_maps_platform/models/nearest_roads_error.rb +90 -0
  81. data/lib/google_maps_platform/models/nearest_roads_response.rb +86 -0
  82. data/lib/google_maps_platform/models/place.rb +647 -0
  83. data/lib/google_maps_platform/models/place_autocomplete_matched_substring.rb +82 -0
  84. data/lib/google_maps_platform/models/place_autocomplete_prediction.rb +181 -0
  85. data/lib/google_maps_platform/models/place_autocomplete_structured_format.rb +136 -0
  86. data/lib/google_maps_platform/models/place_autocomplete_term.rb +83 -0
  87. data/lib/google_maps_platform/models/place_editorial_summary.rb +87 -0
  88. data/lib/google_maps_platform/models/place_opening_hours.rb +138 -0
  89. data/lib/google_maps_platform/models/place_opening_hours_period.rb +84 -0
  90. data/lib/google_maps_platform/models/place_opening_hours_period_detail.rb +108 -0
  91. data/lib/google_maps_platform/models/place_photo.rb +109 -0
  92. data/lib/google_maps_platform/models/place_review.rb +186 -0
  93. data/lib/google_maps_platform/models/place_special_day.rb +93 -0
  94. data/lib/google_maps_platform/models/places_autocomplete_response.rb +141 -0
  95. data/lib/google_maps_platform/models/places_autocomplete_status.rb +66 -0
  96. data/lib/google_maps_platform/models/places_details_response.rb +131 -0
  97. data/lib/google_maps_platform/models/places_details_status.rb +71 -0
  98. data/lib/google_maps_platform/models/places_find_place_from_text_response.rb +145 -0
  99. data/lib/google_maps_platform/models/places_nearby_search_response.rb +171 -0
  100. data/lib/google_maps_platform/models/places_query_autocomplete_response.rb +141 -0
  101. data/lib/google_maps_platform/models/places_search_status.rb +66 -0
  102. data/lib/google_maps_platform/models/places_text_search_response.rb +171 -0
  103. data/lib/google_maps_platform/models/plus_code.rb +92 -0
  104. data/lib/google_maps_platform/models/rankby.rb +36 -0
  105. data/lib/google_maps_platform/models/region.rb +1052 -0
  106. data/lib/google_maps_platform/models/result.rb +96 -0
  107. data/lib/google_maps_platform/models/result_type.rb +112 -0
  108. data/lib/google_maps_platform/models/snap_to_roads_response.rb +96 -0
  109. data/lib/google_maps_platform/models/snapped_point.rb +103 -0
  110. data/lib/google_maps_platform/models/source.rb +36 -0
  111. data/lib/google_maps_platform/models/street_view_response.rb +135 -0
  112. data/lib/google_maps_platform/models/street_view_status.rb +71 -0
  113. data/lib/google_maps_platform/models/text_value_object.rb +82 -0
  114. data/lib/google_maps_platform/models/time_zone_response.rb +154 -0
  115. data/lib/google_maps_platform/models/time_zone_status.rb +68 -0
  116. data/lib/google_maps_platform/models/time_zone_text_value_object.rb +94 -0
  117. data/lib/google_maps_platform/models/traffic_model.rb +40 -0
  118. data/lib/google_maps_platform/models/transit_routing_preference.rb +36 -0
  119. data/lib/google_maps_platform/models/travel_mode.rb +48 -0
  120. data/lib/google_maps_platform/models/type.rb +140 -0
  121. data/lib/google_maps_platform/models/type1.rb +112 -0
  122. data/lib/google_maps_platform/models/units.rb +36 -0
  123. data/lib/google_maps_platform/models/wi_fi_access_point.rb +119 -0
  124. data/lib/google_maps_platform/utilities/date_time_helper.rb +11 -0
  125. data/lib/google_maps_platform/utilities/file_wrapper.rb +28 -0
  126. data/lib/google_maps_platform.rb +154 -0
  127. metadata +210 -0
@@ -0,0 +1,112 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ module GoogleMapsPlatform
7
+ # The type of vehicle used. * `BUS` - Bus. * `CABLE_CAR` - A vehicle that
8
+ # operates on a cable, usually on the ground. Aerial cable cars may be of the
9
+ # type GONDOLA_LIFT. * `COMMUTER_TRAIN` - Commuter rail. * `FERRY` - Ferry. *
10
+ # `FUNICULAR` - A vehicle that is pulled up a steep incline by a cable. A
11
+ # Funicular typically consists of two cars, with each car acting as a
12
+ # counterweight for the other. * `GONDOLA_LIFT` - An aerial cable car. *
13
+ # `HEAVY_RAIL` - Heavy rail. * `HIGH_SPEED_TRAIN` - High speed train. *
14
+ # `INTERCITY_BUS` - Intercity bus. * `LONG_DISTANCE_TRAIN` - Long distance
15
+ # train. * `METRO_RAIL` - Light rail transit. * `MONORAIL` - Monorail. *
16
+ # `OTHER` - All other vehicles will return this type. * `RAIL` - Rail. *
17
+ # `SHARE_TAXI` - Share taxi is a kind of bus with the ability to drop off and
18
+ # pick up passengers anywhere on its route. * `SUBWAY` - Underground light
19
+ # rail. * `TRAM` - Above ground light rail. * `TROLLEYBUS` - Trolleybus.
20
+ class Type1
21
+ TYPE1 = [
22
+ # TODO: Write general description for BUS
23
+ BUS = 'BUS'.freeze,
24
+
25
+ # TODO: Write general description for CABLE_CAR
26
+ CABLE_CAR = 'CABLE_CAR'.freeze,
27
+
28
+ # TODO: Write general description for COMMUTER_TRAIN
29
+ COMMUTER_TRAIN = 'COMMUTER_TRAIN'.freeze,
30
+
31
+ # TODO: Write general description for FERRY
32
+ FERRY = 'FERRY'.freeze,
33
+
34
+ # TODO: Write general description for FUNICULAR
35
+ FUNICULAR = 'FUNICULAR'.freeze,
36
+
37
+ # TODO: Write general description for GONDOLA_LIFT
38
+ GONDOLA_LIFT = 'GONDOLA_LIFT'.freeze,
39
+
40
+ # TODO: Write general description for HEAVY_RAIL
41
+ HEAVY_RAIL = 'HEAVY_RAIL'.freeze,
42
+
43
+ # TODO: Write general description for HIGH_SPEED_TRAIN
44
+ HIGH_SPEED_TRAIN = 'HIGH_SPEED_TRAIN'.freeze,
45
+
46
+ # TODO: Write general description for INTERCITY_BUS
47
+ INTERCITY_BUS = 'INTERCITY_BUS'.freeze,
48
+
49
+ # TODO: Write general description for LONG_DISTANCE_TRAIN
50
+ LONG_DISTANCE_TRAIN = 'LONG_DISTANCE_TRAIN'.freeze,
51
+
52
+ # TODO: Write general description for METRO_RAIL
53
+ METRO_RAIL = 'METRO_RAIL'.freeze,
54
+
55
+ # TODO: Write general description for MONORAIL
56
+ MONORAIL = 'MONORAIL'.freeze,
57
+
58
+ # TODO: Write general description for OTHER
59
+ OTHER = 'OTHER'.freeze,
60
+
61
+ # TODO: Write general description for RAIL
62
+ RAIL = 'RAIL'.freeze,
63
+
64
+ # TODO: Write general description for SHARE_TAXI
65
+ SHARE_TAXI = 'SHARE_TAXI'.freeze,
66
+
67
+ # TODO: Write general description for SUBWAY
68
+ SUBWAY = 'SUBWAY'.freeze,
69
+
70
+ # TODO: Write general description for TRAM
71
+ TRAM = 'TRAM'.freeze,
72
+
73
+ # TODO: Write general description for TROLLEYBUS
74
+ TROLLEYBUS = 'TROLLEYBUS'.freeze
75
+ ].freeze
76
+
77
+ def self.validate(value)
78
+ return false if value.nil?
79
+
80
+ TYPE1.include?(value)
81
+ end
82
+
83
+ def self.from_value(value, default_value = BUS)
84
+ return default_value if value.nil?
85
+
86
+ str = value.to_s.strip
87
+
88
+ case str.downcase
89
+ when 'bus' then BUS
90
+ when 'cable_car' then CABLE_CAR
91
+ when 'commuter_train' then COMMUTER_TRAIN
92
+ when 'ferry' then FERRY
93
+ when 'funicular' then FUNICULAR
94
+ when 'gondola_lift' then GONDOLA_LIFT
95
+ when 'heavy_rail' then HEAVY_RAIL
96
+ when 'high_speed_train' then HIGH_SPEED_TRAIN
97
+ when 'intercity_bus' then INTERCITY_BUS
98
+ when 'long_distance_train' then LONG_DISTANCE_TRAIN
99
+ when 'metro_rail' then METRO_RAIL
100
+ when 'monorail' then MONORAIL
101
+ when 'other' then OTHER
102
+ when 'rail' then RAIL
103
+ when 'share_taxi' then SHARE_TAXI
104
+ when 'subway' then SUBWAY
105
+ when 'tram' then TRAM
106
+ when 'trolleybus' then TROLLEYBUS
107
+ else
108
+ default_value
109
+ end
110
+ end
111
+ end
112
+ end
@@ -0,0 +1,36 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ module GoogleMapsPlatform
7
+ # units.
8
+ class Units
9
+ UNITS = [
10
+ # TODO: Write general description for IMPERIAL
11
+ IMPERIAL = 'imperial'.freeze,
12
+
13
+ # TODO: Write general description for METRIC
14
+ METRIC = 'metric'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ UNITS.include?(value)
21
+ end
22
+
23
+ def self.from_value(value, default_value = IMPERIAL)
24
+ return default_value if value.nil?
25
+
26
+ str = value.to_s.strip
27
+
28
+ case str.downcase
29
+ when 'imperial' then IMPERIAL
30
+ when 'metric' then METRIC
31
+ else
32
+ default_value
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,119 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ module GoogleMapsPlatform
7
+ # Attributes used to describe a WiFi access point.
8
+ class WiFiAccessPoint < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The MAC address of the WiFi node. It's typically called a BSS, BSSID or
13
+ # MAC address. Separators must be `:` (colon).
14
+ # @return [String]
15
+ attr_accessor :mac_address
16
+
17
+ # The current signal strength measured in dBm.
18
+ # @return [Integer]
19
+ attr_accessor :signal_strength
20
+
21
+ # The current signal to noise ratio measured in dB.
22
+ # @return [Integer]
23
+ attr_accessor :signal_to_noise_ratio
24
+
25
+ # The number of milliseconds since this access point was detected.
26
+ # @return [Integer]
27
+ attr_accessor :age
28
+
29
+ # The channel over which the client is communication with the access point.
30
+ # @return [Integer]
31
+ attr_accessor :channel
32
+
33
+ # A mapping from model property names to API property names.
34
+ def self.names
35
+ @_hash = {} if @_hash.nil?
36
+ @_hash['mac_address'] = 'macAddress'
37
+ @_hash['signal_strength'] = 'signalStrength'
38
+ @_hash['signal_to_noise_ratio'] = 'signalToNoiseRatio'
39
+ @_hash['age'] = 'age'
40
+ @_hash['channel'] = 'channel'
41
+ @_hash
42
+ end
43
+
44
+ # An array for optional fields
45
+ def self.optionals
46
+ %w[
47
+ signal_strength
48
+ signal_to_noise_ratio
49
+ age
50
+ channel
51
+ ]
52
+ end
53
+
54
+ # An array for nullable fields
55
+ def self.nullables
56
+ []
57
+ end
58
+
59
+ def initialize(mac_address:, signal_strength: SKIP,
60
+ signal_to_noise_ratio: SKIP, age: SKIP, channel: SKIP,
61
+ additional_properties: nil)
62
+ # Add additional model properties to the instance
63
+ additional_properties = {} if additional_properties.nil?
64
+
65
+ @mac_address = mac_address
66
+ @signal_strength = signal_strength unless signal_strength == SKIP
67
+ @signal_to_noise_ratio = signal_to_noise_ratio unless signal_to_noise_ratio == SKIP
68
+ @age = age unless age == SKIP
69
+ @channel = channel unless channel == SKIP
70
+ @additional_properties = additional_properties
71
+ end
72
+
73
+ # Creates an instance of the object from a hash.
74
+ def self.from_hash(hash)
75
+ return nil unless hash
76
+
77
+ # Extract variables from the hash.
78
+ mac_address = hash.key?('macAddress') ? hash['macAddress'] : nil
79
+ signal_strength =
80
+ hash.key?('signalStrength') ? hash['signalStrength'] : SKIP
81
+ signal_to_noise_ratio =
82
+ hash.key?('signalToNoiseRatio') ? hash['signalToNoiseRatio'] : SKIP
83
+ age = hash.key?('age') ? hash['age'] : SKIP
84
+ channel = hash.key?('channel') ? hash['channel'] : SKIP
85
+
86
+ # Create a new hash for additional properties, removing known properties.
87
+ new_hash = hash.reject { |k, _| names.value?(k) }
88
+
89
+ additional_properties = APIHelper.get_additional_properties(
90
+ new_hash, proc { |value| value }
91
+ )
92
+
93
+ # Create object from extracted values.
94
+ WiFiAccessPoint.new(mac_address: mac_address,
95
+ signal_strength: signal_strength,
96
+ signal_to_noise_ratio: signal_to_noise_ratio,
97
+ age: age,
98
+ channel: channel,
99
+ additional_properties: additional_properties)
100
+ end
101
+
102
+ # Provides a human-readable string representation of the object.
103
+ def to_s
104
+ class_name = self.class.name.split('::').last
105
+ "<#{class_name} mac_address: #{@mac_address}, signal_strength: #{@signal_strength},"\
106
+ " signal_to_noise_ratio: #{@signal_to_noise_ratio}, age: #{@age}, channel: #{@channel},"\
107
+ " additional_properties: #{@additional_properties}>"
108
+ end
109
+
110
+ # Provides a debugging-friendly string with detailed object information.
111
+ def inspect
112
+ class_name = self.class.name.split('::').last
113
+ "<#{class_name} mac_address: #{@mac_address.inspect}, signal_strength:"\
114
+ " #{@signal_strength.inspect}, signal_to_noise_ratio: #{@signal_to_noise_ratio.inspect},"\
115
+ " age: #{@age.inspect}, channel: #{@channel.inspect}, additional_properties:"\
116
+ " #{@additional_properties}>"
117
+ end
118
+ end
119
+ end
@@ -0,0 +1,11 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module GoogleMapsPlatform
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ module GoogleMapsPlatform
7
+ # A utility to allow users to set the content-type for files
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,154 @@
1
+ # google_maps_platform
2
+ #
3
+ # This file was automatically generated by APIMATIC
4
+ # v3.0 ( https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'google_maps_platform/api_helper'
14
+ require_relative 'google_maps_platform/client'
15
+
16
+ # Utilities
17
+ require_relative 'google_maps_platform/utilities/file_wrapper'
18
+ require_relative 'google_maps_platform/utilities/date_time_helper'
19
+
20
+ # Http
21
+ require_relative 'google_maps_platform/http/api_response'
22
+ require_relative 'google_maps_platform/http/http_call_back'
23
+ require_relative 'google_maps_platform/http/http_method_enum'
24
+ require_relative 'google_maps_platform/http/http_request'
25
+ require_relative 'google_maps_platform/http/http_response'
26
+ require_relative 'google_maps_platform/http/proxy_settings'
27
+
28
+
29
+ # Logger
30
+ require_relative 'google_maps_platform/logging/configuration/' \
31
+ 'api_logging_configuration'
32
+ require_relative 'google_maps_platform/logging/sdk_logger'
33
+ require_relative 'google_maps_platform/http/auth/custom_query_authentication'
34
+
35
+ # Models
36
+ require_relative 'google_maps_platform/models/base_model'
37
+ require_relative 'google_maps_platform/models/bounds'
38
+ require_relative 'google_maps_platform/models/lat_lng_literal'
39
+ require_relative 'google_maps_platform/models/latitude_longitude_literal'
40
+ require_relative 'google_maps_platform/models/address_component'
41
+ require_relative 'google_maps_platform/models/fare'
42
+ require_relative 'google_maps_platform/models/geometry'
43
+ require_relative 'google_maps_platform/models/plus_code'
44
+ require_relative 'google_maps_platform/models/text_value_object'
45
+ require_relative 'google_maps_platform/models/time_zone_text_value_object'
46
+ require_relative 'google_maps_platform/models/distance_matrix_response'
47
+ require_relative 'google_maps_platform/models/distance_matrix_row'
48
+ require_relative 'google_maps_platform/models/distance_matrix_element'
49
+ require_relative 'google_maps_platform/models/directions_response'
50
+ require_relative 'google_maps_platform/models/directions_step'
51
+ require_relative 'google_maps_platform/models/directions_leg'
52
+ require_relative 'google_maps_platform/models/directions_route'
53
+ require_relative 'google_maps_platform/models/directions_geocoded_waypoint'
54
+ require_relative 'google_maps_platform/models/directions_polyline'
55
+ require_relative 'google_maps_platform/models/directions_traffic_speed_entry'
56
+ require_relative 'google_maps_platform/models/directions_transit_agency'
57
+ require_relative 'google_maps_platform/models/directions_transit_details'
58
+ require_relative 'google_maps_platform/models/directions_transit_line'
59
+ require_relative 'google_maps_platform/models/directions_transit_stop'
60
+ require_relative 'google_maps_platform/models/directions_transit_vehicle'
61
+ require_relative 'google_maps_platform/models/directions_via_waypoint'
62
+ require_relative 'google_maps_platform/models/elevation_result'
63
+ require_relative 'google_maps_platform/models/elevation_response'
64
+ require_relative 'google_maps_platform/models/geocoding_result'
65
+ require_relative 'google_maps_platform/models/geocoding_response'
66
+ require_relative 'google_maps_platform/models/geocoding_geometry'
67
+ require_relative 'google_maps_platform/models/geolocation_request'
68
+ require_relative 'google_maps_platform/models/geolocation_response'
69
+ require_relative 'google_maps_platform/models/cell_tower'
70
+ require_relative 'google_maps_platform/models/wi_fi_access_point'
71
+ require_relative 'google_maps_platform/models/nearest_roads_error'
72
+ require_relative 'google_maps_platform/models/nearest_roads_response'
73
+ require_relative 'google_maps_platform/models/snapped_point'
74
+ require_relative 'google_maps_platform/models/snap_to_roads_response'
75
+ require_relative 'google_maps_platform/models/time_zone_response'
76
+ require_relative 'google_maps_platform/models/error_object'
77
+ require_relative 'google_maps_platform/models/error_detail'
78
+ require_relative 'google_maps_platform/models/field_violation'
79
+ require_relative 'google_maps_platform/models/place'
80
+ require_relative 'google_maps_platform/models/' \
81
+ 'place_autocomplete_matched_substring'
82
+ require_relative 'google_maps_platform/models/place_autocomplete_prediction'
83
+ require_relative 'google_maps_platform/models/' \
84
+ 'place_autocomplete_structured_format'
85
+ require_relative 'google_maps_platform/models/place_autocomplete_term'
86
+ require_relative 'google_maps_platform/models/place_editorial_summary'
87
+ require_relative 'google_maps_platform/models/place_photo'
88
+ require_relative 'google_maps_platform/models/place_opening_hours'
89
+ require_relative 'google_maps_platform/models/place_opening_hours_period'
90
+ require_relative 'google_maps_platform/models/place_opening_hours_period_detail'
91
+ require_relative 'google_maps_platform/models/place_review'
92
+ require_relative 'google_maps_platform/models/place_special_day'
93
+ require_relative 'google_maps_platform/models/places_autocomplete_response'
94
+ require_relative 'google_maps_platform/models/places_details_response'
95
+ require_relative 'google_maps_platform/models/' \
96
+ 'places_find_place_from_text_response'
97
+ require_relative 'google_maps_platform/models/places_nearby_search_response'
98
+ require_relative 'google_maps_platform/models/' \
99
+ 'places_query_autocomplete_response'
100
+ require_relative 'google_maps_platform/models/places_text_search_response'
101
+ require_relative 'google_maps_platform/models/street_view_response'
102
+ require_relative 'google_maps_platform/models/maps_api_elevation_json_response'
103
+ require_relative 'google_maps_platform/models/result'
104
+ require_relative 'google_maps_platform/models/travel_mode'
105
+ require_relative 'google_maps_platform/models/distance_matrix_element_status'
106
+ require_relative 'google_maps_platform/models/distance_matrix_status'
107
+ require_relative 'google_maps_platform/models/directions_status'
108
+ require_relative 'google_maps_platform/models/elevation_status'
109
+ require_relative 'google_maps_platform/models/geocoding_status'
110
+ require_relative 'google_maps_platform/models/time_zone_status'
111
+ require_relative 'google_maps_platform/models/places_autocomplete_status'
112
+ require_relative 'google_maps_platform/models/places_details_status'
113
+ require_relative 'google_maps_platform/models/places_search_status'
114
+ require_relative 'google_maps_platform/models/street_view_status'
115
+ require_relative 'google_maps_platform/models/business_status'
116
+ require_relative 'google_maps_platform/models/geocoder_status'
117
+ require_relative 'google_maps_platform/models/inputtype'
118
+ require_relative 'google_maps_platform/models/language'
119
+ require_relative 'google_maps_platform/models/location_type1'
120
+ require_relative 'google_maps_platform/models/location_type'
121
+ require_relative 'google_maps_platform/models/maneuver'
122
+ require_relative 'google_maps_platform/models/maxprice'
123
+ require_relative 'google_maps_platform/models/minprice'
124
+ require_relative 'google_maps_platform/models/mode'
125
+ require_relative 'google_maps_platform/models/rankby'
126
+ require_relative 'google_maps_platform/models/region'
127
+ require_relative 'google_maps_platform/models/result_type'
128
+ require_relative 'google_maps_platform/models/source'
129
+ require_relative 'google_maps_platform/models/traffic_model'
130
+ require_relative 'google_maps_platform/models/transit_routing_preference'
131
+ require_relative 'google_maps_platform/models/type'
132
+ require_relative 'google_maps_platform/models/type1'
133
+ require_relative 'google_maps_platform/models/units'
134
+
135
+ # Exceptions
136
+ require_relative 'google_maps_platform/exceptions/api_exception'
137
+ require_relative 'google_maps_platform/exceptions/' \
138
+ 'nearest_roads_error_response_exception'
139
+ require_relative 'google_maps_platform/exceptions/error_response_exception'
140
+
141
+ require_relative 'google_maps_platform/configuration'
142
+
143
+ # Controllers
144
+ require_relative 'google_maps_platform/controllers/base_controller'
145
+ require_relative 'google_maps_platform/controllers/geolocation_api_controller'
146
+ require_relative 'google_maps_platform/controllers/directions_api_controller'
147
+ require_relative 'google_maps_platform/controllers/elevation_api_controller'
148
+ require_relative 'google_maps_platform/controllers/geocoding_api_controller'
149
+ require_relative 'google_maps_platform/controllers/time_zone_api_controller'
150
+ require_relative 'google_maps_platform/controllers/roads_api_controller'
151
+ require_relative 'google_maps_platform/controllers/' \
152
+ 'distance_matrix_api_controller'
153
+ require_relative 'google_maps_platform/controllers/places_api_controller'
154
+ require_relative 'google_maps_platform/controllers/street_view_api_controller'
metadata ADDED
@@ -0,0 +1,210 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-maps-api-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Google developers
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-02-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: apimatic_core_interfaces
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: apimatic_core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.20
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.20
41
+ - !ruby/object:Gem::Dependency
42
+ name: apimatic_faraday_client_adapter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.6
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.6
55
+ description: Google Maps API
56
+ email:
57
+ - sohail.shahbaz@apimatic.io
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - bin/console
65
+ - lib/google_maps_platform.rb
66
+ - lib/google_maps_platform/api_helper.rb
67
+ - lib/google_maps_platform/client.rb
68
+ - lib/google_maps_platform/configuration.rb
69
+ - lib/google_maps_platform/controllers/base_controller.rb
70
+ - lib/google_maps_platform/controllers/directions_api_controller.rb
71
+ - lib/google_maps_platform/controllers/distance_matrix_api_controller.rb
72
+ - lib/google_maps_platform/controllers/elevation_api_controller.rb
73
+ - lib/google_maps_platform/controllers/geocoding_api_controller.rb
74
+ - lib/google_maps_platform/controllers/geolocation_api_controller.rb
75
+ - lib/google_maps_platform/controllers/places_api_controller.rb
76
+ - lib/google_maps_platform/controllers/roads_api_controller.rb
77
+ - lib/google_maps_platform/controllers/street_view_api_controller.rb
78
+ - lib/google_maps_platform/controllers/time_zone_api_controller.rb
79
+ - lib/google_maps_platform/exceptions/api_exception.rb
80
+ - lib/google_maps_platform/exceptions/error_response_exception.rb
81
+ - lib/google_maps_platform/exceptions/nearest_roads_error_response_exception.rb
82
+ - lib/google_maps_platform/http/api_response.rb
83
+ - lib/google_maps_platform/http/auth/custom_query_authentication.rb
84
+ - lib/google_maps_platform/http/http_call_back.rb
85
+ - lib/google_maps_platform/http/http_method_enum.rb
86
+ - lib/google_maps_platform/http/http_request.rb
87
+ - lib/google_maps_platform/http/http_response.rb
88
+ - lib/google_maps_platform/http/proxy_settings.rb
89
+ - lib/google_maps_platform/logging/configuration/api_logging_configuration.rb
90
+ - lib/google_maps_platform/logging/sdk_logger.rb
91
+ - lib/google_maps_platform/models/address_component.rb
92
+ - lib/google_maps_platform/models/base_model.rb
93
+ - lib/google_maps_platform/models/bounds.rb
94
+ - lib/google_maps_platform/models/business_status.rb
95
+ - lib/google_maps_platform/models/cell_tower.rb
96
+ - lib/google_maps_platform/models/directions_geocoded_waypoint.rb
97
+ - lib/google_maps_platform/models/directions_leg.rb
98
+ - lib/google_maps_platform/models/directions_polyline.rb
99
+ - lib/google_maps_platform/models/directions_response.rb
100
+ - lib/google_maps_platform/models/directions_route.rb
101
+ - lib/google_maps_platform/models/directions_status.rb
102
+ - lib/google_maps_platform/models/directions_step.rb
103
+ - lib/google_maps_platform/models/directions_traffic_speed_entry.rb
104
+ - lib/google_maps_platform/models/directions_transit_agency.rb
105
+ - lib/google_maps_platform/models/directions_transit_details.rb
106
+ - lib/google_maps_platform/models/directions_transit_line.rb
107
+ - lib/google_maps_platform/models/directions_transit_stop.rb
108
+ - lib/google_maps_platform/models/directions_transit_vehicle.rb
109
+ - lib/google_maps_platform/models/directions_via_waypoint.rb
110
+ - lib/google_maps_platform/models/distance_matrix_element.rb
111
+ - lib/google_maps_platform/models/distance_matrix_element_status.rb
112
+ - lib/google_maps_platform/models/distance_matrix_response.rb
113
+ - lib/google_maps_platform/models/distance_matrix_row.rb
114
+ - lib/google_maps_platform/models/distance_matrix_status.rb
115
+ - lib/google_maps_platform/models/elevation_response.rb
116
+ - lib/google_maps_platform/models/elevation_result.rb
117
+ - lib/google_maps_platform/models/elevation_status.rb
118
+ - lib/google_maps_platform/models/error_detail.rb
119
+ - lib/google_maps_platform/models/error_object.rb
120
+ - lib/google_maps_platform/models/fare.rb
121
+ - lib/google_maps_platform/models/field_violation.rb
122
+ - lib/google_maps_platform/models/geocoder_status.rb
123
+ - lib/google_maps_platform/models/geocoding_geometry.rb
124
+ - lib/google_maps_platform/models/geocoding_response.rb
125
+ - lib/google_maps_platform/models/geocoding_result.rb
126
+ - lib/google_maps_platform/models/geocoding_status.rb
127
+ - lib/google_maps_platform/models/geolocation_request.rb
128
+ - lib/google_maps_platform/models/geolocation_response.rb
129
+ - lib/google_maps_platform/models/geometry.rb
130
+ - lib/google_maps_platform/models/inputtype.rb
131
+ - lib/google_maps_platform/models/language.rb
132
+ - lib/google_maps_platform/models/lat_lng_literal.rb
133
+ - lib/google_maps_platform/models/latitude_longitude_literal.rb
134
+ - lib/google_maps_platform/models/location_type.rb
135
+ - lib/google_maps_platform/models/location_type1.rb
136
+ - lib/google_maps_platform/models/maneuver.rb
137
+ - lib/google_maps_platform/models/maps_api_elevation_json_response.rb
138
+ - lib/google_maps_platform/models/maxprice.rb
139
+ - lib/google_maps_platform/models/minprice.rb
140
+ - lib/google_maps_platform/models/mode.rb
141
+ - lib/google_maps_platform/models/nearest_roads_error.rb
142
+ - lib/google_maps_platform/models/nearest_roads_response.rb
143
+ - lib/google_maps_platform/models/place.rb
144
+ - lib/google_maps_platform/models/place_autocomplete_matched_substring.rb
145
+ - lib/google_maps_platform/models/place_autocomplete_prediction.rb
146
+ - lib/google_maps_platform/models/place_autocomplete_structured_format.rb
147
+ - lib/google_maps_platform/models/place_autocomplete_term.rb
148
+ - lib/google_maps_platform/models/place_editorial_summary.rb
149
+ - lib/google_maps_platform/models/place_opening_hours.rb
150
+ - lib/google_maps_platform/models/place_opening_hours_period.rb
151
+ - lib/google_maps_platform/models/place_opening_hours_period_detail.rb
152
+ - lib/google_maps_platform/models/place_photo.rb
153
+ - lib/google_maps_platform/models/place_review.rb
154
+ - lib/google_maps_platform/models/place_special_day.rb
155
+ - lib/google_maps_platform/models/places_autocomplete_response.rb
156
+ - lib/google_maps_platform/models/places_autocomplete_status.rb
157
+ - lib/google_maps_platform/models/places_details_response.rb
158
+ - lib/google_maps_platform/models/places_details_status.rb
159
+ - lib/google_maps_platform/models/places_find_place_from_text_response.rb
160
+ - lib/google_maps_platform/models/places_nearby_search_response.rb
161
+ - lib/google_maps_platform/models/places_query_autocomplete_response.rb
162
+ - lib/google_maps_platform/models/places_search_status.rb
163
+ - lib/google_maps_platform/models/places_text_search_response.rb
164
+ - lib/google_maps_platform/models/plus_code.rb
165
+ - lib/google_maps_platform/models/rankby.rb
166
+ - lib/google_maps_platform/models/region.rb
167
+ - lib/google_maps_platform/models/result.rb
168
+ - lib/google_maps_platform/models/result_type.rb
169
+ - lib/google_maps_platform/models/snap_to_roads_response.rb
170
+ - lib/google_maps_platform/models/snapped_point.rb
171
+ - lib/google_maps_platform/models/source.rb
172
+ - lib/google_maps_platform/models/street_view_response.rb
173
+ - lib/google_maps_platform/models/street_view_status.rb
174
+ - lib/google_maps_platform/models/text_value_object.rb
175
+ - lib/google_maps_platform/models/time_zone_response.rb
176
+ - lib/google_maps_platform/models/time_zone_status.rb
177
+ - lib/google_maps_platform/models/time_zone_text_value_object.rb
178
+ - lib/google_maps_platform/models/traffic_model.rb
179
+ - lib/google_maps_platform/models/transit_routing_preference.rb
180
+ - lib/google_maps_platform/models/travel_mode.rb
181
+ - lib/google_maps_platform/models/type.rb
182
+ - lib/google_maps_platform/models/type1.rb
183
+ - lib/google_maps_platform/models/units.rb
184
+ - lib/google_maps_platform/models/wi_fi_access_point.rb
185
+ - lib/google_maps_platform/utilities/date_time_helper.rb
186
+ - lib/google_maps_platform/utilities/file_wrapper.rb
187
+ homepage: https://developers.google.com
188
+ licenses:
189
+ - MIT
190
+ metadata: {}
191
+ post_install_message:
192
+ rdoc_options: []
193
+ require_paths:
194
+ - lib
195
+ required_ruby_version: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - ">="
198
+ - !ruby/object:Gem::Version
199
+ version: '2.6'
200
+ required_rubygems_version: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: '0'
205
+ requirements: []
206
+ rubygems_version: 3.1.6
207
+ signing_key:
208
+ specification_version: 4
209
+ summary: SDK for the google maps api
210
+ test_files: []