stadiamaps 2.1.0__py3-none-any.whl → 3.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.
- stadiamaps/__init__.py +4 -2
- stadiamaps/api/geocoding_api.py +6 -6
- stadiamaps/api/geospatial_api.py +3 -3
- stadiamaps/api/routing_api.py +12 -12
- stadiamaps/api_client.py +37 -25
- stadiamaps/configuration.py +3 -3
- stadiamaps/exceptions.py +1 -1
- stadiamaps/models/__init__.py +3 -1
- stadiamaps/models/access.py +1 -1
- stadiamaps/models/admin_region.py +1 -1
- stadiamaps/models/administrative.py +1 -1
- stadiamaps/models/auto_costing_options.py +1 -1
- stadiamaps/models/base_costing_options.py +1 -1
- stadiamaps/models/base_trace_request.py +1 -1
- stadiamaps/models/bicycle_costing_options.py +1 -1
- stadiamaps/models/bike_network.py +1 -1
- stadiamaps/models/contour.py +1 -1
- stadiamaps/models/coordinate.py +1 -1
- stadiamaps/models/costing_model.py +2 -2
- stadiamaps/models/costing_options.py +9 -3
- stadiamaps/models/directions_options.py +1 -1
- stadiamaps/models/distance_unit.py +1 -1
- stadiamaps/models/edge_sign.py +1 -1
- stadiamaps/models/edge_use.py +1 -1
- stadiamaps/models/end_node.py +1 -1
- stadiamaps/models/geo_attributes.py +1 -1
- stadiamaps/models/geo_json_geometry.py +3 -3
- stadiamaps/models/geo_json_geometry_base.py +1 -1
- stadiamaps/models/geo_json_line_string.py +1 -1
- stadiamaps/models/geo_json_point.py +1 -1
- stadiamaps/models/geo_json_polygon.py +1 -1
- stadiamaps/models/geocoding_object.py +1 -1
- stadiamaps/models/height_request.py +1 -1
- stadiamaps/models/height_response.py +1 -1
- stadiamaps/models/highway_classification.py +1 -1
- stadiamaps/models/intersecting_edge.py +1 -1
- stadiamaps/models/isochrone_costing_model.py +1 -1
- stadiamaps/models/isochrone_feature.py +1 -1
- stadiamaps/models/isochrone_properties.py +1 -1
- stadiamaps/models/isochrone_request.py +1 -1
- stadiamaps/models/isochrone_response.py +1 -1
- stadiamaps/models/locate_detailed_edge.py +1 -1
- stadiamaps/models/locate_edge.py +1 -1
- stadiamaps/models/locate_edge_info.py +1 -1
- stadiamaps/models/locate_node.py +1 -1
- stadiamaps/models/locate_object.py +1 -1
- stadiamaps/models/low_speed_vehicle_costing_options.py +140 -0
- stadiamaps/models/maneuver_sign.py +1 -1
- stadiamaps/models/maneuver_sign_element.py +1 -1
- stadiamaps/models/map_match_costing_model.py +1 -1
- stadiamaps/models/map_match_request.py +1 -1
- stadiamaps/models/map_match_route_response.py +1 -1
- stadiamaps/models/map_match_trace_options.py +1 -1
- stadiamaps/models/map_match_waypoint.py +1 -1
- stadiamaps/models/matched_point.py +1 -1
- stadiamaps/models/matrix_costing_model.py +1 -1
- stadiamaps/models/matrix_distance.py +14 -4
- stadiamaps/models/matrix_request.py +6 -6
- stadiamaps/models/matrix_response.py +3 -3
- stadiamaps/models/matrix_waypoint.py +106 -0
- stadiamaps/models/motor_scooter_costing_options.py +1 -1
- stadiamaps/models/motorcycle_costing_options.py +1 -1
- stadiamaps/models/nearest_roads_request.py +1 -1
- stadiamaps/models/node_id.py +1 -1
- stadiamaps/models/node_type.py +1 -1
- stadiamaps/models/optimized_route_request.py +1 -1
- stadiamaps/models/pedestrian_costing_options.py +1 -1
- stadiamaps/models/pelias_geo_json_feature.py +1 -1
- stadiamaps/models/pelias_geo_json_properties.py +1 -1
- stadiamaps/models/pelias_geo_json_properties_addendum.py +1 -1
- stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +1 -1
- stadiamaps/models/pelias_layer.py +1 -1
- stadiamaps/models/pelias_response.py +1 -1
- stadiamaps/models/pelias_source.py +1 -1
- stadiamaps/models/restrictions.py +1 -1
- stadiamaps/models/road_class.py +1 -1
- stadiamaps/models/route_leg.py +9 -5
- stadiamaps/models/route_maneuver.py +1 -1
- stadiamaps/models/route_request.py +8 -4
- stadiamaps/models/route_response.py +1 -1
- stadiamaps/models/route_response_alternates_inner.py +1 -1
- stadiamaps/models/route_summary.py +1 -1
- stadiamaps/models/route_trip.py +1 -1
- stadiamaps/models/routing_response_waypoint.py +1 -1
- stadiamaps/models/routing_waypoint.py +1 -1
- stadiamaps/models/routing_waypoint_all_of_search_filter.py +1 -1
- stadiamaps/models/simple_routing_waypoint.py +1 -1
- stadiamaps/models/speeds.py +1 -1
- stadiamaps/models/trace_attribute_filter_options.py +1 -1
- stadiamaps/models/trace_attribute_key.py +1 -1
- stadiamaps/models/trace_attributes_base_response.py +1 -1
- stadiamaps/models/trace_attributes_request.py +1 -1
- stadiamaps/models/trace_attributes_response.py +1 -1
- stadiamaps/models/trace_edge.py +1 -1
- stadiamaps/models/travel_mode.py +1 -1
- stadiamaps/models/traversability.py +1 -1
- stadiamaps/models/truck_costing_options.py +1 -1
- stadiamaps/models/tz_response.py +1 -1
- stadiamaps/models/valhalla_languages.py +1 -1
- stadiamaps/models/valhalla_long_units.py +1 -1
- stadiamaps/models/warning.py +1 -1
- stadiamaps/rest.py +3 -1
- {stadiamaps-2.1.0.dist-info → stadiamaps-3.1.0.dist-info}/METADATA +1 -1
- stadiamaps-3.1.0.dist-info/RECORD +130 -0
- stadiamaps-2.1.0.dist-info/RECORD +0 -128
- {stadiamaps-2.1.0.dist-info → stadiamaps-3.1.0.dist-info}/LICENSE.txt +0 -0
- {stadiamaps-2.1.0.dist-info → stadiamaps-3.1.0.dist-info}/WHEEL +0 -0
- {stadiamaps-2.1.0.dist-info → stadiamaps-3.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: 6.
|
10
|
+
The version of the OpenAPI document: 6.3.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__ = "
|
18
|
+
__version__ = "3.1.0"
|
19
19
|
|
20
20
|
# import apis into sdk package
|
21
21
|
from stadiamaps.api.geocoding_api import GeocodingApi
|
@@ -72,6 +72,7 @@ from stadiamaps.models.locate_edge import LocateEdge
|
|
72
72
|
from stadiamaps.models.locate_edge_info import LocateEdgeInfo
|
73
73
|
from stadiamaps.models.locate_node import LocateNode
|
74
74
|
from stadiamaps.models.locate_object import LocateObject
|
75
|
+
from stadiamaps.models.low_speed_vehicle_costing_options import LowSpeedVehicleCostingOptions
|
75
76
|
from stadiamaps.models.maneuver_sign import ManeuverSign
|
76
77
|
from stadiamaps.models.maneuver_sign_element import ManeuverSignElement
|
77
78
|
from stadiamaps.models.map_match_costing_model import MapMatchCostingModel
|
@@ -84,6 +85,7 @@ from stadiamaps.models.matrix_costing_model import MatrixCostingModel
|
|
84
85
|
from stadiamaps.models.matrix_distance import MatrixDistance
|
85
86
|
from stadiamaps.models.matrix_request import MatrixRequest
|
86
87
|
from stadiamaps.models.matrix_response import MatrixResponse
|
88
|
+
from stadiamaps.models.matrix_waypoint import MatrixWaypoint
|
87
89
|
from stadiamaps.models.motor_scooter_costing_options import MotorScooterCostingOptions
|
88
90
|
from stadiamaps.models.motorcycle_costing_options import MotorcycleCostingOptions
|
89
91
|
from stadiamaps.models.nearest_roads_request import NearestRoadsRequest
|
stadiamaps/api/geocoding_api.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -458,7 +458,7 @@ class GeocodingApi:
|
|
458
458
|
_query_params: List[Tuple[str, str]] = []
|
459
459
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
460
460
|
_form_params: List[Tuple[str, str]] = []
|
461
|
-
_files: Dict[str, str] = {}
|
461
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
462
462
|
_body_params: Optional[bytes] = None
|
463
463
|
|
464
464
|
# process the path parameters
|
@@ -795,7 +795,7 @@ class GeocodingApi:
|
|
795
795
|
_query_params: List[Tuple[str, str]] = []
|
796
796
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
797
797
|
_form_params: List[Tuple[str, str]] = []
|
798
|
-
_files: Dict[str, str] = {}
|
798
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
799
799
|
_body_params: Optional[bytes] = None
|
800
800
|
|
801
801
|
# process the path parameters
|
@@ -1169,7 +1169,7 @@ class GeocodingApi:
|
|
1169
1169
|
_query_params: List[Tuple[str, str]] = []
|
1170
1170
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1171
1171
|
_form_params: List[Tuple[str, str]] = []
|
1172
|
-
_files: Dict[str, str] = {}
|
1172
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1173
1173
|
_body_params: Optional[bytes] = None
|
1174
1174
|
|
1175
1175
|
# process the path parameters
|
@@ -1662,7 +1662,7 @@ class GeocodingApi:
|
|
1662
1662
|
_query_params: List[Tuple[str, str]] = []
|
1663
1663
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1664
1664
|
_form_params: List[Tuple[str, str]] = []
|
1665
|
-
_files: Dict[str, str] = {}
|
1665
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1666
1666
|
_body_params: Optional[bytes] = None
|
1667
1667
|
|
1668
1668
|
# process the path parameters
|
@@ -2274,7 +2274,7 @@ class GeocodingApi:
|
|
2274
2274
|
_query_params: List[Tuple[str, str]] = []
|
2275
2275
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
2276
2276
|
_form_params: List[Tuple[str, str]] = []
|
2277
|
-
_files: Dict[str, str] = {}
|
2277
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
2278
2278
|
_body_params: Optional[bytes] = None
|
2279
2279
|
|
2280
2280
|
# process the path parameters
|
stadiamaps/api/geospatial_api.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -260,7 +260,7 @@ class GeospatialApi:
|
|
260
260
|
_query_params: List[Tuple[str, str]] = []
|
261
261
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
262
262
|
_form_params: List[Tuple[str, str]] = []
|
263
|
-
_files: Dict[str, str] = {}
|
263
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
264
264
|
_body_params: Optional[bytes] = None
|
265
265
|
|
266
266
|
# process the path parameters
|
@@ -560,7 +560,7 @@ class GeospatialApi:
|
|
560
560
|
_query_params: List[Tuple[str, str]] = []
|
561
561
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
562
562
|
_form_params: List[Tuple[str, str]] = []
|
563
|
-
_files: Dict[str, str] = {}
|
563
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
564
564
|
_body_params: Optional[bytes] = None
|
565
565
|
|
566
566
|
# process the path parameters
|
stadiamaps/api/routing_api.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -17,7 +17,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
17
17
|
from typing import Any, Dict, List, Optional, Tuple, Union
|
18
18
|
from typing_extensions import Annotated
|
19
19
|
|
20
|
-
from typing import Optional
|
20
|
+
from typing import List, Optional
|
21
21
|
from stadiamaps.models.isochrone_request import IsochroneRequest
|
22
22
|
from stadiamaps.models.isochrone_response import IsochroneResponse
|
23
23
|
from stadiamaps.models.locate_object import LocateObject
|
@@ -268,7 +268,7 @@ class RoutingApi:
|
|
268
268
|
_query_params: List[Tuple[str, str]] = []
|
269
269
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
270
270
|
_form_params: List[Tuple[str, str]] = []
|
271
|
-
_files: Dict[str, str] = {}
|
271
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
272
272
|
_body_params: Optional[bytes] = None
|
273
273
|
|
274
274
|
# process the path parameters
|
@@ -545,7 +545,7 @@ class RoutingApi:
|
|
545
545
|
_query_params: List[Tuple[str, str]] = []
|
546
546
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
547
547
|
_form_params: List[Tuple[str, str]] = []
|
548
|
-
_files: Dict[str, str] = {}
|
548
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
549
549
|
_body_params: Optional[bytes] = None
|
550
550
|
|
551
551
|
# process the path parameters
|
@@ -819,7 +819,7 @@ class RoutingApi:
|
|
819
819
|
_query_params: List[Tuple[str, str]] = []
|
820
820
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
821
821
|
_form_params: List[Tuple[str, str]] = []
|
822
|
-
_files: Dict[str, str] = {}
|
822
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
823
823
|
_body_params: Optional[bytes] = None
|
824
824
|
|
825
825
|
# process the path parameters
|
@@ -1096,7 +1096,7 @@ class RoutingApi:
|
|
1096
1096
|
_query_params: List[Tuple[str, str]] = []
|
1097
1097
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1098
1098
|
_form_params: List[Tuple[str, str]] = []
|
1099
|
-
_files: Dict[str, str] = {}
|
1099
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1100
1100
|
_body_params: Optional[bytes] = None
|
1101
1101
|
|
1102
1102
|
# process the path parameters
|
@@ -1373,7 +1373,7 @@ class RoutingApi:
|
|
1373
1373
|
_query_params: List[Tuple[str, str]] = []
|
1374
1374
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1375
1375
|
_form_params: List[Tuple[str, str]] = []
|
1376
|
-
_files: Dict[str, str] = {}
|
1376
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1377
1377
|
_body_params: Optional[bytes] = None
|
1378
1378
|
|
1379
1379
|
# process the path parameters
|
@@ -1448,7 +1448,7 @@ class RoutingApi:
|
|
1448
1448
|
) -> MatrixResponse:
|
1449
1449
|
"""Calculate a time distance matrix for use in an optimizer.
|
1450
1450
|
|
1451
|
-
The time distance matrix API lets you compare travel times between a set of possible start and end points.
|
1451
|
+
The time distance matrix API lets you compare travel times between a set of possible start and end points. See https://docs.stadiamaps.com/limits/ for documentation of our latest limits.
|
1452
1452
|
|
1453
1453
|
:param matrix_request:
|
1454
1454
|
:type matrix_request: MatrixRequest
|
@@ -1516,7 +1516,7 @@ class RoutingApi:
|
|
1516
1516
|
) -> ApiResponse[MatrixResponse]:
|
1517
1517
|
"""Calculate a time distance matrix for use in an optimizer.
|
1518
1518
|
|
1519
|
-
The time distance matrix API lets you compare travel times between a set of possible start and end points.
|
1519
|
+
The time distance matrix API lets you compare travel times between a set of possible start and end points. See https://docs.stadiamaps.com/limits/ for documentation of our latest limits.
|
1520
1520
|
|
1521
1521
|
:param matrix_request:
|
1522
1522
|
:type matrix_request: MatrixRequest
|
@@ -1584,7 +1584,7 @@ class RoutingApi:
|
|
1584
1584
|
) -> RESTResponseType:
|
1585
1585
|
"""Calculate a time distance matrix for use in an optimizer.
|
1586
1586
|
|
1587
|
-
The time distance matrix API lets you compare travel times between a set of possible start and end points.
|
1587
|
+
The time distance matrix API lets you compare travel times between a set of possible start and end points. See https://docs.stadiamaps.com/limits/ for documentation of our latest limits.
|
1588
1588
|
|
1589
1589
|
:param matrix_request:
|
1590
1590
|
:type matrix_request: MatrixRequest
|
@@ -1647,7 +1647,7 @@ class RoutingApi:
|
|
1647
1647
|
_query_params: List[Tuple[str, str]] = []
|
1648
1648
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1649
1649
|
_form_params: List[Tuple[str, str]] = []
|
1650
|
-
_files: Dict[str, str] = {}
|
1650
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1651
1651
|
_body_params: Optional[bytes] = None
|
1652
1652
|
|
1653
1653
|
# process the path parameters
|
@@ -1921,7 +1921,7 @@ class RoutingApi:
|
|
1921
1921
|
_query_params: List[Tuple[str, str]] = []
|
1922
1922
|
_header_params: Dict[str, Optional[str]] = _headers or {}
|
1923
1923
|
_form_params: List[Tuple[str, str]] = []
|
1924
|
-
_files: Dict[str, str] = {}
|
1924
|
+
_files: Dict[str, Union[str, bytes]] = {}
|
1925
1925
|
_body_params: Optional[bytes] = None
|
1926
1926
|
|
1927
1927
|
# process the path parameters
|
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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -23,7 +23,8 @@ import re
|
|
23
23
|
import tempfile
|
24
24
|
|
25
25
|
from urllib.parse import quote
|
26
|
-
from typing import Tuple, Optional, List, Dict
|
26
|
+
from typing import Tuple, Optional, List, Dict, Union
|
27
|
+
from pydantic import SecretStr
|
27
28
|
|
28
29
|
from stadiamaps.configuration import Configuration
|
29
30
|
from stadiamaps.api_response import ApiResponse, T as ApiResponseT
|
@@ -88,7 +89,7 @@ class ApiClient:
|
|
88
89
|
self.default_headers[header_name] = header_value
|
89
90
|
self.cookie = cookie
|
90
91
|
# Set default User-Agent.
|
91
|
-
self.user_agent = 'OpenAPI-Generator/
|
92
|
+
self.user_agent = 'OpenAPI-Generator/3.1.0/python'
|
92
93
|
self.client_side_validation = configuration.client_side_validation
|
93
94
|
|
94
95
|
def __enter__(self):
|
@@ -208,7 +209,8 @@ class ApiClient:
|
|
208
209
|
post_params,
|
209
210
|
collection_formats
|
210
211
|
)
|
211
|
-
|
212
|
+
if files:
|
213
|
+
post_params.extend(self.files_parameters(files))
|
212
214
|
|
213
215
|
# auth setting
|
214
216
|
self.update_params_for_auth(
|
@@ -313,7 +315,10 @@ class ApiClient:
|
|
313
315
|
match = re.search(r"charset=([a-zA-Z\-\d]+)[\s;]?", content_type)
|
314
316
|
encoding = match.group(1) if match else "utf-8"
|
315
317
|
response_text = response_data.data.decode(encoding)
|
316
|
-
|
318
|
+
if response_type in ["bytearray", "str"]:
|
319
|
+
return_data = self.__deserialize_primitive(response_text, response_type)
|
320
|
+
else:
|
321
|
+
return_data = self.deserialize(response_text, response_type)
|
317
322
|
finally:
|
318
323
|
if not 200 <= response_data.status <= 299:
|
319
324
|
raise ApiException.from_response(
|
@@ -333,6 +338,7 @@ class ApiClient:
|
|
333
338
|
"""Builds a JSON POST object.
|
334
339
|
|
335
340
|
If obj is None, return None.
|
341
|
+
If obj is SecretStr, return obj.get_secret_value()
|
336
342
|
If obj is str, int, long, float, bool, return directly.
|
337
343
|
If obj is datetime.datetime, datetime.date
|
338
344
|
convert to string in iso8601 format.
|
@@ -345,6 +351,10 @@ class ApiClient:
|
|
345
351
|
"""
|
346
352
|
if obj is None:
|
347
353
|
return None
|
354
|
+
elif isinstance(obj, Enum):
|
355
|
+
return obj.value
|
356
|
+
elif isinstance(obj, SecretStr):
|
357
|
+
return obj.get_secret_value()
|
348
358
|
elif isinstance(obj, self.PRIMITIVE_TYPES):
|
349
359
|
return obj
|
350
360
|
elif isinstance(obj, list):
|
@@ -366,7 +376,10 @@ class ApiClient:
|
|
366
376
|
# and attributes which value is not None.
|
367
377
|
# Convert attribute name to json key in
|
368
378
|
# model definition for request.
|
369
|
-
|
379
|
+
if hasattr(obj, 'to_dict') and callable(getattr(obj, 'to_dict')):
|
380
|
+
obj_dict = obj.to_dict()
|
381
|
+
else:
|
382
|
+
obj_dict = obj.__dict__
|
370
383
|
|
371
384
|
return {
|
372
385
|
key: self.sanitize_for_serialization(val)
|
@@ -505,31 +518,30 @@ class ApiClient:
|
|
505
518
|
|
506
519
|
return "&".join(["=".join(map(str, item)) for item in new_params])
|
507
520
|
|
508
|
-
def files_parameters(self, files
|
521
|
+
def files_parameters(self, files: Dict[str, Union[str, bytes]]):
|
509
522
|
"""Builds form parameters.
|
510
523
|
|
511
524
|
:param files: File parameters.
|
512
525
|
:return: Form parameters with files.
|
513
526
|
"""
|
514
527
|
params = []
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
528
|
+
for k, v in files.items():
|
529
|
+
if isinstance(v, str):
|
530
|
+
with open(v, 'rb') as f:
|
531
|
+
filename = os.path.basename(f.name)
|
532
|
+
filedata = f.read()
|
533
|
+
elif isinstance(v, bytes):
|
534
|
+
filename = k
|
535
|
+
filedata = v
|
536
|
+
else:
|
537
|
+
raise ValueError("Unsupported file value")
|
538
|
+
mimetype = (
|
539
|
+
mimetypes.guess_type(filename)[0]
|
540
|
+
or 'application/octet-stream'
|
541
|
+
)
|
542
|
+
params.append(
|
543
|
+
tuple([k, tuple([filename, filedata, mimetype])])
|
544
|
+
)
|
533
545
|
return params
|
534
546
|
|
535
547
|
def select_header_accept(self, accepts: List[str]) -> Optional[str]:
|
stadiamaps/configuration.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -399,8 +399,8 @@ conf = stadiamaps.Configuration(
|
|
399
399
|
return "Python SDK Debug Report:\n"\
|
400
400
|
"OS: {env}\n"\
|
401
401
|
"Python Version: {pyversion}\n"\
|
402
|
-
"Version of the API: 6.
|
403
|
-
"SDK Package Version:
|
402
|
+
"Version of the API: 6.3.0\n"\
|
403
|
+
"SDK Package Version: 3.1.0".\
|
404
404
|
format(env=sys.platform, pyversion=sys.version)
|
405
405
|
|
406
406
|
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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/__init__.py
CHANGED
@@ -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.
|
9
|
+
The version of the OpenAPI document: 6.3.0
|
10
10
|
Contact: support@stadiamaps.com
|
11
11
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
12
12
|
|
@@ -53,6 +53,7 @@ from stadiamaps.models.locate_edge import LocateEdge
|
|
53
53
|
from stadiamaps.models.locate_edge_info import LocateEdgeInfo
|
54
54
|
from stadiamaps.models.locate_node import LocateNode
|
55
55
|
from stadiamaps.models.locate_object import LocateObject
|
56
|
+
from stadiamaps.models.low_speed_vehicle_costing_options import LowSpeedVehicleCostingOptions
|
56
57
|
from stadiamaps.models.maneuver_sign import ManeuverSign
|
57
58
|
from stadiamaps.models.maneuver_sign_element import ManeuverSignElement
|
58
59
|
from stadiamaps.models.map_match_costing_model import MapMatchCostingModel
|
@@ -65,6 +66,7 @@ from stadiamaps.models.matrix_costing_model import MatrixCostingModel
|
|
65
66
|
from stadiamaps.models.matrix_distance import MatrixDistance
|
66
67
|
from stadiamaps.models.matrix_request import MatrixRequest
|
67
68
|
from stadiamaps.models.matrix_response import MatrixResponse
|
69
|
+
from stadiamaps.models.matrix_waypoint import MatrixWaypoint
|
68
70
|
from stadiamaps.models.motor_scooter_costing_options import MotorScooterCostingOptions
|
69
71
|
from stadiamaps.models.motorcycle_costing_options import MotorcycleCostingOptions
|
70
72
|
from stadiamaps.models.nearest_roads_request import NearestRoadsRequest
|
stadiamaps/models/access.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/contour.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/coordinate.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -21,7 +21,7 @@ from typing_extensions import Self
|
|
21
21
|
|
22
22
|
class CostingModel(str, Enum):
|
23
23
|
"""
|
24
|
-
|
24
|
+
A model which influences the routing based on the type of travel. The costing model affects parameters ranging from which roads are legally accessible to preferences based on comfort or speed. See https://valhalla.github.io/valhalla/api/turn-by-turn/api-reference/#costing-models for in-depth descriptions of each costing model.
|
25
25
|
"""
|
26
26
|
|
27
27
|
"""
|
@@ -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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
@@ -22,6 +22,7 @@ from pydantic import BaseModel, ConfigDict
|
|
22
22
|
from typing import Any, ClassVar, Dict, List, Optional
|
23
23
|
from stadiamaps.models.auto_costing_options import AutoCostingOptions
|
24
24
|
from stadiamaps.models.bicycle_costing_options import BicycleCostingOptions
|
25
|
+
from stadiamaps.models.low_speed_vehicle_costing_options import LowSpeedVehicleCostingOptions
|
25
26
|
from stadiamaps.models.motor_scooter_costing_options import MotorScooterCostingOptions
|
26
27
|
from stadiamaps.models.motorcycle_costing_options import MotorcycleCostingOptions
|
27
28
|
from stadiamaps.models.pedestrian_costing_options import PedestrianCostingOptions
|
@@ -41,8 +42,9 @@ class CostingOptions(BaseModel):
|
|
41
42
|
motor_scooter: Optional[MotorScooterCostingOptions] = None
|
42
43
|
motorcycle: Optional[MotorcycleCostingOptions] = None
|
43
44
|
pedestrian: Optional[PedestrianCostingOptions] = None
|
45
|
+
low_speed_vehicle: Optional[LowSpeedVehicleCostingOptions] = None
|
44
46
|
additional_properties: Dict[str, Any] = {}
|
45
|
-
__properties: ClassVar[List[str]] = ["auto", "bus", "taxi", "truck", "bicycle", "motor_scooter", "motorcycle", "pedestrian"]
|
47
|
+
__properties: ClassVar[List[str]] = ["auto", "bus", "taxi", "truck", "bicycle", "motor_scooter", "motorcycle", "pedestrian", "low_speed_vehicle"]
|
46
48
|
|
47
49
|
model_config = ConfigDict(
|
48
50
|
populate_by_name=True,
|
@@ -109,6 +111,9 @@ class CostingOptions(BaseModel):
|
|
109
111
|
# override the default output from pydantic by calling `to_dict()` of pedestrian
|
110
112
|
if self.pedestrian:
|
111
113
|
_dict['pedestrian'] = self.pedestrian.to_dict()
|
114
|
+
# override the default output from pydantic by calling `to_dict()` of low_speed_vehicle
|
115
|
+
if self.low_speed_vehicle:
|
116
|
+
_dict['low_speed_vehicle'] = self.low_speed_vehicle.to_dict()
|
112
117
|
# puts key-value pairs in additional_properties in the top level
|
113
118
|
if self.additional_properties is not None:
|
114
119
|
for _key, _value in self.additional_properties.items():
|
@@ -133,7 +138,8 @@ class CostingOptions(BaseModel):
|
|
133
138
|
"bicycle": BicycleCostingOptions.from_dict(obj["bicycle"]) if obj.get("bicycle") is not None else None,
|
134
139
|
"motor_scooter": MotorScooterCostingOptions.from_dict(obj["motor_scooter"]) if obj.get("motor_scooter") is not None else None,
|
135
140
|
"motorcycle": MotorcycleCostingOptions.from_dict(obj["motorcycle"]) if obj.get("motorcycle") is not None else None,
|
136
|
-
"pedestrian": PedestrianCostingOptions.from_dict(obj["pedestrian"]) if obj.get("pedestrian") is not None else None
|
141
|
+
"pedestrian": PedestrianCostingOptions.from_dict(obj["pedestrian"]) if obj.get("pedestrian") is not None else None,
|
142
|
+
"low_speed_vehicle": LowSpeedVehicleCostingOptions.from_dict(obj["low_speed_vehicle"]) if obj.get("low_speed_vehicle") is not None else None
|
137
143
|
})
|
138
144
|
# store additional fields in additional_properties
|
139
145
|
for _key in obj.keys():
|
@@ -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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/edge_sign.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/edge_use.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|
stadiamaps/models/end_node.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.
|
8
|
+
The version of the OpenAPI document: 6.3.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.
|
8
|
+
The version of the OpenAPI document: 6.3.0
|
9
9
|
Contact: support@stadiamaps.com
|
10
10
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
11
11
|
|