stadiamaps 3.2.0__py3-none-any.whl → 4.0.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 (134) hide show
  1. stadiamaps/__init__.py +24 -4
  2. stadiamaps/api/geocoding_api.py +1 -1
  3. stadiamaps/api/geospatial_api.py +1 -1
  4. stadiamaps/api/routing_api.py +12 -12
  5. stadiamaps/api_client.py +9 -2
  6. stadiamaps/configuration.py +3 -3
  7. stadiamaps/exceptions.py +1 -1
  8. stadiamaps/models/__init__.py +23 -3
  9. stadiamaps/models/access.py +1 -1
  10. stadiamaps/models/admin_region.py +1 -1
  11. stadiamaps/models/administrative.py +1 -1
  12. stadiamaps/models/annotation_filters.py +124 -0
  13. stadiamaps/models/auto_costing_options.py +1 -1
  14. stadiamaps/models/base_costing_options.py +1 -1
  15. stadiamaps/models/base_trace_request.py +4 -4
  16. stadiamaps/models/bicycle_costing_options.py +1 -1
  17. stadiamaps/models/bike_network.py +1 -1
  18. stadiamaps/models/bulk_request.py +80 -104
  19. stadiamaps/models/bulk_request_query.py +138 -0
  20. stadiamaps/models/bulk_search_response.py +1 -1
  21. stadiamaps/models/contour.py +1 -1
  22. stadiamaps/models/coordinate.py +1 -1
  23. stadiamaps/models/costing_model.py +1 -1
  24. stadiamaps/models/costing_options.py +1 -1
  25. stadiamaps/models/directions_options.py +1 -1
  26. stadiamaps/models/distance_unit.py +1 -1
  27. stadiamaps/models/edge_sign.py +1 -1
  28. stadiamaps/models/edge_use.py +1 -1
  29. stadiamaps/models/end_node.py +4 -4
  30. stadiamaps/models/extended_directions_options.py +121 -0
  31. stadiamaps/models/geo_attributes.py +1 -1
  32. stadiamaps/models/geo_json_geometry.py +1 -1
  33. stadiamaps/models/geo_json_geometry_base.py +1 -1
  34. stadiamaps/models/geo_json_line_string.py +1 -1
  35. stadiamaps/models/geo_json_point.py +1 -1
  36. stadiamaps/models/geo_json_polygon.py +1 -1
  37. stadiamaps/models/geocoding_object.py +1 -1
  38. stadiamaps/models/height_request.py +4 -4
  39. stadiamaps/models/height_response.py +4 -4
  40. stadiamaps/models/highway_classification.py +1 -1
  41. stadiamaps/models/intersecting_edge.py +1 -1
  42. stadiamaps/models/isochrone_costing_model.py +1 -1
  43. stadiamaps/models/isochrone_feature.py +1 -1
  44. stadiamaps/models/isochrone_properties.py +1 -1
  45. stadiamaps/models/isochrone_request.py +7 -7
  46. stadiamaps/models/isochrone_response.py +4 -4
  47. stadiamaps/models/locate_detailed_edge.py +1 -1
  48. stadiamaps/models/locate_edge.py +1 -1
  49. stadiamaps/models/locate_edge_info.py +1 -1
  50. stadiamaps/models/locate_node.py +1 -1
  51. stadiamaps/models/locate_object.py +17 -7
  52. stadiamaps/models/low_speed_vehicle_costing_options.py +1 -1
  53. stadiamaps/models/maneuver_sign.py +13 -13
  54. stadiamaps/models/maneuver_sign_element.py +1 -1
  55. stadiamaps/models/map_match_costing_model.py +1 -1
  56. stadiamaps/models/map_match_request.py +27 -5
  57. stadiamaps/models/map_match_route_response.py +4 -4
  58. stadiamaps/models/map_match_trace_options.py +1 -1
  59. stadiamaps/models/map_match_waypoint.py +1 -1
  60. stadiamaps/models/matched_point.py +1 -1
  61. stadiamaps/models/matrix_costing_model.py +1 -1
  62. stadiamaps/models/matrix_distance.py +1 -1
  63. stadiamaps/models/matrix_request.py +7 -7
  64. stadiamaps/models/matrix_response.py +13 -13
  65. stadiamaps/models/matrix_waypoint.py +1 -1
  66. stadiamaps/models/motor_scooter_costing_options.py +1 -1
  67. stadiamaps/models/motorcycle_costing_options.py +1 -1
  68. stadiamaps/models/nearest_roads_request.py +4 -4
  69. stadiamaps/models/node_id.py +1 -1
  70. stadiamaps/models/node_type.py +1 -1
  71. stadiamaps/models/optimized_route_request.py +28 -6
  72. stadiamaps/models/osrm_admin.py +103 -0
  73. stadiamaps/models/osrm_annotation.py +117 -0
  74. stadiamaps/models/osrm_banner_component.py +113 -0
  75. stadiamaps/models/osrm_banner_content.py +131 -0
  76. stadiamaps/models/osrm_banner_instruction.py +112 -0
  77. stadiamaps/models/osrm_base_api_response.py +112 -0
  78. stadiamaps/models/osrm_guidance_modifier.py +44 -0
  79. stadiamaps/models/osrm_intersection.py +145 -0
  80. stadiamaps/models/osrm_lane.py +111 -0
  81. stadiamaps/models/osrm_route.py +119 -0
  82. stadiamaps/models/osrm_route_leg.py +148 -0
  83. stadiamaps/models/osrm_route_response.py +132 -0
  84. stadiamaps/models/osrm_route_step.py +185 -0
  85. stadiamaps/models/osrm_speed_limit.py +117 -0
  86. stadiamaps/models/osrm_step_maneuver.py +127 -0
  87. stadiamaps/models/osrm_via_waypoint.py +105 -0
  88. stadiamaps/models/osrm_voice_instruction.py +105 -0
  89. stadiamaps/models/osrm_waypoint.py +108 -0
  90. stadiamaps/models/pedestrian_costing_options.py +1 -1
  91. stadiamaps/models/pelias_geo_json_feature.py +1 -1
  92. stadiamaps/models/pelias_geo_json_properties.py +1 -1
  93. stadiamaps/models/pelias_geo_json_properties_addendum.py +1 -1
  94. stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +1 -1
  95. stadiamaps/models/pelias_layer.py +1 -1
  96. stadiamaps/models/pelias_response.py +4 -4
  97. stadiamaps/models/pelias_source.py +1 -1
  98. stadiamaps/models/restrictions.py +1 -1
  99. stadiamaps/models/road_class.py +1 -1
  100. stadiamaps/models/route200_response.py +138 -0
  101. stadiamaps/models/route_leg.py +4 -4
  102. stadiamaps/models/route_maneuver.py +1 -1
  103. stadiamaps/models/route_request.py +30 -8
  104. stadiamaps/models/route_response.py +4 -4
  105. stadiamaps/models/route_response_alternates_inner.py +1 -1
  106. stadiamaps/models/route_summary.py +1 -1
  107. stadiamaps/models/route_trip.py +7 -7
  108. stadiamaps/models/routing_response_waypoint.py +1 -1
  109. stadiamaps/models/routing_waypoint.py +1 -1
  110. stadiamaps/models/routing_waypoint_all_of_search_filter.py +1 -1
  111. stadiamaps/models/search_query.py +1 -1
  112. stadiamaps/models/search_structured_query.py +1 -1
  113. stadiamaps/models/simple_routing_waypoint.py +1 -1
  114. stadiamaps/models/speeds.py +1 -1
  115. stadiamaps/models/trace_attribute_filter_options.py +1 -1
  116. stadiamaps/models/trace_attribute_key.py +1 -1
  117. stadiamaps/models/trace_attributes_base_response.py +15 -10
  118. stadiamaps/models/trace_attributes_request.py +4 -4
  119. stadiamaps/models/trace_attributes_response.py +18 -13
  120. stadiamaps/models/trace_edge.py +2 -2
  121. stadiamaps/models/travel_mode.py +1 -1
  122. stadiamaps/models/traversability.py +1 -1
  123. stadiamaps/models/truck_costing_options.py +1 -1
  124. stadiamaps/models/tz_response.py +1 -1
  125. stadiamaps/models/valhalla_languages.py +1 -1
  126. stadiamaps/models/valhalla_long_units.py +1 -1
  127. stadiamaps/models/warning.py +1 -1
  128. stadiamaps/rest.py +1 -1
  129. {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/METADATA +1 -1
  130. stadiamaps-4.0.0.dist-info/RECORD +160 -0
  131. {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/WHEEL +1 -1
  132. stadiamaps-3.2.0.dist-info/RECORD +0 -138
  133. {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.0.dist-info}/LICENSE.txt +0 -0
  134. {stadiamaps-3.2.0.dist-info → stadiamaps-4.0.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: 6.6.2
10
+ The version of the OpenAPI document: 7.0.0
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__ = "3.2.0"
18
+ __version__ = "4.0.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from stadiamaps.api.geocoding_api import GeocodingApi
@@ -37,12 +37,14 @@ from stadiamaps.exceptions import ApiException
37
37
  from stadiamaps.models.access import Access
38
38
  from stadiamaps.models.admin_region import AdminRegion
39
39
  from stadiamaps.models.administrative import Administrative
40
+ from stadiamaps.models.annotation_filters import AnnotationFilters
40
41
  from stadiamaps.models.auto_costing_options import AutoCostingOptions
41
42
  from stadiamaps.models.base_costing_options import BaseCostingOptions
42
43
  from stadiamaps.models.base_trace_request import BaseTraceRequest
43
44
  from stadiamaps.models.bicycle_costing_options import BicycleCostingOptions
44
45
  from stadiamaps.models.bike_network import BikeNetwork
45
46
  from stadiamaps.models.bulk_request import BulkRequest
47
+ from stadiamaps.models.bulk_request_query import BulkRequestQuery
46
48
  from stadiamaps.models.bulk_search_response import BulkSearchResponse
47
49
  from stadiamaps.models.contour import Contour
48
50
  from stadiamaps.models.coordinate import Coordinate
@@ -53,6 +55,7 @@ from stadiamaps.models.distance_unit import DistanceUnit
53
55
  from stadiamaps.models.edge_sign import EdgeSign
54
56
  from stadiamaps.models.edge_use import EdgeUse
55
57
  from stadiamaps.models.end_node import EndNode
58
+ from stadiamaps.models.extended_directions_options import ExtendedDirectionsOptions
56
59
  from stadiamaps.models.geo_attributes import GeoAttributes
57
60
  from stadiamaps.models.geo_json_geometry import GeoJSONGeometry
58
61
  from stadiamaps.models.geo_json_geometry_base import GeoJSONGeometryBase
@@ -94,6 +97,24 @@ from stadiamaps.models.nearest_roads_request import NearestRoadsRequest
94
97
  from stadiamaps.models.node_id import NodeId
95
98
  from stadiamaps.models.node_type import NodeType
96
99
  from stadiamaps.models.optimized_route_request import OptimizedRouteRequest
100
+ from stadiamaps.models.osrm_admin import OsrmAdmin
101
+ from stadiamaps.models.osrm_annotation import OsrmAnnotation
102
+ from stadiamaps.models.osrm_banner_component import OsrmBannerComponent
103
+ from stadiamaps.models.osrm_banner_content import OsrmBannerContent
104
+ from stadiamaps.models.osrm_banner_instruction import OsrmBannerInstruction
105
+ from stadiamaps.models.osrm_base_api_response import OsrmBaseApiResponse
106
+ from stadiamaps.models.osrm_guidance_modifier import OsrmGuidanceModifier
107
+ from stadiamaps.models.osrm_intersection import OsrmIntersection
108
+ from stadiamaps.models.osrm_lane import OsrmLane
109
+ from stadiamaps.models.osrm_route import OsrmRoute
110
+ from stadiamaps.models.osrm_route_leg import OsrmRouteLeg
111
+ from stadiamaps.models.osrm_route_response import OsrmRouteResponse
112
+ from stadiamaps.models.osrm_route_step import OsrmRouteStep
113
+ from stadiamaps.models.osrm_speed_limit import OsrmSpeedLimit
114
+ from stadiamaps.models.osrm_step_maneuver import OsrmStepManeuver
115
+ from stadiamaps.models.osrm_via_waypoint import OsrmViaWaypoint
116
+ from stadiamaps.models.osrm_voice_instruction import OsrmVoiceInstruction
117
+ from stadiamaps.models.osrm_waypoint import OsrmWaypoint
97
118
  from stadiamaps.models.pedestrian_costing_options import PedestrianCostingOptions
98
119
  from stadiamaps.models.pelias_geo_json_feature import PeliasGeoJSONFeature
99
120
  from stadiamaps.models.pelias_geo_json_properties import PeliasGeoJSONProperties
@@ -104,6 +125,7 @@ from stadiamaps.models.pelias_response import PeliasResponse
104
125
  from stadiamaps.models.pelias_source import PeliasSource
105
126
  from stadiamaps.models.restrictions import Restrictions
106
127
  from stadiamaps.models.road_class import RoadClass
128
+ from stadiamaps.models.route200_response import Route200Response
107
129
  from stadiamaps.models.route_leg import RouteLeg
108
130
  from stadiamaps.models.route_maneuver import RouteManeuver
109
131
  from stadiamaps.models.route_request import RouteRequest
@@ -114,9 +136,7 @@ from stadiamaps.models.route_trip import RouteTrip
114
136
  from stadiamaps.models.routing_response_waypoint import RoutingResponseWaypoint
115
137
  from stadiamaps.models.routing_waypoint import RoutingWaypoint
116
138
  from stadiamaps.models.routing_waypoint_all_of_search_filter import RoutingWaypointAllOfSearchFilter
117
- from stadiamaps.models.search_bulk_query import SearchBulkQuery
118
139
  from stadiamaps.models.search_query import SearchQuery
119
- from stadiamaps.models.search_structured_bulk_query import SearchStructuredBulkQuery
120
140
  from stadiamaps.models.search_structured_query import SearchStructuredQuery
121
141
  from stadiamaps.models.simple_routing_waypoint import SimpleRoutingWaypoint
122
142
  from stadiamaps.models.speeds import Speeds
@@ -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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -27,8 +27,8 @@ from stadiamaps.models.matrix_request import MatrixRequest
27
27
  from stadiamaps.models.matrix_response import MatrixResponse
28
28
  from stadiamaps.models.nearest_roads_request import NearestRoadsRequest
29
29
  from stadiamaps.models.optimized_route_request import OptimizedRouteRequest
30
+ from stadiamaps.models.route200_response import Route200Response
30
31
  from stadiamaps.models.route_request import RouteRequest
31
- from stadiamaps.models.route_response import RouteResponse
32
32
  from stadiamaps.models.trace_attributes_request import TraceAttributesRequest
33
33
  from stadiamaps.models.trace_attributes_response import TraceAttributesResponse
34
34
 
@@ -894,7 +894,7 @@ class RoutingApi:
894
894
  _content_type: Optional[StrictStr] = None,
895
895
  _headers: Optional[Dict[StrictStr, Any]] = None,
896
896
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
897
- ) -> RouteResponse:
897
+ ) -> Route200Response:
898
898
  """Calculate an optimized route between a known start and end point.
899
899
 
900
900
  The optimized route API is a mix of the matrix and normal route API. For an optimized route, the start and end point are fixed, but the intermediate points will be re-ordered to form an optimal route visiting all nodes once.
@@ -932,7 +932,7 @@ class RoutingApi:
932
932
  )
933
933
 
934
934
  _response_types_map: Dict[str, Optional[str]] = {
935
- '200': "RouteResponse",
935
+ '200': "Route200Response",
936
936
  '400': None,
937
937
  '500': None,
938
938
  }
@@ -963,7 +963,7 @@ class RoutingApi:
963
963
  _content_type: Optional[StrictStr] = None,
964
964
  _headers: Optional[Dict[StrictStr, Any]] = None,
965
965
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
966
- ) -> ApiResponse[RouteResponse]:
966
+ ) -> ApiResponse[Route200Response]:
967
967
  """Calculate an optimized route between a known start and end point.
968
968
 
969
969
  The optimized route API is a mix of the matrix and normal route API. For an optimized route, the start and end point are fixed, but the intermediate points will be re-ordered to form an optimal route visiting all nodes once.
@@ -1001,7 +1001,7 @@ class RoutingApi:
1001
1001
  )
1002
1002
 
1003
1003
  _response_types_map: Dict[str, Optional[str]] = {
1004
- '200': "RouteResponse",
1004
+ '200': "Route200Response",
1005
1005
  '400': None,
1006
1006
  '500': None,
1007
1007
  }
@@ -1070,7 +1070,7 @@ class RoutingApi:
1070
1070
  )
1071
1071
 
1072
1072
  _response_types_map: Dict[str, Optional[str]] = {
1073
- '200': "RouteResponse",
1073
+ '200': "Route200Response",
1074
1074
  '400': None,
1075
1075
  '500': None,
1076
1076
  }
@@ -1172,7 +1172,7 @@ class RoutingApi:
1172
1172
  _content_type: Optional[StrictStr] = None,
1173
1173
  _headers: Optional[Dict[StrictStr, Any]] = None,
1174
1174
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1175
- ) -> RouteResponse:
1175
+ ) -> Route200Response:
1176
1176
  """Get turn by turn routing instructions between two or more locations.
1177
1177
 
1178
1178
  The route (turn-by-turn) API computes routes between two or more locations. It supports a variety of tunable costing methods, and supports routing through intermediate waypoints and discontinuous multi-leg routes.
@@ -1210,7 +1210,7 @@ class RoutingApi:
1210
1210
  )
1211
1211
 
1212
1212
  _response_types_map: Dict[str, Optional[str]] = {
1213
- '200': "RouteResponse",
1213
+ '200': "Route200Response",
1214
1214
  '400': None,
1215
1215
  '500': None,
1216
1216
  }
@@ -1241,7 +1241,7 @@ class RoutingApi:
1241
1241
  _content_type: Optional[StrictStr] = None,
1242
1242
  _headers: Optional[Dict[StrictStr, Any]] = None,
1243
1243
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1244
- ) -> ApiResponse[RouteResponse]:
1244
+ ) -> ApiResponse[Route200Response]:
1245
1245
  """Get turn by turn routing instructions between two or more locations.
1246
1246
 
1247
1247
  The route (turn-by-turn) API computes routes between two or more locations. It supports a variety of tunable costing methods, and supports routing through intermediate waypoints and discontinuous multi-leg routes.
@@ -1279,7 +1279,7 @@ class RoutingApi:
1279
1279
  )
1280
1280
 
1281
1281
  _response_types_map: Dict[str, Optional[str]] = {
1282
- '200': "RouteResponse",
1282
+ '200': "Route200Response",
1283
1283
  '400': None,
1284
1284
  '500': None,
1285
1285
  }
@@ -1348,7 +1348,7 @@ class RoutingApi:
1348
1348
  )
1349
1349
 
1350
1350
  _response_types_map: Dict[str, Optional[str]] = {
1351
- '200': "RouteResponse",
1351
+ '200': "Route200Response",
1352
1352
  '400': None,
1353
1353
  '500': None,
1354
1354
  }
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -16,6 +16,7 @@
16
16
  import datetime
17
17
  from dateutil.parser import parse
18
18
  from enum import Enum
19
+ import decimal
19
20
  import json
20
21
  import mimetypes
21
22
  import os
@@ -67,6 +68,7 @@ class ApiClient:
67
68
  'bool': bool,
68
69
  'date': datetime.date,
69
70
  'datetime': datetime.datetime,
71
+ 'decimal': decimal.Decimal,
70
72
  'object': object,
71
73
  }
72
74
  _pool = None
@@ -89,7 +91,7 @@ class ApiClient:
89
91
  self.default_headers[header_name] = header_value
90
92
  self.cookie = cookie
91
93
  # Set default User-Agent.
92
- self.user_agent = 'OpenAPI-Generator/3.2.0/python'
94
+ self.user_agent = 'OpenAPI-Generator/4.0.0/python'
93
95
  self.client_side_validation = configuration.client_side_validation
94
96
 
95
97
  def __enter__(self):
@@ -339,6 +341,7 @@ class ApiClient:
339
341
  If obj is str, int, long, float, bool, return directly.
340
342
  If obj is datetime.datetime, datetime.date
341
343
  convert to string in iso8601 format.
344
+ If obj is decimal.Decimal return string representation.
342
345
  If obj is list, sanitize each element in the list.
343
346
  If obj is dict, return the dict.
344
347
  If obj is OpenAPI model, return the properties dict.
@@ -364,6 +367,8 @@ class ApiClient:
364
367
  )
365
368
  elif isinstance(obj, (datetime.datetime, datetime.date)):
366
369
  return obj.isoformat()
370
+ elif isinstance(obj, decimal.Decimal):
371
+ return str(obj)
367
372
 
368
373
  elif isinstance(obj, dict):
369
374
  obj_dict = obj
@@ -455,6 +460,8 @@ class ApiClient:
455
460
  return self.__deserialize_date(data)
456
461
  elif klass == datetime.datetime:
457
462
  return self.__deserialize_datetime(data)
463
+ elif klass == decimal.Decimal:
464
+ return decimal.Decimal(data)
458
465
  elif issubclass(klass, Enum):
459
466
  return self.__deserialize_enum(data, klass)
460
467
  else:
@@ -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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -413,8 +413,8 @@ conf = stadiamaps.Configuration(
413
413
  return "Python SDK Debug Report:\n"\
414
414
  "OS: {env}\n"\
415
415
  "Python Version: {pyversion}\n"\
416
- "Version of the API: 6.6.2\n"\
417
- "SDK Package Version: 3.2.0".\
416
+ "Version of the API: 7.0.0\n"\
417
+ "SDK Package Version: 4.0.0".\
418
418
  format(env=sys.platform, pyversion=sys.version)
419
419
 
420
420
  def get_host_settings(self):
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
9
+ The version of the OpenAPI document: 7.0.0
10
10
  Contact: support@stadiamaps.com
11
11
  Generated by OpenAPI Generator (https://openapi-generator.tech)
12
12
 
@@ -18,12 +18,14 @@
18
18
  from stadiamaps.models.access import Access
19
19
  from stadiamaps.models.admin_region import AdminRegion
20
20
  from stadiamaps.models.administrative import Administrative
21
+ from stadiamaps.models.annotation_filters import AnnotationFilters
21
22
  from stadiamaps.models.auto_costing_options import AutoCostingOptions
22
23
  from stadiamaps.models.base_costing_options import BaseCostingOptions
23
24
  from stadiamaps.models.base_trace_request import BaseTraceRequest
24
25
  from stadiamaps.models.bicycle_costing_options import BicycleCostingOptions
25
26
  from stadiamaps.models.bike_network import BikeNetwork
26
27
  from stadiamaps.models.bulk_request import BulkRequest
28
+ from stadiamaps.models.bulk_request_query import BulkRequestQuery
27
29
  from stadiamaps.models.bulk_search_response import BulkSearchResponse
28
30
  from stadiamaps.models.contour import Contour
29
31
  from stadiamaps.models.coordinate import Coordinate
@@ -34,6 +36,7 @@ from stadiamaps.models.distance_unit import DistanceUnit
34
36
  from stadiamaps.models.edge_sign import EdgeSign
35
37
  from stadiamaps.models.edge_use import EdgeUse
36
38
  from stadiamaps.models.end_node import EndNode
39
+ from stadiamaps.models.extended_directions_options import ExtendedDirectionsOptions
37
40
  from stadiamaps.models.geo_attributes import GeoAttributes
38
41
  from stadiamaps.models.geo_json_geometry import GeoJSONGeometry
39
42
  from stadiamaps.models.geo_json_geometry_base import GeoJSONGeometryBase
@@ -75,6 +78,24 @@ from stadiamaps.models.nearest_roads_request import NearestRoadsRequest
75
78
  from stadiamaps.models.node_id import NodeId
76
79
  from stadiamaps.models.node_type import NodeType
77
80
  from stadiamaps.models.optimized_route_request import OptimizedRouteRequest
81
+ from stadiamaps.models.osrm_admin import OsrmAdmin
82
+ from stadiamaps.models.osrm_annotation import OsrmAnnotation
83
+ from stadiamaps.models.osrm_banner_component import OsrmBannerComponent
84
+ from stadiamaps.models.osrm_banner_content import OsrmBannerContent
85
+ from stadiamaps.models.osrm_banner_instruction import OsrmBannerInstruction
86
+ from stadiamaps.models.osrm_base_api_response import OsrmBaseApiResponse
87
+ from stadiamaps.models.osrm_guidance_modifier import OsrmGuidanceModifier
88
+ from stadiamaps.models.osrm_intersection import OsrmIntersection
89
+ from stadiamaps.models.osrm_lane import OsrmLane
90
+ from stadiamaps.models.osrm_route import OsrmRoute
91
+ from stadiamaps.models.osrm_route_leg import OsrmRouteLeg
92
+ from stadiamaps.models.osrm_route_response import OsrmRouteResponse
93
+ from stadiamaps.models.osrm_route_step import OsrmRouteStep
94
+ from stadiamaps.models.osrm_speed_limit import OsrmSpeedLimit
95
+ from stadiamaps.models.osrm_step_maneuver import OsrmStepManeuver
96
+ from stadiamaps.models.osrm_via_waypoint import OsrmViaWaypoint
97
+ from stadiamaps.models.osrm_voice_instruction import OsrmVoiceInstruction
98
+ from stadiamaps.models.osrm_waypoint import OsrmWaypoint
78
99
  from stadiamaps.models.pedestrian_costing_options import PedestrianCostingOptions
79
100
  from stadiamaps.models.pelias_geo_json_feature import PeliasGeoJSONFeature
80
101
  from stadiamaps.models.pelias_geo_json_properties import PeliasGeoJSONProperties
@@ -85,6 +106,7 @@ from stadiamaps.models.pelias_response import PeliasResponse
85
106
  from stadiamaps.models.pelias_source import PeliasSource
86
107
  from stadiamaps.models.restrictions import Restrictions
87
108
  from stadiamaps.models.road_class import RoadClass
109
+ from stadiamaps.models.route200_response import Route200Response
88
110
  from stadiamaps.models.route_leg import RouteLeg
89
111
  from stadiamaps.models.route_maneuver import RouteManeuver
90
112
  from stadiamaps.models.route_request import RouteRequest
@@ -95,9 +117,7 @@ from stadiamaps.models.route_trip import RouteTrip
95
117
  from stadiamaps.models.routing_response_waypoint import RoutingResponseWaypoint
96
118
  from stadiamaps.models.routing_waypoint import RoutingWaypoint
97
119
  from stadiamaps.models.routing_waypoint_all_of_search_filter import RoutingWaypointAllOfSearchFilter
98
- from stadiamaps.models.search_bulk_query import SearchBulkQuery
99
120
  from stadiamaps.models.search_query import SearchQuery
100
- from stadiamaps.models.search_structured_bulk_query import SearchStructuredBulkQuery
101
121
  from stadiamaps.models.search_structured_query import SearchStructuredQuery
102
122
  from stadiamaps.models.simple_routing_waypoint import SimpleRoutingWaypoint
103
123
  from stadiamaps.models.speeds import Speeds
@@ -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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -0,0 +1,124 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Stadia Maps Geospatial APIs
5
+
6
+ The Stadia Maps Geospatial APIs provide you with the data you need to build awesome applications.
7
+
8
+ The version of the OpenAPI document: 7.0.0
9
+ Contact: support@stadiamaps.com
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ from __future__ import annotations
17
+ import pprint
18
+ import re # noqa: F401
19
+ import json
20
+
21
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class AnnotationFilters(BaseModel):
27
+ """
28
+ AnnotationFilters
29
+ """ # noqa: E501
30
+ action: Optional[StrictStr] = None
31
+ attributes: Optional[List[StrictStr]] = Field(default=None, description="A set of granular attributes to include between every pair of coordinates along the route. This can significantly increase the response size.")
32
+ additional_properties: Dict[str, Any] = {}
33
+ __properties: ClassVar[List[str]] = ["action", "attributes"]
34
+
35
+ @field_validator('action')
36
+ def action_validate_enum(cls, value):
37
+ """Validates the enum"""
38
+ if value is None:
39
+ return value
40
+
41
+ if value not in set(['include', 'exclude']):
42
+ raise ValueError("must be one of enum values ('include', 'exclude')")
43
+ return value
44
+
45
+ @field_validator('attributes')
46
+ def attributes_validate_enum(cls, value):
47
+ """Validates the enum"""
48
+ if value is None:
49
+ return value
50
+
51
+ for i in value:
52
+ if i not in set(['shape_attributes.speed', 'shape_attributes.speed_limit', 'shape_attributes.time', 'shape_attributes.length']):
53
+ raise ValueError("each list item must be one of ('shape_attributes.speed', 'shape_attributes.speed_limit', 'shape_attributes.time', 'shape_attributes.length')")
54
+ return value
55
+
56
+ model_config = ConfigDict(
57
+ populate_by_name=True,
58
+ validate_assignment=True,
59
+ protected_namespaces=(),
60
+ )
61
+
62
+
63
+ def to_str(self) -> str:
64
+ """Returns the string representation of the model using alias"""
65
+ return pprint.pformat(self.model_dump(by_alias=True))
66
+
67
+ def to_json(self) -> str:
68
+ """Returns the JSON representation of the model using alias"""
69
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
70
+ return json.dumps(self.to_dict())
71
+
72
+ @classmethod
73
+ def from_json(cls, json_str: str) -> Optional[Self]:
74
+ """Create an instance of AnnotationFilters from a JSON string"""
75
+ return cls.from_dict(json.loads(json_str))
76
+
77
+ def to_dict(self) -> Dict[str, Any]:
78
+ """Return the dictionary representation of the model using alias.
79
+
80
+ This has the following differences from calling pydantic's
81
+ `self.model_dump(by_alias=True)`:
82
+
83
+ * `None` is only added to the output dict for nullable fields that
84
+ were set at model initialization. Other fields with value `None`
85
+ are ignored.
86
+ * Fields in `self.additional_properties` are added to the output dict.
87
+ """
88
+ excluded_fields: Set[str] = set([
89
+ "additional_properties",
90
+ ])
91
+
92
+ _dict = self.model_dump(
93
+ by_alias=True,
94
+ exclude=excluded_fields,
95
+ exclude_none=True,
96
+ )
97
+ # puts key-value pairs in additional_properties in the top level
98
+ if self.additional_properties is not None:
99
+ for _key, _value in self.additional_properties.items():
100
+ _dict[_key] = _value
101
+
102
+ return _dict
103
+
104
+ @classmethod
105
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
106
+ """Create an instance of AnnotationFilters from a dict"""
107
+ if obj is None:
108
+ return None
109
+
110
+ if not isinstance(obj, dict):
111
+ return cls.model_validate(obj)
112
+
113
+ _obj = cls.model_validate({
114
+ "action": obj.get("action"),
115
+ "attributes": obj.get("attributes")
116
+ })
117
+ # store additional fields in additional_properties
118
+ for _key in obj.keys():
119
+ if _key not in cls.__properties:
120
+ _obj.additional_properties[_key] = obj.get(_key)
121
+
122
+ return _obj
123
+
124
+
@@ -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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -108,9 +108,9 @@ class BaseTraceRequest(BaseModel):
108
108
  # override the default output from pydantic by calling `to_dict()` of each item in shape (list)
109
109
  _items = []
110
110
  if self.shape:
111
- for _item in self.shape:
112
- if _item:
113
- _items.append(_item.to_dict())
111
+ for _item_shape in self.shape:
112
+ if _item_shape:
113
+ _items.append(_item_shape.to_dict())
114
114
  _dict['shape'] = _items
115
115
  # override the default output from pydantic by calling `to_dict()` of costing_options
116
116
  if self.costing_options:
@@ -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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
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: 6.6.2
8
+ The version of the OpenAPI document: 7.0.0
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11