Skip to content

Commit 7827c15

Browse files
author
Jakob Stolze
committed
feat: regenerate using latest v7.1.1 docs
- Add snapping service - Adapt MatrixServiceApi test to new client - Remove unimplemented test templates
1 parent 959bcb0 commit 7827c15

File tree

275 files changed

+6305
-4597
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

275 files changed

+6305
-4597
lines changed

.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.54

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ref: https://docs.travis-ci.com/user/languages/python
2+
language: python
3+
python:
4+
- "3.2"
5+
- "3.3"
6+
- "3.4"
7+
- "3.5"
8+
#- "3.5-dev" # 3.5 development branch
9+
#- "nightly" # points to the latest development branch e.g. 3.6-dev
10+
# command to install dependencies
11+
install: "pip install -r requirements.txt"
12+
# command to run tests
13+
script: nosetests

README.md

Lines changed: 32 additions & 10 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.0 | 7.1.0.post6 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
6+
| 7.1.1 | 7.1.1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
77

88
For further details, please visit:
99
- our [homepage](https://openrouteservice.org)
@@ -49,10 +49,10 @@ Please follow the [installation procedure](#installation--usage) before running
4949

5050
### Examples
5151
These examples show common usages of this library.
52-
- [Avoid construction sites dynamically](docs/examples/Avoid_ConstructionSites)
53-
- [Dieselgate Routing](docs/examples/Dieselgate_Routing)
54-
- [Route optimization of pub crawl](docs/examples/ortools_pubcrawl)
55-
- [Routing optimization in humanitarian context](docs/examples/Routing_Optimization_Idai)
52+
- [Avoid construction sites dynamically](examples/Avoid_ConstructionSites.ipynb)
53+
- [Dieselgate Routing](examples/Dieselgate_Routing.ipynb)
54+
- [Route optimization of pub crawl](examples/ortools_pubcrawl.ipynb)
55+
- [Routing optimization in humanitarian context](examples/Routing_Optimization_Idai.ipynb)
5656

5757
### Basic example
5858
```python
@@ -119,9 +119,12 @@ Class | Method | HTTP request | Description
119119
*GeocodeApi* | [**geocode_search_get**](docs/GeocodeApi.md#geocode_search_get) | **GET** /geocode/search | Forward Geocode Service
120120
*GeocodeApi* | [**geocode_search_structured_get**](docs/GeocodeApi.md#geocode_search_structured_get) | **GET** /geocode/search/structured | Structured Forward Geocode Service (beta)
121121
*IsochronesServiceApi* | [**get_default_isochrones**](docs/IsochronesServiceApi.md#get_default_isochrones) | **POST** /v2/isochrones/{profile} | Isochrones Service
122-
*MatrixServiceApi* | [**get_default**](docs/MatrixServiceApi.md#get_default) | **POST** /v2/matrix/{profile} | Matrix Service
122+
*MatrixServiceApi* | [**get_default1**](docs/MatrixServiceApi.md#get_default1) | **POST** /v2/matrix/{profile} | Matrix Service
123123
*OptimizationApi* | [**optimization_post**](docs/OptimizationApi.md#optimization_post) | **POST** /optimization | Optimization Service
124124
*PoisApi* | [**pois_post**](docs/PoisApi.md#pois_post) | **POST** /pois | Pois Service
125+
*SnappingServiceApi* | [**get_default**](docs/SnappingServiceApi.md#get_default) | **POST** /v2/snap/{profile} | Snapping Service
126+
*SnappingServiceApi* | [**get_geo_json_snapping**](docs/SnappingServiceApi.md#get_geo_json_snapping) | **POST** /v2/snap/{profile}/geojson | Snapping Service GeoJSON
127+
*SnappingServiceApi* | [**get_json_snapping**](docs/SnappingServiceApi.md#get_json_snapping) | **POST** /v2/snap/{profile}/json | Snapping Service JSON
125128

126129
## Documentation For Models
127130

@@ -131,6 +134,9 @@ Class | Method | HTTP request | Description
131134
- [ElevationLineBody](docs/ElevationLineBody.md)
132135
- [ElevationPointBody](docs/ElevationPointBody.md)
133136
- [EngineInfo](docs/EngineInfo.md)
137+
- [GeoJSONFeature](docs/GeoJSONFeature.md)
138+
- [GeoJSONFeatureGeometry](docs/GeoJSONFeatureGeometry.md)
139+
- [GeoJSONFeatureProperties](docs/GeoJSONFeatureProperties.md)
134140
- [GeoJSONFeaturesObject](docs/GeoJSONFeaturesObject.md)
135141
- [GeoJSONGeometryObject](docs/GeoJSONGeometryObject.md)
136142
- [GeoJSONIsochroneBase](docs/GeoJSONIsochroneBase.md)
@@ -139,12 +145,16 @@ Class | Method | HTTP request | Description
139145
- [GeoJSONIsochronesResponseFeatures](docs/GeoJSONIsochronesResponseFeatures.md)
140146
- [GeoJSONIsochronesResponseMetadata](docs/GeoJSONIsochronesResponseMetadata.md)
141147
- [GeoJSONIsochronesResponseMetadataEngine](docs/GeoJSONIsochronesResponseMetadataEngine.md)
148+
- [GeoJSONPointGeometry](docs/GeoJSONPointGeometry.md)
142149
- [GeoJSONPropertiesObject](docs/GeoJSONPropertiesObject.md)
143150
- [GeoJSONPropertiesObjectCategoryIds](docs/GeoJSONPropertiesObjectCategoryIds.md)
144151
- [GeoJSONPropertiesObjectCategoryIdsCategoryId](docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md)
145152
- [GeoJSONPropertiesObjectOsmTags](docs/GeoJSONPropertiesObjectOsmTags.md)
146153
- [GeoJSONRouteResponse](docs/GeoJSONRouteResponse.md)
147154
- [GeoJSONRouteResponseMetadata](docs/GeoJSONRouteResponseMetadata.md)
155+
- [GeoJSONSnappingResponse](docs/GeoJSONSnappingResponse.md)
156+
- [GeoJSONSnappingResponseFeatures](docs/GeoJSONSnappingResponseFeatures.md)
157+
- [GeoJSONSnappingResponseMetadata](docs/GeoJSONSnappingResponseMetadata.md)
148158
- [GeocodeResponse](docs/GeocodeResponse.md)
149159
- [Gpx](docs/Gpx.md)
150160
- [GraphExportService](docs/GraphExportService.md)
@@ -156,10 +166,13 @@ Class | Method | HTTP request | Description
156166
- [InlineResponse2002Steps](docs/InlineResponse2002Steps.md)
157167
- [InlineResponse2002Summary](docs/InlineResponse2002Summary.md)
158168
- [InlineResponse2002Unassigned](docs/InlineResponse2002Unassigned.md)
169+
- [InlineResponse2002Violations](docs/InlineResponse2002Violations.md)
159170
- [InlineResponse2003](docs/InlineResponse2003.md)
160171
- [InlineResponse2004](docs/InlineResponse2004.md)
161172
- [InlineResponse2005](docs/InlineResponse2005.md)
162173
- [InlineResponse2006](docs/InlineResponse2006.md)
174+
- [InlineResponse2007](docs/InlineResponse2007.md)
175+
- [InlineResponse2008](docs/InlineResponse2008.md)
163176
- [InlineResponse200Geometry](docs/InlineResponse200Geometry.md)
164177
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
165178
- [IsochronesRequest](docs/IsochronesRequest.md)
@@ -178,6 +191,7 @@ Class | Method | HTTP request | Description
178191
- [JSONIndividualRouteResponseSummary](docs/JSONIndividualRouteResponseSummary.md)
179192
- [JSONIndividualRouteResponseWarnings](docs/JSONIndividualRouteResponseWarnings.md)
180193
- [JSONLeg](docs/JSONLeg.md)
194+
- [JSONLocation](docs/JSONLocation.md)
181195
- [JSONObject](docs/JSONObject.md)
182196
- [JSONPtStop](docs/JSONPtStop.md)
183197
- [JSONRouteResponse](docs/JSONRouteResponse.md)
@@ -204,11 +218,18 @@ Class | Method | HTTP request | Description
204218
- [OpenpoiservicePoiRequest](docs/OpenpoiservicePoiRequest.md)
205219
- [OpenpoiservicePoiResponse](docs/OpenpoiservicePoiResponse.md)
206220
- [OptimizationBody](docs/OptimizationBody.md)
221+
- [OptimizationBreaks](docs/OptimizationBreaks.md)
222+
- [OptimizationCosts](docs/OptimizationCosts.md)
207223
- [OptimizationJobs](docs/OptimizationJobs.md)
224+
- [OptimizationMatrices](docs/OptimizationMatrices.md)
225+
- [OptimizationMatricesCyclingelectric](docs/OptimizationMatricesCyclingelectric.md)
208226
- [OptimizationOptions](docs/OptimizationOptions.md)
227+
- [OptimizationSteps](docs/OptimizationSteps.md)
209228
- [OptimizationVehicles](docs/OptimizationVehicles.md)
210229
- [PoisFilters](docs/PoisFilters.md)
211230
- [PoisGeometry](docs/PoisGeometry.md)
231+
- [ProfileGeojsonBody](docs/ProfileGeojsonBody.md)
232+
- [ProfileJsonBody](docs/ProfileJsonBody.md)
212233
- [ProfileParameters](docs/ProfileParameters.md)
213234
- [ProfileParametersRestrictions](docs/ProfileParametersRestrictions.md)
214235
- [ProfileWeightings](docs/ProfileWeightings.md)
@@ -218,10 +239,11 @@ Class | Method | HTTP request | Description
218239
- [RouteOptionsAvoidPolygons](docs/RouteOptionsAvoidPolygons.md)
219240
- [RouteResponseInfo](docs/RouteResponseInfo.md)
220241
- [Rte](docs/Rte.md)
221-
- [V2directionsprofilegeojsonScheduleDuration](docs/V2directionsprofilegeojsonScheduleDuration.md)
222-
- [V2directionsprofilegeojsonScheduleDurationDuration](docs/V2directionsprofilegeojsonScheduleDurationDuration.md)
223-
- [V2directionsprofilegeojsonScheduleDurationUnits](docs/V2directionsprofilegeojsonScheduleDurationUnits.md)
224-
- [V2directionsprofilegeojsonWalkingTime](docs/V2directionsprofilegeojsonWalkingTime.md)
242+
- [SnapProfileBody](docs/SnapProfileBody.md)
243+
- [SnappingRequest](docs/SnappingRequest.md)
244+
- [SnappingResponse](docs/SnappingResponse.md)
245+
- [SnappingResponseInfo](docs/SnappingResponseInfo.md)
246+
- [SnappingResponseLocations](docs/SnappingResponseLocations.md)
225247

226248
## Author
227249

docs/DirectionsService.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Name | Type | Description | Notes
2424
**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]
2525
**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]
2626
**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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [optional]
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]
2828
**schedule_rows** | **int** | The maximum amount of entries that should be returned when requesting a schedule. | [optional]
2929
**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]
3030
**suppress_warnings** | **bool** | Suppress warning messages in the response | [optional]
3131
**units** | **str** | Specifies the distance unit. | [optional] [default to 'm']
32-
**walking_time** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
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']
3333

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

docs/DirectionsService1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ Name | Type | Description | Notes
2424
**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]
2525
**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]
2626
**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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [optional]
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]
2828
**schedule_rows** | **int** | The maximum amount of entries that should be returned when requesting a schedule. | [optional]
2929
**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]
3030
**suppress_warnings** | **bool** | Suppress warning messages in the response | [optional]
3131
**units** | **str** | Specifies the distance unit. | [optional] [default to 'm']
32-
**walking_time** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
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']
3333

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

docs/ElevationApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Method | HTTP request | Description
1313
1414
Elevation Line Service
1515

16-
This endpoint can take planar 2D line objects and enrich them with elevation from a variety of datasets. The input and output formats are: * GeoJSON * Polyline * <a href="https://developers.google.com/maps/documentation/utilities/polylinealgorithm">Google's Encoded polyline</a> with coordinate precision 5 or 6 Example: ``` # POST LineString as polyline curl -XPOST https://api.openrouteservice.org/elevation/line -H 'Content-Type: application/json' \\ -H 'Authorization: INSERT_YOUR_KEY -d '{ \"format_in\": \"polyline\", \"format_out\": \"encodedpolyline5\", \"geometry\": [[13.349762, 38.112952], [12.638397, 37.645772]] }' ```
16+
This endpoint can take planar 2D line objects and enrich them with elevation from a variety of datasets. The input and output formats are: * GeoJSON * Polyline * <a href=\"https://developers.google.com/maps/documentation/utilities/polylinealgorithm\">Google's Encoded polyline</a> with coordinate precision 5 or 6 Example: ``` # POST LineString as polyline curl -XPOST https://api.openrouteservice.org/elevation/line -H 'Content-Type: application/json' \\ -H 'Authorization: INSERT_YOUR_KEY -d '{ \"format_in\": \"polyline\", \"format_out\": \"encodedpolyline5\", \"geometry\": [[13.349762, 38.112952], [12.638397, 37.645772]] }' ```
1717

1818
### Example
1919
```python
@@ -58,7 +58,7 @@ Name | Type | Description | Notes
5858
### HTTP request headers
5959

6060
- **Content-Type**: application/json
61-
- **Accept**: application/json
61+
- **Accept**: application/json, */*
6262

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

@@ -116,7 +116,7 @@ Name | Type | Description | Notes
116116
### HTTP request headers
117117

118118
- **Content-Type**: Not defined
119-
- **Accept**: application/json
119+
- **Accept**: application/json, */*
120120

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

@@ -170,7 +170,7 @@ Name | Type | Description | Notes
170170
### HTTP request headers
171171

172172
- **Content-Type**: application/json
173-
- **Accept**: application/json
173+
- **Accept**: application/json, */*
174174

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

docs/GeoJSONFeature.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GeoJSONFeature
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**geometry** | [**GeoJSONFeatureGeometry**](GeoJSONFeatureGeometry.md) | | [optional]
7+
**properties** | [**GeoJSONFeatureProperties**](GeoJSONFeatureProperties.md) | | [optional]
8+
**type** | **str** | GeoJSON type | [optional] [default to 'Feature']
9+
10+
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
11+

docs/GeoJSONFeatureGeometry.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GeoJSONFeatureGeometry
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**coordinates** | **list[float]** | Lon/Lat coordinates of the snapped location | [optional]
7+
**type** | **str** | GeoJSON type | [optional] [default to 'Point']
8+
9+
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
10+

docs/GeoJSONFeatureProperties.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GeoJSONFeatureProperties
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**name** | **str** | \&quot;Name of the street the closest accessible point is situated on. Only for &#x60;resolve_locations&#x3D;true&#x60; and only if name is available. | [optional]
7+
**snapped_distance** | **float** | Distance between the &#x60;source/destination&#x60; Location and the used point on the routing graph in meters. | [optional]
8+
**source_id** | **int** | Index of the requested location | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
11+

0 commit comments

Comments
 (0)