Skip to content

Commit 61565e7

Browse files
author
Jakob Stolze
committed
build: rebuild client using latest templates
1 parent 8c7d8dd commit 61565e7

17 files changed

+210
-1015
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,3 @@ openrouteservice-js/node_modules
7676
# Generated and used during building
7777
client_version.txt
7878
openrouteservice_ignore_paths.yaml
79-

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]
33

44
| API Version | Package version | Build package |
55
| -------------- | ------------------ | ------------------ |
6-
| 7.1.1 | 7.1.1.post1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
6+
| 7.1.1 | 7.1.1.post2 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
77

88
For further details, please visit:
99
- our [homepage](https://openrouteservice.org)
@@ -65,7 +65,7 @@ directionsApi = ors.DirectionsServiceApi(
6565
)
6666

6767
# create request body
68-
body = ors.DirectionsService(
68+
body = ors.DirectionsServiceBody(
6969
coordinates=[[8.34234,48.23424],[8.34423,48.26424]]
7070
)
7171

@@ -126,8 +126,7 @@ Class | Method | HTTP request | Description
126126
## Documentation For Models
127127

128128
- [AlternativeRoutes](docs/AlternativeRoutes.md)
129-
- [DirectionsService](docs/DirectionsService.md)
130-
- [DirectionsService1](docs/DirectionsService1.md)
129+
- [DirectionsServiceBody](docs/DirectionsServiceBody.md)
131130
- [ElevationLineBody](docs/ElevationLineBody.md)
132131
- [ElevationPointBody](docs/ElevationPointBody.md)
133132
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)

docs/DirectionsServiceApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'
3030

3131
# create an instance of the API class
3232
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
33-
body = openrouteservice.DirectionsService() # DirectionsService |
33+
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
3434
profile = 'profile_example' # str | Specifies the route profile.
3535

3636
try:
@@ -45,7 +45,7 @@ except ApiException as e:
4545

4646
Name | Type | Description | Notes
4747
------------- | ------------- | ------------- | -------------
48-
**body** | [**DirectionsService**](DirectionsService.md)| |
48+
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
4949
**profile** | **str**| Specifies the route profile. |
5050

5151
### Return type
@@ -86,7 +86,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'
8686

8787
# create an instance of the API class
8888
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
89-
body = openrouteservice.DirectionsService1() # DirectionsService1 |
89+
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
9090
profile = 'profile_example' # str | Specifies the route profile.
9191

9292
try:
@@ -101,7 +101,7 @@ except ApiException as e:
101101

102102
Name | Type | Description | Notes
103103
------------- | ------------- | ------------- | -------------
104-
**body** | [**DirectionsService1**](DirectionsService1.md)| |
104+
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
105105
**profile** | **str**| Specifies the route profile. |
106106

107107
### Return type

docs/DirectionsServiceBody.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# DirectionsServiceBody
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**alternative_routes** | [**AlternativeRoutes**](AlternativeRoutes.md) | | [optional]
7+
**attributes** | **list[str]** | List of route attributes | [optional]
8+
**bearings** | **list[list[float]]** | Specifies a list of pairs (bearings and deviations) to filter the segments of the road network a waypoint can snap to. \"For example `bearings=[[45,10],[120,20]]`. \"Each pair is a comma-separated list that can consist of one or two float values, where the first value is the bearing and the second one is the allowed deviation from the bearing. \"The bearing can take values between `0` and `360` clockwise from true north. If the deviation is not set, then the default value of `100` degrees is used. \"The number of pairs must correspond to the number of waypoints. \"The number of bearings corresponds to the length of waypoints-1 or waypoints. If the bearing information for the last waypoint is given, then this will control the sector from which the destination waypoint may be reached. \"You can skip a bearing for a certain waypoint by passing an empty value for an array, e.g. `[30,20],[],[40,20]`. | [optional]
9+
**continue_straight** | **bool** | Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. | [optional] [default to False]
10+
**coordinates** | **list[list[float]]** | The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) |
11+
**elevation** | **bool** | Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. | [optional]
12+
**extra_info** | **list[str]** | The extra info items to include in the response | [optional]
13+
**geometry** | **bool** | Specifies whether to return geometry. | [optional] [default to True]
14+
**geometry_simplify** | **bool** | Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. | [optional] [default to False]
15+
**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
16+
**ignore_transfers** | **bool** | Specifies if transfers as criterion should be ignored. | [optional] [default to False]
17+
**instructions** | **bool** | Specifies whether to return instructions. | [optional] [default to True]
18+
**instructions_format** | **str** | Select html for more verbose instructions. | [optional] [default to 'text']
19+
**language** | **str** | Language for the route instructions. | [optional] [default to 'en']
20+
**maneuvers** | **bool** | Specifies whether the maneuver object is included into the step object or not. | [optional] [default to False]
21+
**maximum_speed** | **float** | The maximum speed specified by user. | [optional]
22+
**options** | [**RouteOptions**](RouteOptions.md) | | [optional]
23+
**preference** | **str** | Specifies the route preference | [optional] [default to 'recommended']
24+
**radiuses** | **list[float]** | A list of maximum distances (measured in metres) that limit the search of nearby road segments to every given waypoint. The values must be greater than 0, the value of -1 specifies using the maximum possible search radius. The number of radiuses correspond to the number of waypoints. If only a single value is given, it will be applied to all waypoints. | [optional]
25+
**roundabout_exits** | **bool** | Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. | [optional] [default to False]
26+
**schedule** | **bool** | If true, return a public transport schedule starting at <departure> for the next <schedule_duration> minutes. | [optional] [default to False]
27+
**schedule_duration** | **str** | The time window when requesting a public transport schedule. The format is passed as ISO 8601 duration: https://en.wikipedia.org/wiki/ISO_8601#Durations | [optional]
28+
**schedule_rows** | **int** | The maximum amount of entries that should be returned when requesting a schedule. | [optional]
29+
**skip_segments** | **list[int]** | Specifies the segments that should be skipped in the route calculation. A segment is the connection between two given coordinates and the counting starts with 1 for the connection between the first and second coordinate. | [optional]
30+
**suppress_warnings** | **bool** | Suppress warning messages in the response | [optional]
31+
**units** | **str** | Specifies the distance unit. | [optional] [default to 'm']
32+
**walking_time** | **str** | Maximum duration for walking access and egress of public transport. The value is passed in ISO 8601 duration format: https://en.wikipedia.org/wiki/ISO_8601#Durations | [optional] [default to 'PT15M']
33+
34+
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
35+

examples/Avoid_ConstructionSites.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5724,7 +5724,7 @@
57245724
"map2 = folium.Map(**map_params)\n",
57255725
"\n",
57265726
"api_instance = ors.DirectionsServiceApi(ors.apiClient(apiKey=api_key))\n",
5727-
"body = ors.DirectionsService(\n",
5727+
"body = ors.DirectionsServiceBody(\n",
57285728
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
57295729
" preference='shortest',\n",
57305730
" instructions=False\n",
@@ -6157,7 +6157,7 @@
61576157
],
61586158
"source": [
61596159
"# Add the site polygons to the request parameters\n",
6160-
"body = ors.DirectionsService(\n",
6160+
"body = ors.DirectionsServiceBody(\n",
61616161
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
61626162
" preference='shortest',\n",
61636163
" instructions=False,\n",

examples/Dieselgate_Routing.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
"\n",
229229
"# Request route\n",
230230
"coordinates = [[13.372582, 52.520295], [13.391476, 52.508856]]\n",
231-
"body = ors.DirectionsService(\n",
231+
"body = ors.DirectionsServiceBody(\n",
232232
" coordinates=coordinates,\n",
233233
" preference='shortest',\n",
234234
" geometry=True\n",
@@ -549,7 +549,7 @@
549549
"# Affected streets\n",
550550
"buffer = []\n",
551551
"for street in avoid_streets:\n",
552-
" body = ors.DirectionsService(\n",
552+
" body = ors.DirectionsServiceBody(\n",
553553
" coordinates=street['coords'],\n",
554554
" preference='shortest',\n",
555555
" geometry=True\n",
@@ -911,7 +911,7 @@
911911
}
912912
],
913913
"source": [
914-
"body = ors.DirectionsService(\n",
914+
"body = ors.DirectionsServiceBody(\n",
915915
" coordinates=coordinates,\n",
916916
" preference='shortest',\n",
917917
" instructions=False,\n",

examples/ortools_pubcrawl.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@
318318
"\n",
319319
"# See what a 'random' tour would have been\n",
320320
"pubs_coords.append(pubs_coords[0])\n",
321-
"body = ors.DirectionsService(\n",
321+
"body = ors.DirectionsServiceBody(\n",
322322
" coordinates=pubs_coords,\n",
323323
" geometry=True\n",
324324
")\n",

openrouteservice/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
from openrouteservice.configuration import Configuration
2929
# import models into sdk package
3030
from openrouteservice.models.alternative_routes import AlternativeRoutes
31-
from openrouteservice.models.directions_service import DirectionsService
32-
from openrouteservice.models.directions_service1 import DirectionsService1
31+
from openrouteservice.models.directions_service_body import DirectionsServiceBody
3332
from openrouteservice.models.elevation_line_body import ElevationLineBody
3433
from openrouteservice.models.elevation_point_body import ElevationPointBody
3534
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody

openrouteservice/api/directions_service_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_geo_json_route(self, body, profile, **kwargs): # noqa: E501
4242
>>> result = thread.get()
4343
4444
:param async_req bool
45-
:param DirectionsService body: (required)
45+
:param DirectionsServiceBody body: (required)
4646
:param str profile: Specifies the route profile. (required)
4747
:return: JSONResponse
4848
If the method is called asynchronously,
@@ -65,7 +65,7 @@ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E
6565
>>> result = thread.get()
6666
6767
:param async_req bool
68-
:param DirectionsService body: (required)
68+
:param DirectionsServiceBody body: (required)
6969
:param str profile: Specifies the route profile. (required)
7070
:return: JSONResponse
7171
If the method is called asynchronously,
@@ -149,7 +149,7 @@ def get_json_route(self, body, profile, **kwargs): # noqa: E501
149149
>>> result = thread.get()
150150
151151
:param async_req bool
152-
:param DirectionsService1 body: (required)
152+
:param DirectionsServiceBody body: (required)
153153
:param str profile: Specifies the route profile. (required)
154154
:return: JSONResponse
155155
If the method is called asynchronously,
@@ -172,7 +172,7 @@ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
172172
>>> result = thread.get()
173173
174174
:param async_req bool
175-
:param DirectionsService1 body: (required)
175+
:param DirectionsServiceBody body: (required)
176176
:param str profile: Specifies the route profile. (required)
177177
:return: JSONResponse
178178
If the method is called asynchronously,

openrouteservice/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7272
self.default_headers[header_name] = header_value
7373
self.cookie = cookie
7474
# Set default User-Agent.
75-
self.user_agent = 'Swagger-Codegen/7.1.1.post1/python'
75+
self.user_agent = 'Swagger-Codegen/7.1.1.post2/python'
7676

7777
def __del__(self):
7878
self.pool.close()

0 commit comments

Comments
 (0)