stadiamaps 3.1.0__py3-none-any.whl → 3.2.1__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 (117) hide show
  1. stadiamaps/__init__.py +7 -2
  2. stadiamaps/api/geocoding_api.py +384 -101
  3. stadiamaps/api/geospatial_api.py +13 -11
  4. stadiamaps/api/routing_api.py +46 -39
  5. stadiamaps/api_client.py +22 -11
  6. stadiamaps/configuration.py +19 -5
  7. stadiamaps/exceptions.py +1 -1
  8. stadiamaps/models/__init__.py +6 -1
  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/auto_costing_options.py +1 -1
  13. stadiamaps/models/base_costing_options.py +1 -1
  14. stadiamaps/models/base_trace_request.py +5 -5
  15. stadiamaps/models/bicycle_costing_options.py +1 -1
  16. stadiamaps/models/bike_network.py +1 -1
  17. stadiamaps/models/bulk_request.py +117 -0
  18. stadiamaps/models/bulk_request_query.py +138 -0
  19. stadiamaps/models/bulk_search_request_inner.py +141 -0
  20. stadiamaps/models/bulk_search_response.py +109 -0
  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 +5 -5
  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 +1 -1
  30. stadiamaps/models/geo_attributes.py +1 -1
  31. stadiamaps/models/geo_json_geometry.py +1 -1
  32. stadiamaps/models/geo_json_geometry_base.py +1 -1
  33. stadiamaps/models/geo_json_line_string.py +1 -1
  34. stadiamaps/models/geo_json_point.py +1 -1
  35. stadiamaps/models/geo_json_polygon.py +1 -1
  36. stadiamaps/models/geocoding_object.py +1 -1
  37. stadiamaps/models/height_request.py +1 -1
  38. stadiamaps/models/height_response.py +1 -1
  39. stadiamaps/models/highway_classification.py +1 -1
  40. stadiamaps/models/intersecting_edge.py +1 -1
  41. stadiamaps/models/isochrone_costing_model.py +8 -1
  42. stadiamaps/models/isochrone_feature.py +1 -1
  43. stadiamaps/models/isochrone_properties.py +1 -1
  44. stadiamaps/models/isochrone_request.py +1 -1
  45. stadiamaps/models/isochrone_response.py +1 -1
  46. stadiamaps/models/locate_detailed_edge.py +1 -1
  47. stadiamaps/models/locate_edge.py +1 -1
  48. stadiamaps/models/locate_edge_info.py +1 -1
  49. stadiamaps/models/locate_node.py +1 -1
  50. stadiamaps/models/locate_object.py +11 -1
  51. stadiamaps/models/low_speed_vehicle_costing_options.py +1 -1
  52. stadiamaps/models/maneuver_sign.py +1 -1
  53. stadiamaps/models/maneuver_sign_element.py +1 -1
  54. stadiamaps/models/map_match_costing_model.py +8 -2
  55. stadiamaps/models/map_match_request.py +5 -5
  56. stadiamaps/models/map_match_route_response.py +1 -1
  57. stadiamaps/models/map_match_trace_options.py +1 -1
  58. stadiamaps/models/map_match_waypoint.py +1 -1
  59. stadiamaps/models/matched_point.py +1 -1
  60. stadiamaps/models/matrix_costing_model.py +1 -1
  61. stadiamaps/models/matrix_distance.py +1 -1
  62. stadiamaps/models/matrix_request.py +5 -5
  63. stadiamaps/models/matrix_response.py +2 -2
  64. stadiamaps/models/matrix_waypoint.py +1 -1
  65. stadiamaps/models/motor_scooter_costing_options.py +1 -1
  66. stadiamaps/models/motorcycle_costing_options.py +1 -1
  67. stadiamaps/models/nearest_roads_request.py +5 -5
  68. stadiamaps/models/node_id.py +1 -1
  69. stadiamaps/models/node_type.py +1 -1
  70. stadiamaps/models/optimized_route_request.py +5 -5
  71. stadiamaps/models/pedestrian_costing_options.py +1 -1
  72. stadiamaps/models/pelias_geo_json_feature.py +3 -5
  73. stadiamaps/models/pelias_geo_json_properties.py +2 -2
  74. stadiamaps/models/pelias_geo_json_properties_addendum.py +1 -1
  75. stadiamaps/models/pelias_geo_json_properties_addendum_osm.py +1 -1
  76. stadiamaps/models/pelias_layer.py +1 -1
  77. stadiamaps/models/pelias_response.py +1 -1
  78. stadiamaps/models/pelias_source.py +1 -1
  79. stadiamaps/models/restrictions.py +1 -1
  80. stadiamaps/models/road_class.py +1 -1
  81. stadiamaps/models/route_leg.py +2 -2
  82. stadiamaps/models/route_maneuver.py +1 -1
  83. stadiamaps/models/route_request.py +5 -5
  84. stadiamaps/models/route_response.py +1 -1
  85. stadiamaps/models/route_response_alternates_inner.py +1 -1
  86. stadiamaps/models/route_summary.py +1 -1
  87. stadiamaps/models/route_trip.py +3 -3
  88. stadiamaps/models/routing_response_waypoint.py +1 -1
  89. stadiamaps/models/routing_waypoint.py +1 -1
  90. stadiamaps/models/routing_waypoint_all_of_search_filter.py +1 -1
  91. stadiamaps/models/search_bulk_query.py +117 -0
  92. stadiamaps/models/search_bulk_request.py +141 -0
  93. stadiamaps/models/search_query.py +134 -0
  94. stadiamaps/models/search_structured_bulk_query.py +117 -0
  95. stadiamaps/models/search_structured_query.py +148 -0
  96. stadiamaps/models/simple_routing_waypoint.py +1 -1
  97. stadiamaps/models/speeds.py +1 -1
  98. stadiamaps/models/trace_attribute_filter_options.py +1 -1
  99. stadiamaps/models/trace_attribute_key.py +1 -1
  100. stadiamaps/models/trace_attributes_base_response.py +6 -1
  101. stadiamaps/models/trace_attributes_request.py +5 -5
  102. stadiamaps/models/trace_attributes_response.py +8 -3
  103. stadiamaps/models/trace_edge.py +1 -1
  104. stadiamaps/models/travel_mode.py +1 -1
  105. stadiamaps/models/traversability.py +1 -1
  106. stadiamaps/models/truck_costing_options.py +1 -1
  107. stadiamaps/models/tz_response.py +1 -1
  108. stadiamaps/models/valhalla_languages.py +1 -1
  109. stadiamaps/models/valhalla_long_units.py +1 -1
  110. stadiamaps/models/warning.py +1 -1
  111. stadiamaps/rest.py +1 -1
  112. {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.1.dist-info}/METADATA +1 -1
  113. stadiamaps-3.2.1.dist-info/RECORD +139 -0
  114. {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.1.dist-info}/WHEEL +1 -1
  115. stadiamaps-3.1.0.dist-info/RECORD +0 -130
  116. {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.1.dist-info}/LICENSE.txt +0 -0
  117. {stadiamaps-3.1.0.dist-info → stadiamaps-3.2.1.dist-info}/top_level.txt +0 -0
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -97,6 +97,16 @@ class LocateObject(BaseModel):
97
97
  for _key, _value in self.additional_properties.items():
98
98
  _dict[_key] = _value
99
99
 
100
+ # set to None if nodes (nullable) is None
101
+ # and model_fields_set contains the field
102
+ if self.nodes is None and "nodes" in self.model_fields_set:
103
+ _dict['nodes'] = None
104
+
105
+ # set to None if edges (nullable) is None
106
+ # and model_fields_set contains the field
107
+ if self.edges is None and "edges" in self.model_fields_set:
108
+ _dict['edges'] = None
109
+
100
110
  return _dict
101
111
 
102
112
  @classmethod
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -28,9 +28,15 @@ class MapMatchCostingModel(str, Enum):
28
28
  allowed enum values
29
29
  """
30
30
  AUTO = 'auto'
31
- BICYCLE = 'bicycle'
32
31
  BUS = 'bus'
32
+ TAXI = 'taxi'
33
+ TRUCK = 'truck'
34
+ BICYCLE = 'bicycle'
35
+ BIKESHARE = 'bikeshare'
36
+ MOTOR_SCOOTER = 'motor_scooter'
37
+ MOTORCYCLE = 'motorcycle'
33
38
  PEDESTRIAN = 'pedestrian'
39
+ LOW_SPEED_VEHICLE = 'low_speed_vehicle'
34
40
 
35
41
  @classmethod
36
42
  def from_json(cls, json_str: str) -> 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: 6.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -39,8 +39,8 @@ class MapMatchRequest(BaseModel):
39
39
  costing: MapMatchCostingModel
40
40
  costing_options: Optional[CostingOptions] = None
41
41
  shape_match: Optional[StrictStr] = Field(default=None, description="Three snapping modes provide some control over how the map matching occurs. `edge_walk` is fast, but requires extremely precise data that matches the route graph almost perfectly. `map_snap` can handle significantly noisier data, but is very expensive. `walk_or_snap`, the default, tries to use edge walking first and falls back to map matching if edge walking fails. In general, you should not need to change this parameter unless you want to trace a multi-leg route with multiple `break` locations in the `shape`.")
42
- units: Optional[DistanceUnit] = None
43
- language: Optional[ValhallaLanguages] = None
42
+ units: Optional[DistanceUnit] = DistanceUnit.KM
43
+ language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
44
44
  directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
45
45
  begin_time: Optional[StrictInt] = Field(default=None, description="The timestamp at the start of the trace. Combined with `durations`, this provides a way to include timing information for an `encoded_polyline` trace.")
46
46
  durations: Optional[StrictInt] = Field(default=None, description="A list of durations (in seconds) between each successive pair of points in a polyline.")
@@ -147,8 +147,8 @@ class MapMatchRequest(BaseModel):
147
147
  "costing": obj.get("costing"),
148
148
  "costing_options": CostingOptions.from_dict(obj["costing_options"]) if obj.get("costing_options") is not None else None,
149
149
  "shape_match": obj.get("shape_match"),
150
- "units": obj.get("units"),
151
- "language": obj.get("language"),
150
+ "units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
151
+ "language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
152
152
  "directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
153
153
  "begin_time": obj.get("begin_time"),
154
154
  "durations": obj.get("durations"),
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -33,8 +33,8 @@ class MatrixRequest(BaseModel):
33
33
  """
34
34
  MatrixRequest
35
35
  """ # noqa: E501
36
- units: Optional[DistanceUnit] = None
37
- language: Optional[ValhallaLanguages] = None
36
+ units: Optional[DistanceUnit] = DistanceUnit.KM
37
+ language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
38
38
  directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
39
39
  id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
40
40
  sources: Annotated[List[MatrixWaypoint], Field(min_length=1)] = Field(description="The list of starting locations")
@@ -130,8 +130,8 @@ class MatrixRequest(BaseModel):
130
130
  return cls.model_validate(obj)
131
131
 
132
132
  _obj = cls.model_validate({
133
- "units": obj.get("units"),
134
- "language": obj.get("language"),
133
+ "units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
134
+ "language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
135
135
  "directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
136
136
  "id": obj.get("id"),
137
137
  "sources": [MatrixWaypoint.from_dict(_item) for _item in obj["sources"]] if obj.get("sources") is not None else None,
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -137,7 +137,7 @@ class MatrixResponse(BaseModel):
137
137
  for _item in obj["sources_to_targets"]
138
138
  ] if obj.get("sources_to_targets") is not None else None,
139
139
  "warnings": [Warning.from_dict(_item) for _item in obj["warnings"]] if obj.get("warnings") is not None else None,
140
- "units": obj.get("units")
140
+ "units": obj.get("units") if obj.get("units") is not None else ValhallaLongUnits.KILOMETERS
141
141
  })
142
142
  # store additional fields in additional_properties
143
143
  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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -33,8 +33,8 @@ class NearestRoadsRequest(BaseModel):
33
33
  """
34
34
  NearestRoadsRequest
35
35
  """ # noqa: E501
36
- units: Optional[DistanceUnit] = None
37
- language: Optional[ValhallaLanguages] = None
36
+ units: Optional[DistanceUnit] = DistanceUnit.KM
37
+ language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
38
38
  directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
39
39
  locations: Annotated[List[Coordinate], Field(min_length=1)]
40
40
  costing: Optional[CostingModel] = None
@@ -121,8 +121,8 @@ class NearestRoadsRequest(BaseModel):
121
121
  return cls.model_validate(obj)
122
122
 
123
123
  _obj = cls.model_validate({
124
- "units": obj.get("units"),
125
- "language": obj.get("language"),
124
+ "units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
125
+ "language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
126
126
  "directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
127
127
  "locations": [Coordinate.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else None,
128
128
  "costing": obj.get("costing"),
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -33,8 +33,8 @@ class OptimizedRouteRequest(BaseModel):
33
33
  """
34
34
  OptimizedRouteRequest
35
35
  """ # noqa: E501
36
- units: Optional[DistanceUnit] = None
37
- language: Optional[ValhallaLanguages] = None
36
+ units: Optional[DistanceUnit] = DistanceUnit.KM
37
+ language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
38
38
  directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
39
39
  id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
40
40
  locations: Annotated[List[Coordinate], Field(min_length=3)] = Field(description="The list of locations. The first and last are assumed to be the start and end points, and all intermediate points are locations that you want to visit along the way.")
@@ -121,8 +121,8 @@ class OptimizedRouteRequest(BaseModel):
121
121
  return cls.model_validate(obj)
122
122
 
123
123
  _obj = cls.model_validate({
124
- "units": obj.get("units"),
125
- "language": obj.get("language"),
124
+ "units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
125
+ "language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
126
126
  "directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
127
127
  "id": obj.get("id"),
128
128
  "locations": [Coordinate.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else None,
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -34,9 +34,8 @@ class PeliasGeoJSONFeature(BaseModel):
34
34
  geometry: GeoJSONPoint
35
35
  properties: Optional[PeliasGeoJSONProperties] = None
36
36
  bbox: Optional[Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=4, max_length=4)]] = Field(default=None, description="An array of 4 floating point numbers representing the (W, S, E, N) extremes of the features found.")
37
- id: Optional[StrictStr] = None
38
37
  additional_properties: Dict[str, Any] = {}
39
- __properties: ClassVar[List[str]] = ["type", "geometry", "properties", "bbox", "id"]
38
+ __properties: ClassVar[List[str]] = ["type", "geometry", "properties", "bbox"]
40
39
 
41
40
  @field_validator('type')
42
41
  def type_validate_enum(cls, value):
@@ -112,8 +111,7 @@ class PeliasGeoJSONFeature(BaseModel):
112
111
  "type": obj.get("type"),
113
112
  "geometry": GeoJSONPoint.from_dict(obj["geometry"]) if obj.get("geometry") is not None else None,
114
113
  "properties": PeliasGeoJSONProperties.from_dict(obj["properties"]) if obj.get("properties") is not None else None,
115
- "bbox": obj.get("bbox"),
116
- "id": obj.get("id")
114
+ "bbox": obj.get("bbox")
117
115
  })
118
116
  # store additional fields in additional_properties
119
117
  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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -29,7 +29,7 @@ class PeliasGeoJSONProperties(BaseModel):
29
29
  """
30
30
  PeliasGeoJSONProperties
31
31
  """ # noqa: E501
32
- gid: Optional[StrictStr] = Field(default=None, description="A scoped GID for this result. This can be passed to the place endpoint. Note that these are not always stable. For OSM, Geonames, and Who's on First, these are usually stable, but for other sources like OSM, no stability is guaranteed.")
32
+ gid: Optional[StrictStr] = Field(default=None, description="A scoped GID for this result. This can be passed to the place endpoint. Note that these are not always stable. For Geonames and Who's on First, these are usually stable, but for other sources like OSM, no stability is guaranteed.")
33
33
  source_id: Optional[StrictStr] = Field(default=None, description="An ID referencing the original data source (specified via source) for the result. These IDs are specific to the source that they originated from. For example, in the case of OSM, these typically look like way/123 or point/123.")
34
34
  label: Optional[StrictStr] = Field(default=None, description="A full, human-readable label. However, you may not necessarily want to use this; be sure to read the docs for name, locality, and region before making a decision. This field is mostly localized. The order of components is generally locally correct (ex: for an address in South Korea, the house number appears after the street name). However, components will use a request language equivalent if one exists (ex: Seoul instead of 서울 if lang=en).")
35
35
  layer: Optional[PeliasLayer] = None
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -33,7 +33,7 @@ class RouteLeg(BaseModel):
33
33
  maneuvers: Annotated[List[RouteManeuver], Field(min_length=1)]
34
34
  shape: StrictStr = Field(description="An encoded polyline (https://developers.google.com/maps/documentation/utilities/polylinealgorithm) with 6 digits of decimal precision.")
35
35
  summary: RouteSummary
36
- elevation_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The sampling distance between elevation values along the route. This echoes the request parameter having the same name.")
36
+ elevation_interval: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The sampling distance between elevation values along the route. This echoes the request parameter having the same name (converted to `units` if necessary).")
37
37
  elevation: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, description="An array of elevation values sampled every `elevation_interval`. Units are either metric or imperial depending on the value of `units`.")
38
38
  additional_properties: Dict[str, Any] = {}
39
39
  __properties: ClassVar[List[str]] = ["maneuvers", "shape", "summary", "elevation_interval", "elevation"]
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11
 
@@ -33,8 +33,8 @@ class RouteRequest(BaseModel):
33
33
  """
34
34
  RouteRequest
35
35
  """ # noqa: E501
36
- units: Optional[DistanceUnit] = None
37
- language: Optional[ValhallaLanguages] = None
36
+ units: Optional[DistanceUnit] = DistanceUnit.KM
37
+ language: Optional[ValhallaLanguages] = ValhallaLanguages.EN_MINUS_US
38
38
  directions_type: Optional[StrictStr] = Field(default='instructions', description="The level of directional narrative to include. Locations and times will always be returned, but narrative generation verbosity can be controlled with this parameter.")
39
39
  id: Optional[StrictStr] = Field(default=None, description="An identifier to disambiguate requests (echoed by the server).")
40
40
  locations: Annotated[List[RoutingWaypoint], Field(min_length=2)]
@@ -133,8 +133,8 @@ class RouteRequest(BaseModel):
133
133
  return cls.model_validate(obj)
134
134
 
135
135
  _obj = cls.model_validate({
136
- "units": obj.get("units"),
137
- "language": obj.get("language"),
136
+ "units": obj.get("units") if obj.get("units") is not None else DistanceUnit.KM,
137
+ "language": obj.get("language") if obj.get("language") is not None else ValhallaLanguages.EN_MINUS_US,
138
138
  "directions_type": obj.get("directions_type") if obj.get("directions_type") is not None else 'instructions',
139
139
  "id": obj.get("id"),
140
140
  "locations": [RoutingWaypoint.from_dict(_item) for _item in obj["locations"]] if obj.get("locations") is not None else None,
@@ -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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
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.3.0
8
+ The version of the OpenAPI document: 6.6.3
9
9
  Contact: support@stadiamaps.com
10
10
  Generated by OpenAPI Generator (https://openapi-generator.tech)
11
11