stadiamaps 6.0.0__py3-none-any.whl → 6.1.0__py3-none-any.whl

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 (153) hide show
  1. stadiamaps/__init__.py +2 -2
  2. stadiamaps/api/geocoding_api.py +440 -1
  3. stadiamaps/api/geospatial_api.py +1 -1
  4. stadiamaps/api/routing_api.py +1 -1
  5. stadiamaps/api_client.py +2 -2
  6. stadiamaps/configuration.py +3 -3
  7. stadiamaps/exceptions.py +1 -1
  8. stadiamaps/models/__init__.py +1 -1
  9. stadiamaps/models/access.py +1 -1
  10. stadiamaps/models/addendum_v2.py +1 -1
  11. stadiamaps/models/address_components_v2.py +1 -1
  12. stadiamaps/models/admin_region.py +1 -1
  13. stadiamaps/models/administrative.py +1 -1
  14. stadiamaps/models/annotation_filters.py +1 -1
  15. stadiamaps/models/auto_costing_options.py +1 -1
  16. stadiamaps/models/base_costing_options.py +1 -1
  17. stadiamaps/models/base_trace_request.py +1 -1
  18. stadiamaps/models/bicycle_costing_options.py +1 -1
  19. stadiamaps/models/bike_network.py +1 -1
  20. stadiamaps/models/bulk_request.py +1 -1
  21. stadiamaps/models/bulk_request_query.py +1 -1
  22. stadiamaps/models/bulk_search_response.py +1 -1
  23. stadiamaps/models/context.py +1 -1
  24. stadiamaps/models/contour.py +1 -1
  25. stadiamaps/models/coordinate.py +1 -1
  26. stadiamaps/models/costing_model.py +1 -1
  27. stadiamaps/models/costing_options.py +1 -1
  28. stadiamaps/models/directions_options.py +1 -1
  29. stadiamaps/models/distance_unit.py +1 -1
  30. stadiamaps/models/edge_sign.py +1 -1
  31. stadiamaps/models/edge_use.py +1 -1
  32. stadiamaps/models/end_node.py +1 -1
  33. stadiamaps/models/extended_directions_options.py +1 -1
  34. stadiamaps/models/feature_properties_v2.py +1 -1
  35. stadiamaps/models/feature_properties_v2_properties.py +1 -1
  36. stadiamaps/models/foursquare_addendum.py +1 -1
  37. stadiamaps/models/geo_attributes.py +1 -1
  38. stadiamaps/models/geo_json_geometry_base.py +1 -1
  39. stadiamaps/models/geo_json_point.py +1 -1
  40. stadiamaps/models/geocode_response.py +1 -1
  41. stadiamaps/models/geocode_response_envelope_properties_v2.py +1 -1
  42. stadiamaps/models/geocoding_geo_json_feature.py +1 -1
  43. stadiamaps/models/geocoding_geo_json_properties.py +1 -1
  44. stadiamaps/models/geocoding_geo_json_properties_addendum.py +1 -1
  45. stadiamaps/models/geocoding_geo_json_properties_addendum_osm.py +1 -1
  46. stadiamaps/models/geocoding_layer.py +1 -1
  47. stadiamaps/models/geocoding_meta.py +1 -1
  48. stadiamaps/models/geocoding_object.py +1 -1
  49. stadiamaps/models/geocoding_source.py +1 -1
  50. stadiamaps/models/geonames_addendum.py +1 -1
  51. stadiamaps/models/height_request.py +1 -1
  52. stadiamaps/models/height_response.py +1 -1
  53. stadiamaps/models/highway_classification.py +1 -1
  54. stadiamaps/models/intersecting_edge.py +1 -1
  55. stadiamaps/models/isochrone_costing_model.py +1 -1
  56. stadiamaps/models/isochrone_feature.py +1 -1
  57. stadiamaps/models/isochrone_properties.py +1 -1
  58. stadiamaps/models/isochrone_request.py +1 -1
  59. stadiamaps/models/isochrone_response.py +1 -1
  60. stadiamaps/models/layer_id.py +1 -1
  61. stadiamaps/models/locate_detailed_edge.py +1 -1
  62. stadiamaps/models/locate_edge.py +1 -1
  63. stadiamaps/models/locate_edge_info.py +1 -1
  64. stadiamaps/models/locate_node.py +1 -1
  65. stadiamaps/models/locate_object.py +1 -1
  66. stadiamaps/models/low_speed_vehicle_costing_options.py +1 -1
  67. stadiamaps/models/maneuver_sign.py +1 -1
  68. stadiamaps/models/maneuver_sign_element.py +1 -1
  69. stadiamaps/models/map_match_costing_model.py +1 -1
  70. stadiamaps/models/map_match_request.py +1 -1
  71. stadiamaps/models/map_match_route_response.py +1 -1
  72. stadiamaps/models/map_match_trace_options.py +1 -1
  73. stadiamaps/models/map_match_waypoint.py +1 -1
  74. stadiamaps/models/match_type.py +1 -1
  75. stadiamaps/models/matched_point.py +1 -1
  76. stadiamaps/models/matrix_costing_model.py +1 -1
  77. stadiamaps/models/matrix_distance.py +1 -1
  78. stadiamaps/models/matrix_request.py +1 -1
  79. stadiamaps/models/matrix_response.py +1 -1
  80. stadiamaps/models/matrix_waypoint.py +1 -1
  81. stadiamaps/models/motor_scooter_costing_options.py +1 -1
  82. stadiamaps/models/motorcycle_costing_options.py +1 -1
  83. stadiamaps/models/nearest_roads_request.py +1 -1
  84. stadiamaps/models/node_id.py +1 -1
  85. stadiamaps/models/node_type.py +1 -1
  86. stadiamaps/models/open_street_map_addendum.py +10 -3
  87. stadiamaps/models/optimized_route_request.py +1 -1
  88. stadiamaps/models/osrm_admin.py +1 -1
  89. stadiamaps/models/osrm_annotation.py +1 -1
  90. stadiamaps/models/osrm_banner_component.py +1 -1
  91. stadiamaps/models/osrm_banner_content.py +1 -1
  92. stadiamaps/models/osrm_banner_instruction.py +1 -1
  93. stadiamaps/models/osrm_base_api_response.py +1 -1
  94. stadiamaps/models/osrm_guidance_modifier.py +1 -1
  95. stadiamaps/models/osrm_intersection.py +1 -1
  96. stadiamaps/models/osrm_lane.py +1 -1
  97. stadiamaps/models/osrm_route.py +1 -1
  98. stadiamaps/models/osrm_route_leg.py +1 -1
  99. stadiamaps/models/osrm_route_response.py +1 -1
  100. stadiamaps/models/osrm_route_step.py +1 -1
  101. stadiamaps/models/osrm_speed_limit.py +1 -1
  102. stadiamaps/models/osrm_step_maneuver.py +1 -1
  103. stadiamaps/models/osrm_via_waypoint.py +1 -1
  104. stadiamaps/models/osrm_voice_instruction.py +1 -1
  105. stadiamaps/models/osrm_waypoint.py +1 -1
  106. stadiamaps/models/pedestrian_costing_options.py +1 -1
  107. stadiamaps/models/pedestrian_type.py +1 -1
  108. stadiamaps/models/point.py +1 -1
  109. stadiamaps/models/precision.py +1 -1
  110. stadiamaps/models/properties_v2.py +1 -1
  111. stadiamaps/models/restrictions.py +1 -1
  112. stadiamaps/models/road_class.py +1 -1
  113. stadiamaps/models/route200_response.py +1 -1
  114. stadiamaps/models/route_leg.py +1 -1
  115. stadiamaps/models/route_maneuver.py +1 -1
  116. stadiamaps/models/route_request.py +1 -1
  117. stadiamaps/models/route_response.py +1 -1
  118. stadiamaps/models/route_response_alternates_inner.py +1 -1
  119. stadiamaps/models/route_summary.py +1 -1
  120. stadiamaps/models/route_trip.py +1 -1
  121. stadiamaps/models/routing_languages.py +1 -1
  122. stadiamaps/models/routing_long_units.py +1 -1
  123. stadiamaps/models/routing_response_waypoint.py +1 -1
  124. stadiamaps/models/routing_waypoint.py +1 -1
  125. stadiamaps/models/routing_waypoint_all_of_search_filter.py +1 -1
  126. stadiamaps/models/search_query.py +1 -1
  127. stadiamaps/models/search_structured_query.py +1 -1
  128. stadiamaps/models/simple_routing_waypoint.py +1 -1
  129. stadiamaps/models/source_attribution.py +1 -1
  130. stadiamaps/models/source_id.py +1 -1
  131. stadiamaps/models/speeds.py +1 -1
  132. stadiamaps/models/trace_attribute_filter_options.py +1 -1
  133. stadiamaps/models/trace_attribute_key.py +1 -1
  134. stadiamaps/models/trace_attributes_base_response.py +1 -1
  135. stadiamaps/models/trace_attributes_request.py +1 -1
  136. stadiamaps/models/trace_attributes_response.py +1 -1
  137. stadiamaps/models/trace_edge.py +1 -1
  138. stadiamaps/models/travel_mode.py +1 -1
  139. stadiamaps/models/traversability.py +1 -1
  140. stadiamaps/models/truck_costing_options.py +1 -1
  141. stadiamaps/models/tz_response.py +1 -1
  142. stadiamaps/models/warning.py +1 -1
  143. stadiamaps/models/whos_on_first_concordances.py +3 -3
  144. stadiamaps/models/wof_context.py +1 -1
  145. stadiamaps/models/wof_context_component.py +1 -1
  146. stadiamaps/rest.py +1 -1
  147. {stadiamaps-6.0.0.dist-info → stadiamaps-6.1.0.dist-info}/METADATA +1 -1
  148. stadiamaps-6.1.0.dist-info/RECORD +183 -0
  149. test/integration/test_gecoding.py +24 -0
  150. stadiamaps-6.0.0.dist-info/RECORD +0 -183
  151. {stadiamaps-6.0.0.dist-info → stadiamaps-6.1.0.dist-info}/WHEEL +0 -0
  152. {stadiamaps-6.0.0.dist-info → stadiamaps-6.1.0.dist-info}/licenses/LICENSE.txt +0 -0
  153. {stadiamaps-6.0.0.dist-info → stadiamaps-6.1.0.dist-info}/top_level.txt +0 -0
stadiamaps/__init__.py CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
9
9
 
10
- The version of the OpenAPI document: 9.0.0
10
+ The version of the OpenAPI document: 9.1.1
11
11
  Contact: support@stadiamaps.com
12
12
  Generated by OpenAPI Generator (https://openapi-generator.tech)
13
13
 
@@ -15,7 +15,7 @@
15
15
  """ # noqa: E501
16
16
 
17
17
 
18
- __version__ = "6.0.0"
18
+ __version__ = "6.1.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from stadiamaps.api.geocoding_api import GeocodingApi
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -2068,6 +2068,445 @@ class GeocodingApi:
2068
2068
 
2069
2069
 
2070
2070
 
2071
+ @validate_call
2072
+ def reverse_v2(
2073
+ self,
2074
+ point_lat: Annotated[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]], Field(description="The latitude of the point at which to perform the search.")],
2075
+ point_lon: Annotated[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]], Field(description="The longitude of the point at which to perform the search.")],
2076
+ layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
2077
+ sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
2078
+ boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
2079
+ boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
2080
+ boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
2081
+ boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
2082
+ boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.")] = None,
2083
+ size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
2084
+ lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
2085
+ _request_timeout: Union[
2086
+ None,
2087
+ Annotated[StrictFloat, Field(gt=0)],
2088
+ Tuple[
2089
+ Annotated[StrictFloat, Field(gt=0)],
2090
+ Annotated[StrictFloat, Field(gt=0)]
2091
+ ]
2092
+ ] = None,
2093
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2094
+ _content_type: Optional[StrictStr] = None,
2095
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2096
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2097
+ ) -> GeocodeResponseEnvelopePropertiesV2:
2098
+ """reverse_v2
2099
+
2100
+
2101
+ :param point_lat: The latitude of the point at which to perform the search. (required)
2102
+ :type point_lat: float
2103
+ :param point_lon: The longitude of the point at which to perform the search. (required)
2104
+ :type point_lon: float
2105
+ :param layers: A list of layers to limit the search to.
2106
+ :type layers: List[LayerId]
2107
+ :param sources: A list of sources to limit the search to.
2108
+ :type sources: List[SourceId]
2109
+ :param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
2110
+ :type boundary_gid: str
2111
+ :param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
2112
+ :type boundary_country: List[str]
2113
+ :param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
2114
+ :type boundary_circle_lat: float
2115
+ :param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
2116
+ :type boundary_circle_lon: float
2117
+ :param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.
2118
+ :type boundary_circle_radius: int
2119
+ :param size: The maximum number of items to return from a query.
2120
+ :type size: int
2121
+ :param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
2122
+ :type lang: str
2123
+ :param _request_timeout: timeout setting for this request. If one
2124
+ number provided, it will be total request
2125
+ timeout. It can also be a pair (tuple) of
2126
+ (connection, read) timeouts.
2127
+ :type _request_timeout: int, tuple(int, int), optional
2128
+ :param _request_auth: set to override the auth_settings for an a single
2129
+ request; this effectively ignores the
2130
+ authentication in the spec for a single request.
2131
+ :type _request_auth: dict, optional
2132
+ :param _content_type: force content-type for the request.
2133
+ :type _content_type: str, Optional
2134
+ :param _headers: set to override the headers for a single
2135
+ request; this effectively ignores the headers
2136
+ in the spec for a single request.
2137
+ :type _headers: dict, optional
2138
+ :param _host_index: set to override the host_index for a single
2139
+ request; this effectively ignores the host_index
2140
+ in the spec for a single request.
2141
+ :type _host_index: int, optional
2142
+ :return: Returns the result object.
2143
+ """ # noqa: E501
2144
+
2145
+ _param = self._reverse_v2_serialize(
2146
+ point_lat=point_lat,
2147
+ point_lon=point_lon,
2148
+ layers=layers,
2149
+ sources=sources,
2150
+ boundary_gid=boundary_gid,
2151
+ boundary_country=boundary_country,
2152
+ boundary_circle_lat=boundary_circle_lat,
2153
+ boundary_circle_lon=boundary_circle_lon,
2154
+ boundary_circle_radius=boundary_circle_radius,
2155
+ size=size,
2156
+ lang=lang,
2157
+ _request_auth=_request_auth,
2158
+ _content_type=_content_type,
2159
+ _headers=_headers,
2160
+ _host_index=_host_index
2161
+ )
2162
+
2163
+ _response_types_map: Dict[str, Optional[str]] = {
2164
+ '200': "GeocodeResponseEnvelopePropertiesV2",
2165
+ '400': "GeocodeResponseEnvelopePropertiesV2",
2166
+ '500': "GeocodeResponseEnvelopePropertiesV2",
2167
+ }
2168
+ response_data = self.api_client.call_api(
2169
+ *_param,
2170
+ _request_timeout=_request_timeout
2171
+ )
2172
+ response_data.read()
2173
+ return self.api_client.response_deserialize(
2174
+ response_data=response_data,
2175
+ response_types_map=_response_types_map,
2176
+ ).data
2177
+
2178
+
2179
+ @validate_call
2180
+ def reverse_v2_with_http_info(
2181
+ self,
2182
+ point_lat: Annotated[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]], Field(description="The latitude of the point at which to perform the search.")],
2183
+ point_lon: Annotated[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]], Field(description="The longitude of the point at which to perform the search.")],
2184
+ layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
2185
+ sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
2186
+ boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
2187
+ boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
2188
+ boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
2189
+ boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
2190
+ boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.")] = None,
2191
+ size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
2192
+ lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
2193
+ _request_timeout: Union[
2194
+ None,
2195
+ Annotated[StrictFloat, Field(gt=0)],
2196
+ Tuple[
2197
+ Annotated[StrictFloat, Field(gt=0)],
2198
+ Annotated[StrictFloat, Field(gt=0)]
2199
+ ]
2200
+ ] = None,
2201
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2202
+ _content_type: Optional[StrictStr] = None,
2203
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2204
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2205
+ ) -> ApiResponse[GeocodeResponseEnvelopePropertiesV2]:
2206
+ """reverse_v2
2207
+
2208
+
2209
+ :param point_lat: The latitude of the point at which to perform the search. (required)
2210
+ :type point_lat: float
2211
+ :param point_lon: The longitude of the point at which to perform the search. (required)
2212
+ :type point_lon: float
2213
+ :param layers: A list of layers to limit the search to.
2214
+ :type layers: List[LayerId]
2215
+ :param sources: A list of sources to limit the search to.
2216
+ :type sources: List[SourceId]
2217
+ :param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
2218
+ :type boundary_gid: str
2219
+ :param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
2220
+ :type boundary_country: List[str]
2221
+ :param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
2222
+ :type boundary_circle_lat: float
2223
+ :param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
2224
+ :type boundary_circle_lon: float
2225
+ :param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.
2226
+ :type boundary_circle_radius: int
2227
+ :param size: The maximum number of items to return from a query.
2228
+ :type size: int
2229
+ :param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
2230
+ :type lang: str
2231
+ :param _request_timeout: timeout setting for this request. If one
2232
+ number provided, it will be total request
2233
+ timeout. It can also be a pair (tuple) of
2234
+ (connection, read) timeouts.
2235
+ :type _request_timeout: int, tuple(int, int), optional
2236
+ :param _request_auth: set to override the auth_settings for an a single
2237
+ request; this effectively ignores the
2238
+ authentication in the spec for a single request.
2239
+ :type _request_auth: dict, optional
2240
+ :param _content_type: force content-type for the request.
2241
+ :type _content_type: str, Optional
2242
+ :param _headers: set to override the headers for a single
2243
+ request; this effectively ignores the headers
2244
+ in the spec for a single request.
2245
+ :type _headers: dict, optional
2246
+ :param _host_index: set to override the host_index for a single
2247
+ request; this effectively ignores the host_index
2248
+ in the spec for a single request.
2249
+ :type _host_index: int, optional
2250
+ :return: Returns the result object.
2251
+ """ # noqa: E501
2252
+
2253
+ _param = self._reverse_v2_serialize(
2254
+ point_lat=point_lat,
2255
+ point_lon=point_lon,
2256
+ layers=layers,
2257
+ sources=sources,
2258
+ boundary_gid=boundary_gid,
2259
+ boundary_country=boundary_country,
2260
+ boundary_circle_lat=boundary_circle_lat,
2261
+ boundary_circle_lon=boundary_circle_lon,
2262
+ boundary_circle_radius=boundary_circle_radius,
2263
+ size=size,
2264
+ lang=lang,
2265
+ _request_auth=_request_auth,
2266
+ _content_type=_content_type,
2267
+ _headers=_headers,
2268
+ _host_index=_host_index
2269
+ )
2270
+
2271
+ _response_types_map: Dict[str, Optional[str]] = {
2272
+ '200': "GeocodeResponseEnvelopePropertiesV2",
2273
+ '400': "GeocodeResponseEnvelopePropertiesV2",
2274
+ '500': "GeocodeResponseEnvelopePropertiesV2",
2275
+ }
2276
+ response_data = self.api_client.call_api(
2277
+ *_param,
2278
+ _request_timeout=_request_timeout
2279
+ )
2280
+ response_data.read()
2281
+ return self.api_client.response_deserialize(
2282
+ response_data=response_data,
2283
+ response_types_map=_response_types_map,
2284
+ )
2285
+
2286
+
2287
+ @validate_call
2288
+ def reverse_v2_without_preload_content(
2289
+ self,
2290
+ point_lat: Annotated[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]], Field(description="The latitude of the point at which to perform the search.")],
2291
+ point_lon: Annotated[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]], Field(description="The longitude of the point at which to perform the search.")],
2292
+ layers: Annotated[Optional[List[LayerId]], Field(description="A list of layers to limit the search to.")] = None,
2293
+ sources: Annotated[Optional[List[SourceId]], Field(description="A list of sources to limit the search to.")] = None,
2294
+ boundary_gid: Annotated[Optional[StrictStr], Field(description="The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.")] = None,
2295
+ boundary_country: Annotated[Optional[List[StrictStr]], Field(description="A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.")] = None,
2296
+ boundary_circle_lat: Annotated[Optional[Union[Annotated[float, Field(le=90, strict=True, ge=-90)], Annotated[int, Field(le=90, strict=True, ge=-90)]]], Field(description="The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.")] = None,
2297
+ boundary_circle_lon: Annotated[Optional[Union[Annotated[float, Field(le=180, strict=True, ge=-180)], Annotated[int, Field(le=180, strict=True, ge=-180)]]], Field(description="The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.")] = None,
2298
+ boundary_circle_radius: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.")] = None,
2299
+ size: Annotated[Optional[Annotated[int, Field(le=25, strict=True, ge=1)]], Field(description="The maximum number of items to return from a query.")] = None,
2300
+ lang: Annotated[Optional[StrictStr], Field(description="A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.")] = None,
2301
+ _request_timeout: Union[
2302
+ None,
2303
+ Annotated[StrictFloat, Field(gt=0)],
2304
+ Tuple[
2305
+ Annotated[StrictFloat, Field(gt=0)],
2306
+ Annotated[StrictFloat, Field(gt=0)]
2307
+ ]
2308
+ ] = None,
2309
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
2310
+ _content_type: Optional[StrictStr] = None,
2311
+ _headers: Optional[Dict[StrictStr, Any]] = None,
2312
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
2313
+ ) -> RESTResponseType:
2314
+ """reverse_v2
2315
+
2316
+
2317
+ :param point_lat: The latitude of the point at which to perform the search. (required)
2318
+ :type point_lat: float
2319
+ :param point_lon: The longitude of the point at which to perform the search. (required)
2320
+ :type point_lon: float
2321
+ :param layers: A list of layers to limit the search to.
2322
+ :type layers: List[LayerId]
2323
+ :param sources: A list of sources to limit the search to.
2324
+ :type sources: List[SourceId]
2325
+ :param boundary_gid: The GID of a region to limit the search to. Note: these are not stable for all datasets! For example, OSM features may be deleted and re-added with a new ID.
2326
+ :type boundary_gid: str
2327
+ :param boundary_country: A list of comma-separated country codes in ISO 3116-1 alpha-2 or alpha-3 format. The search will be limited to these countries.
2328
+ :type boundary_country: List[str]
2329
+ :param boundary_circle_lat: The latitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lon.
2330
+ :type boundary_circle_lat: float
2331
+ :param boundary_circle_lon: The longitude of the center of a circle to limit the search to. NOTE: Requires boundary.circle.lat.
2332
+ :type boundary_circle_lon: float
2333
+ :param boundary_circle_radius: The radius of the circle (in kilometers) to limit the search to. NOTE: Requires the other boundary.circle parameters to take effect. Defaults to 2km if unspecified.
2334
+ :type boundary_circle_radius: int
2335
+ :param size: The maximum number of items to return from a query.
2336
+ :type size: int
2337
+ :param lang: A BCP47 language tag which specifies a preference for localization of results. There is no default value, so place names will be returned as-is, which is usually in the local language. NOTE: The Accept-Language header is also respected, and many user agents will set it automatically.
2338
+ :type lang: str
2339
+ :param _request_timeout: timeout setting for this request. If one
2340
+ number provided, it will be total request
2341
+ timeout. It can also be a pair (tuple) of
2342
+ (connection, read) timeouts.
2343
+ :type _request_timeout: int, tuple(int, int), optional
2344
+ :param _request_auth: set to override the auth_settings for an a single
2345
+ request; this effectively ignores the
2346
+ authentication in the spec for a single request.
2347
+ :type _request_auth: dict, optional
2348
+ :param _content_type: force content-type for the request.
2349
+ :type _content_type: str, Optional
2350
+ :param _headers: set to override the headers for a single
2351
+ request; this effectively ignores the headers
2352
+ in the spec for a single request.
2353
+ :type _headers: dict, optional
2354
+ :param _host_index: set to override the host_index for a single
2355
+ request; this effectively ignores the host_index
2356
+ in the spec for a single request.
2357
+ :type _host_index: int, optional
2358
+ :return: Returns the result object.
2359
+ """ # noqa: E501
2360
+
2361
+ _param = self._reverse_v2_serialize(
2362
+ point_lat=point_lat,
2363
+ point_lon=point_lon,
2364
+ layers=layers,
2365
+ sources=sources,
2366
+ boundary_gid=boundary_gid,
2367
+ boundary_country=boundary_country,
2368
+ boundary_circle_lat=boundary_circle_lat,
2369
+ boundary_circle_lon=boundary_circle_lon,
2370
+ boundary_circle_radius=boundary_circle_radius,
2371
+ size=size,
2372
+ lang=lang,
2373
+ _request_auth=_request_auth,
2374
+ _content_type=_content_type,
2375
+ _headers=_headers,
2376
+ _host_index=_host_index
2377
+ )
2378
+
2379
+ _response_types_map: Dict[str, Optional[str]] = {
2380
+ '200': "GeocodeResponseEnvelopePropertiesV2",
2381
+ '400': "GeocodeResponseEnvelopePropertiesV2",
2382
+ '500': "GeocodeResponseEnvelopePropertiesV2",
2383
+ }
2384
+ response_data = self.api_client.call_api(
2385
+ *_param,
2386
+ _request_timeout=_request_timeout
2387
+ )
2388
+ return response_data.response
2389
+
2390
+
2391
+ def _reverse_v2_serialize(
2392
+ self,
2393
+ point_lat,
2394
+ point_lon,
2395
+ layers,
2396
+ sources,
2397
+ boundary_gid,
2398
+ boundary_country,
2399
+ boundary_circle_lat,
2400
+ boundary_circle_lon,
2401
+ boundary_circle_radius,
2402
+ size,
2403
+ lang,
2404
+ _request_auth,
2405
+ _content_type,
2406
+ _headers,
2407
+ _host_index,
2408
+ ) -> RequestSerialized:
2409
+
2410
+ _host = None
2411
+
2412
+ _collection_formats: Dict[str, str] = {
2413
+ 'layers': 'csv',
2414
+ 'sources': 'csv',
2415
+ 'boundary.country': 'csv',
2416
+ }
2417
+
2418
+ _path_params: Dict[str, str] = {}
2419
+ _query_params: List[Tuple[str, str]] = []
2420
+ _header_params: Dict[str, Optional[str]] = _headers or {}
2421
+ _form_params: List[Tuple[str, str]] = []
2422
+ _files: Dict[
2423
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2424
+ ] = {}
2425
+ _body_params: Optional[bytes] = None
2426
+
2427
+ # process the path parameters
2428
+ # process the query parameters
2429
+ if point_lat is not None:
2430
+
2431
+ _query_params.append(('point.lat', point_lat))
2432
+
2433
+ if point_lon is not None:
2434
+
2435
+ _query_params.append(('point.lon', point_lon))
2436
+
2437
+ if layers is not None:
2438
+
2439
+ _query_params.append(('layers', layers))
2440
+
2441
+ if sources is not None:
2442
+
2443
+ _query_params.append(('sources', sources))
2444
+
2445
+ if boundary_gid is not None:
2446
+
2447
+ _query_params.append(('boundary.gid', boundary_gid))
2448
+
2449
+ if boundary_country is not None:
2450
+
2451
+ _query_params.append(('boundary.country', boundary_country))
2452
+
2453
+ if boundary_circle_lat is not None:
2454
+
2455
+ _query_params.append(('boundary.circle.lat', boundary_circle_lat))
2456
+
2457
+ if boundary_circle_lon is not None:
2458
+
2459
+ _query_params.append(('boundary.circle.lon', boundary_circle_lon))
2460
+
2461
+ if boundary_circle_radius is not None:
2462
+
2463
+ _query_params.append(('boundary.circle.radius', boundary_circle_radius))
2464
+
2465
+ if size is not None:
2466
+
2467
+ _query_params.append(('size', size))
2468
+
2469
+ if lang is not None:
2470
+
2471
+ _query_params.append(('lang', lang))
2472
+
2473
+ # process the header parameters
2474
+ # process the form parameters
2475
+ # process the body parameter
2476
+
2477
+
2478
+ # set the HTTP header `Accept`
2479
+ if 'Accept' not in _header_params:
2480
+ _header_params['Accept'] = self.api_client.select_header_accept(
2481
+ [
2482
+ 'application/json'
2483
+ ]
2484
+ )
2485
+
2486
+
2487
+ # authentication setting
2488
+ _auth_settings: List[str] = [
2489
+ 'ApiKeyAuth'
2490
+ ]
2491
+
2492
+ return self.api_client.param_serialize(
2493
+ method='GET',
2494
+ resource_path='/geocoding/v2/reverse',
2495
+ path_params=_path_params,
2496
+ query_params=_query_params,
2497
+ header_params=_header_params,
2498
+ body=_body_params,
2499
+ post_params=_form_params,
2500
+ files=_files,
2501
+ auth_settings=_auth_settings,
2502
+ collection_formats=_collection_formats,
2503
+ _host=_host,
2504
+ _request_auth=_request_auth
2505
+ )
2506
+
2507
+
2508
+
2509
+
2071
2510
  @validate_call
2072
2511
  def search(
2073
2512
  self,
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
stadiamaps/api_client.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -91,7 +91,7 @@ class ApiClient:
91
91
  self.default_headers[header_name] = header_value
92
92
  self.cookie = cookie
93
93
  # Set default User-Agent.
94
- self.user_agent = 'OpenAPI-Generator/6.0.0/python'
94
+ self.user_agent = 'OpenAPI-Generator/6.1.0/python'
95
95
  self.client_side_validation = configuration.client_side_validation
96
96
 
97
97
  def __enter__(self):
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -524,8 +524,8 @@ conf = stadiamaps.Configuration(
524
524
  return "Python SDK Debug Report:\n"\
525
525
  "OS: {env}\n"\
526
526
  "Python Version: {pyversion}\n"\
527
- "Version of the API: 9.0.0\n"\
528
- "SDK Package Version: 6.0.0".\
527
+ "Version of the API: 9.1.1\n"\
528
+ "SDK Package Version: 6.1.0".\
529
529
  format(env=sys.platform, pyversion=sys.version)
530
530
 
531
531
  def get_host_settings(self) -> List[HostSetting]:
stadiamaps/exceptions.py CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
8
8
 
9
- The version of the OpenAPI document: 9.0.0
9
+ The version of the OpenAPI document: 9.1.1
10
10
  Contact: support@stadiamaps.com
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
7
 
8
- The version of the OpenAPI document: 9.0.0
8
+ The version of the OpenAPI document: 9.1.1
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11