Skip to content

Commit 5f9ddd6

Browse files
author
GitLab CI/CD
committed
Generated update. Please review before merging.
1 parent 8d52e26 commit 5f9ddd6

9 files changed

+46
-113
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
# openrouteservice
1+
# openrouteservice-py
2+
> [!IMPORTANT]
3+
> The new version of `openrouteservice-py` is generated using swagger-codegen and is **not compatible** with the old SDK. However the methods of the old client are still available and marked as deprecated in the new SDK during a transition phase.
4+
>
5+
> Please migrate your project to the new SDK to be able to access all new features of the openrouteservice!
6+
27
The openrouteservice library gives you painless access to the [openrouteservice](https://openrouteservice.org) (ORS) routing API's. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) using our latest API specifications.
38

49
| API Version | Package version | Build package |

docs/DirectionsServiceApi.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.DirectionsServiceApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -22,14 +25,8 @@ import openrouteservice
2225
from openrouteservice.rest import ApiException
2326
from pprint import pprint
2427

25-
# Configure API key authorization: ApiKeyAuth
26-
configuration = openrouteservice.Configuration()
27-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
28-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
29-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
30-
3128
# create an instance of the API class
32-
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
29+
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3330
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
3431
profile = 'profile_example' # str | Specifies the route profile.
3532

@@ -78,14 +75,8 @@ import openrouteservice
7875
from openrouteservice.rest import ApiException
7976
from pprint import pprint
8077

81-
# Configure API key authorization: ApiKeyAuth
82-
configuration = openrouteservice.Configuration()
83-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
84-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
85-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
86-
8778
# create an instance of the API class
88-
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
79+
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
8980
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
9081
profile = 'profile_example' # str | Specifies the route profile.
9182

docs/ElevationApi.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.ElevationApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -23,14 +26,8 @@ import openrouteservice
2326
from openrouteservice.rest import ApiException
2427
from pprint import pprint
2528

26-
# Configure API key authorization: ApiKeyAuth
27-
configuration = openrouteservice.Configuration()
28-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
29-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
30-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
31-
3229
# create an instance of the API class
33-
api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
30+
api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3431
body = openrouteservice.ElevationLineBody() # ElevationLineBody | Query the elevation of a line in various formats.
3532

3633
try:
@@ -77,14 +74,8 @@ import openrouteservice
7774
from openrouteservice.rest import ApiException
7875
from pprint import pprint
7976

80-
# Configure API key authorization: ApiKeyAuth
81-
configuration = openrouteservice.Configuration()
82-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
83-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
84-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
85-
8677
# create an instance of the API class
87-
api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
78+
api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
8879
geometry = [3.4] # list[float] | The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295]
8980
format_out = 'geojson' # str | The output format to be returned. (optional) (default to geojson)
9081
dataset = 'srtm' # str | The elevation dataset to be used. (optional) (default to srtm)
@@ -135,14 +126,8 @@ import openrouteservice
135126
from openrouteservice.rest import ApiException
136127
from pprint import pprint
137128

138-
# Configure API key authorization: ApiKeyAuth
139-
configuration = openrouteservice.Configuration()
140-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
141-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
142-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
143-
144129
# create an instance of the API class
145-
api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
130+
api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
146131
body = openrouteservice.ElevationPointBody() # ElevationPointBody | Query the elevation of a point in various formats.
147132

148133
try:

docs/GeocodeApi.md

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.GeocodeApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -24,14 +27,8 @@ import openrouteservice
2427
from openrouteservice.rest import ApiException
2528
from pprint import pprint
2629

27-
# Configure API key authorization: ApiKeyAuth
28-
configuration = openrouteservice.Configuration()
29-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
30-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
31-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
32-
3330
# create an instance of the API class
34-
api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
31+
api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3532
text = 'text_example' # str | Name of location, street address or postal code.
3633
focus_point_lon = 3.4 # float | Longitude of the `focus.point`. Specify the focus point to order results by linear distance to this point. Works for up to 100 kilometers distance. Use with `focus.point.lat`. (optional)
3734
focus_point_lat = 3.4 # float | Latitude of the `focus.point`. Specify the focus point to order results by linear distance to this point. Works for up to 100 kilometers distance. Use with `focus.point.lon`. (optional)
@@ -96,14 +93,8 @@ import openrouteservice
9693
from openrouteservice.rest import ApiException
9794
from pprint import pprint
9895

99-
# Configure API key authorization: ApiKeyAuth
100-
configuration = openrouteservice.Configuration()
101-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
102-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
103-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
104-
10596
# create an instance of the API class
106-
api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
97+
api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
10798
point_lon = 3.4 # float | Longitude of the coordinate to query.
10899
point_lat = 48.858268 # float | Latitude of the coordinate to query. (default to 48.858268)
109100
boundary_circle_radius = 1 # float | Restrict search to circular region around `point.lat/point.lon`. Value in kilometers. (optional) (default to 1)
@@ -162,14 +153,8 @@ import openrouteservice
162153
from openrouteservice.rest import ApiException
163154
from pprint import pprint
164155

165-
# Configure API key authorization: ApiKeyAuth
166-
configuration = openrouteservice.Configuration()
167-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
168-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
169-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
170-
171156
# create an instance of the API class
172-
api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
157+
api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
173158
text = 'text_example' # str | Name of location, street address or postal code.
174159
focus_point_lon = 3.4 # float | Longitude of the `focus.point`. Specify the focus point to order results by linear distance to this point. Works for up to 100 kilometers distance. Use with `focus.point.lat`. (optional)
175160
focus_point_lat = 3.4 # float | Latitude of the `focus.point`. Specify the focus point to order results by linear distance to this point. Works for up to 100 kilometers distance. Use with `focus.point.lon`. (optional)
@@ -244,14 +229,8 @@ import openrouteservice
244229
from openrouteservice.rest import ApiException
245230
from pprint import pprint
246231

247-
# Configure API key authorization: ApiKeyAuth
248-
configuration = openrouteservice.Configuration()
249-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
250-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
251-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
252-
253232
# create an instance of the API class
254-
api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
233+
api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
255234
address = 'address_example' # str | Search for full address with house number or only a street name. (optional)
256235
neighbourhood = 'neighbourhood_example' # str | Search for neighbourhoods. Neighbourhoods are vernacular geographic entities that may not necessarily be official administrative divisions but are important nonetheless. Example: `Notting Hill`. (optional)
257236
country = 'country_example' # str | Search for full country name, [alpha 2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) or [alpha 3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) codes. (optional)

docs/IsochronesServiceApi.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.IsochronesServiceApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
2124
from openrouteservice.rest import ApiException
2225
from pprint import pprint
2326

24-
# Configure API key authorization: ApiKeyAuth
25-
configuration = openrouteservice.Configuration()
26-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
27-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
28-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
29-
3027
# create an instance of the API class
31-
api_instance = openrouteservice.IsochronesServiceApi(openrouteservice.ApiClient(configuration))
28+
api_instance = openrouteservice.IsochronesServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3229
body = openrouteservice.IsochronesProfileBody() # IsochronesProfileBody |
3330
profile = 'profile_example' # str | Specifies the route profile.
3431

docs/MatrixServiceApi.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.MatrixServiceApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
2124
from openrouteservice.rest import ApiException
2225
from pprint import pprint
2326

24-
# Configure API key authorization: ApiKeyAuth
25-
configuration = openrouteservice.Configuration()
26-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
27-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
28-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
29-
3027
# create an instance of the API class
31-
api_instance = openrouteservice.MatrixServiceApi(openrouteservice.ApiClient(configuration))
28+
api_instance = openrouteservice.MatrixServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3229
body = openrouteservice.MatrixProfileBody() # MatrixProfileBody |
3330
profile = 'profile_example' # str | Specifies the matrix profile.
3431

docs/OptimizationApi.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.OptimizationApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
2124
from openrouteservice.rest import ApiException
2225
from pprint import pprint
2326

24-
# Configure API key authorization: ApiKeyAuth
25-
configuration = openrouteservice.Configuration()
26-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
27-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
28-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
29-
3027
# create an instance of the API class
31-
api_instance = openrouteservice.OptimizationApi(openrouteservice.ApiClient(configuration))
28+
api_instance = openrouteservice.OptimizationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3229
body = openrouteservice.OptimizationBody() # OptimizationBody | The request body of the optimization request.
3330

3431
try:

docs/PoisApi.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.PoisApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
2124
from openrouteservice.rest import ApiException
2225
from pprint import pprint
2326

24-
# Configure API key authorization: ApiKeyAuth
25-
configuration = openrouteservice.Configuration()
26-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
27-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
28-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
29-
3027
# create an instance of the API class
31-
api_instance = openrouteservice.PoisApi(openrouteservice.ApiClient(configuration))
28+
api_instance = openrouteservice.PoisApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3229
body = openrouteservice.OpenpoiservicePoiRequest() # OpenpoiservicePoiRequest | body for a post request
3330

3431
try:

docs/SnappingServiceApi.md

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# openrouteservice.SnappingServiceApi
22

3+
> [!NOTE]
4+
> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
5+
36
All URIs are relative to *https://api.openrouteservice.org*
47

58
Method | HTTP request | Description
@@ -23,14 +26,8 @@ import openrouteservice
2326
from openrouteservice.rest import ApiException
2427
from pprint import pprint
2528

26-
# Configure API key authorization: ApiKeyAuth
27-
configuration = openrouteservice.Configuration()
28-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
29-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
30-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
31-
3229
# create an instance of the API class
33-
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
30+
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
3431
body = openrouteservice.SnapProfileBody() # SnapProfileBody |
3532
profile = 'profile_example' # str | Specifies the route profile.
3633

@@ -79,14 +76,8 @@ import openrouteservice
7976
from openrouteservice.rest import ApiException
8077
from pprint import pprint
8178

82-
# Configure API key authorization: ApiKeyAuth
83-
configuration = openrouteservice.Configuration()
84-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
85-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
86-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
87-
8879
# create an instance of the API class
89-
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
80+
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
9081
body = openrouteservice.ProfileGeojsonBody() # ProfileGeojsonBody |
9182
profile = 'profile_example' # str | Specifies the profile.
9283

@@ -135,14 +126,8 @@ import openrouteservice
135126
from openrouteservice.rest import ApiException
136127
from pprint import pprint
137128

138-
# Configure API key authorization: ApiKeyAuth
139-
configuration = openrouteservice.Configuration()
140-
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
141-
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
142-
# configuration.api_key_prefix['Authorization'] = 'Bearer'
143-
144129
# create an instance of the API class
145-
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
130+
api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
146131
body = openrouteservice.ProfileJsonBody() # ProfileJsonBody |
147132
profile = 'profile_example' # str | Specifies the profile.
148133

0 commit comments

Comments
 (0)