Skip to content

Commit 88e7ca9

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

18 files changed

+176
-1051
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/DirectionsService1.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

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/DirectionsService.md renamed to docs/DirectionsServiceBody.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DirectionsService
1+
# DirectionsServiceBody
22

33
## Properties
44
Name | Type | Description | Notes

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()

openrouteservice/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,5 @@ def to_debug_report(self):
247247
"OS: {env}\n"\
248248
"Python Version: {pyversion}\n"\
249249
"Version of the API: 7.1.1\n"\
250-
"SDK Package Version: 7.1.1.post1".\
250+
"SDK Package Version: 7.1.1.post2".\
251251
format(env=sys.platform, pyversion=sys.version)

openrouteservice/models/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
# import models into model package
1717
from openrouteservice.models.alternative_routes import AlternativeRoutes
18-
from openrouteservice.models.directions_service import DirectionsService
19-
from openrouteservice.models.directions_service1 import DirectionsService1
18+
from openrouteservice.models.directions_service_body import DirectionsServiceBody
2019
from openrouteservice.models.elevation_line_body import ElevationLineBody
2120
from openrouteservice.models.elevation_point_body import ElevationPointBody
2221
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody

0 commit comments

Comments
 (0)