Skip to content

Commit

Permalink
build: rebuild client using latest templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakob Stolze committed Mar 26, 2024
1 parent 8c7d8dd commit b78ca67
Show file tree
Hide file tree
Showing 13 changed files with 966 additions and 21 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -76,4 +76,3 @@ openrouteservice-js/node_modules
# Generated and used during building
client_version.txt
openrouteservice_ignore_paths.yaml

5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -3,7 +3,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]

| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
| 7.1.1 | 7.1.1.post1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
| 7.1.1 | 7.1.1.post2 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |

For further details, please visit:
- our [homepage](https://openrouteservice.org)
Expand Down Expand Up @@ -126,8 +126,7 @@ Class | Method | HTTP request | Description
## Documentation For Models

- [AlternativeRoutes](docs/AlternativeRoutes.md)
- [DirectionsService](docs/DirectionsService.md)
- [DirectionsService1](docs/DirectionsService1.md)
- [DirectionsServiceBody](docs/DirectionsServiceBody.md)
- [ElevationLineBody](docs/ElevationLineBody.md)
- [ElevationPointBody](docs/ElevationPointBody.md)
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
Expand Down
8 changes: 4 additions & 4 deletions docs/DirectionsServiceApi.md
Expand Up @@ -30,7 +30,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
body = openrouteservice.DirectionsService() # DirectionsService |
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.

try:
Expand All @@ -45,7 +45,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DirectionsService**](DirectionsService.md)| |
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
**profile** | **str**| Specifies the route profile. |

### Return type
Expand Down Expand Up @@ -86,7 +86,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'

# create an instance of the API class
api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
body = openrouteservice.DirectionsService1() # DirectionsService1 |
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.

try:
Expand All @@ -101,7 +101,7 @@ except ApiException as e:

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**DirectionsService1**](DirectionsService1.md)| |
**body** | [**DirectionsServiceBody**](DirectionsServiceBody.md)| |
**profile** | **str**| Specifies the route profile. |

### Return type
Expand Down
35 changes: 35 additions & 0 deletions docs/DirectionsServiceBody.md
@@ -0,0 +1,35 @@
# DirectionsServiceBody

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**alternative_routes** | [**AlternativeRoutes**](AlternativeRoutes.md) | | [optional]
**attributes** | **list[str]** | List of route attributes | [optional]
**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]
**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]
**coordinates** | **list[list[float]]** | The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) |
**elevation** | **bool** | Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. | [optional]
**extra_info** | **list[str]** | The extra info items to include in the response | [optional]
**geometry** | **bool** | Specifies whether to return geometry. | [optional] [default to True]
**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]
**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
**ignore_transfers** | **bool** | Specifies if transfers as criterion should be ignored. | [optional] [default to False]
**instructions** | **bool** | Specifies whether to return instructions. | [optional] [default to True]
**instructions_format** | **str** | Select html for more verbose instructions. | [optional] [default to 'text']
**language** | **str** | Language for the route instructions. | [optional] [default to 'en']
**maneuvers** | **bool** | Specifies whether the maneuver object is included into the step object or not. | [optional] [default to False]
**maximum_speed** | **float** | The maximum speed specified by user. | [optional]
**options** | [**RouteOptions**](RouteOptions.md) | | [optional]
**preference** | **str** | Specifies the route preference | [optional] [default to 'recommended']
**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]
**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]
**schedule** | **bool** | If true, return a public transport schedule starting at <departure> for the next <schedule_duration> minutes. | [optional] [default to False]
**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]
**schedule_rows** | **int** | The maximum amount of entries that should be returned when requesting a schedule. | [optional]
**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]
**suppress_warnings** | **bool** | Suppress warning messages in the response | [optional]
**units** | **str** | Specifies the distance unit. | [optional] [default to 'm']
**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']

[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)

3 changes: 1 addition & 2 deletions openrouteservice/__init__.py
Expand Up @@ -28,8 +28,7 @@
from openrouteservice.configuration import Configuration
# import models into sdk package
from openrouteservice.models.alternative_routes import AlternativeRoutes
from openrouteservice.models.directions_service import DirectionsService
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.directions_service_body import DirectionsServiceBody
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
Expand Down
8 changes: 4 additions & 4 deletions openrouteservice/api/directions_service_api.py
Expand Up @@ -42,7 +42,7 @@ def get_geo_json_route(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand All @@ -65,7 +65,7 @@ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E
>>> result = thread.get()
:param async_req bool
:param DirectionsService body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_json_route(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService1 body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand All @@ -172,7 +172,7 @@ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
>>> result = thread.get()
:param async_req bool
:param DirectionsService1 body: (required)
:param DirectionsServiceBody body: (required)
:param str profile: Specifies the route profile. (required)
:return: JSONResponse
If the method is called asynchronously,
Expand Down
2 changes: 1 addition & 1 deletion openrouteservice/api_client.py
Expand Up @@ -72,7 +72,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'Swagger-Codegen/7.1.1.post1/python'
self.user_agent = 'Swagger-Codegen/7.1.1.post2/python'

def __del__(self):
self.pool.close()
Expand Down
2 changes: 1 addition & 1 deletion openrouteservice/configuration.py
Expand Up @@ -247,5 +247,5 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 7.1.1\n"\
"SDK Package Version: 7.1.1.post1".\
"SDK Package Version: 7.1.1.post2".\
format(env=sys.platform, pyversion=sys.version)
3 changes: 1 addition & 2 deletions openrouteservice/models/__init__.py
Expand Up @@ -15,8 +15,7 @@

# import models into model package
from openrouteservice.models.alternative_routes import AlternativeRoutes
from openrouteservice.models.directions_service import DirectionsService
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.directions_service_body import DirectionsServiceBody
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
Expand Down

0 comments on commit b78ca67

Please sign in to comment.