From 33d4b0fd3efecd96d24ddf1dde4b09c8b8a95560 Mon Sep 17 00:00:00 2001
From: jarinox <45308098+jarinox@users.noreply.github.com>
Date: Mon, 19 Feb 2024 16:29:08 +0100
Subject: [PATCH 01/38] feat: add deprecation warnings to old python sdk
---
openrouteservice/__init__.py | 172 ++++++++++++++----
openrouteservice/legacy/__init__.py | 13 ++
openrouteservice/{ => legacy}/client.py | 26 +--
openrouteservice/{ => legacy}/convert.py | 0
openrouteservice/{ => legacy}/deprecation.py | 11 ++
openrouteservice/{ => legacy}/directions.py | 6 +-
.../{ => legacy}/distance_matrix.py | 5 +
openrouteservice/{ => legacy}/elevation.py | 7 +
openrouteservice/{ => legacy}/exceptions.py | 0
openrouteservice/{ => legacy}/geocode.py | 10 +-
openrouteservice/{ => legacy}/isochrones.py | 4 +-
openrouteservice/{ => legacy}/optimization.py | 5 +
openrouteservice/{ => legacy}/places.py | 4 +-
13 files changed, 207 insertions(+), 56 deletions(-)
create mode 100644 openrouteservice/legacy/__init__.py
rename openrouteservice/{ => legacy}/client.py (92%)
rename openrouteservice/{ => legacy}/convert.py (100%)
rename openrouteservice/{ => legacy}/deprecation.py (73%)
rename openrouteservice/{ => legacy}/directions.py (98%)
rename openrouteservice/{ => legacy}/distance_matrix.py (96%)
rename openrouteservice/{ => legacy}/elevation.py (92%)
rename openrouteservice/{ => legacy}/exceptions.py (100%)
rename openrouteservice/{ => legacy}/geocode.py (96%)
rename openrouteservice/{ => legacy}/isochrones.py (97%)
rename openrouteservice/{ => legacy}/optimization.py (98%)
rename openrouteservice/{ => legacy}/places.py (96%)
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index 16448c14..acdb3de1 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -1,39 +1,133 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-
-"""Initialize openrouteservice."""
-import pkg_resources
-
-__version__ = pkg_resources.get_distribution("openrouteservice").version
-
-
-def get_ordinal(number):
- """Produces an ordinal (1st, 2nd, 3rd, 4th) from a number."""
-
- if number == 1:
- return "st"
- elif number == 2:
- return "nd"
- elif number == 3:
- return "rd"
- else:
- return "th"
-
-
-from openrouteservice.client import Client # noqa
+# coding: utf-8
+
+# flake8: noqa
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import warnings
+warnings.simplefilter('always', DeprecationWarning)
+
+# import apis into sdk package
+from openrouteservice.api.directions_service_api import DirectionsServiceApi
+from openrouteservice.api.elevation_api import ElevationApi
+from openrouteservice.api.geocode_api import GeocodeApi
+from openrouteservice.api.isochrones_service_api import IsochronesServiceApi
+from openrouteservice.api.matrix_service_api import MatrixServiceApi
+from openrouteservice.api.optimization_api import OptimizationApi
+from openrouteservice.api.pois_api import PoisApi
+# import ApiClient
+from openrouteservice.api_client import ApiClient
+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.elevation_line_body import ElevationLineBody
+from openrouteservice.models.elevation_point_body import ElevationPointBody
+from openrouteservice.models.engine_info import EngineInfo
+from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
+from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
+from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
+from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry
+from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse
+from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
+from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
+from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
+from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
+from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
+from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
+from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
+from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
+from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
+from openrouteservice.models.geocode_response import GeocodeResponse
+from openrouteservice.models.gpx import Gpx
+from openrouteservice.models.graph_export_service import GraphExportService
+from openrouteservice.models.inline_response200 import InlineResponse200
+from openrouteservice.models.inline_response2001 import InlineResponse2001
+from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
+from openrouteservice.models.inline_response2002 import InlineResponse2002
+from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes
+from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
+from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
+from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
+from openrouteservice.models.inline_response2003 import InlineResponse2003
+from openrouteservice.models.inline_response2004 import InlineResponse2004
+from openrouteservice.models.inline_response2005 import InlineResponse2005
+from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
+from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
+from openrouteservice.models.isochrones_request import IsochronesRequest
+from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo
+from openrouteservice.models.json2_d_destinations import JSON2DDestinations
+from openrouteservice.models.json2_d_sources import JSON2DSources
+from openrouteservice.models.json_extra import JSONExtra
+from openrouteservice.models.json_extra_summary import JSONExtraSummary
+from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse
+from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras
+from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions
+from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs
+from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver
+from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments
+from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops
+from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
+from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
+from openrouteservice.models.json_leg import JSONLeg
+from openrouteservice.models.json_object import JSONObject
+from openrouteservice.models.jsonpt_stop import JSONPtStop
+from openrouteservice.models.json_route_response import JSONRouteResponse
+from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes
+from openrouteservice.models.json_segment import JSONSegment
+from openrouteservice.models.json_step import JSONStep
+from openrouteservice.models.json_step_maneuver import JSONStepManeuver
+from openrouteservice.models.json_summary import JSONSummary
+from openrouteservice.models.json_warning import JSONWarning
+from openrouteservice.models.json_edge import JsonEdge
+from openrouteservice.models.json_edge_extra import JsonEdgeExtra
+from openrouteservice.models.json_export_response import JsonExportResponse
+from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges
+from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra
+from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes
+from openrouteservice.models.json_node import JsonNode
+from openrouteservice.models.matrix_profile_body import MatrixProfileBody
+from openrouteservice.models.matrix_request import MatrixRequest
+from openrouteservice.models.matrix_response import MatrixResponse
+from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations
+from openrouteservice.models.matrix_response_info import MatrixResponseInfo
+from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata
+from openrouteservice.models.matrix_response_sources import MatrixResponseSources
+from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
+from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
+from openrouteservice.models.optimization_body import OptimizationBody
+from openrouteservice.models.optimization_jobs import OptimizationJobs
+from openrouteservice.models.optimization_options import OptimizationOptions
+from openrouteservice.models.optimization_vehicles import OptimizationVehicles
+from openrouteservice.models.pois_filters import PoisFilters
+from openrouteservice.models.pois_geometry import PoisGeometry
+from openrouteservice.models.profile_parameters import ProfileParameters
+from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
+from openrouteservice.models.profile_weightings import ProfileWeightings
+from openrouteservice.models.restrictions import Restrictions
+from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions
+from openrouteservice.models.route_options import RouteOptions
+from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
+from openrouteservice.models.route_response_info import RouteResponseInfo
+from openrouteservice.models.rte import Rte
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits
+from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime
+from openrouteservice.utility import todict
+
+from openrouteservice.legacy.client import Client
+from openrouteservice.legacy import *
+import openrouteservice.legacy.convert as convert
\ No newline at end of file
diff --git a/openrouteservice/legacy/__init__.py b/openrouteservice/legacy/__init__.py
new file mode 100644
index 00000000..0541711a
--- /dev/null
+++ b/openrouteservice/legacy/__init__.py
@@ -0,0 +1,13 @@
+__version__ = "2.3.3"
+
+def get_ordinal(number):
+ """Produces an ordinal (1st, 2nd, 3rd, 4th) from a number."""
+
+ if number == 1:
+ return "st"
+ elif number == 2:
+ return "nd"
+ elif number == 3:
+ return "rd"
+ else:
+ return "th"
\ No newline at end of file
diff --git a/openrouteservice/client.py b/openrouteservice/legacy/client.py
similarity index 92%
rename from openrouteservice/client.py
rename to openrouteservice/legacy/client.py
index afaf7d34..d90baab6 100644
--- a/openrouteservice/client.py
+++ b/openrouteservice/legacy/client.py
@@ -29,7 +29,7 @@
import time
import warnings
-from openrouteservice import exceptions, __version__, get_ordinal
+from openrouteservice.legacy import exceptions, __version__, get_ordinal, deprecation
_USER_AGENT = "ORSClientPython.v{}".format(__version__)
_DEFAULT_BASE_URL = "https://api.openrouteservice.org"
@@ -78,6 +78,8 @@ def __init__(
:type retry_over_query_limit: bool
"""
+ deprecation.deprecated("Client", "ApiClient")
+
self._session = requests.Session()
self._key = key
self._base_url = base_url
@@ -297,17 +299,17 @@ def _generate_auth_url(path, params):
return path + "?" + _urlencode_params(params)
-from openrouteservice.directions import directions # noqa
-from openrouteservice.distance_matrix import distance_matrix # noqa
-from openrouteservice.elevation import elevation_point # noqa
-from openrouteservice.elevation import elevation_line # noqa
-from openrouteservice.isochrones import isochrones # noqa
-from openrouteservice.geocode import pelias_search # noqa
-from openrouteservice.geocode import pelias_autocomplete # noqa
-from openrouteservice.geocode import pelias_structured # noqa
-from openrouteservice.geocode import pelias_reverse # noqa
-from openrouteservice.places import places # noqa
-from openrouteservice.optimization import optimization # noqa
+from openrouteservice.legacy.directions import directions # noqa
+from openrouteservice.legacy.distance_matrix import distance_matrix # noqa
+from openrouteservice.legacy.elevation import elevation_point # noqa
+from openrouteservice.legacy.elevation import elevation_line # noqa
+from openrouteservice.legacy.isochrones import isochrones # noqa
+from openrouteservice.legacy.geocode import pelias_search # noqa
+from openrouteservice.legacy.geocode import pelias_autocomplete # noqa
+from openrouteservice.legacy.geocode import pelias_structured # noqa
+from openrouteservice.legacy.geocode import pelias_reverse # noqa
+from openrouteservice.legacy.places import places # noqa
+from openrouteservice.legacy.optimization import optimization # noqa
def _make_api_method(func):
diff --git a/openrouteservice/convert.py b/openrouteservice/legacy/convert.py
similarity index 100%
rename from openrouteservice/convert.py
rename to openrouteservice/legacy/convert.py
diff --git a/openrouteservice/deprecation.py b/openrouteservice/legacy/deprecation.py
similarity index 73%
rename from openrouteservice/deprecation.py
rename to openrouteservice/legacy/deprecation.py
index 78871ef5..a4f2eb3d 100644
--- a/openrouteservice/deprecation.py
+++ b/openrouteservice/legacy/deprecation.py
@@ -30,3 +30,14 @@ def warning(old_name, new_name):
DeprecationWarning,
stacklevel=2,
)
+
+def deprecated(old_name, new_name):
+ """Deprecation warning."""
+
+ warnings.warn(
+ "{} is deprecated. Please use {} instead. For more information on the new SDK please check out https://github.com/GIScience/openrouteservice-py".format(
+ old_name, new_name
+ ),
+ DeprecationWarning,
+ stacklevel=2,
+ )
\ No newline at end of file
diff --git a/openrouteservice/directions.py b/openrouteservice/legacy/directions.py
similarity index 98%
rename from openrouteservice/directions.py
rename to openrouteservice/legacy/directions.py
index c4b0b799..fa04c3f1 100644
--- a/openrouteservice/directions.py
+++ b/openrouteservice/legacy/directions.py
@@ -18,8 +18,8 @@
#
"""Performs requests to the ORS directions API."""
-from openrouteservice import deprecation
-from openrouteservice.optimization import optimization, Job, Vehicle
+from openrouteservice.legacy import deprecation
+from openrouteservice.legacy.optimization import optimization, Job, Vehicle
import warnings
@@ -201,6 +201,8 @@ def directions(
:rtype: call to Client.request()
"""
+ deprecation.deprecated("Client.directions", "DirectionsServiceApi.get_geo_json_route")
+
# call optimization endpoint and get new order of waypoints
if optimize_waypoints is not None and not dry_run:
if len(coordinates) <= 3:
diff --git a/openrouteservice/distance_matrix.py b/openrouteservice/legacy/distance_matrix.py
similarity index 96%
rename from openrouteservice/distance_matrix.py
rename to openrouteservice/legacy/distance_matrix.py
index 9bccca8d..ee69e018 100644
--- a/openrouteservice/distance_matrix.py
+++ b/openrouteservice/legacy/distance_matrix.py
@@ -19,6 +19,9 @@
"""Performs requests to the ORS Matrix API."""
+from openrouteservice.legacy import deprecation
+
+
def distance_matrix(
client,
locations,
@@ -84,6 +87,8 @@ def distance_matrix(
:rtype: call to Client.request()
"""
+ deprecation.deprecated("Client.distance_matrix", "MatrixServiceApi.get_default")
+
params = {
"locations": locations,
}
diff --git a/openrouteservice/elevation.py b/openrouteservice/legacy/elevation.py
similarity index 92%
rename from openrouteservice/elevation.py
rename to openrouteservice/legacy/elevation.py
index d44549da..8a63f7de 100644
--- a/openrouteservice/elevation.py
+++ b/openrouteservice/legacy/elevation.py
@@ -16,6 +16,9 @@
"""Performs requests to the ORS elevation API."""
+from openrouteservice.legacy import deprecation
+
+
def elevation_point(
client,
format_in,
@@ -48,6 +51,8 @@ def elevation_point(
:rtype: Client.request()
"""
+ deprecation.deprecated("Client.elevation_point", "ElevationApi.elevation_point_post")
+
params = {
"format_in": format_in,
"geometry": geometry,
@@ -94,6 +99,8 @@ def elevation_line(
:rtype: Client.request()
"""
+ deprecation.deprecated("Client.elevation_line", "ElevationApi.elevation_line_post")
+
params = {
"format_in": format_in,
"geometry": geometry,
diff --git a/openrouteservice/exceptions.py b/openrouteservice/legacy/exceptions.py
similarity index 100%
rename from openrouteservice/exceptions.py
rename to openrouteservice/legacy/exceptions.py
diff --git a/openrouteservice/geocode.py b/openrouteservice/legacy/geocode.py
similarity index 96%
rename from openrouteservice/geocode.py
rename to openrouteservice/legacy/geocode.py
index c61ec588..0d60005e 100644
--- a/openrouteservice/geocode.py
+++ b/openrouteservice/legacy/geocode.py
@@ -17,7 +17,7 @@
# the License.
#
"""Performs requests to the ORS geocode API (direct Pelias clone)."""
-from openrouteservice import convert
+from openrouteservice.legacy import convert, deprecation
def pelias_search(
@@ -93,6 +93,8 @@ def pelias_search(
:rtype: call to Client.request()
"""
+ deprecation.deprecated("Client.pelias_search", "GeocodeApi.geocode_search_get")
+
params = {"text": text}
if focus_point:
@@ -202,6 +204,8 @@ def pelias_autocomplete(
:rtype: dict from JSON response
"""
+ deprecation.deprecated("Client.pelias_autocomplete", "GeocodeApi.geocode_autocomplete_get")
+
params = {"text": text}
if focus_point:
@@ -295,6 +299,8 @@ def pelias_structured(
:rtype: dict from JSON response
"""
+ deprecation.deprecated("Client.pelias_structured", "GeocodeApi.geocode_search_structured_get")
+
params = {}
if address:
@@ -371,6 +377,8 @@ def pelias_reverse(
:rtype: dict from JSON response
"""
+ deprecation.deprecated("Client.pelias_reverse", "GeocodeApi.geocode_reverse_get")
+
params = {
"point.lon": convert._format_float(point[0]),
"point.lat": convert._format_float(point[1]),
diff --git a/openrouteservice/isochrones.py b/openrouteservice/legacy/isochrones.py
similarity index 97%
rename from openrouteservice/isochrones.py
rename to openrouteservice/legacy/isochrones.py
index 31819632..46950b52 100644
--- a/openrouteservice/isochrones.py
+++ b/openrouteservice/legacy/isochrones.py
@@ -16,7 +16,7 @@
#
"""Performs requests to the ORS isochrones API."""
-from openrouteservice import deprecation
+from openrouteservice.legacy import deprecation
def isochrones(
@@ -107,6 +107,8 @@ def isochrones(
:rtype: call to Client.request()
"""
+ deprecation.deprecated("Client.isochrones", "IsochronesServiceApi.get_default_isochrones")
+
params = {"locations": locations}
if profile: # pragma: no cover
diff --git a/openrouteservice/optimization.py b/openrouteservice/legacy/optimization.py
similarity index 98%
rename from openrouteservice/optimization.py
rename to openrouteservice/legacy/optimization.py
index 57b337b4..777cedda 100644
--- a/openrouteservice/optimization.py
+++ b/openrouteservice/legacy/optimization.py
@@ -17,6 +17,9 @@
"""Performs requests to the ORS optimization API."""
+from openrouteservice.legacy import deprecation
+
+
def optimization(
client,
jobs=None,
@@ -65,6 +68,8 @@ def optimization(
:rtype: dict
"""
+ deprecation.deprecated("Client.optimization", "OptimizationApi.optimization_post")
+
assert all([isinstance(x, Vehicle) for x in vehicles]) # noqa
params = {"vehicles": [vehicle.__dict__ for vehicle in vehicles]}
diff --git a/openrouteservice/places.py b/openrouteservice/legacy/places.py
similarity index 96%
rename from openrouteservice/places.py
rename to openrouteservice/legacy/places.py
index 0d434879..dbde0ac1 100644
--- a/openrouteservice/places.py
+++ b/openrouteservice/legacy/places.py
@@ -15,7 +15,7 @@
# the License.
"""Performs requests to the ORS Places API."""
-from openrouteservice import convert
+from openrouteservice.legacy import convert, deprecation
def places(
@@ -80,6 +80,8 @@ def places(
:rtype: call to Client.request()
"""
+ deprecation.deprecated("Client.places", "PoisApi.pois_post")
+
params = {
"request": request,
"filters": {},
From e86389bd1fa35189ded48f9609f74854214439dc Mon Sep 17 00:00:00 2001
From: jarinox <45308098+jarinox@users.noreply.github.com>
Date: Mon, 19 Feb 2024 16:33:32 +0100
Subject: [PATCH 02/38] feat: add generated sdk
- sdk has been generated by swagger-codegen
- It is still possible to use the old sdk
---
.gitignore | 33 +-
AUTHORS | 20 -
CHANGELOG | 58 -
CONTRIBUTORS | 21 -
README.md | 228 +
README.rst | 238 -
cleanup.sh | 23 +
docs/AlternativeRoutes.md | 11 +
docs/DirectionsService.md | 35 +
docs/DirectionsService1.md | 35 +
docs/DirectionsServiceApi.md | 121 +
docs/ElevationApi.md | 176 +
docs/ElevationLineBody.md | 12 +
docs/ElevationPointBody.md | 12 +
docs/EngineInfo.md | 11 +
docs/GeoJSONFeaturesObject.md | 11 +
docs/GeoJSONGeometryObject.md | 10 +
docs/GeoJSONIsochroneBase.md | 10 +
docs/GeoJSONIsochroneBaseGeometry.md | 9 +
docs/GeoJSONIsochronesResponse.md | 12 +
docs/GeoJSONIsochronesResponseFeatures.md | 10 +
docs/GeoJSONIsochronesResponseMetadata.md | 16 +
...GeoJSONIsochronesResponseMetadataEngine.md | 11 +
docs/GeoJSONPropertiesObject.md | 13 +
docs/GeoJSONPropertiesObjectCategoryIds.md | 9 +
...ONPropertiesObjectCategoryIdsCategoryId.md | 10 +
docs/GeoJSONPropertiesObjectOsmTags.md | 15 +
docs/GeoJSONRouteResponse.md | 12 +
docs/GeoJSONRouteResponseMetadata.md | 16 +
docs/GeocodeApi.md | 325 +
docs/GeocodeResponse.md | 12 +
docs/Gpx.md | 9 +
docs/GraphExportService.md | 10 +
docs/InlineResponse200.md | 12 +
docs/InlineResponse2001.md | 12 +
docs/InlineResponse2001Geometry.md | 10 +
docs/InlineResponse2002.md | 13 +
docs/InlineResponse2002Routes.md | 17 +
docs/InlineResponse2002Steps.md | 16 +
docs/InlineResponse2002Summary.md | 15 +
docs/InlineResponse2002Unassigned.md | 10 +
docs/InlineResponse2003.md | 12 +
docs/InlineResponse2004.md | 11 +
docs/InlineResponse2005.md | 12 +
docs/InlineResponse2006.md | 13 +
docs/InlineResponse200Geometry.md | 10 +
docs/IsochronesProfileBody.md | 20 +
docs/IsochronesRequest.md | 20 +
docs/IsochronesResponseInfo.md | 16 +
docs/IsochronesServiceApi.md | 64 +
docs/JSON2DDestinations.md | 11 +
docs/JSON2DSources.md | 11 +
docs/JSONExtra.md | 10 +
docs/JSONExtraSummary.md | 11 +
docs/JSONIndividualRouteResponse.md | 18 +
docs/JSONIndividualRouteResponseExtras.md | 10 +
...JSONIndividualRouteResponseInstructions.md | 17 +
docs/JSONIndividualRouteResponseLegs.md | 26 +
docs/JSONIndividualRouteResponseManeuver.md | 11 +
docs/JSONIndividualRouteResponseSegments.md | 16 +
docs/JSONIndividualRouteResponseStops.md | 19 +
docs/JSONIndividualRouteResponseSummary.md | 14 +
docs/JSONIndividualRouteResponseWarnings.md | 10 +
docs/JSONLeg.md | 26 +
docs/JSONObject.md | 8 +
docs/JSONPtStop.md | 19 +
docs/JSONRouteResponse.md | 11 +
docs/JSONRouteResponseRoutes.md | 18 +
docs/JSONSegment.md | 16 +
docs/JSONStep.md | 17 +
docs/JSONStepManeuver.md | 11 +
docs/JSONSummary.md | 14 +
docs/JSONWarning.md | 10 +
docs/JsonEdge.md | 11 +
docs/JsonEdgeExtra.md | 10 +
docs/JsonExportResponse.md | 14 +
docs/JsonExportResponseEdges.md | 11 +
docs/JsonExportResponseEdgesExtra.md | 10 +
docs/JsonExportResponseNodes.md | 10 +
docs/JsonNode.md | 10 +
docs/Makefile | 20 -
docs/MatrixProfileBody.md | 15 +
docs/MatrixRequest.md | 15 +
docs/MatrixResponse.md | 13 +
docs/MatrixResponseDestinations.md | 11 +
docs/MatrixResponseInfo.md | 16 +
docs/MatrixResponseMetadata.md | 16 +
docs/MatrixResponseSources.md | 11 +
docs/MatrixServiceApi.md | 64 +
docs/OpenpoiservicePoiRequest.md | 13 +
docs/OpenpoiservicePoiResponse.md | 10 +
docs/OptimizationApi.md | 62 +
docs/OptimizationBody.md | 12 +
docs/OptimizationJobs.md | 15 +
docs/OptimizationOptions.md | 9 +
docs/OptimizationVehicles.md | 17 +
docs/PoisApi.md | 62 +
docs/PoisFilters.md | 14 +
docs/PoisGeometry.md | 11 +
docs/ProfileParameters.md | 12 +
docs/ProfileParametersRestrictions.md | 20 +
docs/ProfileWeightings.md | 12 +
docs/Restrictions.md | 20 +
docs/RoundTripRouteOptions.md | 11 +
docs/RouteOptions.md | 15 +
docs/RouteOptionsAvoidPolygons.md | 9 +
docs/RouteResponseInfo.md | 16 +
docs/Rte.md | 8 +
...irectionsprofilegeojsonScheduleDuration.md | 13 +
...sprofilegeojsonScheduleDurationDuration.md | 12 +
...ionsprofilegeojsonScheduleDurationUnits.md | 12 +
docs/V2directionsprofilegeojsonWalkingTime.md | 13 +
docs/examples/Avoid_ConstructionSites.md | 1 +
docs/examples/Dieselgate_Routing.md | 1 +
docs/examples/Routing_Optimization_Idai.md | 1 +
docs/examples/ortools_pubcrawl.md | 1 +
docs/make.bat | 36 -
docs/source/conf.py | 176 -
docs/source/index.rst | 22 -
docs/source/modules.rst | 5 -
docs/source/openrouteservice.rst | 94 -
docs/source/readme_link.rst | 1 -
environment.yml | 10 -
examples/Avoid_ConstructionSites.html | 12828 ++++++++++++++++
examples/Avoid_ConstructionSites.ipynb | 5330 +++++++
examples/Dieselgate_Routing.html | 8445 ++++++++++
examples/Dieselgate_Routing.ipynb | 970 ++
examples/Routing_Optimization_Idai.html | 9291 +++++++++++
examples/Routing_Optimization_Idai.ipynb | 1813 +++
examples/basic_example.ipynb | 596 -
examples/data/idai_health_sites.csv | 20 +
examples/ortools_pubcrawl.html | 9826 ++++++++++++
examples/ortools_pubcrawl.ipynb | 2047 +++
git_push.sh | 52 +
index.md | 27 +
openrouteservice/api/__init__.py | 12 +
.../api/directions_service_api.py | 247 +
openrouteservice/api/elevation_api.py | 335 +
openrouteservice/api/geocode_api.py | 617 +
.../api/isochrones_service_api.py | 140 +
openrouteservice/api/matrix_service_api.py | 140 +
openrouteservice/api/optimization_api.py | 132 +
openrouteservice/api/pois_api.py | 132 +
openrouteservice/api_client.py | 632 +
openrouteservice/configuration.py | 251 +
openrouteservice/models/__init__.py | 113 +
openrouteservice/models/alternative_routes.py | 168 +
openrouteservice/models/directions_service.py | 871 ++
.../models/directions_service1.py | 871 ++
.../models/elevation_line_body.py | 216 +
.../models/elevation_point_body.py | 216 +
openrouteservice/models/engine_info.py | 168 +
.../models/geo_json_features_object.py | 162 +
.../models/geo_json_geometry_object.py | 136 +
.../models/geo_json_isochrone_base.py | 136 +
.../geo_json_isochrone_base_geometry.py | 110 +
.../models/geo_json_isochrones_response.py | 190 +
.../geo_json_isochrones_response_features.py | 136 +
.../geo_json_isochrones_response_metadata.py | 304 +
...son_isochrones_response_metadata_engine.py | 168 +
.../models/geo_json_properties_object.py | 214 +
...geo_json_properties_object_category_ids.py | 110 +
...perties_object_category_ids_category_id.py | 136 +
.../geo_json_properties_object_osm_tags.py | 266 +
.../models/geo_json_route_response.py | 190 +
.../geo_json_route_response_metadata.py | 304 +
openrouteservice/models/geocode_response.py | 188 +
openrouteservice/models/gpx.py | 110 +
.../models/graph_export_service.py | 141 +
openrouteservice/models/inline_response200.py | 188 +
.../models/inline_response2001.py | 188 +
.../models/inline_response2001_geometry.py | 136 +
.../models/inline_response2002.py | 222 +
.../models/inline_response2002_routes.py | 336 +
.../models/inline_response2002_steps.py | 308 +
.../models/inline_response2002_summary.py | 280 +
.../models/inline_response2002_unassigned.py | 140 +
.../models/inline_response2003.py | 190 +
.../models/inline_response2004.py | 166 +
.../models/inline_response2005.py | 190 +
.../models/inline_response2006.py | 222 +
.../models/inline_response200_geometry.py | 136 +
.../models/isochrones_profile_body.py | 451 +
openrouteservice/models/isochrones_request.py | 451 +
.../models/isochrones_response_info.py | 304 +
.../models/json2_d_destinations.py | 168 +
openrouteservice/models/json2_d_sources.py | 168 +
openrouteservice/models/json_edge.py | 168 +
openrouteservice/models/json_edge_extra.py | 140 +
.../models/json_export_response.py | 240 +
.../models/json_export_response_edges.py | 168 +
.../json_export_response_edges_extra.py | 140 +
.../models/json_export_response_nodes.py | 140 +
openrouteservice/models/json_extra.py | 140 +
openrouteservice/models/json_extra_summary.py | 168 +
.../models/json_individual_route_response.py | 362 +
.../json_individual_route_response_extras.py | 140 +
..._individual_route_response_instructions.py | 334 +
.../json_individual_route_response_legs.py | 588 +
...json_individual_route_response_maneuver.py | 168 +
...json_individual_route_response_segments.py | 308 +
.../json_individual_route_response_stops.py | 392 +
.../json_individual_route_response_summary.py | 248 +
...json_individual_route_response_warnings.py | 140 +
openrouteservice/models/json_leg.py | 588 +
openrouteservice/models/json_node.py | 140 +
openrouteservice/models/json_object.py | 89 +
.../models/json_route_response.py | 166 +
.../models/json_route_response_routes.py | 362 +
openrouteservice/models/json_segment.py | 308 +
openrouteservice/models/json_step.py | 334 +
openrouteservice/models/json_step_maneuver.py | 168 +
openrouteservice/models/json_summary.py | 248 +
openrouteservice/models/json_warning.py | 140 +
openrouteservice/models/jsonpt_stop.py | 392 +
.../models/matrix_profile_body.py | 294 +
openrouteservice/models/matrix_request.py | 294 +
openrouteservice/models/matrix_response.py | 222 +
.../models/matrix_response_destinations.py | 168 +
.../models/matrix_response_info.py | 304 +
.../models/matrix_response_metadata.py | 304 +
.../models/matrix_response_sources.py | 168 +
.../models/openpoiservice_poi_request.py | 234 +
.../models/openpoiservice_poi_response.py | 136 +
openrouteservice/models/optimization_body.py | 196 +
openrouteservice/models/optimization_jobs.py | 280 +
.../models/optimization_options.py | 112 +
.../models/optimization_vehicles.py | 342 +
openrouteservice/models/pois_filters.py | 248 +
openrouteservice/models/pois_geometry.py | 166 +
openrouteservice/models/profile_parameters.py | 192 +
.../models/profile_parameters_restrictions.py | 426 +
openrouteservice/models/profile_weightings.py | 196 +
openrouteservice/models/restrictions.py | 426 +
.../models/round_trip_route_options.py | 168 +
openrouteservice/models/route_options.py | 293 +
.../models/route_options_avoid_polygons.py | 110 +
.../models/route_response_info.py | 304 +
openrouteservice/models/rte.py | 84 +
...ectionsprofilegeojson_schedule_duration.py | 214 +
...ofilegeojson_schedule_duration_duration.py | 188 +
...sprofilegeojson_schedule_duration_units.py | 188 +
...v2directionsprofilegeojson_walking_time.py | 214 +
openrouteservice/rest.py | 317 +
openrouteservice/utility.py | 87 +
package-lock.json | 1248 ++
package.json | 11 +
poetry.lock | 693 -
pyproject.toml | 59 +-
requirements.txt | 5 +
setup.py | 39 +
test-requirements.txt | 5 +
test/__init__.py | 52 +-
test/test_alternative_routes.py | 43 +
test/test_client.py | 182 -
test/test_convert.py | 113 -
test/test_deprecation_warning.py | 13 -
test/test_directions.py | 230 -
test/test_directions_service.py | 43 +
test/test_directions_service1.py | 43 +
test/test_directions_service_api.py | 75 +
test/test_distance_matrix.py | 45 -
test/test_elevation.py | 55 -
test/test_elevation_api.py | 71 +
test/test_elevation_line_body.py | 43 +
test/test_elevation_point_body.py | 43 +
test/test_engine_info.py | 43 +
test/test_exceptions.py | 60 -
test/test_geo_json_features_object.py | 43 +
test/test_geo_json_geometry_object.py | 43 +
test/test_geo_json_isochrone_base.py | 43 +
test/test_geo_json_isochrone_base_geometry.py | 43 +
test/test_geo_json_isochrones_response.py | 43 +
...t_geo_json_isochrones_response_features.py | 43 +
...t_geo_json_isochrones_response_metadata.py | 43 +
...son_isochrones_response_metadata_engine.py | 43 +
test/test_geo_json_properties_object.py | 43 +
...geo_json_properties_object_category_ids.py | 43 +
...perties_object_category_ids_category_id.py | 43 +
...est_geo_json_properties_object_osm_tags.py | 43 +
test/test_geo_json_route_response.py | 43 +
test/test_geo_json_route_response_metadata.py | 43 +
test/test_geocode.py | 102 -
test/test_geocode_api.py | 77 +
test/test_geocode_response.py | 43 +
test/test_gpx.py | 43 +
test/test_graph_export_service.py | 43 +
test/test_helper.py | 256 -
test/test_inline_response200.py | 43 +
test/test_inline_response2001.py | 43 +
test/test_inline_response2001_geometry.py | 43 +
test/test_inline_response2002.py | 43 +
test/test_inline_response2002_routes.py | 43 +
test/test_inline_response2002_steps.py | 43 +
test/test_inline_response2002_summary.py | 43 +
test/test_inline_response2002_unassigned.py | 43 +
test/test_inline_response2003.py | 43 +
test/test_inline_response2004.py | 43 +
test/test_inline_response2005.py | 43 +
test/test_inline_response2006.py | 43 +
test/test_inline_response200_geometry.py | 43 +
test/test_isochrones.py | 47 -
test/test_isochrones_profile_body.py | 43 +
test/test_isochrones_request.py | 43 +
test/test_isochrones_response_info.py | 43 +
test/test_isochrones_service_api.py | 51 +
test/test_json2_d_destinations.py | 43 +
test/test_json2_d_sources.py | 43 +
test/test_json_edge.py | 43 +
test/test_json_edge_extra.py | 43 +
test/test_json_export_response.py | 43 +
test/test_json_export_response_edges.py | 43 +
test/test_json_export_response_edges_extra.py | 43 +
test/test_json_export_response_nodes.py | 43 +
test/test_json_extra.py | 43 +
test/test_json_extra_summary.py | 43 +
test/test_json_individual_route_response.py | 43 +
...t_json_individual_route_response_extras.py | 43 +
..._individual_route_response_instructions.py | 43 +
...est_json_individual_route_response_legs.py | 43 +
...json_individual_route_response_maneuver.py | 43 +
...json_individual_route_response_segments.py | 43 +
...st_json_individual_route_response_stops.py | 43 +
..._json_individual_route_response_summary.py | 43 +
...json_individual_route_response_warnings.py | 43 +
test/test_json_leg.py | 43 +
test/test_json_node.py | 43 +
test/test_json_object.py | 43 +
test/test_json_route_response.py | 43 +
test/test_json_route_response_routes.py | 43 +
test/test_json_segment.py | 43 +
test/test_json_step.py | 43 +
test/test_json_step_maneuver.py | 43 +
test/test_json_summary.py | 43 +
test/test_json_warning.py | 43 +
test/test_jsonpt_stop.py | 43 +
test/test_matrix_profile_body.py | 43 +
test/test_matrix_request.py | 43 +
test/test_matrix_response.py | 43 +
test/test_matrix_response_destinations.py | 43 +
test/test_matrix_response_info.py | 43 +
test/test_matrix_response_metadata.py | 43 +
test/test_matrix_response_sources.py | 43 +
test/test_matrix_service_api.py | 51 +
test/test_openpoiservice_poi_request.py | 43 +
test/test_openpoiservice_poi_response.py | 43 +
test/test_optimization.py | 116 -
test/test_optimization_api.py | 50 +
test/test_optimization_body.py | 43 +
test/test_optimization_jobs.py | 43 +
test/test_optimization_options.py | 43 +
test/test_optimization_vehicles.py | 43 +
test/test_places.py | 41 -
test/test_pois_api.py | 65 +
test/test_pois_filters.py | 43 +
test/test_pois_geometry.py | 43 +
test/test_profile_parameters.py | 43 +
test/test_profile_parameters_restrictions.py | 43 +
test/test_profile_weightings.py | 43 +
test/test_restrictions.py | 43 +
test/test_round_trip_route_options.py | 43 +
test/test_route_options.py | 43 +
test/test_route_options_avoid_polygons.py | 43 +
test/test_route_response_info.py | 43 +
test/test_rte.py | 43 +
...ectionsprofilegeojson_schedule_duration.py | 43 +
...ofilegeojson_schedule_duration_duration.py | 43 +
...sprofilegeojson_schedule_duration_units.py | 43 +
...v2directionsprofilegeojson_walking_time.py | 43 +
tests-config.sample.ini | 2 +
tox.ini | 10 +
371 files changed, 85363 insertions(+), 3351 deletions(-)
delete mode 100644 AUTHORS
delete mode 100644 CHANGELOG
delete mode 100644 CONTRIBUTORS
create mode 100644 README.md
delete mode 100644 README.rst
create mode 100755 cleanup.sh
create mode 100644 docs/AlternativeRoutes.md
create mode 100644 docs/DirectionsService.md
create mode 100644 docs/DirectionsService1.md
create mode 100644 docs/DirectionsServiceApi.md
create mode 100644 docs/ElevationApi.md
create mode 100644 docs/ElevationLineBody.md
create mode 100644 docs/ElevationPointBody.md
create mode 100644 docs/EngineInfo.md
create mode 100644 docs/GeoJSONFeaturesObject.md
create mode 100644 docs/GeoJSONGeometryObject.md
create mode 100644 docs/GeoJSONIsochroneBase.md
create mode 100644 docs/GeoJSONIsochroneBaseGeometry.md
create mode 100644 docs/GeoJSONIsochronesResponse.md
create mode 100644 docs/GeoJSONIsochronesResponseFeatures.md
create mode 100644 docs/GeoJSONIsochronesResponseMetadata.md
create mode 100644 docs/GeoJSONIsochronesResponseMetadataEngine.md
create mode 100644 docs/GeoJSONPropertiesObject.md
create mode 100644 docs/GeoJSONPropertiesObjectCategoryIds.md
create mode 100644 docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
create mode 100644 docs/GeoJSONPropertiesObjectOsmTags.md
create mode 100644 docs/GeoJSONRouteResponse.md
create mode 100644 docs/GeoJSONRouteResponseMetadata.md
create mode 100644 docs/GeocodeApi.md
create mode 100644 docs/GeocodeResponse.md
create mode 100644 docs/Gpx.md
create mode 100644 docs/GraphExportService.md
create mode 100644 docs/InlineResponse200.md
create mode 100644 docs/InlineResponse2001.md
create mode 100644 docs/InlineResponse2001Geometry.md
create mode 100644 docs/InlineResponse2002.md
create mode 100644 docs/InlineResponse2002Routes.md
create mode 100644 docs/InlineResponse2002Steps.md
create mode 100644 docs/InlineResponse2002Summary.md
create mode 100644 docs/InlineResponse2002Unassigned.md
create mode 100644 docs/InlineResponse2003.md
create mode 100644 docs/InlineResponse2004.md
create mode 100644 docs/InlineResponse2005.md
create mode 100644 docs/InlineResponse2006.md
create mode 100644 docs/InlineResponse200Geometry.md
create mode 100644 docs/IsochronesProfileBody.md
create mode 100644 docs/IsochronesRequest.md
create mode 100644 docs/IsochronesResponseInfo.md
create mode 100644 docs/IsochronesServiceApi.md
create mode 100644 docs/JSON2DDestinations.md
create mode 100644 docs/JSON2DSources.md
create mode 100644 docs/JSONExtra.md
create mode 100644 docs/JSONExtraSummary.md
create mode 100644 docs/JSONIndividualRouteResponse.md
create mode 100644 docs/JSONIndividualRouteResponseExtras.md
create mode 100644 docs/JSONIndividualRouteResponseInstructions.md
create mode 100644 docs/JSONIndividualRouteResponseLegs.md
create mode 100644 docs/JSONIndividualRouteResponseManeuver.md
create mode 100644 docs/JSONIndividualRouteResponseSegments.md
create mode 100644 docs/JSONIndividualRouteResponseStops.md
create mode 100644 docs/JSONIndividualRouteResponseSummary.md
create mode 100644 docs/JSONIndividualRouteResponseWarnings.md
create mode 100644 docs/JSONLeg.md
create mode 100644 docs/JSONObject.md
create mode 100644 docs/JSONPtStop.md
create mode 100644 docs/JSONRouteResponse.md
create mode 100644 docs/JSONRouteResponseRoutes.md
create mode 100644 docs/JSONSegment.md
create mode 100644 docs/JSONStep.md
create mode 100644 docs/JSONStepManeuver.md
create mode 100644 docs/JSONSummary.md
create mode 100644 docs/JSONWarning.md
create mode 100644 docs/JsonEdge.md
create mode 100644 docs/JsonEdgeExtra.md
create mode 100644 docs/JsonExportResponse.md
create mode 100644 docs/JsonExportResponseEdges.md
create mode 100644 docs/JsonExportResponseEdgesExtra.md
create mode 100644 docs/JsonExportResponseNodes.md
create mode 100644 docs/JsonNode.md
delete mode 100644 docs/Makefile
create mode 100644 docs/MatrixProfileBody.md
create mode 100644 docs/MatrixRequest.md
create mode 100644 docs/MatrixResponse.md
create mode 100644 docs/MatrixResponseDestinations.md
create mode 100644 docs/MatrixResponseInfo.md
create mode 100644 docs/MatrixResponseMetadata.md
create mode 100644 docs/MatrixResponseSources.md
create mode 100644 docs/MatrixServiceApi.md
create mode 100644 docs/OpenpoiservicePoiRequest.md
create mode 100644 docs/OpenpoiservicePoiResponse.md
create mode 100644 docs/OptimizationApi.md
create mode 100644 docs/OptimizationBody.md
create mode 100644 docs/OptimizationJobs.md
create mode 100644 docs/OptimizationOptions.md
create mode 100644 docs/OptimizationVehicles.md
create mode 100644 docs/PoisApi.md
create mode 100644 docs/PoisFilters.md
create mode 100644 docs/PoisGeometry.md
create mode 100644 docs/ProfileParameters.md
create mode 100644 docs/ProfileParametersRestrictions.md
create mode 100644 docs/ProfileWeightings.md
create mode 100644 docs/Restrictions.md
create mode 100644 docs/RoundTripRouteOptions.md
create mode 100644 docs/RouteOptions.md
create mode 100644 docs/RouteOptionsAvoidPolygons.md
create mode 100644 docs/RouteResponseInfo.md
create mode 100644 docs/Rte.md
create mode 100644 docs/V2directionsprofilegeojsonScheduleDuration.md
create mode 100644 docs/V2directionsprofilegeojsonScheduleDurationDuration.md
create mode 100644 docs/V2directionsprofilegeojsonScheduleDurationUnits.md
create mode 100644 docs/V2directionsprofilegeojsonWalkingTime.md
create mode 100644 docs/examples/Avoid_ConstructionSites.md
create mode 100644 docs/examples/Dieselgate_Routing.md
create mode 100644 docs/examples/Routing_Optimization_Idai.md
create mode 100644 docs/examples/ortools_pubcrawl.md
delete mode 100644 docs/make.bat
delete mode 100644 docs/source/conf.py
delete mode 100644 docs/source/index.rst
delete mode 100644 docs/source/modules.rst
delete mode 100644 docs/source/openrouteservice.rst
delete mode 100644 docs/source/readme_link.rst
delete mode 100644 environment.yml
create mode 100644 examples/Avoid_ConstructionSites.html
create mode 100644 examples/Avoid_ConstructionSites.ipynb
create mode 100644 examples/Dieselgate_Routing.html
create mode 100644 examples/Dieselgate_Routing.ipynb
create mode 100644 examples/Routing_Optimization_Idai.html
create mode 100644 examples/Routing_Optimization_Idai.ipynb
delete mode 100644 examples/basic_example.ipynb
create mode 100644 examples/data/idai_health_sites.csv
create mode 100644 examples/ortools_pubcrawl.html
create mode 100644 examples/ortools_pubcrawl.ipynb
create mode 100644 git_push.sh
create mode 100644 index.md
create mode 100644 openrouteservice/api/__init__.py
create mode 100644 openrouteservice/api/directions_service_api.py
create mode 100644 openrouteservice/api/elevation_api.py
create mode 100644 openrouteservice/api/geocode_api.py
create mode 100644 openrouteservice/api/isochrones_service_api.py
create mode 100644 openrouteservice/api/matrix_service_api.py
create mode 100644 openrouteservice/api/optimization_api.py
create mode 100644 openrouteservice/api/pois_api.py
create mode 100644 openrouteservice/api_client.py
create mode 100644 openrouteservice/configuration.py
create mode 100644 openrouteservice/models/__init__.py
create mode 100644 openrouteservice/models/alternative_routes.py
create mode 100644 openrouteservice/models/directions_service.py
create mode 100644 openrouteservice/models/directions_service1.py
create mode 100644 openrouteservice/models/elevation_line_body.py
create mode 100644 openrouteservice/models/elevation_point_body.py
create mode 100644 openrouteservice/models/engine_info.py
create mode 100644 openrouteservice/models/geo_json_features_object.py
create mode 100644 openrouteservice/models/geo_json_geometry_object.py
create mode 100644 openrouteservice/models/geo_json_isochrone_base.py
create mode 100644 openrouteservice/models/geo_json_isochrone_base_geometry.py
create mode 100644 openrouteservice/models/geo_json_isochrones_response.py
create mode 100644 openrouteservice/models/geo_json_isochrones_response_features.py
create mode 100644 openrouteservice/models/geo_json_isochrones_response_metadata.py
create mode 100644 openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
create mode 100644 openrouteservice/models/geo_json_properties_object.py
create mode 100644 openrouteservice/models/geo_json_properties_object_category_ids.py
create mode 100644 openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
create mode 100644 openrouteservice/models/geo_json_properties_object_osm_tags.py
create mode 100644 openrouteservice/models/geo_json_route_response.py
create mode 100644 openrouteservice/models/geo_json_route_response_metadata.py
create mode 100644 openrouteservice/models/geocode_response.py
create mode 100644 openrouteservice/models/gpx.py
create mode 100644 openrouteservice/models/graph_export_service.py
create mode 100644 openrouteservice/models/inline_response200.py
create mode 100644 openrouteservice/models/inline_response2001.py
create mode 100644 openrouteservice/models/inline_response2001_geometry.py
create mode 100644 openrouteservice/models/inline_response2002.py
create mode 100644 openrouteservice/models/inline_response2002_routes.py
create mode 100644 openrouteservice/models/inline_response2002_steps.py
create mode 100644 openrouteservice/models/inline_response2002_summary.py
create mode 100644 openrouteservice/models/inline_response2002_unassigned.py
create mode 100644 openrouteservice/models/inline_response2003.py
create mode 100644 openrouteservice/models/inline_response2004.py
create mode 100644 openrouteservice/models/inline_response2005.py
create mode 100644 openrouteservice/models/inline_response2006.py
create mode 100644 openrouteservice/models/inline_response200_geometry.py
create mode 100644 openrouteservice/models/isochrones_profile_body.py
create mode 100644 openrouteservice/models/isochrones_request.py
create mode 100644 openrouteservice/models/isochrones_response_info.py
create mode 100644 openrouteservice/models/json2_d_destinations.py
create mode 100644 openrouteservice/models/json2_d_sources.py
create mode 100644 openrouteservice/models/json_edge.py
create mode 100644 openrouteservice/models/json_edge_extra.py
create mode 100644 openrouteservice/models/json_export_response.py
create mode 100644 openrouteservice/models/json_export_response_edges.py
create mode 100644 openrouteservice/models/json_export_response_edges_extra.py
create mode 100644 openrouteservice/models/json_export_response_nodes.py
create mode 100644 openrouteservice/models/json_extra.py
create mode 100644 openrouteservice/models/json_extra_summary.py
create mode 100644 openrouteservice/models/json_individual_route_response.py
create mode 100644 openrouteservice/models/json_individual_route_response_extras.py
create mode 100644 openrouteservice/models/json_individual_route_response_instructions.py
create mode 100644 openrouteservice/models/json_individual_route_response_legs.py
create mode 100644 openrouteservice/models/json_individual_route_response_maneuver.py
create mode 100644 openrouteservice/models/json_individual_route_response_segments.py
create mode 100644 openrouteservice/models/json_individual_route_response_stops.py
create mode 100644 openrouteservice/models/json_individual_route_response_summary.py
create mode 100644 openrouteservice/models/json_individual_route_response_warnings.py
create mode 100644 openrouteservice/models/json_leg.py
create mode 100644 openrouteservice/models/json_node.py
create mode 100644 openrouteservice/models/json_object.py
create mode 100644 openrouteservice/models/json_route_response.py
create mode 100644 openrouteservice/models/json_route_response_routes.py
create mode 100644 openrouteservice/models/json_segment.py
create mode 100644 openrouteservice/models/json_step.py
create mode 100644 openrouteservice/models/json_step_maneuver.py
create mode 100644 openrouteservice/models/json_summary.py
create mode 100644 openrouteservice/models/json_warning.py
create mode 100644 openrouteservice/models/jsonpt_stop.py
create mode 100644 openrouteservice/models/matrix_profile_body.py
create mode 100644 openrouteservice/models/matrix_request.py
create mode 100644 openrouteservice/models/matrix_response.py
create mode 100644 openrouteservice/models/matrix_response_destinations.py
create mode 100644 openrouteservice/models/matrix_response_info.py
create mode 100644 openrouteservice/models/matrix_response_metadata.py
create mode 100644 openrouteservice/models/matrix_response_sources.py
create mode 100644 openrouteservice/models/openpoiservice_poi_request.py
create mode 100644 openrouteservice/models/openpoiservice_poi_response.py
create mode 100644 openrouteservice/models/optimization_body.py
create mode 100644 openrouteservice/models/optimization_jobs.py
create mode 100644 openrouteservice/models/optimization_options.py
create mode 100644 openrouteservice/models/optimization_vehicles.py
create mode 100644 openrouteservice/models/pois_filters.py
create mode 100644 openrouteservice/models/pois_geometry.py
create mode 100644 openrouteservice/models/profile_parameters.py
create mode 100644 openrouteservice/models/profile_parameters_restrictions.py
create mode 100644 openrouteservice/models/profile_weightings.py
create mode 100644 openrouteservice/models/restrictions.py
create mode 100644 openrouteservice/models/round_trip_route_options.py
create mode 100644 openrouteservice/models/route_options.py
create mode 100644 openrouteservice/models/route_options_avoid_polygons.py
create mode 100644 openrouteservice/models/route_response_info.py
create mode 100644 openrouteservice/models/rte.py
create mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
create mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
create mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
create mode 100644 openrouteservice/models/v2directionsprofilegeojson_walking_time.py
create mode 100644 openrouteservice/rest.py
create mode 100644 openrouteservice/utility.py
create mode 100644 package-lock.json
create mode 100644 package.json
delete mode 100644 poetry.lock
create mode 100644 requirements.txt
create mode 100644 setup.py
create mode 100644 test-requirements.txt
create mode 100644 test/test_alternative_routes.py
delete mode 100644 test/test_client.py
delete mode 100644 test/test_convert.py
delete mode 100644 test/test_deprecation_warning.py
delete mode 100644 test/test_directions.py
create mode 100644 test/test_directions_service.py
create mode 100644 test/test_directions_service1.py
create mode 100644 test/test_directions_service_api.py
delete mode 100644 test/test_distance_matrix.py
delete mode 100644 test/test_elevation.py
create mode 100644 test/test_elevation_api.py
create mode 100644 test/test_elevation_line_body.py
create mode 100644 test/test_elevation_point_body.py
create mode 100644 test/test_engine_info.py
delete mode 100644 test/test_exceptions.py
create mode 100644 test/test_geo_json_features_object.py
create mode 100644 test/test_geo_json_geometry_object.py
create mode 100644 test/test_geo_json_isochrone_base.py
create mode 100644 test/test_geo_json_isochrone_base_geometry.py
create mode 100644 test/test_geo_json_isochrones_response.py
create mode 100644 test/test_geo_json_isochrones_response_features.py
create mode 100644 test/test_geo_json_isochrones_response_metadata.py
create mode 100644 test/test_geo_json_isochrones_response_metadata_engine.py
create mode 100644 test/test_geo_json_properties_object.py
create mode 100644 test/test_geo_json_properties_object_category_ids.py
create mode 100644 test/test_geo_json_properties_object_category_ids_category_id.py
create mode 100644 test/test_geo_json_properties_object_osm_tags.py
create mode 100644 test/test_geo_json_route_response.py
create mode 100644 test/test_geo_json_route_response_metadata.py
delete mode 100644 test/test_geocode.py
create mode 100644 test/test_geocode_api.py
create mode 100644 test/test_geocode_response.py
create mode 100644 test/test_gpx.py
create mode 100644 test/test_graph_export_service.py
delete mode 100644 test/test_helper.py
create mode 100644 test/test_inline_response200.py
create mode 100644 test/test_inline_response2001.py
create mode 100644 test/test_inline_response2001_geometry.py
create mode 100644 test/test_inline_response2002.py
create mode 100644 test/test_inline_response2002_routes.py
create mode 100644 test/test_inline_response2002_steps.py
create mode 100644 test/test_inline_response2002_summary.py
create mode 100644 test/test_inline_response2002_unassigned.py
create mode 100644 test/test_inline_response2003.py
create mode 100644 test/test_inline_response2004.py
create mode 100644 test/test_inline_response2005.py
create mode 100644 test/test_inline_response2006.py
create mode 100644 test/test_inline_response200_geometry.py
delete mode 100644 test/test_isochrones.py
create mode 100644 test/test_isochrones_profile_body.py
create mode 100644 test/test_isochrones_request.py
create mode 100644 test/test_isochrones_response_info.py
create mode 100644 test/test_isochrones_service_api.py
create mode 100644 test/test_json2_d_destinations.py
create mode 100644 test/test_json2_d_sources.py
create mode 100644 test/test_json_edge.py
create mode 100644 test/test_json_edge_extra.py
create mode 100644 test/test_json_export_response.py
create mode 100644 test/test_json_export_response_edges.py
create mode 100644 test/test_json_export_response_edges_extra.py
create mode 100644 test/test_json_export_response_nodes.py
create mode 100644 test/test_json_extra.py
create mode 100644 test/test_json_extra_summary.py
create mode 100644 test/test_json_individual_route_response.py
create mode 100644 test/test_json_individual_route_response_extras.py
create mode 100644 test/test_json_individual_route_response_instructions.py
create mode 100644 test/test_json_individual_route_response_legs.py
create mode 100644 test/test_json_individual_route_response_maneuver.py
create mode 100644 test/test_json_individual_route_response_segments.py
create mode 100644 test/test_json_individual_route_response_stops.py
create mode 100644 test/test_json_individual_route_response_summary.py
create mode 100644 test/test_json_individual_route_response_warnings.py
create mode 100644 test/test_json_leg.py
create mode 100644 test/test_json_node.py
create mode 100644 test/test_json_object.py
create mode 100644 test/test_json_route_response.py
create mode 100644 test/test_json_route_response_routes.py
create mode 100644 test/test_json_segment.py
create mode 100644 test/test_json_step.py
create mode 100644 test/test_json_step_maneuver.py
create mode 100644 test/test_json_summary.py
create mode 100644 test/test_json_warning.py
create mode 100644 test/test_jsonpt_stop.py
create mode 100644 test/test_matrix_profile_body.py
create mode 100644 test/test_matrix_request.py
create mode 100644 test/test_matrix_response.py
create mode 100644 test/test_matrix_response_destinations.py
create mode 100644 test/test_matrix_response_info.py
create mode 100644 test/test_matrix_response_metadata.py
create mode 100644 test/test_matrix_response_sources.py
create mode 100644 test/test_matrix_service_api.py
create mode 100644 test/test_openpoiservice_poi_request.py
create mode 100644 test/test_openpoiservice_poi_response.py
delete mode 100644 test/test_optimization.py
create mode 100644 test/test_optimization_api.py
create mode 100644 test/test_optimization_body.py
create mode 100644 test/test_optimization_jobs.py
create mode 100644 test/test_optimization_options.py
create mode 100644 test/test_optimization_vehicles.py
delete mode 100644 test/test_places.py
create mode 100644 test/test_pois_api.py
create mode 100644 test/test_pois_filters.py
create mode 100644 test/test_pois_geometry.py
create mode 100644 test/test_profile_parameters.py
create mode 100644 test/test_profile_parameters_restrictions.py
create mode 100644 test/test_profile_weightings.py
create mode 100644 test/test_restrictions.py
create mode 100644 test/test_round_trip_route_options.py
create mode 100644 test/test_route_options.py
create mode 100644 test/test_route_options_avoid_polygons.py
create mode 100644 test/test_route_response_info.py
create mode 100644 test/test_rte.py
create mode 100644 test/test_v2directionsprofilegeojson_schedule_duration.py
create mode 100644 test/test_v2directionsprofilegeojson_schedule_duration_duration.py
create mode 100644 test/test_v2directionsprofilegeojson_schedule_duration_units.py
create mode 100644 test/test_v2directionsprofilegeojson_walking_time.py
create mode 100644 tests-config.sample.ini
create mode 100644 tox.ini
diff --git a/.gitignore b/.gitignore
index c394d5f7..7c5d3aff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,23 +1,14 @@
-.tox/
-.venv*
-.env*
-.coverage
-**/.ipynb_checkpoints/
-*.geojson
-*.pyc
-*.in
-*egg-info/
-dist/
-build/
-/docs/build
-test.py
+# IDE
+.vscode
-#IDE
-.spyproject/
-.idea/
+# Vitepress
+/**/node_modules
+.vitepress/cache
-cover/
-conda/
-*coverage.xml
-/setup.py
-/requirements.txt
+# Python
+/**/__pycache__
+dist
+*.egg-info
+
+# Secrets
+tests-config.ini
diff --git a/AUTHORS b/AUTHORS
deleted file mode 100644
index 6f3ab212..00000000
--- a/AUTHORS
+++ /dev/null
@@ -1,20 +0,0 @@
-# This is the official list of openrouteservice-py authors
-# for copyright purposes. This file is distinct from the CONTRIBUTORS files.
-# See the latter for an explanation.
-
-# Names should be added to this file as
-# Name or Organization
-# The email address is not required for organizations.
-
-# Please keep the list sorted.
-
-# The work is based on Python Client for Google Maps Services:
-# https://github.com/googlemaps/google-maps-services-python
-# Following authors were registered:
-
-Google Inc.
-
-# Modified to fit ORS needs by
-
-Julian Psotta
-Nils Nolde
diff --git a/CHANGELOG b/CHANGELOG
deleted file mode 100644
index 9ab8a608..00000000
--- a/CHANGELOG
+++ /dev/null
@@ -1,58 +0,0 @@
-# Unreleased
-
-- add 'intersections'-parameter to isochrones
-
-## 2.2.0
-
-- restrict optimize_waypoints parameter to not trigger when options or 'shortest' is used
-- Add optimize_waypoints option to directions for simple TSP
-- get rid of validators, too maintenance-heavy
-
-## 2.1.0
-
-- fix minor problems, apply PEP lint, add some tests
-- Add optimization endpoint
-
-# 2.0.0
-
-- implement all backend changes from moving to openrouteservice v5
-- now all parameters are named like their backend equivalents, while keeping the old ors-py parameter names for backwards compatibility, but with deprecation warnings
-- validator validates ALL parameters
-- added a Client.req property, returning the actual `requests` request
-
-### v1.1.8
-
-- make dependencies more sensible (#32)
-
-### v1.1.7
-
-- fix boundary.country for pelias_search (#30)
-- change isochrone defaults (#31)
-
-### v1.1.6
-
-- fix boolean parameters (#28)
-
-### v1.1.0
-
-- fix decoding of 2D polylines
-- add support for true booleans
-
-# v1.0
-
-- add Pelias Autocomplete
-- add elevation endpoint
-- proper parameter validation via Cerberus
-
-## v0.4
-
-- add Pelias geocoding endpoints
-
-## v0.3
-
-- add options object to directions API
-
-## v0.2
-
-- Integrate openpoiservice (#1)
-- add dry_run
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
deleted file mode 100644
index eded1a8d..00000000
--- a/CONTRIBUTORS
+++ /dev/null
@@ -1,21 +0,0 @@
-# This is the official list of people who have contributed to the project. The
-# copyright is held by those individuals or organizations in the AUTHORS file.
-#
-# Names should be added to this file like so:
-# Name
-
-# Please keep the list sorted by first name.
-
-Julian Psotta
-Nils Nolde
-
-# The following people contributed to the original Python Client for Google Maps Services:
-
-Brett Morgan
-Chris Broadfoot
-Dave Holmes
-Luke Mahe
-Mark McDonald
-Sam Thorogood
-Sean Wohltman
-Stephen McDonald
diff --git a/README.md b/README.md
new file mode 100644
index 00000000..035a98f0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,228 @@
+# openrouteservice
+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.
+
+| API Version | Package version | Build package |
+| -------------- | ------------------ | ------------------ |
+| 7.1.0 | 7.1.0.post6 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+
+For further details, please visit:
+- our [homepage](https://openrouteservice.org)
+- [ORS API documentation](https://openrouteservice.org/documentation/)
+
+For support, please ask our [forum](https://ask.openrouteservice.org/c/sdks).
+By using this library, you agree to the ORS [terms and conditions](https://openrouteservice.org/terms-of-service/).
+
+## Requirements.
+
+Python 2.7 and 3.4+
+
+## Installation & Usage
+### pip install
+
+If the python package is hosted on Github, you can install directly from Github
+
+```sh
+pip install ors-py
+```
+
+Then import the package:
+```python
+import openrouteservice
+```
+
+### Setuptools
+
+Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
+
+```sh
+python setup.py install --user
+```
+(or `sudo python setup.py install` to install the package for all users)
+
+Then import the package:
+```python
+import openrouteservice
+```
+
+## Usage
+Please follow the [installation procedure](#installation--usage) before running the examples:
+
+### Examples
+These examples show common usages of this library.
+- [Avoid construction sites dynamically](docs/examples/Avoid_ConstructionSites)
+- [Dieselgate Routing](docs/examples/Dieselgate_Routing)
+- [Route optimization of pub crawl](docs/examples/ortools_pubcrawl)
+- [Routing optimization in humanitarian context](docs/examples/Routing_Optimization_Idai)
+
+### Basic example
+```python
+import openrouteservice as ors
+from pprint import pprint
+
+# Configure API key authorization:
+configuration = ors.Configuration()
+configuration.api_key['Authorization'] = "YOUR_API_KEY"
+
+# create an instance of the API class
+directionsApi = ors.DirectionsServiceApi(ors.ApiClient(configuration))
+
+# create request body
+body = ors.DirectionsService(
+ coordinates=[[8.34234,48.23424],[8.34423,48.26424]]
+)
+
+profile = 'driving-car'
+
+try:
+ routes = directionsApi.get_geo_json_route(body, profile)
+ pprint(routes)
+except ors.rest.ApiException as e:
+ print("Exception when calling DirectionsServiceApi->get_geo_json_route: %s\n" % e)
+```
+
+### Local ORS instance
+```python
+import openrouteservice as ors
+from pprint import pprint
+
+# Configure host
+configuration = ors.Configuration()
+configuration.host = "http://localhost:8080/ors"
+
+isochronesApi = ors.IsochronesServiceApi(ors.ApiClient(configuration))
+body = ors.IsochronesProfileBody(
+ locations=[[8.681495,49.41461],[8.686507,49.41943]],
+ range=[300]
+)
+profile = 'driving-car' # Specifies the route profile.
+
+try:
+ api_response = isochronesApi.get_default_isochrones(body, profile)
+ pprint(api_response)
+except ors.rest.ApiException as e:
+ print("Exception when calling IsochronesServiceApi->get_default_isochrones: %s\n" % e)
+```
+
+## Documentation for API Endpoints
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Class | Method | HTTP request | Description
+------------ | ------------- | ------------- | -------------
+*DirectionsServiceApi* | [**get_geo_json_route**](docs/DirectionsServiceApi.md#get_geo_json_route) | **POST** /v2/directions/{profile}/geojson | Directions Service GeoJSON
+*DirectionsServiceApi* | [**get_json_route**](docs/DirectionsServiceApi.md#get_json_route) | **POST** /v2/directions/{profile}/json | Directions Service JSON
+*ElevationApi* | [**elevation_line_post**](docs/ElevationApi.md#elevation_line_post) | **POST** /elevation/line | Elevation Line Service
+*ElevationApi* | [**elevation_point_get**](docs/ElevationApi.md#elevation_point_get) | **GET** /elevation/point | Elevation Point Service
+*ElevationApi* | [**elevation_point_post**](docs/ElevationApi.md#elevation_point_post) | **POST** /elevation/point | Elevation Point Service
+*GeocodeApi* | [**geocode_autocomplete_get**](docs/GeocodeApi.md#geocode_autocomplete_get) | **GET** /geocode/autocomplete | Geocode Autocomplete Service
+*GeocodeApi* | [**geocode_reverse_get**](docs/GeocodeApi.md#geocode_reverse_get) | **GET** /geocode/reverse | Reverse Geocode Service
+*GeocodeApi* | [**geocode_search_get**](docs/GeocodeApi.md#geocode_search_get) | **GET** /geocode/search | Forward Geocode Service
+*GeocodeApi* | [**geocode_search_structured_get**](docs/GeocodeApi.md#geocode_search_structured_get) | **GET** /geocode/search/structured | Structured Forward Geocode Service (beta)
+*IsochronesServiceApi* | [**get_default_isochrones**](docs/IsochronesServiceApi.md#get_default_isochrones) | **POST** /v2/isochrones/{profile} | Isochrones Service
+*MatrixServiceApi* | [**get_default**](docs/MatrixServiceApi.md#get_default) | **POST** /v2/matrix/{profile} | Matrix Service
+*OptimizationApi* | [**optimization_post**](docs/OptimizationApi.md#optimization_post) | **POST** /optimization | Optimization Service
+*PoisApi* | [**pois_post**](docs/PoisApi.md#pois_post) | **POST** /pois | Pois Service
+
+## Documentation For Models
+
+ - [AlternativeRoutes](docs/AlternativeRoutes.md)
+ - [DirectionsService](docs/DirectionsService.md)
+ - [DirectionsService1](docs/DirectionsService1.md)
+ - [ElevationLineBody](docs/ElevationLineBody.md)
+ - [ElevationPointBody](docs/ElevationPointBody.md)
+ - [EngineInfo](docs/EngineInfo.md)
+ - [GeoJSONFeaturesObject](docs/GeoJSONFeaturesObject.md)
+ - [GeoJSONGeometryObject](docs/GeoJSONGeometryObject.md)
+ - [GeoJSONIsochroneBase](docs/GeoJSONIsochroneBase.md)
+ - [GeoJSONIsochroneBaseGeometry](docs/GeoJSONIsochroneBaseGeometry.md)
+ - [GeoJSONIsochronesResponse](docs/GeoJSONIsochronesResponse.md)
+ - [GeoJSONIsochronesResponseFeatures](docs/GeoJSONIsochronesResponseFeatures.md)
+ - [GeoJSONIsochronesResponseMetadata](docs/GeoJSONIsochronesResponseMetadata.md)
+ - [GeoJSONIsochronesResponseMetadataEngine](docs/GeoJSONIsochronesResponseMetadataEngine.md)
+ - [GeoJSONPropertiesObject](docs/GeoJSONPropertiesObject.md)
+ - [GeoJSONPropertiesObjectCategoryIds](docs/GeoJSONPropertiesObjectCategoryIds.md)
+ - [GeoJSONPropertiesObjectCategoryIdsCategoryId](docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md)
+ - [GeoJSONPropertiesObjectOsmTags](docs/GeoJSONPropertiesObjectOsmTags.md)
+ - [GeoJSONRouteResponse](docs/GeoJSONRouteResponse.md)
+ - [GeoJSONRouteResponseMetadata](docs/GeoJSONRouteResponseMetadata.md)
+ - [GeocodeResponse](docs/GeocodeResponse.md)
+ - [Gpx](docs/Gpx.md)
+ - [GraphExportService](docs/GraphExportService.md)
+ - [InlineResponse200](docs/InlineResponse200.md)
+ - [InlineResponse2001](docs/InlineResponse2001.md)
+ - [InlineResponse2001Geometry](docs/InlineResponse2001Geometry.md)
+ - [InlineResponse2002](docs/InlineResponse2002.md)
+ - [InlineResponse2002Routes](docs/InlineResponse2002Routes.md)
+ - [InlineResponse2002Steps](docs/InlineResponse2002Steps.md)
+ - [InlineResponse2002Summary](docs/InlineResponse2002Summary.md)
+ - [InlineResponse2002Unassigned](docs/InlineResponse2002Unassigned.md)
+ - [InlineResponse2003](docs/InlineResponse2003.md)
+ - [InlineResponse2004](docs/InlineResponse2004.md)
+ - [InlineResponse2005](docs/InlineResponse2005.md)
+ - [InlineResponse2006](docs/InlineResponse2006.md)
+ - [InlineResponse200Geometry](docs/InlineResponse200Geometry.md)
+ - [IsochronesProfileBody](docs/IsochronesProfileBody.md)
+ - [IsochronesRequest](docs/IsochronesRequest.md)
+ - [IsochronesResponseInfo](docs/IsochronesResponseInfo.md)
+ - [JSON2DDestinations](docs/JSON2DDestinations.md)
+ - [JSON2DSources](docs/JSON2DSources.md)
+ - [JSONExtra](docs/JSONExtra.md)
+ - [JSONExtraSummary](docs/JSONExtraSummary.md)
+ - [JSONIndividualRouteResponse](docs/JSONIndividualRouteResponse.md)
+ - [JSONIndividualRouteResponseExtras](docs/JSONIndividualRouteResponseExtras.md)
+ - [JSONIndividualRouteResponseInstructions](docs/JSONIndividualRouteResponseInstructions.md)
+ - [JSONIndividualRouteResponseLegs](docs/JSONIndividualRouteResponseLegs.md)
+ - [JSONIndividualRouteResponseManeuver](docs/JSONIndividualRouteResponseManeuver.md)
+ - [JSONIndividualRouteResponseSegments](docs/JSONIndividualRouteResponseSegments.md)
+ - [JSONIndividualRouteResponseStops](docs/JSONIndividualRouteResponseStops.md)
+ - [JSONIndividualRouteResponseSummary](docs/JSONIndividualRouteResponseSummary.md)
+ - [JSONIndividualRouteResponseWarnings](docs/JSONIndividualRouteResponseWarnings.md)
+ - [JSONLeg](docs/JSONLeg.md)
+ - [JSONObject](docs/JSONObject.md)
+ - [JSONPtStop](docs/JSONPtStop.md)
+ - [JSONRouteResponse](docs/JSONRouteResponse.md)
+ - [JSONRouteResponseRoutes](docs/JSONRouteResponseRoutes.md)
+ - [JSONSegment](docs/JSONSegment.md)
+ - [JSONStep](docs/JSONStep.md)
+ - [JSONStepManeuver](docs/JSONStepManeuver.md)
+ - [JSONSummary](docs/JSONSummary.md)
+ - [JSONWarning](docs/JSONWarning.md)
+ - [JsonEdge](docs/JsonEdge.md)
+ - [JsonEdgeExtra](docs/JsonEdgeExtra.md)
+ - [JsonExportResponse](docs/JsonExportResponse.md)
+ - [JsonExportResponseEdges](docs/JsonExportResponseEdges.md)
+ - [JsonExportResponseEdgesExtra](docs/JsonExportResponseEdgesExtra.md)
+ - [JsonExportResponseNodes](docs/JsonExportResponseNodes.md)
+ - [JsonNode](docs/JsonNode.md)
+ - [MatrixProfileBody](docs/MatrixProfileBody.md)
+ - [MatrixRequest](docs/MatrixRequest.md)
+ - [MatrixResponse](docs/MatrixResponse.md)
+ - [MatrixResponseDestinations](docs/MatrixResponseDestinations.md)
+ - [MatrixResponseInfo](docs/MatrixResponseInfo.md)
+ - [MatrixResponseMetadata](docs/MatrixResponseMetadata.md)
+ - [MatrixResponseSources](docs/MatrixResponseSources.md)
+ - [OpenpoiservicePoiRequest](docs/OpenpoiservicePoiRequest.md)
+ - [OpenpoiservicePoiResponse](docs/OpenpoiservicePoiResponse.md)
+ - [OptimizationBody](docs/OptimizationBody.md)
+ - [OptimizationJobs](docs/OptimizationJobs.md)
+ - [OptimizationOptions](docs/OptimizationOptions.md)
+ - [OptimizationVehicles](docs/OptimizationVehicles.md)
+ - [PoisFilters](docs/PoisFilters.md)
+ - [PoisGeometry](docs/PoisGeometry.md)
+ - [ProfileParameters](docs/ProfileParameters.md)
+ - [ProfileParametersRestrictions](docs/ProfileParametersRestrictions.md)
+ - [ProfileWeightings](docs/ProfileWeightings.md)
+ - [Restrictions](docs/Restrictions.md)
+ - [RoundTripRouteOptions](docs/RoundTripRouteOptions.md)
+ - [RouteOptions](docs/RouteOptions.md)
+ - [RouteOptionsAvoidPolygons](docs/RouteOptionsAvoidPolygons.md)
+ - [RouteResponseInfo](docs/RouteResponseInfo.md)
+ - [Rte](docs/Rte.md)
+ - [V2directionsprofilegeojsonScheduleDuration](docs/V2directionsprofilegeojsonScheduleDuration.md)
+ - [V2directionsprofilegeojsonScheduleDurationDuration](docs/V2directionsprofilegeojsonScheduleDurationDuration.md)
+ - [V2directionsprofilegeojsonScheduleDurationUnits](docs/V2directionsprofilegeojsonScheduleDurationUnits.md)
+ - [V2directionsprofilegeojsonWalkingTime](docs/V2directionsprofilegeojsonWalkingTime.md)
+
+## Author
+
+support@smartmobility.heigit.org
diff --git a/README.rst b/README.rst
deleted file mode 100644
index 6359d901..00000000
--- a/README.rst
+++ /dev/null
@@ -1,238 +0,0 @@
-.. image:: https://github.com/GIScience/openrouteservice-py/workflows/tests/badge.svg
- :target: https://github.com/GIScience/openrouteservice-py/actions
- :alt: Build status
-
-.. image:: https://codecov.io/gh/GIScience/openrouteservice-py/branch/master/graph/badge.svg?token=QqGC8XfCiI
- :target: https://codecov.io/gh/GIScience/openrouteservice-py
- :alt: Codecov coverage
-
-.. image:: https://readthedocs.org/projects/openrouteservice-py/badge/?version=latest
- :target: http://openrouteservice-py.readthedocs.io/en/latest/?badge=latest
- :alt: Documentation Status
-
-.. image:: https://badge.fury.io/py/openrouteservice.svg
- :target: https://badge.fury.io/py/openrouteservice
- :alt: PyPI version
-
-.. image:: https://mybinder.org/badge_logo.svg
- :target: https://mybinder.org/v2/gh/GIScience/openrouteservice-py/master?filepath=examples%2Fbasic_example.ipynb
- :alt: MyBinder
-
-Quickstart
-==================================================
-
-Description
---------------------------------------------------
-The openrouteservice library gives you painless access to the openrouteservice_ (ORS) routing API's.
-It performs requests against our API's for
-
-- directions_
-- isochrones_
-- `matrix routing calculations`_
-- places_
-- elevation_
-- `Pelias geocoding`_
-- `Pelias reverse geocoding`_
-- `Pelias structured geocoding`_
-- `Pelias autocomplete`_
-- Optimization_
-
-For further details, please visit:
-
-- homepage_
-- `ORS API documentation`_
-- `openrouteservice-py documentation`_
-
-We also have a repo with a few useful examples here_.
-
-For support, please ask our forum_.
-
-By using this library, you agree to the ORS `terms and conditions`_.
-
-.. _openrouteservice: https://openrouteservice.org
-.. _homepage: https://openrouteservice.org
-.. _`ORS API documentation`: https://openrouteservice.org/documentation/
-.. _`openrouteservice-py documentation`: http://openrouteservice-py.readthedocs.io/en/latest/
-.. _directions: https://openrouteservice.org/documentation/#/reference/directions/directions/directions-service
-.. _`Pelias geocoding`: https://github.com/pelias/documentation/blob/master/search.md#available-search-parameters
-.. _`Pelias reverse geocoding`: https://github.com/pelias/documentation/blob/master/reverse.md#reverse-geocoding-parameters
-.. _`Pelias structured geocoding`: https://github.com/pelias/documentation/blob/master/structured-geocoding.md
-.. _`Pelias autocomplete`: https://github.com/pelias/documentation/blob/master/autocomplete.md
-.. _isochrones: https://openrouteservice.org/documentation/#/reference/isochrones/isochrones/isochrones-service
-.. _elevation: https://github.com/GIScience/openelevationservice/
-.. _`reverse geocoding`: https://openrouteservice.org/documentation/#/reference/geocoding/geocoding/geocoding-service
-.. _`matrix routing calculations`: https://openrouteservice.org/documentation/#/reference/matrix/matrix/matrix-service-(post)
-.. _places: https://github.com/GIScience/openpoiservice
-.. _Optimization: https://github.com/VROOM-Project/vroom/blob/master/docs/API.md
-.. _here: https://github.com/GIScience/openrouteservice-examples/tree/master/python
-.. _`terms and conditions`: https://openrouteservice.org/terms-of-service/
-.. _forum: https://ask.openrouteservice.org/c/sdks
-
-Requirements
------------------------------
-openrouteservice-py is tested against Python 3.6, 3.7, 3.8 and 3.9, and PyPy3.6 and PyPy3.7.
-
-For setting up a testing environment, install **poetry** first.
-
-For Linux and osx::
-
- curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
-
-For windows::
-
- (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
-
-Then create a venv and install the dependencies with poetry::
-
- python -m venv .venv && source .venv/bin/activate
- poetry install -vv
-
-Installation
-------------------------------
-To install from PyPI, simply use pip::
-
- pip install openrouteservice
-
-To install the latest and greatest from source::
-
- pip install git+git://github.com/GIScience/openrouteservice-py@development
-
-
-
-Testing
----------------------------------
-If you want to run the unit tests, see Requirements_. ``cd`` to the library directory and run::
-
- pytest -v
-
-``-v`` flag for verbose output (recommended).
-
-
-Usage
----------------------------------
-
-For an interactive Jupyter notebook have a look on `mybinder.org `_.
-
-Basic example
-^^^^^^^^^^^^^^^^^^^^
-.. code:: python
-
- import openrouteservice
-
- coords = ((8.34234,48.23424),(8.34423,48.26424))
-
- client = openrouteservice.Client(key='') # Specify your personal API key
- routes = client.directions(coords)
-
- print(routes)
-
-For convenience, all request performing module methods are wrapped inside the ``client`` class. This has the
-disadvantage, that your IDE can't auto-show all positional and optional arguments for the
-different methods. And there are a lot!
-
-The slightly more verbose alternative, preserving your IDE's smart functions, is
-
-.. code:: python
-
- import openrouteservice
- from openrouteservice.directions import directions
-
- coords = ((8.34234,48.23424),(8.34423,48.26424))
-
- client = openrouteservice.Client(key='') # Specify your personal API key
- routes = directions(client, coords) # Now it shows you all arguments for .directions
-
-Optimize route
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-If you want to optimize the order of multiple waypoints in a simple `Traveling Salesman Problem `_,
-you can pass a ``optimize_waypoints`` parameter:
-
-.. code:: python
-
- import openrouteservice
-
- coords = ((8.34234,48.23424),(8.34423,48.26424), (8.34523,48.24424), (8.41423,48.21424))
-
- client = openrouteservice.Client(key='') # Specify your personal API key
- routes = client.directions(coords, profile='cycling-regular', optimize_waypoints=True)
-
- print(routes)
-
-Decode Polyline
-^^^^^^^^^^^^^^^^^^^^^^^^^^
-By default, the directions API returns `encoded polylines `_.
-To decode to a ``dict``, which is a GeoJSON geometry object, simply do
-
-.. code:: python
-
- import openrouteservice
- from openrouteservice import convert
-
- coords = ((8.34234,48.23424),(8.34423,48.26424))
-
- client = openrouteservice.Client(key='') # Specify your personal API key
-
- # decode_polyline needs the geometry only
- geometry = client.directions(coords)['routes'][0]['geometry']
-
- decoded = convert.decode_polyline(geometry)
-
- print(decoded)
-
-Dry run
-^^^^^^^^^^^^^^^^^^^^
-Although errors in query creation should be handled quite decently, you can do a dry run to print the request and its parameters:
-
-.. code:: python
-
- import openrouteservice
-
- coords = ((8.34234,48.23424),(8.34423,48.26424))
-
- client = openrouteservice.Client()
- client.directions(coords, dry_run='true')
-
-Local ORS instance
-^^^^^^^^^^^^^^^^^^^^
-If you're hosting your own ORS instance, you can alter the ``base_url`` parameter to fit your own:
-
-.. code:: python
-
- import openrouteservice
-
- coords = ((8.34234,48.23424),(8.34423,48.26424))
-
- # key can be omitted for local host
- client = openrouteservice.Client(base_url='http://localhost/ors')
-
- # Only works if you didn't change the ORS endpoints manually
- routes = client.directions(coords)
-
- # If you did change the ORS endpoints for some reason
- # you'll have to pass url and required parameters explicitly:
- routes = client.request(
- url='/new_url',
- post_json={
- 'coordinates': coords,
- 'profile': 'driving-car',
- 'format': 'geojson'
- })
-
-Support
---------
-
-For general support and questions, contact our forum_.
-
-For issues/bugs/enhancement suggestions, please use https://github.com/GIScience/openrouteservice-py/issues.
-
-
-.. _forum: https://ask.openrouteservice.org/c/sdks
-
-
-Acknowledgements
------------------
-
-This library is based on the very elegant codebase from googlemaps_.
-
-
-.. _googlemaps: https://github.com/googlemaps/google-maps-services-python
diff --git a/cleanup.sh b/cleanup.sh
new file mode 100755
index 00000000..5f4be820
--- /dev/null
+++ b/cleanup.sh
@@ -0,0 +1,23 @@
+
+mv "`pwd`/openrouteservice/utility.py" "`pwd`/utility.py"
+
+rm -r docs
+rm -r .tox
+rm -r openrouteservice
+rm -r openrouteservice.egg-info
+rm README.md
+rm setup.py
+rm requirements.txt
+rm test-requirements.txt
+rm tox.ini
+rm .travis.yml
+rm git_push.sh
+
+mkdir openrouteservice
+mv "`pwd`/utility.py" "`pwd`/openrouteservice/utility.py"
+
+mkdir test/bup
+mv test/test_*_api.py test/bup/
+rm test/test_*.py
+mv test/bup/* test/
+rmdir test/bup/
diff --git a/docs/AlternativeRoutes.md b/docs/AlternativeRoutes.md
new file mode 100644
index 00000000..5120bb4f
--- /dev/null
+++ b/docs/AlternativeRoutes.md
@@ -0,0 +1,11 @@
+# AlternativeRoutes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**share_factor** | **float** | Maximum fraction of the route that alternatives may share with the optimal route. The default value of 0.6 means alternatives can share up to 60% of path segments with the optimal route. | [optional]
+**target_count** | **int** | Target number of alternative routes to compute. Service returns up to this number of routes that fulfill the share-factor and weight-factor constraints. | [optional]
+**weight_factor** | **float** | Maximum factor by which route weight may diverge from the optimal route. The default value of 1.4 means alternatives can be up to 1.4 times longer (costly) than the optimal route. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/DirectionsService.md b/docs/DirectionsService.md
new file mode 100644
index 00000000..f7fc7e23
--- /dev/null
+++ b/docs/DirectionsService.md
@@ -0,0 +1,35 @@
+# DirectionsService
+
+## 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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [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** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/DirectionsService1.md b/docs/DirectionsService1.md
new file mode 100644
index 00000000..31421449
--- /dev/null
+++ b/docs/DirectionsService1.md
@@ -0,0 +1,35 @@
+# DirectionsService1
+
+## 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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [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** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/DirectionsServiceApi.md b/docs/DirectionsServiceApi.md
new file mode 100644
index 00000000..9ac21848
--- /dev/null
+++ b/docs/DirectionsServiceApi.md
@@ -0,0 +1,121 @@
+# openrouteservice.DirectionsServiceApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_geo_json_route**](DirectionsServiceApi.md#get_geo_json_route) | **POST** /v2/directions/{profile}/geojson | Directions Service GeoJSON
+[**get_json_route**](DirectionsServiceApi.md#get_json_route) | **POST** /v2/directions/{profile}/json | Directions Service JSON
+
+# **get_geo_json_route**
+> InlineResponse2003 get_geo_json_route(body, profile)
+
+Directions Service GeoJSON
+
+Returns a route between two or more locations for a selected profile and its settings as GeoJSON
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.DirectionsService() # DirectionsService |
+profile = 'profile_example' # str | Specifies the route profile.
+
+try:
+ # Directions Service GeoJSON
+ api_response = api_instance.get_geo_json_route(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DirectionsServiceApi->get_geo_json_route: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**DirectionsService**](DirectionsService.md)| |
+ **profile** | **str**| Specifies the route profile. |
+
+### Return type
+
+[**InlineResponse2003**](InlineResponse2003.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/geo+json, */*
+
+[[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)
+
+# **get_json_route**
+> InlineResponse2004 get_json_route(body, profile)
+
+Directions Service JSON
+
+Returns a route between two or more locations for a selected profile and its settings as JSON
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.DirectionsService1() # DirectionsService1 |
+profile = 'profile_example' # str | Specifies the route profile.
+
+try:
+ # Directions Service JSON
+ api_response = api_instance.get_json_route(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DirectionsServiceApi->get_json_route: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**DirectionsService1**](DirectionsService1.md)| |
+ **profile** | **str**| Specifies the route profile. |
+
+### Return type
+
+[**InlineResponse2004**](InlineResponse2004.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, */*
+
+[[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)
+
diff --git a/docs/ElevationApi.md b/docs/ElevationApi.md
new file mode 100644
index 00000000..ac895d8f
--- /dev/null
+++ b/docs/ElevationApi.md
@@ -0,0 +1,176 @@
+# openrouteservice.ElevationApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**elevation_line_post**](ElevationApi.md#elevation_line_post) | **POST** /elevation/line | Elevation Line Service
+[**elevation_point_get**](ElevationApi.md#elevation_point_get) | **GET** /elevation/point | Elevation Point Service
+[**elevation_point_post**](ElevationApi.md#elevation_point_post) | **POST** /elevation/point | Elevation Point Service
+
+# **elevation_line_post**
+> InlineResponse200 elevation_line_post(body)
+
+Elevation Line Service
+
+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 * Google's Encoded polyline 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]] }' ```
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.ElevationLineBody() # ElevationLineBody | Query the elevation of a line in various formats.
+
+try:
+ # Elevation Line Service
+ api_response = api_instance.elevation_line_post(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ElevationApi->elevation_line_post: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ElevationLineBody**](ElevationLineBody.md)| Query the elevation of a line in various formats. |
+
+### Return type
+
+[**InlineResponse200**](InlineResponse200.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[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)
+
+# **elevation_point_get**
+> InlineResponse2001 elevation_point_get(geometry, format_out=format_out, dataset=dataset)
+
+Elevation Point Service
+
+This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The output formats are: * GeoJSON * Point Example: ``` # GET point curl -XGET https://localhost:5000/elevation/point?geometry=13.349762,38.11295 ```
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+geometry = [3.4] # list[float] | The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295]
+format_out = 'geojson' # str | The output format to be returned. (optional) (default to geojson)
+dataset = 'srtm' # str | The elevation dataset to be used. (optional) (default to srtm)
+
+try:
+ # Elevation Point Service
+ api_response = api_instance.elevation_point_get(geometry, format_out=format_out, dataset=dataset)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ElevationApi->elevation_point_get: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **geometry** | [**list[float]**](float.md)| The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295] |
+ **format_out** | **str**| The output format to be returned. | [optional] [default to geojson]
+ **dataset** | **str**| The elevation dataset to be used. | [optional] [default to srtm]
+
+### Return type
+
+[**InlineResponse2001**](InlineResponse2001.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
+# **elevation_point_post**
+> InlineResponse2001 elevation_point_post(body)
+
+Elevation Point Service
+
+This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The input and output formats are: * GeoJSON * Point Example: ``` # POST point as GeoJSON # https://api.openrouteservice.org/elevation/point?api_key=YOUR-KEY { \"format_in\": \"geojson\", \"format_out\": \"geojson\", \"geometry\": { \"coordinates\": [13.349762, 38.11295], \"type\": \"Point\" } } ```
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.ElevationPointBody() # ElevationPointBody | Query the elevation of a point in various formats.
+
+try:
+ # Elevation Point Service
+ api_response = api_instance.elevation_point_post(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling ElevationApi->elevation_point_post: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ElevationPointBody**](ElevationPointBody.md)| Query the elevation of a point in various formats. |
+
+### Return type
+
+[**InlineResponse2001**](InlineResponse2001.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[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)
+
diff --git a/docs/ElevationLineBody.md b/docs/ElevationLineBody.md
new file mode 100644
index 00000000..a39001cc
--- /dev/null
+++ b/docs/ElevationLineBody.md
@@ -0,0 +1,12 @@
+# ElevationLineBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | The elevation dataset to be used. | [optional] [default to 'srtm']
+**format_in** | **str** | The input format the API has to expect. |
+**format_out** | **str** | The output format to be returned. | [optional] [default to 'geojson']
+**geometry** | **object** | * geojson: A geometry object of a LineString GeoJSON, e.g. {\"type\": \"LineString\", \"coordinates\": [[13.331302, 38.108433],[13.331273, 38.10849]] } * polyline: A list of coordinate lists, e.g. [[13.331302, 38.108433], [13.331273, 38.10849]] * encodedpolyline5: A <a href=\"https://developers.google.com/maps/documentation/utilities/polylinealgorithm\">Google encoded polyline</a> with a coordinate precision of 5, e.g. u`rgFswjpAKD * encodedpolyline6: A <a href=\"https://developers.google.com/maps/documentation/utilities/polylinealgorithm\">Google encoded polyline</a> with a coordinate precision of 6, e.g. ap}tgAkutlXqBx@ |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/ElevationPointBody.md b/docs/ElevationPointBody.md
new file mode 100644
index 00000000..1f96f45b
--- /dev/null
+++ b/docs/ElevationPointBody.md
@@ -0,0 +1,12 @@
+# ElevationPointBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | The elevation dataset to be used. | [optional] [default to 'srtm']
+**format_in** | **str** | The input format the API has to expect. |
+**format_out** | **str** | The output format to be returned. | [optional] [default to 'geojson']
+**geometry** | **object** | * geojson: A geometry object of a Point GeoJSON, e.g. {\"type\": \"Point\", \"coordinates\": [13.331273, 38.10849] } * point: A coordinate list, e.g. [13.331273, 38.10849] |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/EngineInfo.md b/docs/EngineInfo.md
new file mode 100644
index 00000000..14afea75
--- /dev/null
+++ b/docs/EngineInfo.md
@@ -0,0 +1,11 @@
+# EngineInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**build_date** | **str** | The date that the service was last updated | [optional]
+**graph_date** | **str** | The date that the graph data was last updated | [optional]
+**version** | **str** | The backend version of the openrouteservice that was queried | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONFeaturesObject.md b/docs/GeoJSONFeaturesObject.md
new file mode 100644
index 00000000..32f4087f
--- /dev/null
+++ b/docs/GeoJSONFeaturesObject.md
@@ -0,0 +1,11 @@
+# GeoJSONFeaturesObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**feature_properties** | [**GeoJSONPropertiesObject**](GeoJSONPropertiesObject.md) | | [optional]
+**geometry** | [**GeoJSONGeometryObject**](GeoJSONGeometryObject.md) | | [optional]
+**type** | **str** | | [optional] [default to 'Feature']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONGeometryObject.md b/docs/GeoJSONGeometryObject.md
new file mode 100644
index 00000000..c20f9d63
--- /dev/null
+++ b/docs/GeoJSONGeometryObject.md
@@ -0,0 +1,10 @@
+# GeoJSONGeometryObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**coordinates** | **list[float]** | | [optional]
+**type** | **str** | | [optional] [default to 'Point']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochroneBase.md b/docs/GeoJSONIsochroneBase.md
new file mode 100644
index 00000000..7586bb06
--- /dev/null
+++ b/docs/GeoJSONIsochroneBase.md
@@ -0,0 +1,10 @@
+# GeoJSONIsochroneBase
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | [**GeoJSONIsochroneBaseGeometry**](GeoJSONIsochroneBaseGeometry.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochroneBaseGeometry.md b/docs/GeoJSONIsochroneBaseGeometry.md
new file mode 100644
index 00000000..7aa7b599
--- /dev/null
+++ b/docs/GeoJSONIsochroneBaseGeometry.md
@@ -0,0 +1,9 @@
+# GeoJSONIsochroneBaseGeometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**empty** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochronesResponse.md b/docs/GeoJSONIsochronesResponse.md
new file mode 100644
index 00000000..c5ea1dba
--- /dev/null
+++ b/docs/GeoJSONIsochronesResponse.md
@@ -0,0 +1,12 @@
+# GeoJSONIsochronesResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned isochrones | [optional]
+**features** | [**list[GeoJSONIsochronesResponseFeatures]**](GeoJSONIsochronesResponseFeatures.md) | | [optional]
+**metadata** | [**GeoJSONIsochronesResponseMetadata**](GeoJSONIsochronesResponseMetadata.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochronesResponseFeatures.md b/docs/GeoJSONIsochronesResponseFeatures.md
new file mode 100644
index 00000000..1c47d7f5
--- /dev/null
+++ b/docs/GeoJSONIsochronesResponseFeatures.md
@@ -0,0 +1,10 @@
+# GeoJSONIsochronesResponseFeatures
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | [**GeoJSONIsochroneBaseGeometry**](GeoJSONIsochroneBaseGeometry.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochronesResponseMetadata.md b/docs/GeoJSONIsochronesResponseMetadata.md
new file mode 100644
index 00000000..cb75cb10
--- /dev/null
+++ b/docs/GeoJSONIsochronesResponseMetadata.md
@@ -0,0 +1,16 @@
+# GeoJSONIsochronesResponseMetadata
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**IsochronesProfileBody**](IsochronesProfileBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONIsochronesResponseMetadataEngine.md b/docs/GeoJSONIsochronesResponseMetadataEngine.md
new file mode 100644
index 00000000..ce77d8ea
--- /dev/null
+++ b/docs/GeoJSONIsochronesResponseMetadataEngine.md
@@ -0,0 +1,11 @@
+# GeoJSONIsochronesResponseMetadataEngine
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**build_date** | **str** | The date that the service was last updated | [optional]
+**graph_date** | **str** | The date that the graph data was last updated | [optional]
+**version** | **str** | The backend version of the openrouteservice that was queried | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONPropertiesObject.md b/docs/GeoJSONPropertiesObject.md
new file mode 100644
index 00000000..b3643f07
--- /dev/null
+++ b/docs/GeoJSONPropertiesObject.md
@@ -0,0 +1,13 @@
+# GeoJSONPropertiesObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**category_ids** | [**GeoJSONPropertiesObjectCategoryIds**](GeoJSONPropertiesObjectCategoryIds.md) | | [optional]
+**distance** | **float** | | [optional]
+**osm_id** | **float** | | [optional]
+**osm_tags** | [**GeoJSONPropertiesObjectOsmTags**](GeoJSONPropertiesObjectOsmTags.md) | | [optional]
+**osm_type** | **float** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONPropertiesObjectCategoryIds.md b/docs/GeoJSONPropertiesObjectCategoryIds.md
new file mode 100644
index 00000000..4f873c68
--- /dev/null
+++ b/docs/GeoJSONPropertiesObjectCategoryIds.md
@@ -0,0 +1,9 @@
+# GeoJSONPropertiesObjectCategoryIds
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**category_id** | [**GeoJSONPropertiesObjectCategoryIdsCategoryId**](GeoJSONPropertiesObjectCategoryIdsCategoryId.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md b/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
new file mode 100644
index 00000000..53de8f0d
--- /dev/null
+++ b/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
@@ -0,0 +1,10 @@
+# GeoJSONPropertiesObjectCategoryIdsCategoryId
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**category_group** | **float** | | [optional]
+**category_name** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONPropertiesObjectOsmTags.md b/docs/GeoJSONPropertiesObjectOsmTags.md
new file mode 100644
index 00000000..2bbadb10
--- /dev/null
+++ b/docs/GeoJSONPropertiesObjectOsmTags.md
@@ -0,0 +1,15 @@
+# GeoJSONPropertiesObjectOsmTags
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**address** | **str** | | [optional]
+**distance** | **str** | | [optional]
+**fee** | **str** | | [optional]
+**name** | **str** | | [optional]
+**opening_hours** | **str** | | [optional]
+**website** | **str** | | [optional]
+**wheelchair** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONRouteResponse.md b/docs/GeoJSONRouteResponse.md
new file mode 100644
index 00000000..a7dbbba1
--- /dev/null
+++ b/docs/GeoJSONRouteResponse.md
@@ -0,0 +1,12 @@
+# GeoJSONRouteResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
+**features** | **list[object]** | | [optional]
+**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONRouteResponseMetadata.md b/docs/GeoJSONRouteResponseMetadata.md
new file mode 100644
index 00000000..04de4589
--- /dev/null
+++ b/docs/GeoJSONRouteResponseMetadata.md
@@ -0,0 +1,16 @@
+# GeoJSONRouteResponseMetadata
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**DirectionsService1**](DirectionsService1.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeocodeApi.md b/docs/GeocodeApi.md
new file mode 100644
index 00000000..f3db47c5
--- /dev/null
+++ b/docs/GeocodeApi.md
@@ -0,0 +1,325 @@
+# openrouteservice.GeocodeApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**geocode_autocomplete_get**](GeocodeApi.md#geocode_autocomplete_get) | **GET** /geocode/autocomplete | Geocode Autocomplete Service
+[**geocode_reverse_get**](GeocodeApi.md#geocode_reverse_get) | **GET** /geocode/reverse | Reverse Geocode Service
+[**geocode_search_get**](GeocodeApi.md#geocode_search_get) | **GET** /geocode/search | Forward Geocode Service
+[**geocode_search_structured_get**](GeocodeApi.md#geocode_search_structured_get) | **GET** /geocode/search/structured | Structured Forward Geocode Service (beta)
+
+# **geocode_autocomplete_get**
+> GeocodeResponse geocode_autocomplete_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_country=boundary_country, sources=sources, layers=layers)
+
+Geocode Autocomplete Service
+
+**Requests should be throttled when using this endpoint!** *Be aware that Responses are asynchronous.* Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/autocomplete.md)
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+text = 'text_example' # str | Name of location, street address or postal code.
+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)
+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)
+boundary_rect_min_lon = 3.4 # float | Left border of rectangular boundary to narrow results. (optional)
+boundary_rect_min_lat = 3.4 # float | Bottom border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lon = 3.4 # float | Right border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lat = 3.4 # float | Top border of rectangular boundary to narrow results. (optional)
+boundary_country = 'boundary_country_example' # str | Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. (optional)
+sources = ['[\"osm\",\"oa\",\"gn\",\"wof\"]'] # list[str] | Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). (optional) (default to ["osm","oa","gn","wof"])
+layers = ['layers_example'] # list[str] | Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| (optional)
+
+try:
+ # Geocode Autocomplete Service
+ api_response = api_instance.geocode_autocomplete_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_country=boundary_country, sources=sources, layers=layers)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling GeocodeApi->geocode_autocomplete_get: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **text** | **str**| Name of location, street address or postal code. |
+ **focus_point_lon** | **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]
+ **focus_point_lat** | **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]
+ **boundary_rect_min_lon** | **float**| Left border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_min_lat** | **float**| Bottom border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lon** | **float**| Right border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lat** | **float**| Top border of rectangular boundary to narrow results. | [optional]
+ **boundary_country** | **str**| Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. | [optional]
+ **sources** | [**list[str]**](str.md)| Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). | [optional] [default to ["osm","oa","gn","wof"]]
+ **layers** | [**list[str]**](str.md)| Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| | [optional]
+
+### Return type
+
+[**GeocodeResponse**](GeocodeResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
+# **geocode_reverse_get**
+> GeocodeResponse geocode_reverse_get(point_lon, point_lat, boundary_circle_radius=boundary_circle_radius, size=size, layers=layers, sources=sources, boundary_country=boundary_country)
+
+Reverse Geocode Service
+
+Returns the next enclosing object with an address tag which surrounds the given coordinate. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/reverse.md#reverse-geocoding)
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+point_lon = 3.4 # float | Longitude of the coordinate to query.
+point_lat = 48.858268 # float | Latitude of the coordinate to query. (default to 48.858268)
+boundary_circle_radius = 1 # float | Restrict search to circular region around `point.lat/point.lon`. Value in kilometers. (optional) (default to 1)
+size = 10 # int | Set the number of returned results. (optional) (default to 10)
+layers = ['layers_example'] # list[str] | Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| (optional)
+sources = ['[\"osm\",\"oa\",\"gn\",\"wof\"]'] # list[str] | Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). (optional) (default to ["osm","oa","gn","wof"])
+boundary_country = 'boundary_country_example' # str | Restrict search to country by [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)
+
+try:
+ # Reverse Geocode Service
+ api_response = api_instance.geocode_reverse_get(point_lon, point_lat, boundary_circle_radius=boundary_circle_radius, size=size, layers=layers, sources=sources, boundary_country=boundary_country)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling GeocodeApi->geocode_reverse_get: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **point_lon** | **float**| Longitude of the coordinate to query. |
+ **point_lat** | **float**| Latitude of the coordinate to query. | [default to 48.858268]
+ **boundary_circle_radius** | **float**| Restrict search to circular region around `point.lat/point.lon`. Value in kilometers. | [optional] [default to 1]
+ **size** | **int**| Set the number of returned results. | [optional] [default to 10]
+ **layers** | [**list[str]**](str.md)| Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| | [optional]
+ **sources** | [**list[str]**](str.md)| Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). | [optional] [default to ["osm","oa","gn","wof"]]
+ **boundary_country** | **str**| Restrict search to country by [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]
+
+### Return type
+
+[**GeocodeResponse**](GeocodeResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
+# **geocode_search_get**
+> GeocodeResponse geocode_search_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_gid=boundary_gid, boundary_country=boundary_country, sources=sources, layers=layers, size=size)
+
+Forward Geocode Service
+
+Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/search.md#search-the-world)
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+text = 'text_example' # str | Name of location, street address or postal code.
+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)
+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)
+boundary_rect_min_lon = 3.4 # float | Left border of rectangular boundary to narrow results. (optional)
+boundary_rect_min_lat = 3.4 # float | Bottom border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lon = 3.4 # float | Right border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lat = 3.4 # float | Top border of rectangular boundary to narrow results. (optional)
+boundary_circle_lon = 3.4 # float | Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`. (optional)
+boundary_circle_lat = 3.4 # float | Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`. (optional)
+boundary_circle_radius = 50 # float | Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`. (optional) (default to 50)
+boundary_gid = 'boundary_gid_example' # str | Restrict results to administrative boundary using a Pelias global id [`gid`](https://github.com/pelias/documentation/blob/f1f475aa4f8c18426fb80baea636990502c08ed3/search.md#search-within-a-parent-administrative-area). `gid`s for records can be found using either the [Who's on First Spelunker](http://spelunker.whosonfirst.org/), a tool for searching Who's on First data, or from the responses of other Pelias queries. In this case a [search for Oklahoma](http://pelias.github.io/compare/#/v1/search%3Ftext=oklahoma) will return the proper `gid`. (optional)
+boundary_country = 'boundary_country_example' # str | Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. (optional)
+sources = ['[\"osm\",\"oa\",\"gn\",\"wof\"]'] # list[str] | Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). (optional) (default to ["osm","oa","gn","wof"])
+layers = ['layers_example'] # list[str] | Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| (optional)
+size = 10 # int | Set the number of returned results. (optional) (default to 10)
+
+try:
+ # Forward Geocode Service
+ api_response = api_instance.geocode_search_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_gid=boundary_gid, boundary_country=boundary_country, sources=sources, layers=layers, size=size)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling GeocodeApi->geocode_search_get: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **text** | **str**| Name of location, street address or postal code. |
+ **focus_point_lon** | **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]
+ **focus_point_lat** | **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]
+ **boundary_rect_min_lon** | **float**| Left border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_min_lat** | **float**| Bottom border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lon** | **float**| Right border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lat** | **float**| Top border of rectangular boundary to narrow results. | [optional]
+ **boundary_circle_lon** | **float**| Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`. | [optional]
+ **boundary_circle_lat** | **float**| Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`. | [optional]
+ **boundary_circle_radius** | **float**| Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`. | [optional] [default to 50]
+ **boundary_gid** | **str**| Restrict results to administrative boundary using a Pelias global id [`gid`](https://github.com/pelias/documentation/blob/f1f475aa4f8c18426fb80baea636990502c08ed3/search.md#search-within-a-parent-administrative-area). `gid`s for records can be found using either the [Who's on First Spelunker](http://spelunker.whosonfirst.org/), a tool for searching Who's on First data, or from the responses of other Pelias queries. In this case a [search for Oklahoma](http://pelias.github.io/compare/#/v1/search%3Ftext=oklahoma) will return the proper `gid`. | [optional]
+ **boundary_country** | **str**| Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. | [optional]
+ **sources** | [**list[str]**](str.md)| Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). | [optional] [default to ["osm","oa","gn","wof"]]
+ **layers** | [**list[str]**](str.md)| Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| | [optional]
+ **size** | **int**| Set the number of returned results. | [optional] [default to 10]
+
+### Return type
+
+[**GeocodeResponse**](GeocodeResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
+# **geocode_search_structured_get**
+> GeocodeResponse geocode_search_structured_get(address=address, neighbourhood=neighbourhood, country=country, postalcode=postalcode, region=region, county=county, locality=locality, borough=borough, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_country=boundary_country, layers=layers, sources=sources, size=size)
+
+Structured Forward Geocode Service (beta)
+
+Returns a JSON formatted list of objects corresponding to the search input. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/structured-geocoding.md#structured-geocoding)
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+address = 'address_example' # str | Search for full address with house number or only a street name. (optional)
+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)
+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)
+postalcode = 'postalcode_example' # str | Search for postal codes. Postal codes are unique within a country so they are useful in geocoding as a shorthand for a fairly granular geographical location. (optional)
+region = 'region_example' # str | Search for regions. Regions are normally the first-level administrative divisions within countries. For US-regions [common abbreviations](https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations) can be used. (optional)
+county = 'county_example' # str | Search for counties. Counties are administrative divisions between localities and regions. Can be useful when attempting to disambiguate between localities. (optional)
+locality = 'Tokyo' # str | Search for localities. Localities are equivalent to what are commonly referred to as *cities*. (optional) (default to Tokyo)
+borough = 'borough_example' # str | Search for boroughs. Boroughs are mostly known in the context of New York City, even though they may exist in other cities, such as Mexico City. Example: `Manhatten`. (optional)
+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)
+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)
+boundary_rect_min_lon = 3.4 # float | Left border of rectangular boundary to narrow results. (optional)
+boundary_rect_min_lat = 3.4 # float | Bottom border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lon = 3.4 # float | Right border of rectangular boundary to narrow results. (optional)
+boundary_rect_max_lat = 3.4 # float | Top border of rectangular boundary to narrow results. (optional)
+boundary_circle_lon = 3.4 # float | Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`. (optional)
+boundary_circle_lat = 3.4 # float | Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`. (optional)
+boundary_circle_radius = 50 # float | Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`. (optional) (default to 50)
+boundary_country = 'boundary_country_example' # str | Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. (optional)
+layers = ['layers_example'] # list[str] | Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| (optional)
+sources = ['[\"osm\",\"oa\",\"gn\",\"wof\"]'] # list[str] | Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). (optional) (default to ["osm","oa","gn","wof"])
+size = 10 # int | Set the number of returned results. (optional) (default to 10)
+
+try:
+ # Structured Forward Geocode Service (beta)
+ api_response = api_instance.geocode_search_structured_get(address=address, neighbourhood=neighbourhood, country=country, postalcode=postalcode, region=region, county=county, locality=locality, borough=borough, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_country=boundary_country, layers=layers, sources=sources, size=size)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling GeocodeApi->geocode_search_structured_get: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **address** | **str**| Search for full address with house number or only a street name. | [optional]
+ **neighbourhood** | **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]
+ **country** | **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]
+ **postalcode** | **str**| Search for postal codes. Postal codes are unique within a country so they are useful in geocoding as a shorthand for a fairly granular geographical location. | [optional]
+ **region** | **str**| Search for regions. Regions are normally the first-level administrative divisions within countries. For US-regions [common abbreviations](https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations) can be used. | [optional]
+ **county** | **str**| Search for counties. Counties are administrative divisions between localities and regions. Can be useful when attempting to disambiguate between localities. | [optional]
+ **locality** | **str**| Search for localities. Localities are equivalent to what are commonly referred to as *cities*. | [optional] [default to Tokyo]
+ **borough** | **str**| Search for boroughs. Boroughs are mostly known in the context of New York City, even though they may exist in other cities, such as Mexico City. Example: `Manhatten`. | [optional]
+ **focus_point_lon** | **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]
+ **focus_point_lat** | **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]
+ **boundary_rect_min_lon** | **float**| Left border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_min_lat** | **float**| Bottom border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lon** | **float**| Right border of rectangular boundary to narrow results. | [optional]
+ **boundary_rect_max_lat** | **float**| Top border of rectangular boundary to narrow results. | [optional]
+ **boundary_circle_lon** | **float**| Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`. | [optional]
+ **boundary_circle_lat** | **float**| Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`. | [optional]
+ **boundary_circle_radius** | **float**| Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`. | [optional] [default to 50]
+ **boundary_country** | **str**| Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany. | [optional]
+ **layers** | [**list[str]**](str.md)| Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)| | [optional]
+ **sources** | [**list[str]**](str.md)| Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/). | [optional] [default to ["osm","oa","gn","wof"]]
+ **size** | **int**| Set the number of returned results. | [optional] [default to 10]
+
+### Return type
+
+[**GeocodeResponse**](GeocodeResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[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)
+
diff --git a/docs/GeocodeResponse.md b/docs/GeocodeResponse.md
new file mode 100644
index 00000000..673d1673
--- /dev/null
+++ b/docs/GeocodeResponse.md
@@ -0,0 +1,12 @@
+# GeocodeResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | | [optional]
+**features** | **list[object]** | | [optional]
+**geocoding** | **object** | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/Gpx.md b/docs/Gpx.md
new file mode 100644
index 00000000..14495e48
--- /dev/null
+++ b/docs/Gpx.md
@@ -0,0 +1,9 @@
+# Gpx
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**gpx_route_elements** | **list[object]** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GraphExportService.md b/docs/GraphExportService.md
new file mode 100644
index 00000000..1d8403fc
--- /dev/null
+++ b/docs/GraphExportService.md
@@ -0,0 +1,10 @@
+# GraphExportService
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[list[float]]** | The bounding box to use for the request as an array of `longitude/latitude` pairs |
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md
new file mode 100644
index 00000000..4d9bbd35
--- /dev/null
+++ b/docs/InlineResponse200.md
@@ -0,0 +1,12 @@
+# InlineResponse200
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | | [optional]
+**geometry** | [**InlineResponse200Geometry**](InlineResponse200Geometry.md) | | [optional]
+**timestamp** | **int** | | [optional]
+**version** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md
new file mode 100644
index 00000000..328a92ab
--- /dev/null
+++ b/docs/InlineResponse2001.md
@@ -0,0 +1,12 @@
+# InlineResponse2001
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | | [optional]
+**geometry** | [**InlineResponse2001Geometry**](InlineResponse2001Geometry.md) | | [optional]
+**timestamp** | **int** | | [optional]
+**version** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2001Geometry.md b/docs/InlineResponse2001Geometry.md
new file mode 100644
index 00000000..3f000bb1
--- /dev/null
+++ b/docs/InlineResponse2001Geometry.md
@@ -0,0 +1,10 @@
+# InlineResponse2001Geometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**coordinates** | **list[float]** | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md
new file mode 100644
index 00000000..dd873bf4
--- /dev/null
+++ b/docs/InlineResponse2002.md
@@ -0,0 +1,13 @@
+# InlineResponse2002
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **int** | status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | | [optional]
+**error** | **str** | error message (present if `code` is different from `0`) | [optional]
+**routes** | [**list[InlineResponse2002Routes]**](InlineResponse2002Routes.md) | array of `route` objects | [optional]
+**summary** | [**InlineResponse2002Summary**](InlineResponse2002Summary.md) | | [optional]
+**unassigned** | [**list[InlineResponse2002Unassigned]**](InlineResponse2002Unassigned.md) | array of objects describing unassigned jobs with their `id` and `location` (if provided) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002Routes.md b/docs/InlineResponse2002Routes.md
new file mode 100644
index 00000000..ab357ece
--- /dev/null
+++ b/docs/InlineResponse2002Routes.md
@@ -0,0 +1,17 @@
+# InlineResponse2002Routes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**amount** | **list[int]** | total amount for jobs in this route | [optional]
+**cost** | **float** | cost for this route | [optional]
+**distance** | **float** | total route distance. Only provided when using the `-g` flag | [optional]
+**duration** | **float** | total travel time for this route | [optional]
+**geometry** | **str** | polyline encoded route geometry. Only provided when using the `-g` flag | [optional]
+**service** | **float** | total service time for this route | [optional]
+**steps** | [**list[InlineResponse2002Steps]**](InlineResponse2002Steps.md) | array of `step` objects | [optional]
+**vehicle** | **int** | id of the vehicle assigned to this route | [optional]
+**waiting_time** | **float** | total waiting time for this route | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002Steps.md b/docs/InlineResponse2002Steps.md
new file mode 100644
index 00000000..3130367c
--- /dev/null
+++ b/docs/InlineResponse2002Steps.md
@@ -0,0 +1,16 @@
+# InlineResponse2002Steps
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival** | **float** | estimated time of arrival at this step in seconds | [optional]
+**distance** | **float** | traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` | [optional]
+**duration** | **float** | cumulated travel time upon arrival at this step in seconds | [optional]
+**job** | **int** | id of the job performed at this step, only provided if `type` value is `job` | [optional]
+**location** | **list[float]** | coordinates array for this step (if provided in input) | [optional]
+**service** | **float** | service time at this step, only provided if `type` value is `job` | [optional]
+**type** | **str** | string that is either `start`, `job` or `end` | [optional]
+**waiting_time** | **float** | waiting time upon arrival at this step, only provided if `type` value is `job` | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002Summary.md b/docs/InlineResponse2002Summary.md
new file mode 100644
index 00000000..4d619346
--- /dev/null
+++ b/docs/InlineResponse2002Summary.md
@@ -0,0 +1,15 @@
+# InlineResponse2002Summary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**amount** | **list[int]** | total amount for all routes | [optional]
+**cost** | **float** | total cost for all routes | [optional]
+**distance** | **float** | total distance for all routes. Only provided when using the `-g` flag with `OSRM` | [optional]
+**duration** | **float** | total travel time for all routes | [optional]
+**service** | **float** | total service time for all routes | [optional]
+**unassigned** | **int** | number of jobs that could not be served | [optional]
+**waiting_time** | **float** | total waiting time for all routes | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002Unassigned.md b/docs/InlineResponse2002Unassigned.md
new file mode 100644
index 00000000..54606878
--- /dev/null
+++ b/docs/InlineResponse2002Unassigned.md
@@ -0,0 +1,10 @@
+# InlineResponse2002Unassigned
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | The `id` of the unassigned job\" | [optional]
+**location** | **list[float]** | The `location` of the unassigned job | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md
new file mode 100644
index 00000000..6ee8ab01
--- /dev/null
+++ b/docs/InlineResponse2003.md
@@ -0,0 +1,12 @@
+# InlineResponse2003
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
+**features** | **list[object]** | | [optional]
+**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md
new file mode 100644
index 00000000..13e450e8
--- /dev/null
+++ b/docs/InlineResponse2004.md
@@ -0,0 +1,11 @@
+# InlineResponse2004
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
+**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md
new file mode 100644
index 00000000..733518ca
--- /dev/null
+++ b/docs/InlineResponse2005.md
@@ -0,0 +1,12 @@
+# InlineResponse2005
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned isochrones | [optional]
+**features** | [**list[GeoJSONIsochronesResponseFeatures]**](GeoJSONIsochronesResponseFeatures.md) | | [optional]
+**metadata** | [**GeoJSONIsochronesResponseMetadata**](GeoJSONIsochronesResponseMetadata.md) | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md
new file mode 100644
index 00000000..38f5b84b
--- /dev/null
+++ b/docs/InlineResponse2006.md
@@ -0,0 +1,13 @@
+# InlineResponse2006
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**destinations** | [**list[MatrixResponseDestinations]**](MatrixResponseDestinations.md) | The individual destinations of the matrix calculations. | [optional]
+**distances** | **list[list[float]]** | The distances of the matrix calculations. | [optional]
+**durations** | **list[list[float]]** | The durations of the matrix calculations. | [optional]
+**metadata** | [**MatrixResponseMetadata**](MatrixResponseMetadata.md) | | [optional]
+**sources** | [**list[MatrixResponseSources]**](MatrixResponseSources.md) | The individual sources of the matrix calculations. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse200Geometry.md b/docs/InlineResponse200Geometry.md
new file mode 100644
index 00000000..2909a198
--- /dev/null
+++ b/docs/InlineResponse200Geometry.md
@@ -0,0 +1,10 @@
+# InlineResponse200Geometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**coordinates** | **list[list[float]]** | | [optional]
+**type** | **str** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/IsochronesProfileBody.md b/docs/IsochronesProfileBody.md
new file mode 100644
index 00000000..948979f9
--- /dev/null
+++ b/docs/IsochronesProfileBody.md
@@ -0,0 +1,20 @@
+# IsochronesProfileBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**area_units** | **str** | Specifies the area unit. Default: m. | [optional] [default to 'm']
+**attributes** | **list[str]** | List of isochrones attributes | [optional]
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**intersections** | **bool** | Specifies whether to return intersecting polygons. | [optional] [default to False]
+**interval** | **float** | Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. | [optional]
+**location_type** | **str** | `start` treats the location(s) as starting point, `destination` as goal. | [optional] [default to 'start']
+**locations** | **list[list[float]]** | The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) |
+**options** | [**RouteOptions**](RouteOptions.md) | | [optional]
+**range** | **list[float]** | Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. |
+**range_type** | **str** | Specifies the isochrones reachability type. | [optional] [default to 'time']
+**smoothing** | **float** | Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` | [optional]
+**units** | **str** | Specifies the distance units only if `range_type` is set to distance. Default: m. | [optional] [default to 'm']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/IsochronesRequest.md b/docs/IsochronesRequest.md
new file mode 100644
index 00000000..5282b243
--- /dev/null
+++ b/docs/IsochronesRequest.md
@@ -0,0 +1,20 @@
+# IsochronesRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**area_units** | **str** | Specifies the area unit. Default: m. | [optional] [default to 'm']
+**attributes** | **list[str]** | List of isochrones attributes | [optional]
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**intersections** | **bool** | Specifies whether to return intersecting polygons. | [optional] [default to False]
+**interval** | **float** | Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. | [optional]
+**location_type** | **str** | `start` treats the location(s) as starting point, `destination` as goal. | [optional] [default to 'start']
+**locations** | **list[list[float]]** | The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) |
+**options** | [**RouteOptions**](RouteOptions.md) | | [optional]
+**range** | **list[float]** | Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. |
+**range_type** | **str** | Specifies the isochrones reachability type. | [optional] [default to 'time']
+**smoothing** | **float** | Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` | [optional]
+**units** | **str** | Specifies the distance units only if `range_type` is set to distance. Default: m. | [optional] [default to 'm']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/IsochronesResponseInfo.md b/docs/IsochronesResponseInfo.md
new file mode 100644
index 00000000..147ef0c1
--- /dev/null
+++ b/docs/IsochronesResponseInfo.md
@@ -0,0 +1,16 @@
+# IsochronesResponseInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**IsochronesProfileBody**](IsochronesProfileBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/IsochronesServiceApi.md b/docs/IsochronesServiceApi.md
new file mode 100644
index 00000000..599e4c46
--- /dev/null
+++ b/docs/IsochronesServiceApi.md
@@ -0,0 +1,64 @@
+# openrouteservice.IsochronesServiceApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_default_isochrones**](IsochronesServiceApi.md#get_default_isochrones) | **POST** /v2/isochrones/{profile} | Isochrones Service
+
+# **get_default_isochrones**
+> InlineResponse2005 get_default_isochrones(body, profile)
+
+Isochrones Service
+
+The Isochrone Service supports time and distance analyses for one single or multiple locations. You may also specify the isochrone interval or provide multiple exact isochrone range values. This service allows the same range of profile options as the /directions endpoint, which help you to further customize your request to obtain a more detailed reachability area response.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.IsochronesServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.IsochronesProfileBody() # IsochronesProfileBody |
+profile = 'profile_example' # str | Specifies the route profile.
+
+try:
+ # Isochrones Service
+ api_response = api_instance.get_default_isochrones(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling IsochronesServiceApi->get_default_isochrones: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**IsochronesProfileBody**](IsochronesProfileBody.md)| |
+ **profile** | **str**| Specifies the route profile. |
+
+### Return type
+
+[**InlineResponse2005**](InlineResponse2005.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/geo+json, */*
+
+[[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)
+
diff --git a/docs/JSON2DDestinations.md b/docs/JSON2DDestinations.md
new file mode 100644
index 00000000..dfac3c49
--- /dev/null
+++ b/docs/JSON2DDestinations.md
@@ -0,0 +1,11 @@
+# JSON2DDestinations
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSON2DSources.md b/docs/JSON2DSources.md
new file mode 100644
index 00000000..fc85767b
--- /dev/null
+++ b/docs/JSON2DSources.md
@@ -0,0 +1,11 @@
+# JSON2DSources
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONExtra.md b/docs/JSONExtra.md
new file mode 100644
index 00000000..dda54d8e
--- /dev/null
+++ b/docs/JSONExtra.md
@@ -0,0 +1,10 @@
+# JSONExtra
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**summary** | [**list[JSONExtraSummary]**](JSONExtraSummary.md) | List representing the summary of the extra info items. | [optional]
+**values** | **list[list[int]]** | A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONExtraSummary.md b/docs/JSONExtraSummary.md
new file mode 100644
index 00000000..117f5af0
--- /dev/null
+++ b/docs/JSONExtraSummary.md
@@ -0,0 +1,11 @@
+# JSONExtraSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**amount** | **float** | Category percentage of the entire route. | [optional]
+**distance** | **float** | Cumulative distance of this value. | [optional]
+**value** | **float** | [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponse.md b/docs/JSONIndividualRouteResponse.md
new file mode 100644
index 00000000..96f3cd8f
--- /dev/null
+++ b/docs/JSONIndividualRouteResponse.md
@@ -0,0 +1,18 @@
+# JSONIndividualRouteResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival** | **datetime** | Arrival date and time | [optional]
+**bbox** | **list[float]** | A bounding box which contains the entire route | [optional]
+**departure** | **datetime** | Departure date and time | [optional]
+**extras** | [**dict(str, JSONIndividualRouteResponseExtras)**](JSONIndividualRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
+**geometry** | **str** | The geometry of the route. For JSON route responses this is an encoded polyline. | [optional]
+**legs** | [**list[JSONIndividualRouteResponseLegs]**](JSONIndividualRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
+**segments** | [**list[JSONIndividualRouteResponseSegments]**](JSONIndividualRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
+**summary** | [**JSONIndividualRouteResponseSummary**](JSONIndividualRouteResponseSummary.md) | | [optional]
+**warnings** | [**list[JSONIndividualRouteResponseWarnings]**](JSONIndividualRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
+**way_points** | **list[int]** | List containing the indices of way points corresponding to the *geometry*. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseExtras.md b/docs/JSONIndividualRouteResponseExtras.md
new file mode 100644
index 00000000..4ef3cdcc
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseExtras.md
@@ -0,0 +1,10 @@
+# JSONIndividualRouteResponseExtras
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**summary** | [**list[JSONExtraSummary]**](JSONExtraSummary.md) | List representing the summary of the extra info items. | [optional]
+**values** | **list[list[int]]** | A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseInstructions.md b/docs/JSONIndividualRouteResponseInstructions.md
new file mode 100644
index 00000000..690c9d42
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseInstructions.md
@@ -0,0 +1,17 @@
+# JSONIndividualRouteResponseInstructions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**distance** | **float** | The distance for the step in metres. | [optional]
+**duration** | **float** | The duration for the step in seconds. | [optional]
+**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
+**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
+**instruction** | **str** | The routing instruction text for the step. | [optional]
+**maneuver** | [**JSONIndividualRouteResponseManeuver**](JSONIndividualRouteResponseManeuver.md) | | [optional]
+**name** | **str** | The name of the next street. | [optional]
+**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
+**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseLegs.md b/docs/JSONIndividualRouteResponseLegs.md
new file mode 100644
index 00000000..a64c1654
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseLegs.md
@@ -0,0 +1,26 @@
+# JSONIndividualRouteResponseLegs
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival** | **datetime** | Arrival date and time | [optional]
+**departure** | **datetime** | Departure date and time | [optional]
+**departure_location** | **str** | The departure location of the leg. | [optional]
+**distance** | **float** | The distance for the leg in metres. | [optional]
+**duration** | **float** | The duration for the leg in seconds. | [optional]
+**feed_id** | **str** | The feed ID this public transport leg based its information from. | [optional]
+**geometry** | **str** | The geometry of the leg. This is an encoded polyline. | [optional]
+**instructions** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+**is_in_same_vehicle_as_previous** | **bool** | Whether the legs continues in the same vehicle as the previous one. | [optional]
+**route_desc** | **str** | The route description of the leg (if provided in the GTFS data set). | [optional]
+**route_id** | **str** | The route ID of this public transport leg. | [optional]
+**route_long_name** | **str** | The public transport route name of the leg. | [optional]
+**route_short_name** | **str** | The public transport route name (short version) of the leg. | [optional]
+**route_type** | **int** | The route type of the leg (if provided in the GTFS data set). | [optional]
+**stops** | [**list[JSONIndividualRouteResponseStops]**](JSONIndividualRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
+**trip_headsign** | **str** | The headsign of the public transport vehicle of the leg. | [optional]
+**trip_id** | **str** | The trip ID of this public transport leg. | [optional]
+**type** | **str** | The type of the leg, possible values are currently 'walk' and 'pt'. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseManeuver.md b/docs/JSONIndividualRouteResponseManeuver.md
new file mode 100644
index 00000000..602b1178
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseManeuver.md
@@ -0,0 +1,11 @@
+# JSONIndividualRouteResponseManeuver
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bearing_after** | **int** | The azimuth angle (in degrees) of the direction right after the maneuver. | [optional]
+**bearing_before** | **int** | The azimuth angle (in degrees) of the direction right before the maneuver. | [optional]
+**location** | **list[float]** | The coordinate of the point where a maneuver takes place. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseSegments.md b/docs/JSONIndividualRouteResponseSegments.md
new file mode 100644
index 00000000..91d704b1
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseSegments.md
@@ -0,0 +1,16 @@
+# JSONIndividualRouteResponseSegments
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ascent** | **float** | Contains ascent of this segment in metres. | [optional]
+**avgspeed** | **float** | Contains the average speed of this segment in km/h. | [optional]
+**descent** | **float** | Contains descent of this segment in metres. | [optional]
+**detourfactor** | **float** | Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. | [optional]
+**distance** | **float** | Contains the distance of the segment in specified units. | [optional]
+**duration** | **float** | Contains the duration of the segment in seconds. | [optional]
+**percentage** | **float** | Contains the proportion of the route in percent. | [optional]
+**steps** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseStops.md b/docs/JSONIndividualRouteResponseStops.md
new file mode 100644
index 00000000..3542ada7
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseStops.md
@@ -0,0 +1,19 @@
+# JSONIndividualRouteResponseStops
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival_cancelled** | **bool** | Whether arrival at the stop was cancelled. | [optional]
+**arrival_time** | **datetime** | Arrival time of the stop. | [optional]
+**departure_cancelled** | **bool** | Whether departure at the stop was cancelled. | [optional]
+**departure_time** | **datetime** | Departure time of the stop. | [optional]
+**location** | **list[float]** | The location of the stop. | [optional]
+**name** | **str** | The name of the stop. | [optional]
+**planned_arrival_time** | **datetime** | Planned arrival time of the stop. | [optional]
+**planned_departure_time** | **datetime** | Planned departure time of the stop. | [optional]
+**predicted_arrival_time** | **datetime** | Predicted arrival time of the stop. | [optional]
+**predicted_departure_time** | **datetime** | Predicted departure time of the stop. | [optional]
+**stop_id** | **str** | The ID of the stop. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseSummary.md b/docs/JSONIndividualRouteResponseSummary.md
new file mode 100644
index 00000000..0f724eaf
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseSummary.md
@@ -0,0 +1,14 @@
+# JSONIndividualRouteResponseSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ascent** | **float** | Total ascent in meters. | [optional]
+**descent** | **float** | Total descent in meters. | [optional]
+**distance** | **float** | Total route distance in specified units. | [optional]
+**duration** | **float** | Total duration in seconds. | [optional]
+**fare** | **int** | | [optional]
+**transfers** | **int** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONIndividualRouteResponseWarnings.md b/docs/JSONIndividualRouteResponseWarnings.md
new file mode 100644
index 00000000..dddc130c
--- /dev/null
+++ b/docs/JSONIndividualRouteResponseWarnings.md
@@ -0,0 +1,10 @@
+# JSONIndividualRouteResponseWarnings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **int** | Identification code for the warning | [optional]
+**message** | **str** | The message associated with the warning | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONLeg.md b/docs/JSONLeg.md
new file mode 100644
index 00000000..a7f0abdc
--- /dev/null
+++ b/docs/JSONLeg.md
@@ -0,0 +1,26 @@
+# JSONLeg
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival** | **datetime** | Arrival date and time | [optional]
+**departure** | **datetime** | Departure date and time | [optional]
+**departure_location** | **str** | The departure location of the leg. | [optional]
+**distance** | **float** | The distance for the leg in metres. | [optional]
+**duration** | **float** | The duration for the leg in seconds. | [optional]
+**feed_id** | **str** | The feed ID this public transport leg based its information from. | [optional]
+**geometry** | **str** | The geometry of the leg. This is an encoded polyline. | [optional]
+**instructions** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+**is_in_same_vehicle_as_previous** | **bool** | Whether the legs continues in the same vehicle as the previous one. | [optional]
+**route_desc** | **str** | The route description of the leg (if provided in the GTFS data set). | [optional]
+**route_id** | **str** | The route ID of this public transport leg. | [optional]
+**route_long_name** | **str** | The public transport route name of the leg. | [optional]
+**route_short_name** | **str** | The public transport route name (short version) of the leg. | [optional]
+**route_type** | **int** | The route type of the leg (if provided in the GTFS data set). | [optional]
+**stops** | [**list[JSONIndividualRouteResponseStops]**](JSONIndividualRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
+**trip_headsign** | **str** | The headsign of the public transport vehicle of the leg. | [optional]
+**trip_id** | **str** | The trip ID of this public transport leg. | [optional]
+**type** | **str** | The type of the leg, possible values are currently 'walk' and 'pt'. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONObject.md b/docs/JSONObject.md
new file mode 100644
index 00000000..5c479f6c
--- /dev/null
+++ b/docs/JSONObject.md
@@ -0,0 +1,8 @@
+# JSONObject
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONPtStop.md b/docs/JSONPtStop.md
new file mode 100644
index 00000000..cc00ed92
--- /dev/null
+++ b/docs/JSONPtStop.md
@@ -0,0 +1,19 @@
+# JSONPtStop
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival_cancelled** | **bool** | Whether arrival at the stop was cancelled. | [optional]
+**arrival_time** | **datetime** | Arrival time of the stop. | [optional]
+**departure_cancelled** | **bool** | Whether departure at the stop was cancelled. | [optional]
+**departure_time** | **datetime** | Departure time of the stop. | [optional]
+**location** | **list[float]** | The location of the stop. | [optional]
+**name** | **str** | The name of the stop. | [optional]
+**planned_arrival_time** | **datetime** | Planned arrival time of the stop. | [optional]
+**planned_departure_time** | **datetime** | Planned departure time of the stop. | [optional]
+**predicted_arrival_time** | **datetime** | Predicted arrival time of the stop. | [optional]
+**predicted_departure_time** | **datetime** | Predicted departure time of the stop. | [optional]
+**stop_id** | **str** | The ID of the stop. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONRouteResponse.md b/docs/JSONRouteResponse.md
new file mode 100644
index 00000000..429c9b04
--- /dev/null
+++ b/docs/JSONRouteResponse.md
@@ -0,0 +1,11 @@
+# JSONRouteResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
+**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONRouteResponseRoutes.md b/docs/JSONRouteResponseRoutes.md
new file mode 100644
index 00000000..5f1d2499
--- /dev/null
+++ b/docs/JSONRouteResponseRoutes.md
@@ -0,0 +1,18 @@
+# JSONRouteResponseRoutes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**arrival** | **datetime** | Arrival date and time | [optional]
+**bbox** | **list[float]** | A bounding box which contains the entire route | [optional]
+**departure** | **datetime** | Departure date and time | [optional]
+**extras** | [**dict(str, JSONIndividualRouteResponseExtras)**](JSONIndividualRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
+**geometry** | **str** | The geometry of the route. For JSON route responses this is an encoded polyline. | [optional]
+**legs** | [**list[JSONIndividualRouteResponseLegs]**](JSONIndividualRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
+**segments** | [**list[JSONIndividualRouteResponseSegments]**](JSONIndividualRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
+**summary** | [**JSONIndividualRouteResponseSummary**](JSONIndividualRouteResponseSummary.md) | | [optional]
+**warnings** | [**list[JSONIndividualRouteResponseWarnings]**](JSONIndividualRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
+**way_points** | **list[int]** | List containing the indices of way points corresponding to the *geometry*. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONSegment.md b/docs/JSONSegment.md
new file mode 100644
index 00000000..f8ae21ea
--- /dev/null
+++ b/docs/JSONSegment.md
@@ -0,0 +1,16 @@
+# JSONSegment
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ascent** | **float** | Contains ascent of this segment in metres. | [optional]
+**avgspeed** | **float** | Contains the average speed of this segment in km/h. | [optional]
+**descent** | **float** | Contains descent of this segment in metres. | [optional]
+**detourfactor** | **float** | Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. | [optional]
+**distance** | **float** | Contains the distance of the segment in specified units. | [optional]
+**duration** | **float** | Contains the duration of the segment in seconds. | [optional]
+**percentage** | **float** | Contains the proportion of the route in percent. | [optional]
+**steps** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONStep.md b/docs/JSONStep.md
new file mode 100644
index 00000000..776f1de9
--- /dev/null
+++ b/docs/JSONStep.md
@@ -0,0 +1,17 @@
+# JSONStep
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**distance** | **float** | The distance for the step in metres. | [optional]
+**duration** | **float** | The duration for the step in seconds. | [optional]
+**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
+**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
+**instruction** | **str** | The routing instruction text for the step. | [optional]
+**maneuver** | [**JSONIndividualRouteResponseManeuver**](JSONIndividualRouteResponseManeuver.md) | | [optional]
+**name** | **str** | The name of the next street. | [optional]
+**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
+**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONStepManeuver.md b/docs/JSONStepManeuver.md
new file mode 100644
index 00000000..0662c44b
--- /dev/null
+++ b/docs/JSONStepManeuver.md
@@ -0,0 +1,11 @@
+# JSONStepManeuver
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bearing_after** | **int** | The azimuth angle (in degrees) of the direction right after the maneuver. | [optional]
+**bearing_before** | **int** | The azimuth angle (in degrees) of the direction right before the maneuver. | [optional]
+**location** | **list[float]** | The coordinate of the point where a maneuver takes place. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONSummary.md b/docs/JSONSummary.md
new file mode 100644
index 00000000..ac4b3861
--- /dev/null
+++ b/docs/JSONSummary.md
@@ -0,0 +1,14 @@
+# JSONSummary
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ascent** | **float** | Total ascent in meters. | [optional]
+**descent** | **float** | Total descent in meters. | [optional]
+**distance** | **float** | Total route distance in specified units. | [optional]
+**duration** | **float** | Total duration in seconds. | [optional]
+**fare** | **int** | | [optional]
+**transfers** | **int** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSONWarning.md b/docs/JSONWarning.md
new file mode 100644
index 00000000..6871b8b0
--- /dev/null
+++ b/docs/JSONWarning.md
@@ -0,0 +1,10 @@
+# JSONWarning
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**code** | **int** | Identification code for the warning | [optional]
+**message** | **str** | The message associated with the warning | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonEdge.md b/docs/JsonEdge.md
new file mode 100644
index 00000000..31c8993d
--- /dev/null
+++ b/docs/JsonEdge.md
@@ -0,0 +1,11 @@
+# JsonEdge
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**from_id** | **int** | Id of the start point of the edge | [optional]
+**to_id** | **int** | Id of the end point of the edge | [optional]
+**weight** | **float** | Weight of the corresponding edge in the given bounding box | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonEdgeExtra.md b/docs/JsonEdgeExtra.md
new file mode 100644
index 00000000..fa635449
--- /dev/null
+++ b/docs/JsonEdgeExtra.md
@@ -0,0 +1,10 @@
+# JsonEdgeExtra
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**edge_id** | **str** | Id of the corresponding edge in the graph | [optional]
+**extra** | **object** | Extra info stored on the edge | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonExportResponse.md b/docs/JsonExportResponse.md
new file mode 100644
index 00000000..e89fd3b1
--- /dev/null
+++ b/docs/JsonExportResponse.md
@@ -0,0 +1,14 @@
+# JsonExportResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**edges** | [**list[JsonExportResponseEdges]**](JsonExportResponseEdges.md) | | [optional]
+**edges_count** | **int** | | [optional]
+**edges_extra** | [**list[JsonExportResponseEdgesExtra]**](JsonExportResponseEdgesExtra.md) | | [optional]
+**nodes** | [**list[JsonExportResponseNodes]**](JsonExportResponseNodes.md) | | [optional]
+**nodes_count** | **int** | | [optional]
+**warning** | [**JSONIndividualRouteResponseWarnings**](JSONIndividualRouteResponseWarnings.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonExportResponseEdges.md b/docs/JsonExportResponseEdges.md
new file mode 100644
index 00000000..d76eedaa
--- /dev/null
+++ b/docs/JsonExportResponseEdges.md
@@ -0,0 +1,11 @@
+# JsonExportResponseEdges
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**from_id** | **int** | Id of the start point of the edge | [optional]
+**to_id** | **int** | Id of the end point of the edge | [optional]
+**weight** | **float** | Weight of the corresponding edge in the given bounding box | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonExportResponseEdgesExtra.md b/docs/JsonExportResponseEdgesExtra.md
new file mode 100644
index 00000000..5a6d6bf1
--- /dev/null
+++ b/docs/JsonExportResponseEdgesExtra.md
@@ -0,0 +1,10 @@
+# JsonExportResponseEdgesExtra
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**edge_id** | **str** | Id of the corresponding edge in the graph | [optional]
+**extra** | **object** | Extra info stored on the edge | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonExportResponseNodes.md b/docs/JsonExportResponseNodes.md
new file mode 100644
index 00000000..436a2375
--- /dev/null
+++ b/docs/JsonExportResponseNodes.md
@@ -0,0 +1,10 @@
+# JsonExportResponseNodes
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**node_id** | **int** | Id of the corresponding node in the graph | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JsonNode.md b/docs/JsonNode.md
new file mode 100644
index 00000000..733122fd
--- /dev/null
+++ b/docs/JsonNode.md
@@ -0,0 +1,10 @@
+# JsonNode
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**node_id** | **int** | Id of the corresponding node in the graph | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/Makefile b/docs/Makefile
deleted file mode 100644
index 447beb33..00000000
--- a/docs/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-# Minimal makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = python -msphinx
-SPHINXPROJ = openrouteservice-py
-SOURCEDIR = source
-BUILDDIR = build
-
-# Put it first so that "make" without argument is like "make help".
-help:
- @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-
-.PHONY: help Makefile
-
-# Catch-all target: route all unknown targets to Sphinx using the new
-# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
-%: Makefile
- @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
diff --git a/docs/MatrixProfileBody.md b/docs/MatrixProfileBody.md
new file mode 100644
index 00000000..b12ac602
--- /dev/null
+++ b/docs/MatrixProfileBody.md
@@ -0,0 +1,15 @@
+# MatrixProfileBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**destinations** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations | [optional]
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) |
+**metrics** | **list[str]** | Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. | [optional]
+**resolve_locations** | **bool** | Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. | [optional] [default to False]
+**sources** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations | [optional]
+**units** | **str** | Specifies the distance unit. Default: m. | [optional] [default to 'm']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixRequest.md b/docs/MatrixRequest.md
new file mode 100644
index 00000000..cad8737a
--- /dev/null
+++ b/docs/MatrixRequest.md
@@ -0,0 +1,15 @@
+# MatrixRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**destinations** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations | [optional]
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) |
+**metrics** | **list[str]** | Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. | [optional]
+**resolve_locations** | **bool** | Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. | [optional] [default to False]
+**sources** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations | [optional]
+**units** | **str** | Specifies the distance unit. Default: m. | [optional] [default to 'm']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponse.md b/docs/MatrixResponse.md
new file mode 100644
index 00000000..5ca1c20f
--- /dev/null
+++ b/docs/MatrixResponse.md
@@ -0,0 +1,13 @@
+# MatrixResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**destinations** | [**list[MatrixResponseDestinations]**](MatrixResponseDestinations.md) | The individual destinations of the matrix calculations. | [optional]
+**distances** | **list[list[float]]** | The distances of the matrix calculations. | [optional]
+**durations** | **list[list[float]]** | The durations of the matrix calculations. | [optional]
+**metadata** | [**MatrixResponseMetadata**](MatrixResponseMetadata.md) | | [optional]
+**sources** | [**list[MatrixResponseSources]**](MatrixResponseSources.md) | The individual sources of the matrix calculations. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponseDestinations.md b/docs/MatrixResponseDestinations.md
new file mode 100644
index 00000000..db53d863
--- /dev/null
+++ b/docs/MatrixResponseDestinations.md
@@ -0,0 +1,11 @@
+# MatrixResponseDestinations
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponseInfo.md b/docs/MatrixResponseInfo.md
new file mode 100644
index 00000000..17174ca6
--- /dev/null
+++ b/docs/MatrixResponseInfo.md
@@ -0,0 +1,16 @@
+# MatrixResponseInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**MatrixProfileBody**](MatrixProfileBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponseMetadata.md b/docs/MatrixResponseMetadata.md
new file mode 100644
index 00000000..eac5caab
--- /dev/null
+++ b/docs/MatrixResponseMetadata.md
@@ -0,0 +1,16 @@
+# MatrixResponseMetadata
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**MatrixProfileBody**](MatrixProfileBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponseSources.md b/docs/MatrixResponseSources.md
new file mode 100644
index 00000000..72a58b74
--- /dev/null
+++ b/docs/MatrixResponseSources.md
@@ -0,0 +1,11 @@
+# MatrixResponseSources
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixServiceApi.md b/docs/MatrixServiceApi.md
new file mode 100644
index 00000000..37872091
--- /dev/null
+++ b/docs/MatrixServiceApi.md
@@ -0,0 +1,64 @@
+# openrouteservice.MatrixServiceApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_default**](MatrixServiceApi.md#get_default) | **POST** /v2/matrix/{profile} | Matrix Service
+
+# **get_default**
+> InlineResponse2006 get_default(body, profile)
+
+Matrix Service
+
+Returns duration or distance matrix for multiple source and destination points. By default a square duration matrix is returned where every point in locations is paired with each other. The result is null if a value can’t be determined.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.MatrixServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.MatrixProfileBody() # MatrixProfileBody |
+profile = 'profile_example' # str | Specifies the matrix profile.
+
+try:
+ # Matrix Service
+ api_response = api_instance.get_default(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling MatrixServiceApi->get_default: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**MatrixProfileBody**](MatrixProfileBody.md)| |
+ **profile** | **str**| Specifies the matrix profile. |
+
+### Return type
+
+[**InlineResponse2006**](InlineResponse2006.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json;charset=UTF-8, */*
+
+[[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)
+
diff --git a/docs/OpenpoiservicePoiRequest.md b/docs/OpenpoiservicePoiRequest.md
new file mode 100644
index 00000000..4782b7ff
--- /dev/null
+++ b/docs/OpenpoiservicePoiRequest.md
@@ -0,0 +1,13 @@
+# OpenpoiservicePoiRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**filters** | [**PoisFilters**](PoisFilters.md) | | [optional]
+**geometry** | [**PoisGeometry**](PoisGeometry.md) | |
+**limit** | **int** | The limit of objects to be returned in the response. | [optional]
+**request** | **str** | Examples: ``` #### JSON bodies for POST requests ##### Pois around a buffered point { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 250 } } ##### Pois given categories { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_ids\": [180, 245] } } ##### Pois given category groups { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_group_ids\": [160] } } ##### Pois statistics { \"request\": \"stats\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 } } ##### Pois categories as a list { \"request\": \"list\" } ``` |
+**sortby** | **str** | Either you can sort by category or the distance to the geometry object provided in the request. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OpenpoiservicePoiResponse.md b/docs/OpenpoiservicePoiResponse.md
new file mode 100644
index 00000000..7863f7cc
--- /dev/null
+++ b/docs/OpenpoiservicePoiResponse.md
@@ -0,0 +1,10 @@
+# OpenpoiservicePoiResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**features** | [**list[GeoJSONFeaturesObject]**](GeoJSONFeaturesObject.md) | | [optional]
+**type** | **str** | | [optional] [default to 'FeatureCollection']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationApi.md b/docs/OptimizationApi.md
new file mode 100644
index 00000000..c7884241
--- /dev/null
+++ b/docs/OptimizationApi.md
@@ -0,0 +1,62 @@
+# openrouteservice.OptimizationApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**optimization_post**](OptimizationApi.md#optimization_post) | **POST** /optimization | Optimization Service
+
+# **optimization_post**
+> InlineResponse2002 optimization_post(body)
+
+Optimization Service
+
+The optimization endpoint solves [Vehicle Routing Problems](https://en.wikipedia.org/wiki/Vehicle_routing_problem) and can be used to schedule multiple vehicles and jobs, respecting time windows, capacities and required skills. This service is based on the excellent [Vroom project](https://github.com/VROOM-Project/vroom). Please also consult its [API documentation](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md). General Info: - The expected order for all coordinates arrays is `[lon, lat]` - All timings are in seconds - All distances are in meters - A `time_window` object is a pair of timestamps in the form `[start, end]`
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.OptimizationApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.OptimizationBody() # OptimizationBody | The request body of the optimization request.
+
+try:
+ # Optimization Service
+ api_response = api_instance.optimization_post(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling OptimizationApi->optimization_post: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**OptimizationBody**](OptimizationBody.md)| The request body of the optimization request. |
+
+### Return type
+
+[**InlineResponse2002**](InlineResponse2002.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[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)
+
diff --git a/docs/OptimizationBody.md b/docs/OptimizationBody.md
new file mode 100644
index 00000000..fec9938f
--- /dev/null
+++ b/docs/OptimizationBody.md
@@ -0,0 +1,12 @@
+# OptimizationBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**jobs** | [**list[OptimizationJobs]**](OptimizationJobs.md) | Array of `job` objects describing the places to visit. For a detailed object description visit the [VROOM api description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#jobs) |
+**matrix** | **list[list]** | Optional two-dimensional array describing a custom matrix | [optional]
+**options** | [**OptimizationOptions**](OptimizationOptions.md) | | [optional]
+**vehicles** | [**list[OptimizationVehicles]**](OptimizationVehicles.md) | Array of `vehicle` objects describing the available vehicles. For a detailed object description visit the [VROOM API description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles) |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationJobs.md b/docs/OptimizationJobs.md
new file mode 100644
index 00000000..f623220c
--- /dev/null
+++ b/docs/OptimizationJobs.md
@@ -0,0 +1,15 @@
+# OptimizationJobs
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**amount** | **list[int]** | Array describing multidimensional quantities | [optional]
+**id** | **int** | an integer used as unique identifier | [optional]
+**location** | **list[list[float]]** | coordinates array in `[lon, lat]` | [optional]
+**location_index** | **object** | index of relevant row and column in custom matrix | [optional]
+**service** | **object** | job service duration (defaults to 0), in seconds | [optional]
+**skills** | **list[int]** | Array of integers defining mandatory skills for this job | [optional]
+**time_windows** | **list[list[int]]** | Array of `time_window` arrays describing valid slots for job service start and end, in week seconds, i.e. 28800 = Mon, 8 AM. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationOptions.md b/docs/OptimizationOptions.md
new file mode 100644
index 00000000..36f593e0
--- /dev/null
+++ b/docs/OptimizationOptions.md
@@ -0,0 +1,9 @@
+# OptimizationOptions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**g** | **bool** | Calculate geometries for the optimized routes. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationVehicles.md b/docs/OptimizationVehicles.md
new file mode 100644
index 00000000..255e3407
--- /dev/null
+++ b/docs/OptimizationVehicles.md
@@ -0,0 +1,17 @@
+# OptimizationVehicles
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**capacity** | **list[int]** | Array of integers describing multidimensional quantities. | [optional]
+**end** | **list[float]** | End coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal end point. | [optional]
+**end_index** | **object** | Index of relevant row and column in custom matrix. | [optional]
+**id** | **int** | Integer used as unique identifier | [optional]
+**profile** | **str** | The ORS routing profile for the vehicle. | [optional]
+**skills** | **list[int]** | Array of integers defining skills for this vehicle | [optional]
+**start** | **list[float]** | Start coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal start point. | [optional]
+**start_index** | **object** | Index of relevant row and column in custom matrix. | [optional]
+**time_window** | **list[int]** | A `time_window` array describing working hours for this vehicle, in week seconds, i.e. 28800 = Mon, 8 AM. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/PoisApi.md b/docs/PoisApi.md
new file mode 100644
index 00000000..368875a3
--- /dev/null
+++ b/docs/PoisApi.md
@@ -0,0 +1,62 @@
+# openrouteservice.PoisApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**pois_post**](PoisApi.md#pois_post) | **POST** /pois | Pois Service
+
+# **pois_post**
+> OpenpoiservicePoiResponse pois_post(body)
+
+Pois Service
+
+Returns points of interest in the area surrounding a geometry which can either be a bounding box, polygon or buffered linestring or point. Find more examples on [github](https://github.com/GIScience/openpoiservice).
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.PoisApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.OpenpoiservicePoiRequest() # OpenpoiservicePoiRequest | body for a post request
+
+try:
+ # Pois Service
+ api_response = api_instance.pois_post(body)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling PoisApi->pois_post: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**OpenpoiservicePoiRequest**](OpenpoiservicePoiRequest.md)| body for a post request |
+
+### Return type
+
+[**OpenpoiservicePoiResponse**](OpenpoiservicePoiResponse.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+[[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)
+
diff --git a/docs/PoisFilters.md b/docs/PoisFilters.md
new file mode 100644
index 00000000..d7249d9f
--- /dev/null
+++ b/docs/PoisFilters.md
@@ -0,0 +1,14 @@
+# PoisFilters
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**category_group_ids** | **list[int]** | | [optional]
+**category_ids** | **list[int]** | | [optional]
+**fee** | **list[str]** | Filter example. | [optional]
+**name** | **list[str]** | Filter by name of the poi object. | [optional]
+**smoking** | **list[str]** | Filter example. | [optional]
+**wheelchair** | **list[str]** | Filter example. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/PoisGeometry.md b/docs/PoisGeometry.md
new file mode 100644
index 00000000..0cbc421a
--- /dev/null
+++ b/docs/PoisGeometry.md
@@ -0,0 +1,11 @@
+# PoisGeometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | The pattern for this bbox string is minlon,minlat,maxlon,maxlat | [optional]
+**buffer** | **int** | | [optional]
+**geojson** | **object** | This is a GeoJSON object. Is either Point, Polygon or LineString. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/ProfileParameters.md b/docs/ProfileParameters.md
new file mode 100644
index 00000000..8cc9b42c
--- /dev/null
+++ b/docs/ProfileParameters.md
@@ -0,0 +1,12 @@
+# ProfileParameters
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**allow_unsuitable** | **bool** | Specifies if ways that might not be suitable (e.g. unknown pedestrian usage) should be included in finding routes - default false | [optional]
+**restrictions** | [**ProfileParametersRestrictions**](ProfileParametersRestrictions.md) | | [optional]
+**surface_quality_known** | **bool** | Specifies whether to enforce that only ways with known information on surface quality be taken into account - default false | [optional]
+**weightings** | [**ProfileWeightings**](ProfileWeightings.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/ProfileParametersRestrictions.md b/docs/ProfileParametersRestrictions.md
new file mode 100644
index 00000000..02ff8f7b
--- /dev/null
+++ b/docs/ProfileParametersRestrictions.md
@@ -0,0 +1,20 @@
+# ProfileParametersRestrictions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**axleload** | **float** | Axleload restriction in tons. | [optional]
+**hazmat** | **bool** | Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. | [optional] [default to False]
+**height** | **float** | Height restriction in metres. | [optional]
+**length** | **float** | Length restriction in metres. | [optional]
+**maximum_incline** | **int** | Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. | [optional] [default to 6]
+**maximum_sloped_kerb** | **float** | Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. | [optional] [default to 0.6]
+**minimum_width** | **float** | Specifies the minimum width of the footway in metres. | [optional]
+**smoothness_type** | **str** | Specifies the minimum smoothness of the route. Default is `good`. | [optional] [default to 'good']
+**surface_type** | **str** | Specifies the minimum surface type. Default is `sett`. | [optional] [default to 'sett']
+**track_type** | **str** | Specifies the minimum grade of the route. Default is `grade1`. | [optional] [default to 'grade1']
+**weight** | **float** | Weight restriction in tons. | [optional]
+**width** | **float** | Width restriction in metres. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/ProfileWeightings.md b/docs/ProfileWeightings.md
new file mode 100644
index 00000000..1272d507
--- /dev/null
+++ b/docs/ProfileWeightings.md
@@ -0,0 +1,12 @@
+# ProfileWeightings
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**green** | **float** | Specifies the Green factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the green routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through green areas over a shorter route. | [optional]
+**quiet** | **float** | Specifies the Quiet factor for foot-* profiles. factor: Multiplication factor range from 0 to 1. 0 is the quiet routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer quiet ways over a shorter route. | [optional]
+**shadow** | **float** | Specifies the shadow factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the shadow routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through shadow areas over a shorter route. | [optional]
+**steepness_difficulty** | **int** | Specifies the fitness level for `cycling-*` profiles. level: 0 = Novice, 1 = Moderate, 2 = Amateur, 3 = Pro. The prefered gradient increases with level. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/Restrictions.md b/docs/Restrictions.md
new file mode 100644
index 00000000..f194b3a1
--- /dev/null
+++ b/docs/Restrictions.md
@@ -0,0 +1,20 @@
+# Restrictions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**axleload** | **float** | Axleload restriction in tons. | [optional]
+**hazmat** | **bool** | Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. | [optional] [default to False]
+**height** | **float** | Height restriction in metres. | [optional]
+**length** | **float** | Length restriction in metres. | [optional]
+**maximum_incline** | **int** | Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. | [optional] [default to 6]
+**maximum_sloped_kerb** | **float** | Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. | [optional] [default to 0.6]
+**minimum_width** | **float** | Specifies the minimum width of the footway in metres. | [optional]
+**smoothness_type** | **str** | Specifies the minimum smoothness of the route. Default is `good`. | [optional] [default to 'good']
+**surface_type** | **str** | Specifies the minimum surface type. Default is `sett`. | [optional] [default to 'sett']
+**track_type** | **str** | Specifies the minimum grade of the route. Default is `grade1`. | [optional] [default to 'grade1']
+**weight** | **float** | Weight restriction in tons. | [optional]
+**width** | **float** | Width restriction in metres. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/RoundTripRouteOptions.md b/docs/RoundTripRouteOptions.md
new file mode 100644
index 00000000..66f8852d
--- /dev/null
+++ b/docs/RoundTripRouteOptions.md
@@ -0,0 +1,11 @@
+# RoundTripRouteOptions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**length** | **float** | The target length of the route in `m` (note that this is a preferred value, but results may be different). | [optional]
+**points** | **int** | The number of points to use on the route. Larger values create more circular routes. | [optional]
+**seed** | **int** | A seed to use for adding randomisation to the overall direction of the generated route | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/RouteOptions.md b/docs/RouteOptions.md
new file mode 100644
index 00000000..a3a1ea17
--- /dev/null
+++ b/docs/RouteOptions.md
@@ -0,0 +1,15 @@
+# RouteOptions
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**avoid_borders** | **str** | Specify which type of border crossing to avoid | [optional]
+**avoid_countries** | **list[str]** | List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. | [optional]
+**avoid_features** | **list[str]** | List of features to avoid. | [optional]
+**avoid_polygons** | [**RouteOptionsAvoidPolygons**](RouteOptionsAvoidPolygons.md) | | [optional]
+**profile_params** | [**ProfileParameters**](ProfileParameters.md) | | [optional]
+**round_trip** | [**RoundTripRouteOptions**](RoundTripRouteOptions.md) | | [optional]
+**vehicle_type** | **str** | Definition of the vehicle type. | [optional] [default to 'hgv']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/RouteOptionsAvoidPolygons.md b/docs/RouteOptionsAvoidPolygons.md
new file mode 100644
index 00000000..b9b5fb99
--- /dev/null
+++ b/docs/RouteOptionsAvoidPolygons.md
@@ -0,0 +1,9 @@
+# RouteOptionsAvoidPolygons
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**empty** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/RouteResponseInfo.md b/docs/RouteResponseInfo.md
new file mode 100644
index 00000000..5438cb96
--- /dev/null
+++ b/docs/RouteResponseInfo.md
@@ -0,0 +1,16 @@
+# RouteResponseInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**id** | **str** | ID of the request (as passed in by the query) | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**DirectionsService1**](DirectionsService1.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/Rte.md b/docs/Rte.md
new file mode 100644
index 00000000..2aa77d19
--- /dev/null
+++ b/docs/Rte.md
@@ -0,0 +1,8 @@
+# Rte
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/V2directionsprofilegeojsonScheduleDuration.md b/docs/V2directionsprofilegeojsonScheduleDuration.md
new file mode 100644
index 00000000..86b08589
--- /dev/null
+++ b/docs/V2directionsprofilegeojsonScheduleDuration.md
@@ -0,0 +1,13 @@
+# V2directionsprofilegeojsonScheduleDuration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**nano** | **int** | | [optional]
+**negative** | **bool** | | [optional]
+**seconds** | **int** | | [optional]
+**units** | [**list[V2directionsprofilegeojsonScheduleDurationUnits]**](V2directionsprofilegeojsonScheduleDurationUnits.md) | | [optional]
+**zero** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/V2directionsprofilegeojsonScheduleDurationDuration.md b/docs/V2directionsprofilegeojsonScheduleDurationDuration.md
new file mode 100644
index 00000000..bec91c4c
--- /dev/null
+++ b/docs/V2directionsprofilegeojsonScheduleDurationDuration.md
@@ -0,0 +1,12 @@
+# V2directionsprofilegeojsonScheduleDurationDuration
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**nano** | **int** | | [optional]
+**negative** | **bool** | | [optional]
+**seconds** | **int** | | [optional]
+**zero** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/V2directionsprofilegeojsonScheduleDurationUnits.md b/docs/V2directionsprofilegeojsonScheduleDurationUnits.md
new file mode 100644
index 00000000..4adc80ba
--- /dev/null
+++ b/docs/V2directionsprofilegeojsonScheduleDurationUnits.md
@@ -0,0 +1,12 @@
+# V2directionsprofilegeojsonScheduleDurationUnits
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**date_based** | **bool** | | [optional]
+**duration** | [**V2directionsprofilegeojsonScheduleDurationDuration**](V2directionsprofilegeojsonScheduleDurationDuration.md) | | [optional]
+**duration_estimated** | **bool** | | [optional]
+**time_based** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/V2directionsprofilegeojsonWalkingTime.md b/docs/V2directionsprofilegeojsonWalkingTime.md
new file mode 100644
index 00000000..19074826
--- /dev/null
+++ b/docs/V2directionsprofilegeojsonWalkingTime.md
@@ -0,0 +1,13 @@
+# V2directionsprofilegeojsonWalkingTime
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**nano** | **int** | | [optional]
+**negative** | **bool** | | [optional]
+**seconds** | **int** | | [optional]
+**units** | [**list[V2directionsprofilegeojsonScheduleDurationUnits]**](V2directionsprofilegeojsonScheduleDurationUnits.md) | | [optional]
+**zero** | **bool** | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/examples/Avoid_ConstructionSites.md b/docs/examples/Avoid_ConstructionSites.md
new file mode 100644
index 00000000..5d466fe0
--- /dev/null
+++ b/docs/examples/Avoid_ConstructionSites.md
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/examples/Dieselgate_Routing.md b/docs/examples/Dieselgate_Routing.md
new file mode 100644
index 00000000..fad9d1af
--- /dev/null
+++ b/docs/examples/Dieselgate_Routing.md
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/examples/Routing_Optimization_Idai.md b/docs/examples/Routing_Optimization_Idai.md
new file mode 100644
index 00000000..40ebca82
--- /dev/null
+++ b/docs/examples/Routing_Optimization_Idai.md
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/examples/ortools_pubcrawl.md b/docs/examples/ortools_pubcrawl.md
new file mode 100644
index 00000000..c00d974a
--- /dev/null
+++ b/docs/examples/ortools_pubcrawl.md
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/make.bat b/docs/make.bat
deleted file mode 100644
index ee1886d0..00000000
--- a/docs/make.bat
+++ /dev/null
@@ -1,36 +0,0 @@
-@ECHO OFF
-
-pushd %~dp0
-
-REM Command file for Sphinx documentation
-
-if "%SPHINXBUILD%" == "" (
- set SPHINXBUILD=python -msphinx
-)
-set SOURCEDIR=source
-set BUILDDIR=build
-set SPHINXPROJ=openrouteservice-py
-
-if "%1" == "" goto help
-
-%SPHINXBUILD% >NUL 2>NUL
-if errorlevel 9009 (
- echo.
- echo.The Sphinx module was not found. Make sure you have Sphinx installed,
- echo.then set the SPHINXBUILD environment variable to point to the full
- echo.path of the 'sphinx-build' executable. Alternatively you may add the
- echo.Sphinx directory to PATH.
- echo.
- echo.If you don't have Sphinx installed, grab it from
- echo.http://sphinx-doc.org/
- exit /b 1
-)
-
-%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
-goto end
-
-:help
-%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
-
-:end
-popd
diff --git a/docs/source/conf.py b/docs/source/conf.py
deleted file mode 100644
index 2a0c4940..00000000
--- a/docs/source/conf.py
+++ /dev/null
@@ -1,176 +0,0 @@
-# -*- coding: utf-8 -*-
-# openrouteservice-py documentation build configuration file, created by
-# sphinx-quickstart on Wed Jan 31 20:43:55 2018.
-#
-# This file is execfile()d with the current directory set to its
-# containing dir.
-#
-# Note that not all possible configuration values are present in this
-# autogenerated file.
-#
-# All configuration values have a default; values that are commented out
-# serve to show the default.
-
-# If extensions (or modules to document with autodoc) are in another directory,
-# add these directories to sys.path here. If the directory is relative to the
-# documentation root, use os.path.abspath to make it absolute, like shown here.
-#
-import os
-import sys
-
-# sys.path.insert(0, 'C:\\Users\\gisadmin\\Documents\\Dev\\Git\\Uni\\ORS\\infrastructure\\SDK\\openrouteservice-python-api\\openrouteservice')
-sys.path.insert(0, os.path.abspath("../.."))
-
-# -- General configuration ------------------------------------------------
-
-# If your documentation needs a minimal Sphinx version, state it here.
-#
-# needs_sphinx = '1.0'
-
-# Add any Sphinx extension module names here, as strings. They can be
-# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
-# ones.
-extensions = ["sphinx.ext.autodoc", "sphinx.ext.todo", "sphinx.ext.coverage"]
-
-# Add any paths that contain templates here, relative to this directory.
-templates_path = [".templates"]
-
-# The suffix(es) of source filenames.
-# You can specify multiple suffix as a list of string:
-#
-# source_suffix = ['.rst', '.md']
-source_suffix = ".rst"
-
-# The master toctree document.
-master_doc = "index"
-
-# General information about the project.
-project = "openrouteservice-py"
-copyright = "2023, HeiGIT gGmbH"
-author = "HeiGIT gGmbH"
-
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-version = "0.4"
-# The full version, including alpha/beta/rc tags.
-release = "0.4"
-
-# The language for content autogenerated by Sphinx. Refer to documentation
-# for a list of supported languages.
-#
-# This is also used if you do content translation via gettext catalogs.
-# Usually you set "language" from the command line for these cases.
-language = None
-
-# List of patterns, relative to source directory, that match files and
-# directories to ignore when looking for source files.
-# This patterns also effect to html_static_path and html_extra_path
-exclude_patterns = []
-
-# The name of the Pygments (syntax highlighting) style to use.
-pygments_style = "sphinx"
-
-# If true, `todo` and `todoList` produce output, else they produce nothing.
-todo_include_todos = True
-
-# -- Options for HTML output ----------------------------------------------
-
-# The theme to use for HTML and HTML Help pages. See the documentation for
-# a list of builtin themes.
-#
-html_theme = "alabaster"
-
-# Theme options are theme-specific and customize the look and feel of a theme
-# further. For a list of options available for each theme, see the
-# documentation.
-#
-# html_theme_options = {}
-
-# Add any paths that contain custom static files (such as style sheets) here,
-# relative to this directory. They are copied after the builtin static files,
-# so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = [".static"]
-
-# Custom sidebar templates, must be a dictionary that maps document names
-# to template names.
-#
-# This is required for the alabaster theme
-# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
-html_sidebars = {
- "**": [
- "about.html",
- "navigation.html",
- "relations.html", # needs 'show_related': True theme option to display
- "searchbox.html",
- "donate.html",
- ]
-}
-
-# -- Options for HTMLHelp output ------------------------------------------
-
-# Output file base name for HTML help builder.
-htmlhelp_basename = "openrouteservice-pydoc"
-
-# -- Options for LaTeX output ---------------------------------------------
-
-latex_elements = {
- # The paper size ('letterpaper' or 'a4paper').
- #
- # 'papersize': 'letterpaper',
- # The font size ('10pt', '11pt' or '12pt').
- #
- # 'pointsize': '10pt',
- # Additional stuff for the LaTeX preamble.
- #
- # 'preamble': '',
- # Latex figure (float) alignment
- #
- # 'figure_align': 'htbp',
-}
-
-# Grouping the document tree into LaTeX files. List of tuples
-# (source start file, target name, title,
-# author, documentclass [howto, manual, or own class]).
-latex_documents = [
- (
- master_doc,
- "openrouteservice-py.tex",
- "openrouteservice-py Documentation",
- "HeiGIT gGmbH",
- "manual",
- ),
-]
-
-# -- Options for manual page output ---------------------------------------
-
-# One entry per manual page. List of tuples
-# (source start file, name, description, authors, manual section).
-man_pages = [
- (
- master_doc,
- "openrouteservice-py",
- "openrouteservice-py Documentation",
- [author],
- 1,
- )
-]
-
-# -- Options for Texinfo output -------------------------------------------
-
-# Grouping the document tree into Texinfo files. List of tuples
-# (source start file, target name, title, author,
-# dir menu entry, description, category)
-texinfo_documents = [
- (
- master_doc,
- "openrouteservice-py",
- "openrouteservice-py Documentation",
- author,
- "openrouteservice-py",
- "One line description of project.",
- "Miscellaneous",
- ),
-]
diff --git a/docs/source/index.rst b/docs/source/index.rst
deleted file mode 100644
index 34578f23..00000000
--- a/docs/source/index.rst
+++ /dev/null
@@ -1,22 +0,0 @@
-.. openrouteservice-py documentation master file, created by
- sphinx-quickstart on Wed Jan 31 20:43:55 2018.
- You can adapt this file completely to your liking, but it should at least
- contain the root `toctree` directive.
-
-
-.. include:: ../../README.rst
-.. include:: openrouteservice.rst
-
-* :ref:`genindex`
-* :ref:`modindex`
-* :ref:`search`
-
-
-Indices and tables
-==================
-
-.. toctree::
- :maxdepth: 4
-
- readme_link
- openrouteservice
diff --git a/docs/source/modules.rst b/docs/source/modules.rst
deleted file mode 100644
index b45c4804..00000000
--- a/docs/source/modules.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-docs
-====
-
-.. toctree::
- :maxdepth: 4
diff --git a/docs/source/openrouteservice.rst b/docs/source/openrouteservice.rst
deleted file mode 100644
index fff88920..00000000
--- a/docs/source/openrouteservice.rst
+++ /dev/null
@@ -1,94 +0,0 @@
-Library reference
-========================
-
-Submodules
-----------
-
-openrouteservice\.client module
--------------------------------
-
-.. automodule:: openrouteservice.client
- :members:
- :exclude-members: directions, isochrones, distance_matrix, places, pelias_reverse, pelias_search, pelias_structured, pelias_autocomplete, elevation_line, elevation_point, optimization
- :show-inheritance:
-
-openrouteservice\.convert module
---------------------------------
-
-.. automodule:: openrouteservice.convert
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.directions module
------------------------------------
-
-.. automodule:: openrouteservice.directions
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.isochrones module
------------------------------------
-
-.. automodule:: openrouteservice.isochrones
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.distance\_matrix module
------------------------------------------
-
-.. automodule:: openrouteservice.distance_matrix
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.geocode module
-----------------------------------
-
-.. automodule:: openrouteservice.geocode
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.elevation module
-----------------------------------
-
-.. automodule:: openrouteservice.elevation
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.places module
---------------------------------
-
-.. automodule:: openrouteservice.places
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.optimization module
-------------------------------------
-
-.. automodule:: openrouteservice.optimization
- :members:
- :undoc-members:
- :show-inheritance:
-
-openrouteservice\.exceptions module
------------------------------------
-
-.. automodule:: openrouteservice.exceptions
- :members:
- :undoc-members:
- :show-inheritance:
-
-
-Module contents
----------------
-
-.. automodule:: openrouteservice
- :members:
- :undoc-members:
- :show-inheritance:
diff --git a/docs/source/readme_link.rst b/docs/source/readme_link.rst
deleted file mode 100644
index a6210d3d..00000000
--- a/docs/source/readme_link.rst
+++ /dev/null
@@ -1 +0,0 @@
-.. include:: ../../README.rst
diff --git a/environment.yml b/environment.yml
deleted file mode 100644
index 0d21131d..00000000
--- a/environment.yml
+++ /dev/null
@@ -1,10 +0,0 @@
-# for https://mybinder.org
-# from https://github.com/binder-examples/python-conda_pip/blob/master/environment.yml
-name: orspy-examples
-channels:
- - conda-forge
-dependencies:
- - python
- - folium
- - pip:
- - openrouteservice
diff --git a/examples/Avoid_ConstructionSites.html b/examples/Avoid_ConstructionSites.html
new file mode 100644
index 00000000..1d642a98
--- /dev/null
+++ b/examples/Avoid_ConstructionSites.html
@@ -0,0 +1,12828 @@
+
+
+
+
+
+Avoid_ConstructionSites
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Rostock is beautiful, but, as in most other pan-European cities, there are a lot of construction sites.
+Wouldn't it be great if we could plan our trip avoiding these sites and consequently save lots of time!?
We take the open data from the Rostock authorities.
+It's hard (to impossible) to find construction site polygons, so these are points, and we need to buffer them to
+a polygon to be able to avoid them when they cross a street.
+
For the investigatory in you: yes, no CRS is specified on the link (shame on you, Rostock!).
+It's fair enough to assume it comes in WGS84 lat/long though (my reasoning:
+they show Leaflet maps plus GeoJSON is generally a web exchange format, and many web clients (Google Maps, Leaflet)
+won't take CRS other than WGS84).
+Since degrees are not the most convenient unit to work with, let's first define a function which does the buffering job
+with UTM32N projected coordinates:
+
+
+
+
+
+
+
+
+
In [2]:
+
+
+
url='https://geo.sv.rostock.de/download/opendata/baustellen/baustellen.json'
+
+
+defcreate_buffer_polygon(point_in,resolution=10,radius=10):
+ convert=pyproj.Transformer.from_crs("epsg:4326",'epsg:32632')# WGS84 to UTM32N
+ convert_back=pyproj.Transformer.from_crs('epsg:32632',"epsg:4326")# UTM32N to WGS84
+ point_in_proj=convert.transform(*point_in)
+ point_buffer_proj=Point(point_in_proj).buffer(radius,resolution=resolution)# 10 m buffer
+
+ # Iterate over all points in buffer and build polygon
+ poly_wgs=[]
+ forpointinpoint_buffer_proj.exterior.coords:
+ poly_wgs.append(convert_back.transform(*point))# Transform back to WGS84
+
+ returnpoly_wgs
+
+
+
+
+
+
+
+
+
+
+
In [3]:
+
+
+
# Set up the fundamentals
+api_key='your-api-key'# Individual api key
+configuration=ors.Configuration()
+configuration.api_key['Authorization']=api_key
+
+rostock_json=requests.get(url).json()# Get data as JSON
+
+map_params={'tiles':'Stamen Toner',
+ 'location':([54.13207,12.101612]),
+ 'zoom_start':12}
+map1=folium.Map(**map_params)
+
+# Populate a construction site buffer polygon list
+sites_poly=[]
+forsite_datainrostock_json['features']:
+ site_coords=site_data['geometry']['coordinates']
+ folium.features.Marker(list(reversed(site_coords)),
+ popup='Construction point<br>{0}'.format(site_coords)).add_to(map1)
+
+ # Create buffer polygons around construction sites with 10 m radius and low resolution
+ site_poly_coords=create_buffer_polygon(site_coords,
+ resolution=2,# low resolution to keep polygons lean
+ radius=10)
+ sites_poly.append(site_poly_coords)
+
+ site_poly_coords=[(y,x)forx,yinsite_poly_coords]# Reverse coords for folium/Leaflet
+ folium.vector_layers.Polygon(locations=site_poly_coords,
+ color='#ffd699',
+ fill_color='#ffd699',
+ fill_opacity=0.2,
+ weight=3).add_to(map1)
+
+map1
+
+
+
+
+
+
+
+
+
+
+
Out[3]:
+
+
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
That's a lot of construction sites in Rostock! If you dig into the properties of the JSON, you'll see that those
+are kept up-to-date though. Seems like an annoying place to ride a car...
+
Anyways, as you might know, a GET request can only contain so many characters. Unfortunately, > 80 polygons are more
+than a GET can take (that's why we set resolution = 2).
+Because there's no POST endpoint available currently, we'll have to work around it:
+
One sensible thing one could do, is to eliminate construction zones which are not in the immediate surrounding of the
+route of interest.
+Hence, we can request a route without construction sites, take a reasonable buffer,
+filter construction sites within the buffer and try again.
+
Let's try this:
+
+
+
+
+
+
+
+
+
In [4]:
+
+
+
# GeoJSON style function
+defstyle_function(color):
+ returnlambdafeature:dict(color=color,
+ weight=3,
+ opacity=0.5)
+
+
+# Create new map to start from scratch
+map_params.update({'location':([54.091389,12.096686]),
+ 'zoom_start':13})
+map2=folium.Map(**map_params)
+
+api_instance=ors.DirectionsServiceApi(ors.ApiClient(configuration))
+body=ors.DirectionsService(
+ coordinates=[[12.108259,54.081919],[12.072063,54.103684]],
+ preference='shortest',
+ instructions=False
+)
+api_response=api_instance.get_geo_json_route(body,'driving-car')
+route_normal=ors.todict(api_response)
+
+
+folium.features.GeoJson(data=route_normal,
+ name='Route without construction sites',
+ style_function=style_function('#FF0000'),
+ overlay=True).add_to(map2)
+
+# Buffer route with 0.009 degrees (really, just too lazy to project again...)
+route_buffer=LineString(route_normal['features'][0]['geometry']['coordinates']).buffer(0.009)
+folium.features.GeoJson(data=geometry.mapping(route_buffer),
+ name='Route Buffer',
+ style_function=style_function('#FFFF00'),
+ overlay=True).add_to(map2)
+
+# Plot which construction sites fall into the buffer Polygon
+sites_buffer_poly=[]
+forsite_polyinsites_poly:
+ poly=Polygon(site_poly)
+ ifroute_buffer.intersects(poly):
+ folium.features.Marker(list(reversed(poly.centroid.coords[0]))).add_to(map2)
+ sites_buffer_poly.append(poly)
+
+map2
+
+
+
+
+
+
+
+
+
+
+
Out[4]:
+
+
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
Finally, we can try to request a route using avoid_polygons, which conveniently takes a GeoJSON as input.
+
+
+
+
+
+
+
+
+
In [5]:
+
+
+
# Add the site polygons to the request parameters
+body=ors.DirectionsService(
+ coordinates=[[12.108259,54.081919],[12.072063,54.103684]],
+ preference='shortest',
+ instructions=False,
+ options={'avoid_polygons':geometry.mapping(MultiPolygon(sites_buffer_poly)),}
+)
+
+api_response=api_instance.get_geo_json_route(body,'driving-car')
+route_detour=ors.todict(api_response)
+
+folium.features.GeoJson(data=route_detour,
+ name='Route with construction sites',
+ style_function=style_function('#00FF00'),
+ overlay=True).add_to(map2)
+
+map2.add_child(folium.map.LayerControl())
+map2
+
+
+
+
+
+
+
+
+
+
+
Out[5]:
+
+
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
+
Note: This request might fail sometime in the future, as the JSON is loaded dynamically and changes a few times
+a week.
+Thus the amount of sites within the buffer can exceed the GET limit (which is between 15-20 site polygons approx).
+
+
+
+
+
+
+
+
diff --git a/examples/Avoid_ConstructionSites.ipynb b/examples/Avoid_ConstructionSites.ipynb
new file mode 100644
index 00000000..f4d82d92
--- /dev/null
+++ b/examples/Avoid_ConstructionSites.ipynb
@@ -0,0 +1,5330 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Avoiding construction sites dynamically\n",
+ "> Note: All notebooks need the [environment dependencies](https://github.com/GIScience/openrouteservice-examples#local-installation)\n",
+ "> as well as an [openrouteservice API key](https://ors.org/dev/#/signup) to run"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "In this example, we'd like to showcase how to use the [directions API][directions] and to avoid a number of\n",
+ "construction sites while routing.\n",
+ "\n",
+ "The challenge here is to prepare the data appropriately and construct a reasonable GET request.\n",
+ "\n",
+ "[directions]: https://openrouteservice.org/dev/#/api-docs/directions"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import folium\n",
+ "import pyproj\n",
+ "import requests\n",
+ "import openrouteservice as ors\n",
+ "from shapely import geometry\n",
+ "from shapely.geometry import Point, LineString, Polygon, MultiPolygon"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Rostock is beautiful, but, as in most other pan-European cities, there are a lot of construction sites.\n",
+ "Wouldn't it be great if we could plan our trip avoiding these sites and consequently save lots of time!?"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Construction sites in Rostock"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "We take the [open data](https://www.opendata-hro.de/de/dataset/baustellen) from the Rostock authorities.\n",
+ "It's hard (to impossible) to find construction site polygons, so these are points, and we need to buffer them to\n",
+ "a polygon to be able to avoid them when they cross a street.\n",
+ "\n",
+ "For the investigatory in you: yes, no CRS is specified on the link (shame on you, Rostock!).\n",
+ "It's fair enough to assume it comes in WGS84 lat/long though (my reasoning:\n",
+ "they show Leaflet maps plus GeoJSON is generally a web exchange format, and many web clients (Google Maps, Leaflet)\n",
+ "won't take CRS other than WGS84).\n",
+ "Since degrees are not the most convenient unit to work with, let's first define a function which does the buffering job\n",
+ "with UTM32N projected coordinates:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "url = 'https://geo.sv.rostock.de/download/opendata/baustellen/baustellen.json'\n",
+ "\n",
+ "\n",
+ "def create_buffer_polygon(point_in, resolution=10, radius=10):\n",
+ " convert = pyproj.Transformer.from_crs(\"epsg:4326\", 'epsg:32632') # WGS84 to UTM32N\n",
+ " convert_back = pyproj.Transformer.from_crs('epsg:32632', \"epsg:4326\") # UTM32N to WGS84\n",
+ " point_in_proj = convert.transform(*point_in)\n",
+ " point_buffer_proj = Point(point_in_proj).buffer(radius, resolution=resolution) # 10 m buffer\n",
+ "\n",
+ " # Iterate over all points in buffer and build polygon\n",
+ " poly_wgs = []\n",
+ " for point in point_buffer_proj.exterior.coords:\n",
+ " poly_wgs.append(convert_back.transform(*point)) # Transform back to WGS84\n",
+ "\n",
+ " return poly_wgs"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 3,
+ "metadata": {
+ "scrolled": true
+ },
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
"
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "execution_count": 3,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "# Set up the fundamentals\n",
+ "api_key = 'your-api-key' # Individual api key\n",
+ "configuration = ors.Configuration()\n",
+ "configuration.api_key['Authorization'] = api_key\n",
+ "\n",
+ "rostock_json = requests.get(url).json() # Get data as JSON\n",
+ "\n",
+ "map_params = {'tiles': 'Stamen Toner',\n",
+ " 'location': ([54.13207, 12.101612]),\n",
+ " 'zoom_start': 12}\n",
+ "map1 = folium.Map(**map_params)\n",
+ "\n",
+ "# Populate a construction site buffer polygon list\n",
+ "sites_poly = []\n",
+ "for site_data in rostock_json['features']:\n",
+ " site_coords = site_data['geometry']['coordinates']\n",
+ " folium.features.Marker(list(reversed(site_coords)),\n",
+ " popup='Construction point {0}'.format(site_coords)).add_to(map1)\n",
+ "\n",
+ " # Create buffer polygons around construction sites with 10 m radius and low resolution\n",
+ " site_poly_coords = create_buffer_polygon(site_coords,\n",
+ " resolution=2, # low resolution to keep polygons lean\n",
+ " radius=10)\n",
+ " sites_poly.append(site_poly_coords)\n",
+ "\n",
+ " site_poly_coords = [(y, x) for x, y in site_poly_coords] # Reverse coords for folium/Leaflet\n",
+ " folium.vector_layers.Polygon(locations=site_poly_coords,\n",
+ " color='#ffd699',\n",
+ " fill_color='#ffd699',\n",
+ " fill_opacity=0.2,\n",
+ " weight=3).add_to(map1)\n",
+ "\n",
+ "map1"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "That's a lot of construction sites in Rostock! If you dig into the `properties` of the JSON, you'll see that those\n",
+ "are kept up-to-date though. Seems like an annoying place to ride a car...\n",
+ "\n",
+ "Anyways, as you might know, a GET request can only contain so many characters. Unfortunately, > 80 polygons are more\n",
+ "than a GET can take (that's why we set `resolution = 2`).\n",
+ "Because there's no POST endpoint available currently, we'll have to work around it:\n",
+ "\n",
+ "One sensible thing one could do, is to eliminate construction zones which are not in the immediate surrounding of the\n",
+ "route of interest.\n",
+ "Hence, we can request a route without construction sites, take a reasonable buffer,\n",
+ "filter construction sites within the buffer and try again.\n",
+ "\n",
+ "Let's try this:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
Note: All notebooks need the environment dependencies as well as an openrouteservice API key to run
+
+
From the year 2019 on, Berlin will impose the Diesel ban. The following streets will be affected: Leipziger Straße, Reinhardstraße, Friedrichstraße, Brückenstraße, Kapweg, Alt-Moabit, Stromstraße und Leonorenstraße.
+
As a showcase, we'll have a look how the frequent visits of Angela Merkel to the German Currywurst Museum (solely inferred from superficial research) will change its route from 2019. You'll find remarkable similarities.
+
+
+
+
+
+
+
+
+
In [1]:
+
+
+
importopenrouteserviceasors
+importfolium
+fromshapely.geometryimportLineString,mapping
+fromshapely.opsimportunary_union
+
+defstyle_function(color):# To style data
+ returnlambdafeature:dict(color=color,opacity=0.5,weight=4)
+
Coming soon: The shortest route for a Diesel driver, which must avoid the blackish areas. Then, affected cars can't cross Friedrichstraße anymore. See for yourself:
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
Now, here it should be noted, that our dear Chancellor would have to drive a detour of more than 1.5 times the current distance, imposing 50% more pollution on Berlin's residents, just to enjoy the history of the Currywurst. Click on the routes to see for yourself.
+
At least Friedrichstraße is safe soon!
+
+
+
+
+
+
+
diff --git a/examples/Dieselgate_Routing.ipynb b/examples/Dieselgate_Routing.ipynb
new file mode 100644
index 00000000..c90c1658
--- /dev/null
+++ b/examples/Dieselgate_Routing.ipynb
@@ -0,0 +1,970 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "id": "58981b12",
+ "metadata": {},
+ "source": [
+ "# Dieselgate Routing\n",
+ "\n",
+ "> Note: All notebooks need the environment dependencies as well as an openrouteservice API key to run\n",
+ "\n",
+ "From the year 2019 on, Berlin will impose the Diesel ban. The following streets will be affected: Leipziger Straße, Reinhardstraße, Friedrichstraße, Brückenstraße, Kapweg, Alt-Moabit, Stromstraße und Leonorenstraße.\n",
+ "\n",
+ "As a showcase, we'll have a look how the frequent visits of Angela Merkel to the German Currywurst Museum (solely inferred from superficial research) will change its route from 2019. You'll find remarkable similarities."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 1,
+ "id": "a44085a3-bcb8-44ad-9fe1-e283c85a23bd",
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import openrouteservice as ors\n",
+ "import folium\n",
+ "from shapely.geometry import LineString, mapping\n",
+ "from shapely.ops import unary_union\n",
+ "\n",
+ "def style_function(color): # To style data\n",
+ " return lambda feature: dict(color=color, opacity=0.5, weight=4)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "id": "804b121c",
+ "metadata": {},
+ "source": [
+ "### Regular route\n",
+ "So far: The shortest route for a car from A to B."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 2,
+ "id": "12164e5b-fa76-41ad-b217-03710b09fecd",
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
Routing optimization generally solves the Vehicle Routing Problem
+(a simple example being the more widely known Traveling Salesman Problem).
+A more complex example would be the distribution of goods by a fleet of multiple vehicles to dozens of locations,
+where each vehicle has certain time windows in which it can operate and each delivery location has certain time windows
+in which it can be served (e.g. opening times of a supermarket).
+
In this example we'll look at a real-world scenario of distributing medical goods during disaster response
+following one of the worst tropical cyclones ever been recorded in Africa: Cyclone Idai.
In this scenario, a humanitarian organization shipped much needed medical goods to Beira, Mozambique, which were then
+dispatched to local vehicles to be delivered across the region.
+The supplies included vaccinations and medications for water-borne diseases such as Malaria and Cholera,
+so distribution efficiency was critical to contain disastrous epidemics.
+
We'll solve this complex problem with the optimization endpoint of openrouteservice.
In total 20 sites were identified in need of the medical supplies, while 3 vehicles were scheduled for delivery.
+Let's assume there was only one type of goods, e.g. standard moving boxes full of one medication.
+(In reality there were dozens of different good types, which can be modelled with the same workflow,
+but that'd unnecessarily bloat this example).
+
The vehicles were all located in the port of Beira and had the same following constraints:
+
+
operation time windows from 8:00 to 20:00
+
loading capacity of 300 [arbitrary unit]
+
+
The delivery locations were mostly located in the Beira region, but some extended ~ 200 km to the north of Beira.
+Their needs range from 10 to 148 units of the arbitrary medication goods
+(consult the file located at ../resources/data/idai_health_sites.csv). Let's look at it in a map.
+
+
+
+
+
+
+
+
+
In [4]:
+
+
+
# First define the map centered around Beira
+m=folium.Map(location=[-18.63680,34.79430],tiles='cartodbpositron',zoom_start=8)
+
+# Next load the delivery locations from CSV file at ../resources/data/idai_health_sites.csv
+# ID, Lat, Lon, Open_From, Open_To, Needed_Amount
+deliveries_data=pd.read_csv(
+ 'data/idai_health_sites.csv',
+ index_col="ID",
+ parse_dates=["Open_From","Open_To"]
+)
+
+# Plot the locations on the map with more info in the ToolTip
+forlocationindeliveries_data.itertuples():
+ tooltip=folium.map.Tooltip("<h4><b>ID {}</b></p><p>Supplies needed: <b>{}</b></p>".format(
+ location.Index,location.Needed_Amount
+ ))
+
+ folium.Marker(
+ location=[location.Lat,location.Lon],
+ tooltip=tooltip,
+ icon=BeautifyIcon(
+ icon_shape='marker',
+ number=int(location.Index),
+ spin=True,
+ text_color='red',
+ background_color="#FFF",
+ inner_icon_style="font-size:12px;padding-top:-5px;"
+ )
+ ).add_to(m)
+
+# The vehicles are all located at the port of Beira
+depot=[-19.818474,34.835447]
+
+folium.Marker(
+ location=depot,
+ icon=folium.Icon(color="green",icon="bus",prefix='fa'),
+ setZIndexOffset=1000
+).add_to(m)
+
+m
+
+
+
+
+
+
+
+
+
+
+
Out[4]:
+
+
Make this Notebook Trusted to load map: File -> Trust Notebook
Now that we have described the setup sufficiently, we can start to set up our actual Vehicle Routing Problem.
+For this example we're using the FOSS library of Vroom, which has
+recently seen support for
+openrouteservice and is available through our APIs.
+
To properly describe the problem in algorithmic terms, we have to provide the following information:
+
+
vehicles start/end address: vehicle depot in Beira's port
+
vehicle capacity: 300
+
vehicle operational times: 08:00 - 20:00
+
service location: delivery location
+
service time windows: individual delivery location's time window
+
service amount: individual delivery location's needs
+
+
We defined all these parameters either in code above or in the data sheet located in
+../resources/data/idai_health_sites.csv.
+Now we have to only wrap this information into our code and send a request to openrouteservice optimization service at
+https://api.openrouteservice.org/optimization.
# Only extract relevant fields from the response
+extract_fields=['distance','amount','duration']
+data=[{key:getattr(route,key)forkeyinextract_fields}forrouteinresult.routes]
+
+vehicles_df=pd.DataFrame(data)
+vehicles_df.index.name='vehicle'
+vehicles_df
+
+
+
+
+
+
+
+
+
+
+
Out[7]:
+
+
+
+
+
+
+
+
distance
+
amount
+
duration
+
+
+
vehicle
+
+
+
+
+
+
+
+
0
+
474009.0
+
[290]
+
28365.0
+
+
+
1
+
333880.0
+
[295]
+
27028.0
+
+
+
2
+
476172.0
+
[295]
+
23679.0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
So every vehicle's capacity is almost fully exploited. That's good.
+How about a look at the individual service stations:
+
+
+
+
+
+
+
+
+
In [8]:
+
+
+
# Create a list to display the schedule for all vehicles
+stations=list()
+forrouteinresult.routes:
+ vehicle=list()
+ forstepinroute.steps:
+ vehicle.append(
+ [
+ step.jobifstep.jobelse"Depot",# Station ID
+ step.arrival,# Arrival time
+ step.arrival+(step.serviceifstep.serviceelse0),# Departure time
+
+ ]
+ )
+ stations.append(vehicle)
+
+
+
+
+
+
+
+
+
+
+
+
+
Now we can look at each individual vehicle's timetable:
It's this of the year again (or will be in 6 months):
+the freshmen pour into the institute and as the diligent student council you are, you want to welcome them for their
+geo adventure with a stately pub crawl to prepare them for the challenges lying ahead.
+
We want to give you the opportunity to route the pack of rookies in a fairly optimal way:
+
+
+
+
+
+
+
+
+
In [6]:
+
+
+
importfolium
+fromshapelyimportwkt,geometry
+
+
+
+
+
+
+
+
+
+
+
+
+
Now we're ready to start our most optimally planned pub crawl ever through hipster Kreuzberg!
+It will also be the most un-hipster pub crawl ever, as we'll cover ground with a taxi.
+At least it's safer than biking half-delirious.
+
First the basic parameters: API key and the district polygon to limit our pub search.
+The Well Known Text was prepared in QGIS from Berlin authority's
+WFS
+(QGIS field calculator has a geom_to_wkt method).
+BTW, Berlin, hope you don't wonder why your feature services are so slow... Simplify is the magic word, simplify.
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
Now it's time to see which are the lucky bars to host a bunch of increasingly drunk geos.
+We use the Places API,
+where we can pass a GeoJSON as object right into.
+As we want to crawl only bars and not churches, we have to limit the query to category ID's which represent pubs.
+We can get the mapping easily when passing category_list:
Here is a nicer list.
+If you look for pub, you'll find it under sustenance : 560 with ID 569.
+Chucking that into a query, yields:
+
+
+
+
+
+
+
+
+
In [10]:
+
+
+
aoi_json=geometry.mapping(geometry.shape(aoi_geom))
+
+poisApi=ors.PoisApi(ors.ApiClient(configuration))
+body=ors.OpenpoiservicePoiRequest(
+ request='pois',
+ geometry=ors.PoisGeometry(geojson=aoi_json),
+ filters=ors.PoisFilters(category_ids=[569]),
+ sortby='distance'
+)
+pubs=poisApi.pois_post(body).features
+
+# Amount of pubs in Kreuzberg
+print("\nAmount of pubs: {}".format(len(pubs)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+---------------------------------------------------------------------------
+KeyboardInterrupt Traceback (most recent call last)
+/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb Cell 11 line 1
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=2'>3</a> poisApi = ors.PoisApi(ors.ApiClient(configuration))
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=3'>4</a> body = ors.OpenpoiservicePoiRequest(
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=4'>5</a> request='pois',
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=5'>6</a> geometry=ors.PoisGeometry(geojson=aoi_json),
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=6'>7</a> filters=ors.PoisFilters(category_ids=[569]),
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=7'>8</a> sortby='distance'
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=8'>9</a> )
+---> <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=9'>10</a> pubs = poisApi.pois_post(body).features
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=11'>12</a> # Amount of pubs in Kreuzberg
+ <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=12'>13</a> print("\nAmount of pubs: {}".format(len(pubs)))
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:54, in PoisApi.pois_post(self, body, **kwargs)
+ 52 return self.pois_post_with_http_info(body, **kwargs) # noqa: E501
+ 53 else:
+---> 54 (data) = self.pois_post_with_http_info(body, **kwargs) # noqa: E501
+ 55 return data
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:118, in PoisApi.pois_post_with_http_info(self, body, **kwargs)
+ 115 # Authentication setting
+ 116 auth_settings = ['ApiKeyAuth'] # noqa: E501
+--> 118 return self.api_client.call_api(
+ 119 '/pois', 'POST',
+ 120 path_params,
+ 121 query_params,
+ 122 header_params,
+ 123 body=body_params,
+ 124 post_params=form_params,
+ 125 files=local_var_files,
+ 126 response_type='OpenpoiservicePoiResponse', # noqa: E501
+ 127 auth_settings=auth_settings,
+ 128 async_req=params.get('async_req'),
+ 129 _return_http_data_only=params.get('_return_http_data_only'),
+ 130 _preload_content=params.get('_preload_content', True),
+ 131 _request_timeout=params.get('_request_timeout'),
+ 132 collection_formats=collection_formats)
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:316, in ApiClient.call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout)
+ 279 """Makes the HTTP request (synchronous) and returns deserialized data.
+ 280
+ 281 To make an async request, set the async_req parameter.
+ (...)
+ 313 then the method will return the response directly.
+ 314 """
+ 315 if not async_req:
+--> 316 return self.__call_api(resource_path, method,
+ 317 path_params, query_params, header_params,
+ 318 body, post_params, files,
+ 319 response_type, auth_settings,
+ 320 _return_http_data_only, collection_formats,
+ 321 _preload_content, _request_timeout)
+ 322 else:
+ 323 thread = self.pool.apply_async(self.__call_api, (resource_path,
+ 324 method, path_params, query_params,
+ 325 header_params, body,
+ (...)
+ 329 collection_formats,
+ 330 _preload_content, _request_timeout))
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:148, in ApiClient.__call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout)
+ 145 url = self.configuration.host + resource_path
+ 147 # perform request and return response
+--> 148 response_data = self.request(
+ 149 method, url, query_params=query_params, headers=header_params,
+ 150 post_params=post_params, body=body,
+ 151 _preload_content=_preload_content,
+ 152 _request_timeout=_request_timeout)
+ 154 self.last_response = response_data
+ 156 return_data = response_data
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:358, in ApiClient.request(self, method, url, query_params, headers, post_params, body, _preload_content, _request_timeout)
+ 350 return self.rest_client.OPTIONS(url,
+ 351 query_params=query_params,
+ 352 headers=headers,
+ (...)
+ 355 _request_timeout=_request_timeout,
+ 356 body=body)
+ 357 elif method == "POST":
+--> 358 return self.rest_client.POST(url,
+ 359 query_params=query_params,
+ 360 headers=headers,
+ 361 post_params=post_params,
+ 362 _preload_content=_preload_content,
+ 363 _request_timeout=_request_timeout,
+ 364 body=body)
+ 365 elif method == "PUT":
+ 366 return self.rest_client.PUT(url,
+ 367 query_params=query_params,
+ 368 headers=headers,
+ (...)
+ 371 _request_timeout=_request_timeout,
+ 372 body=body)
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:263, in RESTClientObject.POST(self, url, headers, query_params, post_params, body, _preload_content, _request_timeout)
+ 261 def POST(self, url, headers=None, query_params=None, post_params=None,
+ 262 body=None, _preload_content=True, _request_timeout=None):
+--> 263 return self.request("POST", url,
+ 264 headers=headers,
+ 265 query_params=query_params,
+ 266 post_params=post_params,
+ 267 _preload_content=_preload_content,
+ 268 _request_timeout=_request_timeout,
+ 269 body=body)
+
+File ~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:161, in RESTClientObject.request(self, method, url, query_params, headers, body, post_params, _preload_content, _request_timeout)
+ 159 if body is not None:
+ 160 request_body = json.dumps(body)
+--> 161 r = self.pool_manager.request(
+ 162 method, url,
+ 163 body=request_body,
+ 164 preload_content=_preload_content,
+ 165 timeout=timeout,
+ 166 headers=headers)
+ 167 elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
+ 168 r = self.pool_manager.request(
+ 169 method, url,
+ 170 fields=post_params,
+ (...)
+ 173 timeout=timeout,
+ 174 headers=headers)
+
+File ~/.local/lib/python3.10/site-packages/urllib3/request.py:78, in RequestMethods.request(self, method, url, fields, headers, **urlopen_kw)
+ 74 return self.request_encode_url(
+ 75 method, url, fields=fields, headers=headers, **urlopen_kw
+ 76 )
+ 77 else:
+---> 78 return self.request_encode_body(
+ 79 method, url, fields=fields, headers=headers, **urlopen_kw
+ 80 )
+
+File ~/.local/lib/python3.10/site-packages/urllib3/request.py:170, in RequestMethods.request_encode_body(self, method, url, fields, headers, encode_multipart, multipart_boundary, **urlopen_kw)
+ 167 extra_kw["headers"].update(headers)
+ 168 extra_kw.update(urlopen_kw)
+--> 170 return self.urlopen(method, url, **extra_kw)
+
+File ~/.local/lib/python3.10/site-packages/urllib3/poolmanager.py:376, in PoolManager.urlopen(self, method, url, redirect, **kw)
+ 374 response = conn.urlopen(method, url, **kw)
+ 375 else:
+--> 376 response = conn.urlopen(method, u.request_uri, **kw)
+ 378 redirect_location = redirect and response.get_redirect_location()
+ 379 if not redirect_location:
+
+File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:714, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
+ 711 self._prepare_proxy(conn)
+ 713 # Make the request on the httplib connection object.
+--> 714 httplib_response = self._make_request(
+ 715 conn,
+ 716 method,
+ 717 url,
+ 718 timeout=timeout_obj,
+ 719 body=body,
+ 720 headers=headers,
+ 721 chunked=chunked,
+ 722 )
+ 724 # If we're going to release the connection in ``finally:``, then
+ 725 # the response doesn't need to know about the connection. Otherwise
+ 726 # it will also try to release it and we'll have a double-release
+ 727 # mess.
+ 728 response_conn = conn if not release_conn else None
+
+File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:466, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
+ 461 httplib_response = conn.getresponse()
+ 462 except BaseException as e:
+ 463 # Remove the TypeError from the exception chain in
+ 464 # Python 3 (including for exceptions like SystemExit).
+ 465 # Otherwise it looks like a bug in the code.
+--> 466 six.raise_from(e, None)
+ 467 except (SocketTimeout, BaseSSLError, SocketError) as e:
+ 468 self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
+
+File <string>:3, in raise_from(value, from_value)
+
+File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:461, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
+ 458 except TypeError:
+ 459 # Python 3
+ 460 try:
+--> 461 httplib_response = conn.getresponse()
+ 462 except BaseException as e:
+ 463 # Remove the TypeError from the exception chain in
+ 464 # Python 3 (including for exceptions like SystemExit).
+ 465 # Otherwise it looks like a bug in the code.
+ 466 six.raise_from(e, None)
+
+File /usr/lib/python3.10/http/client.py:1375, in HTTPConnection.getresponse(self)
+ 1373 try:
+ 1374 try:
+-> 1375 response.begin()
+ 1376 except ConnectionError:
+ 1377 self.close()
+
+File /usr/lib/python3.10/http/client.py:318, in HTTPResponse.begin(self)
+ 316 # read until we get a non-100 response
+ 317 while True:
+--> 318 version, status, reason = self._read_status()
+ 319 if status != CONTINUE:
+ 320 break
+
+File /usr/lib/python3.10/http/client.py:279, in HTTPResponse._read_status(self)
+ 278 def _read_status(self):
+--> 279 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
+ 280 if len(line) > _MAXLINE:
+ 281 raise LineTooLong("status line")
+
+File /usr/lib/python3.10/socket.py:705, in SocketIO.readinto(self, b)
+ 703 while True:
+ 704 try:
+--> 705 return self._sock.recv_into(b)
+ 706 except timeout:
+ 707 self._timeout_occurred = True
+
+File /usr/lib/python3.10/ssl.py:1274, in SSLSocket.recv_into(self, buffer, nbytes, flags)
+ 1270 if flags != 0:
+ 1271 raise ValueError(
+ 1272 "non-zero flags not allowed in calls to recv_into() on %s" %
+ 1273 self.__class__)
+-> 1274 return self.read(nbytes, buffer)
+ 1275 else:
+ 1276 return super().recv_into(buffer, nbytes, flags)
+
+File /usr/lib/python3.10/ssl.py:1130, in SSLSocket.read(self, len, buffer)
+ 1128 try:
+ 1129 if buffer is not None:
+-> 1130 return self._sslobj.read(len, buffer)
+ 1131 else:
+ 1132 return self._sslobj.read(len)
+
+KeyboardInterrupt:
+
+
+
+
+
+
+
+
+
+
+
+
Nearly 100 bars in one night might be a stretch, even for such a resilient species.
+Coincidentally, the rate of smokers is disproportionally high within the undergrad geo community.
+So, we really would like to hang out in smoker bars:
+
+
+
+
+
+
+
+
+
In [ ]:
+
+
+
body.filters.smoking=['yes']# Filter out smoker bars
+pubs_smoker=poisApi.pois_post(body).features
+
+print("\nAmount of smoker pubs: {}".format(len(pubs_smoker)))
+
+
+
+
+
+
+
+
+
+
+
+
+
+Amount of smoker pubs: 23
+
+
+
+
+
+
+
+
+
+
+
+
+
A bit better. Let's see where they are.
+
Optionally, use the Geocoding API to get representable names.
+Note, it'll be 25 API calls.
+Means, you can only run one per minute.
Make this Notebook Trusted to load map: File -> Trust Notebook
+
+
+
+
+
+
+
+
+
+
+
+
Ok, we have an idea where we go.
+But, not in which order.
+To determine the optimal route, we first have to know the distance between all pubs.
+We can conveniently solve this with the Matrix API.
+
+
I'd have like to do this example for biking/walking, but I realized too late that we restricted matrix calls to 5x5 locations for those profiles...
Check, 23x23. So, we got the durations now in pubs_matrix.durations.
+Then there's finally the great entrance of ortools.
+
Note, this is a local search.
+
+
+
+
+
+
+
+
+
In [ ]:
+
+
+
fromortools.constraint_solverimportpywrapcp
+
+tsp_size=len(pubs_addresses)
+num_routes=1
+start=0# arbitrary start location
+coords_aoi=[(y,x)forx,yinaoi_coords]# swap (x,y) to (y,x)
+
+optimal_coords=[]
+
+iftsp_size>0:
+
+ # Old Stuff kept for reference
+ # routing = pywrapcp.RoutingModel(tsp_size, num_routes, start)
+
+ # New Way according to ortools v7.0 docs (https://developers.google.com/optimization/support/release_notes#announcing-the-release-of-or-tools-v70)
+ # manager = pywrapcp.RoutingIndexManager(num_locations, num_vehicles, depot)
+ # routing = pywrapcp.RoutingModel(manager)
+
+ # Adaption according to old and new way
+ manager=pywrapcp.RoutingIndexManager(tsp_size,num_routes,start)
+ routing=pywrapcp.RoutingModel(manager)
+
+
+ # Create the distance callback, which takes two arguments (the from and to node indices)
+ # and returns the distance between these nodes.
+ defdistance_callback(from_index,to_index):
+"""Returns the distance between the two nodes."""
+ # Convert from routing variable Index to distance matrix NodeIndex.
+ from_node=manager.IndexToNode(from_index)
+ to_node=manager.IndexToNode(to_index)
+ returnint(pubs_matrix.durations[from_node][to_node])
+
+
+ # Since v7.0, this also needs to be wrapped:
+ transit_callback_index=routing.RegisterTransitCallback(distance_callback)
+
+ routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)
+ # Solve, returns a solution if any.
+ assignment=routing.Solve()
+ ifassignment:
+ # Total cost of the 'optimal' solution.
+ print("Total duration: "+str(round(assignment.ObjectiveValue(),3)/60)+" minutes\n")
+ index=routing.Start(start)# Index of the variable for the starting node.
+ route=''
+ # while not routing.IsEnd(index):
+ fornodeinrange(routing.nodes()):
+ # IndexToNode has been moved from the RoutingModel to the RoutingIndexManager
+ optimal_coords.append(pubs_coords[manager.IndexToNode(index)])
+ route+=str(pubs_addresses[manager.IndexToNode(index)])+' -> '
+ index=assignment.Value(routing.NextVar(index))
+ route+=str(pubs_addresses[manager.IndexToNode(index)])
+ optimal_coords.append(pubs_coords[manager.IndexToNode(index)])
+ print("Route:\n"+route)
+
Duration optimal route: 51.857 mins
+Duration random route: 139.505 mins
+
+
+
+
+
+
+
+
+
+
+
+
+
Optimizing that route saved us a good 120€ worth of taxi costs.
+
+
+
+
+
+
+
diff --git a/examples/ortools_pubcrawl.ipynb b/examples/ortools_pubcrawl.ipynb
new file mode 100644
index 00000000..86707a3f
--- /dev/null
+++ b/examples/ortools_pubcrawl.ipynb
@@ -0,0 +1,2047 @@
+{
+ "cells": [
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "# Route optimization of a pub crawl with ORS and `ortools`\n",
+ "> Note: All notebooks need the [environment dependencies](https://github.com/GIScience/openrouteservice-examples#local-installation)\n",
+ "> as well as an [openrouteservice API key](https://openrouteservice.org/dev/#/signup) to run"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "It's this of the year again (or will be in 6 months):\n",
+ "the freshmen pour into the institute and as the diligent student council you are, you want to welcome them for their\n",
+ "geo adventure with a stately pub crawl to prepare them for the challenges lying ahead.\n",
+ "\n",
+ "We want to give you the opportunity to route the pack of rookies in a fairly optimal way:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 6,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import folium\n",
+ "from shapely import wkt, geometry"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Now we're ready to start our most optimally planned pub crawl ever through hipster Kreuzberg!\n",
+ "It will also be the most un-hipster pub crawl ever, as we'll cover ground with a taxi.\n",
+ "At least it's safer than biking half-delirious.\n",
+ "\n",
+ "First the basic parameters: API key and the district polygon to limit our pub search.\n",
+ "The Well Known Text was prepared in QGIS from Berlin authority's\n",
+ "[WFS](http://fbinter.stadt-berlin.de/fb/wfs/geometry/senstadt/re_ortsteil/)\n",
+ "(QGIS field calculator has a `geom_to_wkt` method).\n",
+ "BTW, Berlin, hope you don't wonder why your feature services are so slow... Simplify is the magic word, simplify."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 7,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "wkt_str = 'Polygon ((13.43926404 52.48961046, 13.42040115 52.49586382, 13.42541101 52.48808523, 13.42368155 52.48635829, 13.40788599 52.48886084, 13.40852944 52.487142, 13.40745989 52.48614988, 13.40439187 52.48499746, 13.40154731 52.48500125, 13.40038591 52.48373202, 13.39423818 52.4838664, 13.39425346 52.48577149, 13.38629096 52.48582648, 13.38626853 52.48486362, 13.3715694 52.48495055, 13.37402099 52.4851697, 13.37416365 52.48771105, 13.37353615 52.48798191, 13.37539925 52.489432, 13.37643416 52.49167597, 13.36821531 52.49333093, 13.36952826 52.49886974, 13.37360623 52.50416333, 13.37497726 52.50337776, 13.37764916 52.5079675, 13.37893813 52.50693045, 13.39923153 52.50807711, 13.40022883 52.50938108, 13.40443425 52.50777471, 13.4052848 52.50821063, 13.40802944 52.50618019, 13.40997081 52.50692569, 13.41152096 52.50489127, 13.41407284 52.50403794, 13.41490921 52.50491634, 13.41760145 52.50417013, 13.41943091 52.50564912, 13.4230412 52.50498109, 13.42720031 52.50566607, 13.42940229 52.50857222, 13.45335235 52.49752496, 13.45090795 52.49710803, 13.44765912 52.49472124, 13.44497623 52.49442276, 13.43926404 52.48961046))'\n",
+ "\n",
+ "aoi_geom = wkt.loads(wkt_str) # load geometry from WKT string\n",
+ "\n",
+ "aoi_coords = list(aoi_geom.exterior.coords) # get coords from exterior ring\n",
+ "aoi_coords = [(y, x) for x, y in aoi_coords] # swap (x,y) to (y,x). Really leaflet?!\n",
+ "aoi_centroid = aoi_geom.centroid # Kreuzberg center for map center"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Next, add the Kreuzberg polygon as marker to the map, so we get a bit of orientation."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 8,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
"
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "execution_count": 8,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "m = folium.Map(tiles='Stamen Toner', location=(aoi_centroid.y, aoi_centroid.x), zoom_start=14)\n",
+ "folium.vector_layers.Polygon(aoi_coords,\n",
+ " color='#ffd699',\n",
+ " fill_color='#ffd699',\n",
+ " fill_opacity=0.2,\n",
+ " weight=3).add_to(m)\n",
+ "m"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Now it's time to see which are the lucky bars to host a bunch of increasingly drunk geos.\n",
+ "We use the [**Places API**](https://openrouteservice.org/dev/#/api-docs/pois),\n",
+ "where we can pass a GeoJSON as object right into.\n",
+ "As we want to crawl only bars and not churches, we have to limit the query to category ID's which represent pubs.\n",
+ "We can get the mapping easily when passing `category_list`:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 9,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "import openrouteservice as ors\n",
+ "\n",
+ "configuration = ors.Configuration()\n",
+ "configuration.api_key['Authorization'] = \"your-api-key\""
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "[**Here**](https://giscience.github.io/openrouteservice/documentation/Places.html) is a nicer list.\n",
+ "If you look for pub, you'll find it under `sustenance : 560` with ID 569.\n",
+ "Chucking that into a query, yields:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 10,
+ "metadata": {},
+ "outputs": [
+ {
+ "ename": "KeyboardInterrupt",
+ "evalue": "",
+ "output_type": "error",
+ "traceback": [
+ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
+ "\u001b[0;31mKeyboardInterrupt\u001b[0m Traceback (most recent call last)",
+ "\u001b[1;32m/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb Cell 11\u001b[0m line \u001b[0;36m1\n\u001b[1;32m 3\u001b[0m poisApi \u001b[39m=\u001b[39m ors\u001b[39m.\u001b[39mPoisApi(ors\u001b[39m.\u001b[39mApiClient(configuration))\n\u001b[1;32m 4\u001b[0m body \u001b[39m=\u001b[39m ors\u001b[39m.\u001b[39mOpenpoiservicePoiRequest(\n\u001b[1;32m 5\u001b[0m request\u001b[39m=\u001b[39m\u001b[39m'\u001b[39m\u001b[39mpois\u001b[39m\u001b[39m'\u001b[39m,\n\u001b[1;32m 6\u001b[0m geometry\u001b[39m=\u001b[39mors\u001b[39m.\u001b[39mPoisGeometry(geojson\u001b[39m=\u001b[39maoi_json),\n\u001b[1;32m 7\u001b[0m filters\u001b[39m=\u001b[39mors\u001b[39m.\u001b[39mPoisFilters(category_ids\u001b[39m=\u001b[39m[\u001b[39m569\u001b[39m]),\n\u001b[1;32m 8\u001b[0m sortby\u001b[39m=\u001b[39m\u001b[39m'\u001b[39m\u001b[39mdistance\u001b[39m\u001b[39m'\u001b[39m\n\u001b[1;32m 9\u001b[0m )\n\u001b[0;32m---> 10\u001b[0m pubs \u001b[39m=\u001b[39m poisApi\u001b[39m.\u001b[39;49mpois_post(body)\u001b[39m.\u001b[39mfeatures\n\u001b[1;32m 12\u001b[0m \u001b[39m# Amount of pubs in Kreuzberg\u001b[39;00m\n\u001b[1;32m 13\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39m\\n\u001b[39;00m\u001b[39mAmount of pubs: \u001b[39m\u001b[39m{}\u001b[39;00m\u001b[39m\"\u001b[39m\u001b[39m.\u001b[39mformat(\u001b[39mlen\u001b[39m(pubs)))\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:54\u001b[0m, in \u001b[0;36mPoisApi.pois_post\u001b[0;34m(self, body, **kwargs)\u001b[0m\n\u001b[1;32m 52\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mpois_post_with_http_info(body, \u001b[39m*\u001b[39m\u001b[39m*\u001b[39mkwargs) \u001b[39m# noqa: E501\u001b[39;00m\n\u001b[1;32m 53\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[0;32m---> 54\u001b[0m (data) \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mpois_post_with_http_info(body, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkwargs) \u001b[39m# noqa: E501\u001b[39;00m\n\u001b[1;32m 55\u001b[0m \u001b[39mreturn\u001b[39;00m data\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:118\u001b[0m, in \u001b[0;36mPoisApi.pois_post_with_http_info\u001b[0;34m(self, body, **kwargs)\u001b[0m\n\u001b[1;32m 115\u001b[0m \u001b[39m# Authentication setting\u001b[39;00m\n\u001b[1;32m 116\u001b[0m auth_settings \u001b[39m=\u001b[39m [\u001b[39m'\u001b[39m\u001b[39mApiKeyAuth\u001b[39m\u001b[39m'\u001b[39m] \u001b[39m# noqa: E501\u001b[39;00m\n\u001b[0;32m--> 118\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mapi_client\u001b[39m.\u001b[39;49mcall_api(\n\u001b[1;32m 119\u001b[0m \u001b[39m'\u001b[39;49m\u001b[39m/pois\u001b[39;49m\u001b[39m'\u001b[39;49m, \u001b[39m'\u001b[39;49m\u001b[39mPOST\u001b[39;49m\u001b[39m'\u001b[39;49m,\n\u001b[1;32m 120\u001b[0m path_params,\n\u001b[1;32m 121\u001b[0m query_params,\n\u001b[1;32m 122\u001b[0m header_params,\n\u001b[1;32m 123\u001b[0m body\u001b[39m=\u001b[39;49mbody_params,\n\u001b[1;32m 124\u001b[0m post_params\u001b[39m=\u001b[39;49mform_params,\n\u001b[1;32m 125\u001b[0m files\u001b[39m=\u001b[39;49mlocal_var_files,\n\u001b[1;32m 126\u001b[0m response_type\u001b[39m=\u001b[39;49m\u001b[39m'\u001b[39;49m\u001b[39mOpenpoiservicePoiResponse\u001b[39;49m\u001b[39m'\u001b[39;49m, \u001b[39m# noqa: E501\u001b[39;49;00m\n\u001b[1;32m 127\u001b[0m auth_settings\u001b[39m=\u001b[39;49mauth_settings,\n\u001b[1;32m 128\u001b[0m async_req\u001b[39m=\u001b[39;49mparams\u001b[39m.\u001b[39;49mget(\u001b[39m'\u001b[39;49m\u001b[39masync_req\u001b[39;49m\u001b[39m'\u001b[39;49m),\n\u001b[1;32m 129\u001b[0m _return_http_data_only\u001b[39m=\u001b[39;49mparams\u001b[39m.\u001b[39;49mget(\u001b[39m'\u001b[39;49m\u001b[39m_return_http_data_only\u001b[39;49m\u001b[39m'\u001b[39;49m),\n\u001b[1;32m 130\u001b[0m _preload_content\u001b[39m=\u001b[39;49mparams\u001b[39m.\u001b[39;49mget(\u001b[39m'\u001b[39;49m\u001b[39m_preload_content\u001b[39;49m\u001b[39m'\u001b[39;49m, \u001b[39mTrue\u001b[39;49;00m),\n\u001b[1;32m 131\u001b[0m _request_timeout\u001b[39m=\u001b[39;49mparams\u001b[39m.\u001b[39;49mget(\u001b[39m'\u001b[39;49m\u001b[39m_request_timeout\u001b[39;49m\u001b[39m'\u001b[39;49m),\n\u001b[1;32m 132\u001b[0m collection_formats\u001b[39m=\u001b[39;49mcollection_formats)\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:316\u001b[0m, in \u001b[0;36mApiClient.call_api\u001b[0;34m(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout)\u001b[0m\n\u001b[1;32m 279\u001b[0m \u001b[39m\u001b[39m\u001b[39m\"\"\"Makes the HTTP request (synchronous) and returns deserialized data.\u001b[39;00m\n\u001b[1;32m 280\u001b[0m \n\u001b[1;32m 281\u001b[0m \u001b[39mTo make an async request, set the async_req parameter.\u001b[39;00m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 313\u001b[0m \u001b[39m then the method will return the response directly.\u001b[39;00m\n\u001b[1;32m 314\u001b[0m \u001b[39m\"\"\"\u001b[39;00m\n\u001b[1;32m 315\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m async_req:\n\u001b[0;32m--> 316\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m__call_api(resource_path, method,\n\u001b[1;32m 317\u001b[0m path_params, query_params, header_params,\n\u001b[1;32m 318\u001b[0m body, post_params, files,\n\u001b[1;32m 319\u001b[0m response_type, auth_settings,\n\u001b[1;32m 320\u001b[0m _return_http_data_only, collection_formats,\n\u001b[1;32m 321\u001b[0m _preload_content, _request_timeout)\n\u001b[1;32m 322\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[1;32m 323\u001b[0m thread \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mpool\u001b[39m.\u001b[39mapply_async(\u001b[39mself\u001b[39m\u001b[39m.\u001b[39m__call_api, (resource_path,\n\u001b[1;32m 324\u001b[0m method, path_params, query_params,\n\u001b[1;32m 325\u001b[0m header_params, body,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 329\u001b[0m collection_formats,\n\u001b[1;32m 330\u001b[0m _preload_content, _request_timeout))\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:148\u001b[0m, in \u001b[0;36mApiClient.__call_api\u001b[0;34m(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout)\u001b[0m\n\u001b[1;32m 145\u001b[0m url \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mconfiguration\u001b[39m.\u001b[39mhost \u001b[39m+\u001b[39m resource_path\n\u001b[1;32m 147\u001b[0m \u001b[39m# perform request and return response\u001b[39;00m\n\u001b[0;32m--> 148\u001b[0m response_data \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mrequest(\n\u001b[1;32m 149\u001b[0m method, url, query_params\u001b[39m=\u001b[39;49mquery_params, headers\u001b[39m=\u001b[39;49mheader_params,\n\u001b[1;32m 150\u001b[0m post_params\u001b[39m=\u001b[39;49mpost_params, body\u001b[39m=\u001b[39;49mbody,\n\u001b[1;32m 151\u001b[0m _preload_content\u001b[39m=\u001b[39;49m_preload_content,\n\u001b[1;32m 152\u001b[0m _request_timeout\u001b[39m=\u001b[39;49m_request_timeout)\n\u001b[1;32m 154\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mlast_response \u001b[39m=\u001b[39m response_data\n\u001b[1;32m 156\u001b[0m return_data \u001b[39m=\u001b[39m response_data\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:358\u001b[0m, in \u001b[0;36mApiClient.request\u001b[0;34m(self, method, url, query_params, headers, post_params, body, _preload_content, _request_timeout)\u001b[0m\n\u001b[1;32m 350\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mrest_client\u001b[39m.\u001b[39mOPTIONS(url,\n\u001b[1;32m 351\u001b[0m query_params\u001b[39m=\u001b[39mquery_params,\n\u001b[1;32m 352\u001b[0m headers\u001b[39m=\u001b[39mheaders,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 355\u001b[0m _request_timeout\u001b[39m=\u001b[39m_request_timeout,\n\u001b[1;32m 356\u001b[0m body\u001b[39m=\u001b[39mbody)\n\u001b[1;32m 357\u001b[0m \u001b[39melif\u001b[39;00m method \u001b[39m==\u001b[39m \u001b[39m\"\u001b[39m\u001b[39mPOST\u001b[39m\u001b[39m\"\u001b[39m:\n\u001b[0;32m--> 358\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mrest_client\u001b[39m.\u001b[39;49mPOST(url,\n\u001b[1;32m 359\u001b[0m query_params\u001b[39m=\u001b[39;49mquery_params,\n\u001b[1;32m 360\u001b[0m headers\u001b[39m=\u001b[39;49mheaders,\n\u001b[1;32m 361\u001b[0m post_params\u001b[39m=\u001b[39;49mpost_params,\n\u001b[1;32m 362\u001b[0m _preload_content\u001b[39m=\u001b[39;49m_preload_content,\n\u001b[1;32m 363\u001b[0m _request_timeout\u001b[39m=\u001b[39;49m_request_timeout,\n\u001b[1;32m 364\u001b[0m body\u001b[39m=\u001b[39;49mbody)\n\u001b[1;32m 365\u001b[0m \u001b[39melif\u001b[39;00m method \u001b[39m==\u001b[39m \u001b[39m\"\u001b[39m\u001b[39mPUT\u001b[39m\u001b[39m\"\u001b[39m:\n\u001b[1;32m 366\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mrest_client\u001b[39m.\u001b[39mPUT(url,\n\u001b[1;32m 367\u001b[0m query_params\u001b[39m=\u001b[39mquery_params,\n\u001b[1;32m 368\u001b[0m headers\u001b[39m=\u001b[39mheaders,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 371\u001b[0m _request_timeout\u001b[39m=\u001b[39m_request_timeout,\n\u001b[1;32m 372\u001b[0m body\u001b[39m=\u001b[39mbody)\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:263\u001b[0m, in \u001b[0;36mRESTClientObject.POST\u001b[0;34m(self, url, headers, query_params, post_params, body, _preload_content, _request_timeout)\u001b[0m\n\u001b[1;32m 261\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39mPOST\u001b[39m(\u001b[39mself\u001b[39m, url, headers\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m, query_params\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m, post_params\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m,\n\u001b[1;32m 262\u001b[0m body\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m, _preload_content\u001b[39m=\u001b[39m\u001b[39mTrue\u001b[39;00m, _request_timeout\u001b[39m=\u001b[39m\u001b[39mNone\u001b[39;00m):\n\u001b[0;32m--> 263\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mrequest(\u001b[39m\"\u001b[39;49m\u001b[39mPOST\u001b[39;49m\u001b[39m\"\u001b[39;49m, url,\n\u001b[1;32m 264\u001b[0m headers\u001b[39m=\u001b[39;49mheaders,\n\u001b[1;32m 265\u001b[0m query_params\u001b[39m=\u001b[39;49mquery_params,\n\u001b[1;32m 266\u001b[0m post_params\u001b[39m=\u001b[39;49mpost_params,\n\u001b[1;32m 267\u001b[0m _preload_content\u001b[39m=\u001b[39;49m_preload_content,\n\u001b[1;32m 268\u001b[0m _request_timeout\u001b[39m=\u001b[39;49m_request_timeout,\n\u001b[1;32m 269\u001b[0m body\u001b[39m=\u001b[39;49mbody)\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:161\u001b[0m, in \u001b[0;36mRESTClientObject.request\u001b[0;34m(self, method, url, query_params, headers, body, post_params, _preload_content, _request_timeout)\u001b[0m\n\u001b[1;32m 159\u001b[0m \u001b[39mif\u001b[39;00m body \u001b[39mis\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[1;32m 160\u001b[0m request_body \u001b[39m=\u001b[39m json\u001b[39m.\u001b[39mdumps(body)\n\u001b[0;32m--> 161\u001b[0m r \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mpool_manager\u001b[39m.\u001b[39;49mrequest(\n\u001b[1;32m 162\u001b[0m method, url,\n\u001b[1;32m 163\u001b[0m body\u001b[39m=\u001b[39;49mrequest_body,\n\u001b[1;32m 164\u001b[0m preload_content\u001b[39m=\u001b[39;49m_preload_content,\n\u001b[1;32m 165\u001b[0m timeout\u001b[39m=\u001b[39;49mtimeout,\n\u001b[1;32m 166\u001b[0m headers\u001b[39m=\u001b[39;49mheaders)\n\u001b[1;32m 167\u001b[0m \u001b[39melif\u001b[39;00m headers[\u001b[39m'\u001b[39m\u001b[39mContent-Type\u001b[39m\u001b[39m'\u001b[39m] \u001b[39m==\u001b[39m \u001b[39m'\u001b[39m\u001b[39mapplication/x-www-form-urlencoded\u001b[39m\u001b[39m'\u001b[39m: \u001b[39m# noqa: E501\u001b[39;00m\n\u001b[1;32m 168\u001b[0m r \u001b[39m=\u001b[39m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mpool_manager\u001b[39m.\u001b[39mrequest(\n\u001b[1;32m 169\u001b[0m method, url,\n\u001b[1;32m 170\u001b[0m fields\u001b[39m=\u001b[39mpost_params,\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 173\u001b[0m timeout\u001b[39m=\u001b[39mtimeout,\n\u001b[1;32m 174\u001b[0m headers\u001b[39m=\u001b[39mheaders)\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/request.py:78\u001b[0m, in \u001b[0;36mRequestMethods.request\u001b[0;34m(self, method, url, fields, headers, **urlopen_kw)\u001b[0m\n\u001b[1;32m 74\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mrequest_encode_url(\n\u001b[1;32m 75\u001b[0m method, url, fields\u001b[39m=\u001b[39mfields, headers\u001b[39m=\u001b[39mheaders, \u001b[39m*\u001b[39m\u001b[39m*\u001b[39murlopen_kw\n\u001b[1;32m 76\u001b[0m )\n\u001b[1;32m 77\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[0;32m---> 78\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mrequest_encode_body(\n\u001b[1;32m 79\u001b[0m method, url, fields\u001b[39m=\u001b[39;49mfields, headers\u001b[39m=\u001b[39;49mheaders, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49murlopen_kw\n\u001b[1;32m 80\u001b[0m )\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/request.py:170\u001b[0m, in \u001b[0;36mRequestMethods.request_encode_body\u001b[0;34m(self, method, url, fields, headers, encode_multipart, multipart_boundary, **urlopen_kw)\u001b[0m\n\u001b[1;32m 167\u001b[0m extra_kw[\u001b[39m\"\u001b[39m\u001b[39mheaders\u001b[39m\u001b[39m\"\u001b[39m]\u001b[39m.\u001b[39mupdate(headers)\n\u001b[1;32m 168\u001b[0m extra_kw\u001b[39m.\u001b[39mupdate(urlopen_kw)\n\u001b[0;32m--> 170\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49murlopen(method, url, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mextra_kw)\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/poolmanager.py:376\u001b[0m, in \u001b[0;36mPoolManager.urlopen\u001b[0;34m(self, method, url, redirect, **kw)\u001b[0m\n\u001b[1;32m 374\u001b[0m response \u001b[39m=\u001b[39m conn\u001b[39m.\u001b[39murlopen(method, url, \u001b[39m*\u001b[39m\u001b[39m*\u001b[39mkw)\n\u001b[1;32m 375\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[0;32m--> 376\u001b[0m response \u001b[39m=\u001b[39m conn\u001b[39m.\u001b[39;49murlopen(method, u\u001b[39m.\u001b[39;49mrequest_uri, \u001b[39m*\u001b[39;49m\u001b[39m*\u001b[39;49mkw)\n\u001b[1;32m 378\u001b[0m redirect_location \u001b[39m=\u001b[39m redirect \u001b[39mand\u001b[39;00m response\u001b[39m.\u001b[39mget_redirect_location()\n\u001b[1;32m 379\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m redirect_location:\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:714\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[0;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)\u001b[0m\n\u001b[1;32m 711\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_prepare_proxy(conn)\n\u001b[1;32m 713\u001b[0m \u001b[39m# Make the request on the httplib connection object.\u001b[39;00m\n\u001b[0;32m--> 714\u001b[0m httplib_response \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_make_request(\n\u001b[1;32m 715\u001b[0m conn,\n\u001b[1;32m 716\u001b[0m method,\n\u001b[1;32m 717\u001b[0m url,\n\u001b[1;32m 718\u001b[0m timeout\u001b[39m=\u001b[39;49mtimeout_obj,\n\u001b[1;32m 719\u001b[0m body\u001b[39m=\u001b[39;49mbody,\n\u001b[1;32m 720\u001b[0m headers\u001b[39m=\u001b[39;49mheaders,\n\u001b[1;32m 721\u001b[0m chunked\u001b[39m=\u001b[39;49mchunked,\n\u001b[1;32m 722\u001b[0m )\n\u001b[1;32m 724\u001b[0m \u001b[39m# If we're going to release the connection in ``finally:``, then\u001b[39;00m\n\u001b[1;32m 725\u001b[0m \u001b[39m# the response doesn't need to know about the connection. Otherwise\u001b[39;00m\n\u001b[1;32m 726\u001b[0m \u001b[39m# it will also try to release it and we'll have a double-release\u001b[39;00m\n\u001b[1;32m 727\u001b[0m \u001b[39m# mess.\u001b[39;00m\n\u001b[1;32m 728\u001b[0m response_conn \u001b[39m=\u001b[39m conn \u001b[39mif\u001b[39;00m \u001b[39mnot\u001b[39;00m release_conn \u001b[39melse\u001b[39;00m \u001b[39mNone\u001b[39;00m\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:466\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, timeout, chunked, **httplib_request_kw)\u001b[0m\n\u001b[1;32m 461\u001b[0m httplib_response \u001b[39m=\u001b[39m conn\u001b[39m.\u001b[39mgetresponse()\n\u001b[1;32m 462\u001b[0m \u001b[39mexcept\u001b[39;00m \u001b[39mBaseException\u001b[39;00m \u001b[39mas\u001b[39;00m e:\n\u001b[1;32m 463\u001b[0m \u001b[39m# Remove the TypeError from the exception chain in\u001b[39;00m\n\u001b[1;32m 464\u001b[0m \u001b[39m# Python 3 (including for exceptions like SystemExit).\u001b[39;00m\n\u001b[1;32m 465\u001b[0m \u001b[39m# Otherwise it looks like a bug in the code.\u001b[39;00m\n\u001b[0;32m--> 466\u001b[0m six\u001b[39m.\u001b[39;49mraise_from(e, \u001b[39mNone\u001b[39;49;00m)\n\u001b[1;32m 467\u001b[0m \u001b[39mexcept\u001b[39;00m (SocketTimeout, BaseSSLError, SocketError) \u001b[39mas\u001b[39;00m e:\n\u001b[1;32m 468\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_raise_timeout(err\u001b[39m=\u001b[39me, url\u001b[39m=\u001b[39murl, timeout_value\u001b[39m=\u001b[39mread_timeout)\n",
+ "File \u001b[0;32m:3\u001b[0m, in \u001b[0;36mraise_from\u001b[0;34m(value, from_value)\u001b[0m\n",
+ "File \u001b[0;32m~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:461\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[0;34m(self, conn, method, url, timeout, chunked, **httplib_request_kw)\u001b[0m\n\u001b[1;32m 458\u001b[0m \u001b[39mexcept\u001b[39;00m \u001b[39mTypeError\u001b[39;00m:\n\u001b[1;32m 459\u001b[0m \u001b[39m# Python 3\u001b[39;00m\n\u001b[1;32m 460\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m--> 461\u001b[0m httplib_response \u001b[39m=\u001b[39m conn\u001b[39m.\u001b[39;49mgetresponse()\n\u001b[1;32m 462\u001b[0m \u001b[39mexcept\u001b[39;00m \u001b[39mBaseException\u001b[39;00m \u001b[39mas\u001b[39;00m e:\n\u001b[1;32m 463\u001b[0m \u001b[39m# Remove the TypeError from the exception chain in\u001b[39;00m\n\u001b[1;32m 464\u001b[0m \u001b[39m# Python 3 (including for exceptions like SystemExit).\u001b[39;00m\n\u001b[1;32m 465\u001b[0m \u001b[39m# Otherwise it looks like a bug in the code.\u001b[39;00m\n\u001b[1;32m 466\u001b[0m six\u001b[39m.\u001b[39mraise_from(e, \u001b[39mNone\u001b[39;00m)\n",
+ "File \u001b[0;32m/usr/lib/python3.10/http/client.py:1375\u001b[0m, in \u001b[0;36mHTTPConnection.getresponse\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 1373\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[1;32m 1374\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m-> 1375\u001b[0m response\u001b[39m.\u001b[39;49mbegin()\n\u001b[1;32m 1376\u001b[0m \u001b[39mexcept\u001b[39;00m \u001b[39mConnectionError\u001b[39;00m:\n\u001b[1;32m 1377\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39mclose()\n",
+ "File \u001b[0;32m/usr/lib/python3.10/http/client.py:318\u001b[0m, in \u001b[0;36mHTTPResponse.begin\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 316\u001b[0m \u001b[39m# read until we get a non-100 response\u001b[39;00m\n\u001b[1;32m 317\u001b[0m \u001b[39mwhile\u001b[39;00m \u001b[39mTrue\u001b[39;00m:\n\u001b[0;32m--> 318\u001b[0m version, status, reason \u001b[39m=\u001b[39m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_read_status()\n\u001b[1;32m 319\u001b[0m \u001b[39mif\u001b[39;00m status \u001b[39m!=\u001b[39m CONTINUE:\n\u001b[1;32m 320\u001b[0m \u001b[39mbreak\u001b[39;00m\n",
+ "File \u001b[0;32m/usr/lib/python3.10/http/client.py:279\u001b[0m, in \u001b[0;36mHTTPResponse._read_status\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m 278\u001b[0m \u001b[39mdef\u001b[39;00m \u001b[39m_read_status\u001b[39m(\u001b[39mself\u001b[39m):\n\u001b[0;32m--> 279\u001b[0m line \u001b[39m=\u001b[39m \u001b[39mstr\u001b[39m(\u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mfp\u001b[39m.\u001b[39;49mreadline(_MAXLINE \u001b[39m+\u001b[39;49m \u001b[39m1\u001b[39;49m), \u001b[39m\"\u001b[39m\u001b[39miso-8859-1\u001b[39m\u001b[39m\"\u001b[39m)\n\u001b[1;32m 280\u001b[0m \u001b[39mif\u001b[39;00m \u001b[39mlen\u001b[39m(line) \u001b[39m>\u001b[39m _MAXLINE:\n\u001b[1;32m 281\u001b[0m \u001b[39mraise\u001b[39;00m LineTooLong(\u001b[39m\"\u001b[39m\u001b[39mstatus line\u001b[39m\u001b[39m\"\u001b[39m)\n",
+ "File \u001b[0;32m/usr/lib/python3.10/socket.py:705\u001b[0m, in \u001b[0;36mSocketIO.readinto\u001b[0;34m(self, b)\u001b[0m\n\u001b[1;32m 703\u001b[0m \u001b[39mwhile\u001b[39;00m \u001b[39mTrue\u001b[39;00m:\n\u001b[1;32m 704\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[0;32m--> 705\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_sock\u001b[39m.\u001b[39;49mrecv_into(b)\n\u001b[1;32m 706\u001b[0m \u001b[39mexcept\u001b[39;00m timeout:\n\u001b[1;32m 707\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_timeout_occurred \u001b[39m=\u001b[39m \u001b[39mTrue\u001b[39;00m\n",
+ "File \u001b[0;32m/usr/lib/python3.10/ssl.py:1274\u001b[0m, in \u001b[0;36mSSLSocket.recv_into\u001b[0;34m(self, buffer, nbytes, flags)\u001b[0m\n\u001b[1;32m 1270\u001b[0m \u001b[39mif\u001b[39;00m flags \u001b[39m!=\u001b[39m \u001b[39m0\u001b[39m:\n\u001b[1;32m 1271\u001b[0m \u001b[39mraise\u001b[39;00m \u001b[39mValueError\u001b[39;00m(\n\u001b[1;32m 1272\u001b[0m \u001b[39m\"\u001b[39m\u001b[39mnon-zero flags not allowed in calls to recv_into() on \u001b[39m\u001b[39m%s\u001b[39;00m\u001b[39m\"\u001b[39m \u001b[39m%\u001b[39m\n\u001b[1;32m 1273\u001b[0m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m\u001b[39m__class__\u001b[39m)\n\u001b[0;32m-> 1274\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49mread(nbytes, buffer)\n\u001b[1;32m 1275\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[1;32m 1276\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39msuper\u001b[39m()\u001b[39m.\u001b[39mrecv_into(buffer, nbytes, flags)\n",
+ "File \u001b[0;32m/usr/lib/python3.10/ssl.py:1130\u001b[0m, in \u001b[0;36mSSLSocket.read\u001b[0;34m(self, len, buffer)\u001b[0m\n\u001b[1;32m 1128\u001b[0m \u001b[39mtry\u001b[39;00m:\n\u001b[1;32m 1129\u001b[0m \u001b[39mif\u001b[39;00m buffer \u001b[39mis\u001b[39;00m \u001b[39mnot\u001b[39;00m \u001b[39mNone\u001b[39;00m:\n\u001b[0;32m-> 1130\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39;49m\u001b[39m.\u001b[39;49m_sslobj\u001b[39m.\u001b[39;49mread(\u001b[39mlen\u001b[39;49m, buffer)\n\u001b[1;32m 1131\u001b[0m \u001b[39melse\u001b[39;00m:\n\u001b[1;32m 1132\u001b[0m \u001b[39mreturn\u001b[39;00m \u001b[39mself\u001b[39m\u001b[39m.\u001b[39m_sslobj\u001b[39m.\u001b[39mread(\u001b[39mlen\u001b[39m)\n",
+ "\u001b[0;31mKeyboardInterrupt\u001b[0m: "
+ ]
+ }
+ ],
+ "source": [
+ "aoi_json = geometry.mapping(geometry.shape(aoi_geom))\n",
+ "\n",
+ "poisApi = ors.PoisApi(ors.ApiClient(configuration))\n",
+ "body = ors.OpenpoiservicePoiRequest(\n",
+ " request='pois',\n",
+ " geometry=ors.PoisGeometry(geojson=aoi_json),\n",
+ " filters=ors.PoisFilters(category_ids=[569]),\n",
+ " sortby='distance'\n",
+ ")\n",
+ "pubs = poisApi.pois_post(body).features\n",
+ "\n",
+ "# Amount of pubs in Kreuzberg\n",
+ "print(\"\\nAmount of pubs: {}\".format(len(pubs)))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Nearly 100 bars in one night might be a stretch, even for such a resilient species.\n",
+ "Coincidentally, the rate of smokers is disproportionally high within the undergrad geo community.\n",
+ "So, we really would like to hang out in smoker bars:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "\n",
+ "Amount of smoker pubs: 23\n"
+ ]
+ }
+ ],
+ "source": [
+ "body.filters.smoking=['yes'] # Filter out smoker bars\n",
+ "pubs_smoker = poisApi.pois_post(body).features\n",
+ "\n",
+ "print(\"\\nAmount of smoker pubs: {}\".format(len(pubs_smoker)))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "A bit better. Let's see where they are.\n",
+ "\n",
+ "**Optionally**, use the [**Geocoding API**](https://openrouteservice.org/dev/#/api-docs/geocode) to get representable names.\n",
+ "Note, it'll be 25 API calls.\n",
+ "Means, you can only run one per minute."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
"
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "execution_count": 8,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "pubs_addresses = []\n",
+ "\n",
+ "geocodeApi = ors.GeocodeApi(ors.ApiClient(configuration))\n",
+ "\n",
+ "for feat in pubs_smoker:\n",
+ " lon, lat = feat.geometry.coordinates\n",
+ " response = geocodeApi.geocode_reverse_get(lon, lat)\n",
+ " name = response.features[0][\"properties\"][\"name\"]\n",
+ " popup = \"{0} Lat: {1:.3f} Long: {2:.3f}\".format(name, lat, lon)\n",
+ " icon = folium.map.Icon(color='lightgray',\n",
+ " icon_color='#b5231a',\n",
+ " icon='beer', # fetches font-awesome.io symbols\n",
+ " prefix='fa')\n",
+ " folium.map.Marker([lat, lon], icon=icon, popup=popup).add_to(m)\n",
+ " pubs_addresses.append(name)\n",
+ "\n",
+ "# folium.map.LayerControl().add_to(m)\n",
+ "m"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Ok, we have an idea where we go.\n",
+ "But, not in which order.\n",
+ "To determine the optimal route, we first have to know the distance between all pubs.\n",
+ "We can conveniently solve this with the [**Matrix API**](https://openrouteservice.org/dev/#/api-docs/matrix).\n",
+ "> I'd have like to do this example for biking/walking, but I realized too late that we restricted matrix calls to 5x5 locations for those profiles..."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Calculated 23x23 routes.\n"
+ ]
+ }
+ ],
+ "source": [
+ "pubs_coords = [feat.geometry.coordinates for feat in pubs_smoker]\n",
+ "\n",
+ "matrixApi = ors.MatrixServiceApi(ors.ApiClient(configuration))\n",
+ "body = ors.MatrixProfileBody(\n",
+ " locations=pubs_coords,\n",
+ " metrics=['duration']\n",
+ ")\n",
+ "profile = 'driving-car'\n",
+ "\n",
+ "pubs_matrix = matrixApi.get_default(body, profile)\n",
+ "\n",
+ "#pubs_matrix = ors.distance_matrix(**request)\n",
+ "print(\"Calculated {}x{} routes.\".format(len(pubs_matrix.durations), len(pubs_matrix.durations[0])))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Check, 23x23. So, we got the durations now in `pubs_matrix.durations`.\n",
+ "Then there's finally the great entrance of [**ortools**](https://github.com/google/or-tools).\n",
+ "\n",
+ "Note, this is a local search."
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {
+ "scrolled": true
+ },
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Total duration: 51.63333333333333 minutes\n",
+ "\n",
+ "Route:\n",
+ "Blücherstraße 61 -> Fürbringerstraße 20a -> Alptraum -> Wirtschaftswunder -> Rausch Gold -> Mehringdamm 67 -> Gneisenaustraße 2 -> Heidelberger Krug -> Reichenberger Straße 177 -> multilayerladen -> Trinkteufel -> Jodelkeller -> Zum Goldenen Hahn -> Rummels Perle -> Reichenberger Straße 133 -> Weiße Taube -> Skalitzer Straße 75 -> Platzwart Kickerbar -> milchbar -> Monarch -> Dieffenbachstraße 36 -> Bierhaus Urban -> Urbanstraße 30 -> Blücherstraße 61\n"
+ ]
+ }
+ ],
+ "source": [
+ "from ortools.constraint_solver import pywrapcp\n",
+ "\n",
+ "tsp_size = len(pubs_addresses)\n",
+ "num_routes = 1\n",
+ "start = 0 # arbitrary start location\n",
+ "coords_aoi = [(y, x) for x, y in aoi_coords] # swap (x,y) to (y,x)\n",
+ "\n",
+ "optimal_coords = []\n",
+ "\n",
+ "if tsp_size > 0:\n",
+ "\n",
+ " # Old Stuff kept for reference\n",
+ " # routing = pywrapcp.RoutingModel(tsp_size, num_routes, start)\n",
+ "\n",
+ " # New Way according to ortools v7.0 docs (https://developers.google.com/optimization/support/release_notes#announcing-the-release-of-or-tools-v70)\n",
+ " # manager = pywrapcp.RoutingIndexManager(num_locations, num_vehicles, depot)\n",
+ " # routing = pywrapcp.RoutingModel(manager)\n",
+ "\n",
+ " # Adaption according to old and new way\n",
+ " manager = pywrapcp.RoutingIndexManager(tsp_size, num_routes, start)\n",
+ " routing = pywrapcp.RoutingModel(manager)\n",
+ "\n",
+ "\n",
+ " # Create the distance callback, which takes two arguments (the from and to node indices)\n",
+ " # and returns the distance between these nodes.\n",
+ " def distance_callback(from_index, to_index):\n",
+ " \"\"\"Returns the distance between the two nodes.\"\"\"\n",
+ " # Convert from routing variable Index to distance matrix NodeIndex.\n",
+ " from_node = manager.IndexToNode(from_index)\n",
+ " to_node = manager.IndexToNode(to_index)\n",
+ " return int(pubs_matrix.durations[from_node][to_node])\n",
+ "\n",
+ "\n",
+ " # Since v7.0, this also needs to be wrapped:\n",
+ " transit_callback_index = routing.RegisterTransitCallback(distance_callback)\n",
+ "\n",
+ " routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)\n",
+ " # Solve, returns a solution if any.\n",
+ " assignment = routing.Solve()\n",
+ " if assignment:\n",
+ " # Total cost of the 'optimal' solution.\n",
+ " print(\"Total duration: \" + str(round(assignment.ObjectiveValue(), 3) / 60) + \" minutes\\n\")\n",
+ " index = routing.Start(start) # Index of the variable for the starting node.\n",
+ " route = ''\n",
+ " # while not routing.IsEnd(index):\n",
+ " for node in range(routing.nodes()):\n",
+ " # IndexToNode has been moved from the RoutingModel to the RoutingIndexManager\n",
+ " optimal_coords.append(pubs_coords[manager.IndexToNode(index)])\n",
+ " route += str(pubs_addresses[manager.IndexToNode(index)]) + ' -> '\n",
+ " index = assignment.Value(routing.NextVar(index))\n",
+ " route += str(pubs_addresses[manager.IndexToNode(index)])\n",
+ " optimal_coords.append(pubs_coords[manager.IndexToNode(index)])\n",
+ " print(\"Route:\\n\" + route)"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Visualizing both, the optimal route, and the more or less random waypoint order of the initial GeoJSON, look like this:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
Make this Notebook Trusted to load map: File -> Trust Notebook
"
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "execution_count": 11,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
+ "source": [
+ "def style_function(color):\n",
+ " return lambda feature: dict(color=color,\n",
+ " weight=3,\n",
+ " opacity=1)\n",
+ "\n",
+ "\n",
+ "# See what a 'random' tour would have been\n",
+ "pubs_coords.append(pubs_coords[0])\n",
+ "body = ors.DirectionsService(\n",
+ " coordinates=pubs_coords,\n",
+ " geometry=True\n",
+ ")\n",
+ "profile = 'driving-car'\n",
+ "\n",
+ "directionsApi = ors.DirectionsServiceApi(ors.ApiClient(configuration))\n",
+ "random_route = directionsApi.get_geo_json_route(body, profile)\n",
+ "\n",
+ "folium.features.GeoJson(data=ors.todict(random_route),\n",
+ " name='Random Bar Crawl',\n",
+ " style_function=style_function('#84e184'),\n",
+ " overlay=True).add_to(m)\n",
+ "\n",
+ "# And now the optimal route\n",
+ "body.coordinates = optimal_coords\n",
+ "optimal_route = directionsApi.get_geo_json_route(body, profile)\n",
+ "folium.features.GeoJson(data=ors.todict(optimal_route),\n",
+ " name='Optimal Bar Crawl',\n",
+ " style_function=style_function('#6666ff'),\n",
+ " overlay=True).add_to(m)\n",
+ "\n",
+ "m.add_child(folium.map.LayerControl())\n",
+ "m"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "The purple route looks a bit less painful. Let's see what the actual numbers say:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "Duration optimal route: 51.857 mins\n",
+ "Duration random route: 139.505 mins\n"
+ ]
+ }
+ ],
+ "source": [
+ "optimal_duration = 0\n",
+ "random_duration = 0\n",
+ "\n",
+ "optimal_duration = optimal_route.features[0]['properties']['summary']['duration'] / 60\n",
+ "random_duration = random_route.features[0]['properties']['summary']['duration'] / 60\n",
+ "\n",
+ "print(\"Duration optimal route: {0:.3f} mins\\nDuration random route: {1:.3f} mins\".format(optimal_duration,\n",
+ " random_duration))"
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "Optimizing that route saved us a good 120€ worth of taxi costs."
+ ]
+ }
+ ],
+ "metadata": {
+ "jupytext": {
+ "encoding": "# -*- coding: utf-8 -*-",
+ "formats": "ipynb,py:light"
+ },
+ "kernelspec": {
+ "display_name": "Python 3 (ipykernel)",
+ "language": "python",
+ "name": "python3"
+ },
+ "language_info": {
+ "codemirror_mode": {
+ "name": "ipython",
+ "version": 3
+ },
+ "file_extension": ".py",
+ "mimetype": "text/x-python",
+ "name": "python",
+ "nbconvert_exporter": "python",
+ "pygments_lexer": "ipython3",
+ "version": "3.10.12"
+ }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 4
+}
diff --git a/git_push.sh b/git_push.sh
new file mode 100644
index 00000000..ae01b182
--- /dev/null
+++ b/git_push.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
+#
+# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
+
+git_user_id=$1
+git_repo_id=$2
+release_note=$3
+
+if [ "$git_user_id" = "" ]; then
+ git_user_id="GIT_USER_ID"
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
+fi
+
+if [ "$git_repo_id" = "" ]; then
+ git_repo_id="GIT_REPO_ID"
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
+fi
+
+if [ "$release_note" = "" ]; then
+ release_note="Minor update"
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
+fi
+
+# Initialize the local directory as a Git repository
+git init
+
+# Adds the files in the local repository and stages them for commit.
+git add .
+
+# Commits the tracked changes and prepares them to be pushed to a remote repository.
+git commit -m "$release_note"
+
+# Sets the new remote
+git_remote=`git remote`
+if [ "$git_remote" = "" ]; then # git remote not defined
+
+ if [ "$GIT_TOKEN" = "" ]; then
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
+ else
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
+ fi
+
+fi
+
+git pull origin master
+
+# Pushes (Forces) the changes in the local repository up to the remote repository
+echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
+git push origin master 2>&1 | grep -v 'To https'
+
diff --git a/index.md b/index.md
new file mode 100644
index 00000000..ae568562
--- /dev/null
+++ b/index.md
@@ -0,0 +1,27 @@
+---
+# https://vitepress.dev/reference/default-theme-home-page
+layout: home
+
+hero:
+ name: "openrouteservice-py documentation"
+ tagline: "🐍 The Python API to consume openrouteservice(s) painlessly!"
+ actions:
+ - theme: brand
+ text: openrouteservice.org
+ link: https://openrouteservice.org
+ - theme: alt
+ text: API Playground
+ link: https://openrouteservice.org/dev/#/api-docs
+
+features:
+ - title: Getting started
+ details: Installation and usage of openrouteservice-py
+ link: /README
+ - title: Local instance
+ details: Use openrouteservice-py with your local instance
+ link: /README#local_ors_instance
+ - title: API Endpoints
+ details: Documentation for the API Endpoints that are available in openrouteservice-py
+ link: /README#documentation_for_api_endpoints
+---
+
diff --git a/openrouteservice/api/__init__.py b/openrouteservice/api/__init__.py
new file mode 100644
index 00000000..8f6da872
--- /dev/null
+++ b/openrouteservice/api/__init__.py
@@ -0,0 +1,12 @@
+from __future__ import absolute_import
+
+# flake8: noqa
+
+# import apis into api package
+from openrouteservice.api.directions_service_api import DirectionsServiceApi
+from openrouteservice.api.elevation_api import ElevationApi
+from openrouteservice.api.geocode_api import GeocodeApi
+from openrouteservice.api.isochrones_service_api import IsochronesServiceApi
+from openrouteservice.api.matrix_service_api import MatrixServiceApi
+from openrouteservice.api.optimization_api import OptimizationApi
+from openrouteservice.api.pois_api import PoisApi
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
new file mode 100644
index 00000000..f1aaa396
--- /dev/null
+++ b/openrouteservice/api/directions_service_api.py
@@ -0,0 +1,247 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class DirectionsServiceApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_geo_json_route(self, body, profile, **kwargs): # noqa: E501
+ """Directions Service GeoJSON # noqa: E501
+
+ Returns a route between two or more locations for a selected profile and its settings as GeoJSON # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_geo_json_route(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param DirectionsService body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2003
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_geo_json_route_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_geo_json_route_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Directions Service GeoJSON # noqa: E501
+
+ Returns a route between two or more locations for a selected profile and its settings as GeoJSON # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_geo_json_route_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param DirectionsService body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2003
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_geo_json_route" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_geo_json_route`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_geo_json_route`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/geo+json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/directions/{profile}/geojson', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2003', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_json_route(self, body, profile, **kwargs): # noqa: E501
+ """Directions Service JSON # noqa: E501
+
+ Returns a route between two or more locations for a selected profile and its settings as JSON # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_json_route(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param DirectionsService1 body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2004
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_json_route_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_json_route_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Directions Service JSON # noqa: E501
+
+ Returns a route between two or more locations for a selected profile and its settings as JSON # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_json_route_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param DirectionsService1 body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2004
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_json_route" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_json_route`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_json_route`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/directions/{profile}/json', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2004', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
new file mode 100644
index 00000000..63c4cc64
--- /dev/null
+++ b/openrouteservice/api/elevation_api.py
@@ -0,0 +1,335 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class ElevationApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def elevation_line_post(self, body, **kwargs): # noqa: E501
+ """Elevation Line Service # noqa: E501
+
+ 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 * Google's Encoded polyline 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]] }' ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_line_post(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ElevationLineBody body: Query the elevation of a line in various formats. (required)
+ :return: InlineResponse200
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.elevation_line_post_with_http_info(body, **kwargs) # noqa: E501
+ else:
+ (data) = self.elevation_line_post_with_http_info(body, **kwargs) # noqa: E501
+ return data
+
+ def elevation_line_post_with_http_info(self, body, **kwargs): # noqa: E501
+ """Elevation Line Service # noqa: E501
+
+ 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 * Google's Encoded polyline 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]] }' ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_line_post_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ElevationLineBody body: Query the elevation of a line in various formats. (required)
+ :return: InlineResponse200
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method elevation_line_post" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `elevation_line_post`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/elevation/line', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse200', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def elevation_point_get(self, geometry, **kwargs): # noqa: E501
+ """Elevation Point Service # noqa: E501
+
+ This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The output formats are: * GeoJSON * Point Example: ``` # GET point curl -XGET https://localhost:5000/elevation/point?geometry=13.349762,38.11295 ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_point_get(geometry, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[float] geometry: The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295] (required)
+ :param str format_out: The output format to be returned.
+ :param str dataset: The elevation dataset to be used.
+ :return: InlineResponse2001
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.elevation_point_get_with_http_info(geometry, **kwargs) # noqa: E501
+ else:
+ (data) = self.elevation_point_get_with_http_info(geometry, **kwargs) # noqa: E501
+ return data
+
+ def elevation_point_get_with_http_info(self, geometry, **kwargs): # noqa: E501
+ """Elevation Point Service # noqa: E501
+
+ This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The output formats are: * GeoJSON * Point Example: ``` # GET point curl -XGET https://localhost:5000/elevation/point?geometry=13.349762,38.11295 ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_point_get_with_http_info(geometry, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param list[float] geometry: The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295] (required)
+ :param str format_out: The output format to be returned.
+ :param str dataset: The elevation dataset to be used.
+ :return: InlineResponse2001
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['geometry', 'format_out', 'dataset'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method elevation_point_get" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'geometry' is set
+ if ('geometry' not in params or
+ params['geometry'] is None):
+ raise ValueError("Missing the required parameter `geometry` when calling `elevation_point_get`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'geometry' in params:
+ query_params.append(('geometry', params['geometry'])) # noqa: E501
+ collection_formats['geometry'] = 'csv' # noqa: E501
+ if 'format_out' in params:
+ query_params.append(('format_out', params['format_out'])) # noqa: E501
+ if 'dataset' in params:
+ query_params.append(('dataset', params['dataset'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/elevation/point', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2001', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def elevation_point_post(self, body, **kwargs): # noqa: E501
+ """Elevation Point Service # noqa: E501
+
+ This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The input and output formats are: * GeoJSON * Point Example: ``` # POST point as GeoJSON # https://api.openrouteservice.org/elevation/point?api_key=YOUR-KEY { \"format_in\": \"geojson\", \"format_out\": \"geojson\", \"geometry\": { \"coordinates\": [13.349762, 38.11295], \"type\": \"Point\" } } ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_point_post(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ElevationPointBody body: Query the elevation of a point in various formats. (required)
+ :return: InlineResponse2001
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.elevation_point_post_with_http_info(body, **kwargs) # noqa: E501
+ else:
+ (data) = self.elevation_point_post_with_http_info(body, **kwargs) # noqa: E501
+ return data
+
+ def elevation_point_post_with_http_info(self, body, **kwargs): # noqa: E501
+ """Elevation Point Service # noqa: E501
+
+ This endpoint can take a 2D point and enrich it with elevation from a variety of datasets. The input and output formats are: * GeoJSON * Point Example: ``` # POST point as GeoJSON # https://api.openrouteservice.org/elevation/point?api_key=YOUR-KEY { \"format_in\": \"geojson\", \"format_out\": \"geojson\", \"geometry\": { \"coordinates\": [13.349762, 38.11295], \"type\": \"Point\" } } ``` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.elevation_point_post_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ElevationPointBody body: Query the elevation of a point in various formats. (required)
+ :return: InlineResponse2001
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method elevation_point_post" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `elevation_point_post`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/elevation/point', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2001', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
new file mode 100644
index 00000000..f3d7c5e8
--- /dev/null
+++ b/openrouteservice/api/geocode_api.py
@@ -0,0 +1,617 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class GeocodeApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def geocode_autocomplete_get(self, text, **kwargs): # noqa: E501
+ """Geocode Autocomplete Service # noqa: E501
+
+ **Requests should be throttled when using this endpoint!** *Be aware that Responses are asynchronous.* Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/autocomplete.md) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_autocomplete_get(text, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str text: Name of location, street address or postal code. (required)
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.geocode_autocomplete_get_with_http_info(text, **kwargs) # noqa: E501
+ else:
+ (data) = self.geocode_autocomplete_get_with_http_info(text, **kwargs) # noqa: E501
+ return data
+
+ def geocode_autocomplete_get_with_http_info(self, text, **kwargs): # noqa: E501
+ """Geocode Autocomplete Service # noqa: E501
+
+ **Requests should be throttled when using this endpoint!** *Be aware that Responses are asynchronous.* Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/autocomplete.md) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_autocomplete_get_with_http_info(text, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str text: Name of location, street address or postal code. (required)
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['text', 'focus_point_lon', 'focus_point_lat', 'boundary_rect_min_lon', 'boundary_rect_min_lat', 'boundary_rect_max_lon', 'boundary_rect_max_lat', 'boundary_country', 'sources', 'layers'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method geocode_autocomplete_get" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'text' is set
+ if ('text' not in params or
+ params['text'] is None):
+ raise ValueError("Missing the required parameter `text` when calling `geocode_autocomplete_get`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'text' in params:
+ query_params.append(('text', params['text'])) # noqa: E501
+ if 'focus_point_lon' in params:
+ query_params.append(('focus.point.lon', params['focus_point_lon'])) # noqa: E501
+ if 'focus_point_lat' in params:
+ query_params.append(('focus.point.lat', params['focus_point_lat'])) # noqa: E501
+ if 'boundary_rect_min_lon' in params:
+ query_params.append(('boundary.rect.min_lon', params['boundary_rect_min_lon'])) # noqa: E501
+ if 'boundary_rect_min_lat' in params:
+ query_params.append(('boundary.rect.min_lat', params['boundary_rect_min_lat'])) # noqa: E501
+ if 'boundary_rect_max_lon' in params:
+ query_params.append(('boundary.rect.max_lon', params['boundary_rect_max_lon'])) # noqa: E501
+ if 'boundary_rect_max_lat' in params:
+ query_params.append(('boundary.rect.max_lat', params['boundary_rect_max_lat'])) # noqa: E501
+ if 'boundary_country' in params:
+ query_params.append(('boundary.country', params['boundary_country'])) # noqa: E501
+ if 'sources' in params:
+ query_params.append(('sources', params['sources'])) # noqa: E501
+ collection_formats['sources'] = 'multi' # noqa: E501
+ if 'layers' in params:
+ query_params.append(('layers', params['layers'])) # noqa: E501
+ collection_formats['layers'] = 'multi' # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/geocode/autocomplete', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GeocodeResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def geocode_reverse_get(self, point_lon, point_lat, **kwargs): # noqa: E501
+ """Reverse Geocode Service # noqa: E501
+
+ Returns the next enclosing object with an address tag which surrounds the given coordinate. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/reverse.md#reverse-geocoding) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_reverse_get(point_lon, point_lat, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param float point_lon: Longitude of the coordinate to query. (required)
+ :param float point_lat: Latitude of the coordinate to query. (required)
+ :param float boundary_circle_radius: Restrict search to circular region around `point.lat/point.lon`. Value in kilometers.
+ :param int size: Set the number of returned results.
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param str boundary_country: Restrict search to country by [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.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.geocode_reverse_get_with_http_info(point_lon, point_lat, **kwargs) # noqa: E501
+ else:
+ (data) = self.geocode_reverse_get_with_http_info(point_lon, point_lat, **kwargs) # noqa: E501
+ return data
+
+ def geocode_reverse_get_with_http_info(self, point_lon, point_lat, **kwargs): # noqa: E501
+ """Reverse Geocode Service # noqa: E501
+
+ Returns the next enclosing object with an address tag which surrounds the given coordinate. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/reverse.md#reverse-geocoding) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_reverse_get_with_http_info(point_lon, point_lat, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param float point_lon: Longitude of the coordinate to query. (required)
+ :param float point_lat: Latitude of the coordinate to query. (required)
+ :param float boundary_circle_radius: Restrict search to circular region around `point.lat/point.lon`. Value in kilometers.
+ :param int size: Set the number of returned results.
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param str boundary_country: Restrict search to country by [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.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['point_lon', 'point_lat', 'boundary_circle_radius', 'size', 'layers', 'sources', 'boundary_country'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method geocode_reverse_get" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'point_lon' is set
+ if ('point_lon' not in params or
+ params['point_lon'] is None):
+ raise ValueError("Missing the required parameter `point_lon` when calling `geocode_reverse_get`") # noqa: E501
+ # verify the required parameter 'point_lat' is set
+ if ('point_lat' not in params or
+ params['point_lat'] is None):
+ raise ValueError("Missing the required parameter `point_lat` when calling `geocode_reverse_get`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'point_lon' in params:
+ query_params.append(('point.lon', params['point_lon'])) # noqa: E501
+ if 'point_lat' in params:
+ query_params.append(('point.lat', params['point_lat'])) # noqa: E501
+ if 'boundary_circle_radius' in params:
+ query_params.append(('boundary.circle.radius', params['boundary_circle_radius'])) # noqa: E501
+ if 'size' in params:
+ query_params.append(('size', params['size'])) # noqa: E501
+ if 'layers' in params:
+ query_params.append(('layers', params['layers'])) # noqa: E501
+ collection_formats['layers'] = 'multi' # noqa: E501
+ if 'sources' in params:
+ query_params.append(('sources', params['sources'])) # noqa: E501
+ collection_formats['sources'] = 'multi' # noqa: E501
+ if 'boundary_country' in params:
+ query_params.append(('boundary.country', params['boundary_country'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/geocode/reverse', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GeocodeResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def geocode_search_get(self, text, **kwargs): # noqa: E501
+ """Forward Geocode Service # noqa: E501
+
+ Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/search.md#search-the-world) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_search_get(text, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str text: Name of location, street address or postal code. (required)
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param float boundary_circle_lon: Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`.
+ :param float boundary_circle_lat: Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`.
+ :param float boundary_circle_radius: Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`.
+ :param str boundary_gid: Restrict results to administrative boundary using a Pelias global id [`gid`](https://github.com/pelias/documentation/blob/f1f475aa4f8c18426fb80baea636990502c08ed3/search.md#search-within-a-parent-administrative-area). `gid`s for records can be found using either the [Who's on First Spelunker](http://spelunker.whosonfirst.org/), a tool for searching Who's on First data, or from the responses of other Pelias queries. In this case a [search for Oklahoma](http://pelias.github.io/compare/#/v1/search%3Ftext=oklahoma) will return the proper `gid`.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param int size: Set the number of returned results.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.geocode_search_get_with_http_info(text, **kwargs) # noqa: E501
+ else:
+ (data) = self.geocode_search_get_with_http_info(text, **kwargs) # noqa: E501
+ return data
+
+ def geocode_search_get_with_http_info(self, text, **kwargs): # noqa: E501
+ """Forward Geocode Service # noqa: E501
+
+ Returns a JSON formatted list of objects corresponding to the search input. `boundary.*`-parameters can be combined if they are overlapping. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/search.md#search-the-world) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_search_get_with_http_info(text, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str text: Name of location, street address or postal code. (required)
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param float boundary_circle_lon: Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`.
+ :param float boundary_circle_lat: Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`.
+ :param float boundary_circle_radius: Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`.
+ :param str boundary_gid: Restrict results to administrative boundary using a Pelias global id [`gid`](https://github.com/pelias/documentation/blob/f1f475aa4f8c18426fb80baea636990502c08ed3/search.md#search-within-a-parent-administrative-area). `gid`s for records can be found using either the [Who's on First Spelunker](http://spelunker.whosonfirst.org/), a tool for searching Who's on First data, or from the responses of other Pelias queries. In this case a [search for Oklahoma](http://pelias.github.io/compare/#/v1/search%3Ftext=oklahoma) will return the proper `gid`.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param int size: Set the number of returned results.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['text', 'focus_point_lon', 'focus_point_lat', 'boundary_rect_min_lon', 'boundary_rect_min_lat', 'boundary_rect_max_lon', 'boundary_rect_max_lat', 'boundary_circle_lon', 'boundary_circle_lat', 'boundary_circle_radius', 'boundary_gid', 'boundary_country', 'sources', 'layers', 'size'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method geocode_search_get" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'text' is set
+ if ('text' not in params or
+ params['text'] is None):
+ raise ValueError("Missing the required parameter `text` when calling `geocode_search_get`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'text' in params:
+ query_params.append(('text', params['text'])) # noqa: E501
+ if 'focus_point_lon' in params:
+ query_params.append(('focus.point.lon', params['focus_point_lon'])) # noqa: E501
+ if 'focus_point_lat' in params:
+ query_params.append(('focus.point.lat', params['focus_point_lat'])) # noqa: E501
+ if 'boundary_rect_min_lon' in params:
+ query_params.append(('boundary.rect.min_lon', params['boundary_rect_min_lon'])) # noqa: E501
+ if 'boundary_rect_min_lat' in params:
+ query_params.append(('boundary.rect.min_lat', params['boundary_rect_min_lat'])) # noqa: E501
+ if 'boundary_rect_max_lon' in params:
+ query_params.append(('boundary.rect.max_lon', params['boundary_rect_max_lon'])) # noqa: E501
+ if 'boundary_rect_max_lat' in params:
+ query_params.append(('boundary.rect.max_lat', params['boundary_rect_max_lat'])) # noqa: E501
+ if 'boundary_circle_lon' in params:
+ query_params.append(('boundary.circle.lon', params['boundary_circle_lon'])) # noqa: E501
+ if 'boundary_circle_lat' in params:
+ query_params.append(('boundary.circle.lat', params['boundary_circle_lat'])) # noqa: E501
+ if 'boundary_circle_radius' in params:
+ query_params.append(('boundary.circle.radius', params['boundary_circle_radius'])) # noqa: E501
+ if 'boundary_gid' in params:
+ query_params.append(('boundary.gid', params['boundary_gid'])) # noqa: E501
+ if 'boundary_country' in params:
+ query_params.append(('boundary.country', params['boundary_country'])) # noqa: E501
+ if 'sources' in params:
+ query_params.append(('sources', params['sources'])) # noqa: E501
+ collection_formats['sources'] = 'multi' # noqa: E501
+ if 'layers' in params:
+ query_params.append(('layers', params['layers'])) # noqa: E501
+ collection_formats['layers'] = 'multi' # noqa: E501
+ if 'size' in params:
+ query_params.append(('size', params['size'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/geocode/search', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GeocodeResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def geocode_search_structured_get(self, **kwargs): # noqa: E501
+ """Structured Forward Geocode Service (beta) # noqa: E501
+
+ Returns a JSON formatted list of objects corresponding to the search input. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/structured-geocoding.md#structured-geocoding) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_search_structured_get(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str address: Search for full address with house number or only a street name.
+ :param str neighbourhood: Search for neighbourhoods. Neighbourhoods are vernacular geographic entities that may not necessarily be official administrative divisions but are important nonetheless. Example: `Notting Hill`.
+ :param str country: 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.
+ :param str postalcode: Search for postal codes. Postal codes are unique within a country so they are useful in geocoding as a shorthand for a fairly granular geographical location.
+ :param str region: Search for regions. Regions are normally the first-level administrative divisions within countries. For US-regions [common abbreviations](https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations) can be used.
+ :param str county: Search for counties. Counties are administrative divisions between localities and regions. Can be useful when attempting to disambiguate between localities.
+ :param str locality: Search for localities. Localities are equivalent to what are commonly referred to as *cities*.
+ :param str borough: Search for boroughs. Boroughs are mostly known in the context of New York City, even though they may exist in other cities, such as Mexico City. Example: `Manhatten`.
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param float boundary_circle_lon: Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`.
+ :param float boundary_circle_lat: Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`.
+ :param float boundary_circle_radius: Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param int size: Set the number of returned results.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.geocode_search_structured_get_with_http_info(**kwargs) # noqa: E501
+ else:
+ (data) = self.geocode_search_structured_get_with_http_info(**kwargs) # noqa: E501
+ return data
+
+ def geocode_search_structured_get_with_http_info(self, **kwargs): # noqa: E501
+ """Structured Forward Geocode Service (beta) # noqa: E501
+
+ Returns a JSON formatted list of objects corresponding to the search input. **The interactivity for this enpoint is experimental!** [Please refer to this external Documentation](https://github.com/pelias/documentation/blob/master/structured-geocoding.md#structured-geocoding) # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.geocode_search_structured_get_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param str address: Search for full address with house number or only a street name.
+ :param str neighbourhood: Search for neighbourhoods. Neighbourhoods are vernacular geographic entities that may not necessarily be official administrative divisions but are important nonetheless. Example: `Notting Hill`.
+ :param str country: 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.
+ :param str postalcode: Search for postal codes. Postal codes are unique within a country so they are useful in geocoding as a shorthand for a fairly granular geographical location.
+ :param str region: Search for regions. Regions are normally the first-level administrative divisions within countries. For US-regions [common abbreviations](https://en.wikipedia.org/wiki/List_of_U.S._state_abbreviations) can be used.
+ :param str county: Search for counties. Counties are administrative divisions between localities and regions. Can be useful when attempting to disambiguate between localities.
+ :param str locality: Search for localities. Localities are equivalent to what are commonly referred to as *cities*.
+ :param str borough: Search for boroughs. Boroughs are mostly known in the context of New York City, even though they may exist in other cities, such as Mexico City. Example: `Manhatten`.
+ :param float focus_point_lon: 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`.
+ :param float focus_point_lat: 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`.
+ :param float boundary_rect_min_lon: Left border of rectangular boundary to narrow results.
+ :param float boundary_rect_min_lat: Bottom border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lon: Right border of rectangular boundary to narrow results.
+ :param float boundary_rect_max_lat: Top border of rectangular boundary to narrow results.
+ :param float boundary_circle_lon: Center Longitude of circular boundary to narrow results. Use with `boundary.circle.lat` & `boundary.circle.radius`.
+ :param float boundary_circle_lat: Center Latitude of circular boundary to narrow results. Use with `boundary.circle.lon` & `boundary.circle.radius`.
+ :param float boundary_circle_radius: Radius of circular boundary around the center coordinate in kilometers. Use with `boundary.circle.lon` & `boundary.circle.lat`.
+ :param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
+ :param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
+ :param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
+ :param int size: Set the number of returned results.
+ :return: GeocodeResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['address', 'neighbourhood', 'country', 'postalcode', 'region', 'county', 'locality', 'borough', 'focus_point_lon', 'focus_point_lat', 'boundary_rect_min_lon', 'boundary_rect_min_lat', 'boundary_rect_max_lon', 'boundary_rect_max_lat', 'boundary_circle_lon', 'boundary_circle_lat', 'boundary_circle_radius', 'boundary_country', 'layers', 'sources', 'size'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method geocode_search_structured_get" % key
+ )
+ params[key] = val
+ del params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'address' in params:
+ query_params.append(('address', params['address'])) # noqa: E501
+ if 'neighbourhood' in params:
+ query_params.append(('neighbourhood', params['neighbourhood'])) # noqa: E501
+ if 'country' in params:
+ query_params.append(('country', params['country'])) # noqa: E501
+ if 'postalcode' in params:
+ query_params.append(('postalcode', params['postalcode'])) # noqa: E501
+ if 'region' in params:
+ query_params.append(('region', params['region'])) # noqa: E501
+ if 'county' in params:
+ query_params.append(('county', params['county'])) # noqa: E501
+ if 'locality' in params:
+ query_params.append(('locality', params['locality'])) # noqa: E501
+ if 'borough' in params:
+ query_params.append(('borough', params['borough'])) # noqa: E501
+ if 'focus_point_lon' in params:
+ query_params.append(('focus.point.lon', params['focus_point_lon'])) # noqa: E501
+ if 'focus_point_lat' in params:
+ query_params.append(('focus.point.lat', params['focus_point_lat'])) # noqa: E501
+ if 'boundary_rect_min_lon' in params:
+ query_params.append(('boundary.rect.min_lon', params['boundary_rect_min_lon'])) # noqa: E501
+ if 'boundary_rect_min_lat' in params:
+ query_params.append(('boundary.rect.min_lat', params['boundary_rect_min_lat'])) # noqa: E501
+ if 'boundary_rect_max_lon' in params:
+ query_params.append(('boundary.rect.max_lon', params['boundary_rect_max_lon'])) # noqa: E501
+ if 'boundary_rect_max_lat' in params:
+ query_params.append(('boundary.rect.max_lat', params['boundary_rect_max_lat'])) # noqa: E501
+ if 'boundary_circle_lon' in params:
+ query_params.append(('boundary.circle.lon', params['boundary_circle_lon'])) # noqa: E501
+ if 'boundary_circle_lat' in params:
+ query_params.append(('boundary.circle.lat', params['boundary_circle_lat'])) # noqa: E501
+ if 'boundary_circle_radius' in params:
+ query_params.append(('boundary.circle.radius', params['boundary_circle_radius'])) # noqa: E501
+ if 'boundary_country' in params:
+ query_params.append(('boundary.country', params['boundary_country'])) # noqa: E501
+ if 'layers' in params:
+ query_params.append(('layers', params['layers'])) # noqa: E501
+ collection_formats['layers'] = 'multi' # noqa: E501
+ if 'sources' in params:
+ query_params.append(('sources', params['sources'])) # noqa: E501
+ collection_formats['sources'] = 'multi' # noqa: E501
+ if 'size' in params:
+ query_params.append(('size', params['size'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/geocode/search/structured', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='GeocodeResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
new file mode 100644
index 00000000..54a94287
--- /dev/null
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class IsochronesServiceApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_default_isochrones(self, body, profile, **kwargs): # noqa: E501
+ """Isochrones Service # noqa: E501
+
+ The Isochrone Service supports time and distance analyses for one single or multiple locations. You may also specify the isochrone interval or provide multiple exact isochrone range values. This service allows the same range of profile options as the /directions endpoint, which help you to further customize your request to obtain a more detailed reachability area response. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default_isochrones(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param IsochronesProfileBody body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2005
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_default_isochrones_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_default_isochrones_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_default_isochrones_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Isochrones Service # noqa: E501
+
+ The Isochrone Service supports time and distance analyses for one single or multiple locations. You may also specify the isochrone interval or provide multiple exact isochrone range values. This service allows the same range of profile options as the /directions endpoint, which help you to further customize your request to obtain a more detailed reachability area response. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default_isochrones_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param IsochronesProfileBody body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2005
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_default_isochrones" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_default_isochrones`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_default_isochrones`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/geo+json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/isochrones/{profile}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2005', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
new file mode 100644
index 00000000..cf142e32
--- /dev/null
+++ b/openrouteservice/api/matrix_service_api.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class MatrixServiceApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_default(self, body, profile, **kwargs): # noqa: E501
+ """Matrix Service # noqa: E501
+
+ Returns duration or distance matrix for multiple source and destination points. By default a square duration matrix is returned where every point in locations is paired with each other. The result is null if a value can’t be determined. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param MatrixProfileBody body: (required)
+ :param str profile: Specifies the matrix profile. (required)
+ :return: InlineResponse2006
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Matrix Service # noqa: E501
+
+ Returns duration or distance matrix for multiple source and destination points. By default a square duration matrix is returned where every point in locations is paired with each other. The result is null if a value can’t be determined. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param MatrixProfileBody body: (required)
+ :param str profile: Specifies the matrix profile. (required)
+ :return: InlineResponse2006
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_default" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_default`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_default`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json;charset=UTF-8', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/matrix/{profile}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2006', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
new file mode 100644
index 00000000..b88e8c67
--- /dev/null
+++ b/openrouteservice/api/optimization_api.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class OptimizationApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def optimization_post(self, body, **kwargs): # noqa: E501
+ """Optimization Service # noqa: E501
+
+ The optimization endpoint solves [Vehicle Routing Problems](https://en.wikipedia.org/wiki/Vehicle_routing_problem) and can be used to schedule multiple vehicles and jobs, respecting time windows, capacities and required skills. This service is based on the excellent [Vroom project](https://github.com/VROOM-Project/vroom). Please also consult its [API documentation](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md). General Info: - The expected order for all coordinates arrays is `[lon, lat]` - All timings are in seconds - All distances are in meters - A `time_window` object is a pair of timestamps in the form `[start, end]` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.optimization_post(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param OptimizationBody body: The request body of the optimization request. (required)
+ :return: InlineResponse2002
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.optimization_post_with_http_info(body, **kwargs) # noqa: E501
+ else:
+ (data) = self.optimization_post_with_http_info(body, **kwargs) # noqa: E501
+ return data
+
+ def optimization_post_with_http_info(self, body, **kwargs): # noqa: E501
+ """Optimization Service # noqa: E501
+
+ The optimization endpoint solves [Vehicle Routing Problems](https://en.wikipedia.org/wiki/Vehicle_routing_problem) and can be used to schedule multiple vehicles and jobs, respecting time windows, capacities and required skills. This service is based on the excellent [Vroom project](https://github.com/VROOM-Project/vroom). Please also consult its [API documentation](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md). General Info: - The expected order for all coordinates arrays is `[lon, lat]` - All timings are in seconds - All distances are in meters - A `time_window` object is a pair of timestamps in the form `[start, end]` # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.optimization_post_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param OptimizationBody body: The request body of the optimization request. (required)
+ :return: InlineResponse2002
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method optimization_post" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `optimization_post`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/optimization', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2002', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
new file mode 100644
index 00000000..7fe42419
--- /dev/null
+++ b/openrouteservice/api/pois_api.py
@@ -0,0 +1,132 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class PoisApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def pois_post(self, body, **kwargs): # noqa: E501
+ """Pois Service # noqa: E501
+
+ Returns points of interest in the area surrounding a geometry which can either be a bounding box, polygon or buffered linestring or point. Find more examples on [github](https://github.com/GIScience/openpoiservice). # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.pois_post(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param OpenpoiservicePoiRequest body: body for a post request (required)
+ :return: OpenpoiservicePoiResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.pois_post_with_http_info(body, **kwargs) # noqa: E501
+ else:
+ (data) = self.pois_post_with_http_info(body, **kwargs) # noqa: E501
+ return data
+
+ def pois_post_with_http_info(self, body, **kwargs): # noqa: E501
+ """Pois Service # noqa: E501
+
+ Returns points of interest in the area surrounding a geometry which can either be a bounding box, polygon or buffered linestring or point. Find more examples on [github](https://github.com/GIScience/openpoiservice). # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.pois_post_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param OpenpoiservicePoiRequest body: body for a post request (required)
+ :return: OpenpoiservicePoiResponse
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method pois_post" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `pois_post`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/pois', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='OpenpoiservicePoiResponse', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
new file mode 100644
index 00000000..716b0d9a
--- /dev/null
+++ b/openrouteservice/api_client.py
@@ -0,0 +1,632 @@
+# coding: utf-8
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+from __future__ import absolute_import
+
+import datetime
+import json
+import mimetypes
+from multiprocessing.pool import ThreadPool
+import os
+import re
+import tempfile
+
+# python 2 and python 3 compatibility library
+import six
+from six.moves.urllib.parse import quote
+
+from openrouteservice.configuration import Configuration
+import openrouteservice.models
+from openrouteservice import rest
+
+
+class ApiClient(object):
+ """Generic API client for Swagger client library builds.
+
+ Swagger generic API client. This client handles the client-
+ server communication, and is invariant across implementations. Specifics of
+ the methods and models for each application are generated from the Swagger
+ templates.
+
+ NOTE: This class is auto generated by the swagger code generator program.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ Do not edit the class manually.
+
+ :param configuration: .Configuration object for this client
+ :param header_name: a header to pass when making calls to the API.
+ :param header_value: a header value to pass when making calls to
+ the API.
+ :param cookie: a cookie to include in the header when making calls
+ to the API
+ """
+
+ PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types
+ NATIVE_TYPES_MAPPING = {
+ 'int': int,
+ 'long': int if six.PY3 else long, # noqa: F821
+ 'float': float,
+ 'str': str,
+ 'bool': bool,
+ 'date': datetime.date,
+ 'datetime': datetime.datetime,
+ 'object': object,
+ }
+
+ def __init__(self, configuration=None, header_name=None, header_value=None,
+ cookie=None):
+ if configuration is None:
+ configuration = Configuration()
+ self.configuration = configuration
+
+ self.pool = ThreadPool()
+ self.rest_client = rest.RESTClientObject(configuration)
+ self.default_headers = {}
+ if header_name is not None:
+ self.default_headers[header_name] = header_value
+ self.cookie = cookie
+ # Set default User-Agent.
+ self.user_agent = 'Swagger-Codegen/7.1.0.post6/python'
+
+ def __del__(self):
+ self.pool.close()
+ self.pool.join()
+
+ @property
+ def user_agent(self):
+ """User agent for this API client"""
+ return self.default_headers['User-Agent']
+
+ @user_agent.setter
+ def user_agent(self, value):
+ self.default_headers['User-Agent'] = value
+
+ def set_default_header(self, header_name, header_value):
+ self.default_headers[header_name] = header_value
+
+ def __call_api(
+ self, resource_path, method, path_params=None,
+ query_params=None, header_params=None, body=None, post_params=None,
+ files=None, response_type=None, auth_settings=None,
+ _return_http_data_only=None, collection_formats=None,
+ _preload_content=True, _request_timeout=None):
+
+ config = self.configuration
+
+ # header parameters
+ header_params = header_params or {}
+ header_params.update(self.default_headers)
+ if self.cookie:
+ header_params['Cookie'] = self.cookie
+ if header_params:
+ header_params = self.sanitize_for_serialization(header_params)
+ header_params = dict(self.parameters_to_tuples(header_params,
+ collection_formats))
+
+ # path parameters
+ if path_params:
+ path_params = self.sanitize_for_serialization(path_params)
+ path_params = self.parameters_to_tuples(path_params,
+ collection_formats)
+ for k, v in path_params:
+ # specified safe chars, encode everything
+ resource_path = resource_path.replace(
+ '{%s}' % k,
+ quote(str(v), safe=config.safe_chars_for_path_param)
+ )
+
+ # query parameters
+ if query_params:
+ query_params = self.sanitize_for_serialization(query_params)
+ query_params = self.parameters_to_tuples(query_params,
+ collection_formats)
+
+ # post parameters
+ if post_params or files:
+ post_params = self.prepare_post_parameters(post_params, files)
+ post_params = self.sanitize_for_serialization(post_params)
+ post_params = self.parameters_to_tuples(post_params,
+ collection_formats)
+
+ # auth setting
+ self.update_params_for_auth(header_params, query_params, auth_settings)
+
+ # body
+ if body:
+ body = self.sanitize_for_serialization(body)
+
+ # request url
+ url = self.configuration.host + resource_path
+
+ # perform request and return response
+ response_data = self.request(
+ method, url, query_params=query_params, headers=header_params,
+ post_params=post_params, body=body,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout)
+
+ self.last_response = response_data
+
+ return_data = response_data
+ if _preload_content:
+ # deserialize response data
+ if response_type:
+ return_data = self.deserialize(response_data, response_type)
+ else:
+ return_data = None
+
+ if _return_http_data_only:
+ return (return_data)
+ else:
+ return (return_data, response_data.status,
+ response_data.getheaders())
+
+ def sanitize_for_serialization(self, obj):
+ """Builds a JSON POST object.
+
+ If obj is None, return None.
+ If obj is str, int, long, float, bool, return directly.
+ If obj is datetime.datetime, datetime.date
+ convert to string in iso8601 format.
+ If obj is list, sanitize each element in the list.
+ If obj is dict, return the dict.
+ If obj is swagger model, return the properties dict.
+
+ :param obj: The data to serialize.
+ :return: The serialized form of data.
+ """
+ if obj is None:
+ return None
+ elif isinstance(obj, self.PRIMITIVE_TYPES):
+ return obj
+ elif isinstance(obj, list):
+ return [self.sanitize_for_serialization(sub_obj)
+ for sub_obj in obj]
+ elif isinstance(obj, tuple):
+ return tuple(self.sanitize_for_serialization(sub_obj)
+ for sub_obj in obj)
+ elif isinstance(obj, (datetime.datetime, datetime.date)):
+ return obj.isoformat()
+
+ if isinstance(obj, dict):
+ obj_dict = obj
+ else:
+ # Convert model obj to dict except
+ # attributes `swagger_types`, `attribute_map`
+ # and attributes which value is not None.
+ # Convert attribute name to json key in
+ # model definition for request.
+ obj_dict = {obj.attribute_map[attr]: getattr(obj, attr)
+ for attr, _ in six.iteritems(obj.swagger_types)
+ if getattr(obj, attr) is not None}
+
+ return {key: self.sanitize_for_serialization(val)
+ for key, val in six.iteritems(obj_dict)}
+
+ def deserialize(self, response, response_type):
+ """Deserializes response into an object.
+
+ :param response: RESTResponse object to be deserialized.
+ :param response_type: class literal for
+ deserialized object, or string of class name.
+
+ :return: deserialized object.
+ """
+ # handle file downloading
+ # save response body into a tmp file and return the instance
+ if response_type == "file":
+ return self.__deserialize_file(response)
+
+ # fetch data from response object
+ try:
+ data = json.loads(response.data)
+ except ValueError:
+ data = response.data
+
+ return self.__deserialize(data, response_type)
+
+ def __deserialize(self, data, klass):
+ """Deserializes dict, list, str into an object.
+
+ :param data: dict, list or str.
+ :param klass: class literal, or string of class name.
+
+ :return: object.
+ """
+ if data is None:
+ return None
+
+ if type(klass) == str:
+ if klass.startswith('list['):
+ sub_kls = re.match(r'list\[(.*)\]', klass).group(1)
+ return [self.__deserialize(sub_data, sub_kls)
+ for sub_data in data]
+
+ if klass.startswith('dict('):
+ sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2)
+ return {k: self.__deserialize(v, sub_kls)
+ for k, v in six.iteritems(data)}
+
+ # convert str to class
+ if klass in self.NATIVE_TYPES_MAPPING:
+ klass = self.NATIVE_TYPES_MAPPING[klass]
+ else:
+ klass = getattr(openrouteservice.models, klass)
+
+ if klass in self.PRIMITIVE_TYPES:
+ return self.__deserialize_primitive(data, klass)
+ elif klass == object:
+ return self.__deserialize_object(data)
+ elif klass == datetime.date:
+ return self.__deserialize_date(data)
+ elif klass == datetime.datetime:
+ return self.__deserialize_datatime(data)
+ else:
+ return self.__deserialize_model(data, klass)
+
+ def call_api(self, resource_path, method,
+ path_params=None, query_params=None, header_params=None,
+ body=None, post_params=None, files=None,
+ response_type=None, auth_settings=None, async_req=None,
+ _return_http_data_only=None, collection_formats=None,
+ _preload_content=True, _request_timeout=None):
+ """Makes the HTTP request (synchronous) and returns deserialized data.
+
+ To make an async request, set the async_req parameter.
+
+ :param resource_path: Path to method endpoint.
+ :param method: Method to call.
+ :param path_params: Path parameters in the url.
+ :param query_params: Query parameters in the url.
+ :param header_params: Header parameters to be
+ placed in the request header.
+ :param body: Request body.
+ :param post_params dict: Request post form parameters,
+ for `application/x-www-form-urlencoded`, `multipart/form-data`.
+ :param auth_settings list: Auth Settings names for the request.
+ :param response: Response data type.
+ :param files dict: key -> filename, value -> filepath,
+ for `multipart/form-data`.
+ :param async_req bool: execute request asynchronously
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param collection_formats: dict of collection formats for path, query,
+ header, and post parameters.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return:
+ If async_req parameter is True,
+ the request will be called asynchronously.
+ The method will return the request thread.
+ If parameter async_req is False or missing,
+ then the method will return the response directly.
+ """
+ if not async_req:
+ return self.__call_api(resource_path, method,
+ path_params, query_params, header_params,
+ body, post_params, files,
+ response_type, auth_settings,
+ _return_http_data_only, collection_formats,
+ _preload_content, _request_timeout)
+ else:
+ thread = self.pool.apply_async(self.__call_api, (resource_path,
+ method, path_params, query_params,
+ header_params, body,
+ post_params, files,
+ response_type, auth_settings,
+ _return_http_data_only,
+ collection_formats,
+ _preload_content, _request_timeout))
+ return thread
+
+ def request(self, method, url, query_params=None, headers=None,
+ post_params=None, body=None, _preload_content=True,
+ _request_timeout=None):
+ """Makes the HTTP request using RESTClient."""
+ if method == "GET":
+ return self.rest_client.GET(url,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ headers=headers)
+ elif method == "HEAD":
+ return self.rest_client.HEAD(url,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ headers=headers)
+ elif method == "OPTIONS":
+ return self.rest_client.OPTIONS(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "POST":
+ return self.rest_client.POST(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "PUT":
+ return self.rest_client.PUT(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "PATCH":
+ return self.rest_client.PATCH(url,
+ query_params=query_params,
+ headers=headers,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ elif method == "DELETE":
+ return self.rest_client.DELETE(url,
+ query_params=query_params,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+ else:
+ raise ValueError(
+ "http method must be `GET`, `HEAD`, `OPTIONS`,"
+ " `POST`, `PATCH`, `PUT` or `DELETE`."
+ )
+
+ def parameters_to_tuples(self, params, collection_formats):
+ """Get parameters as list of tuples, formatting collections.
+
+ :param params: Parameters as dict or list of two-tuples
+ :param dict collection_formats: Parameter collection formats
+ :return: Parameters as list of tuples, collections formatted
+ """
+ new_params = []
+ if collection_formats is None:
+ collection_formats = {}
+ for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501
+ if k in collection_formats:
+ collection_format = collection_formats[k]
+ if collection_format == 'multi':
+ new_params.extend((k, value) for value in v)
+ else:
+ if collection_format == 'ssv':
+ delimiter = ' '
+ elif collection_format == 'tsv':
+ delimiter = '\t'
+ elif collection_format == 'pipes':
+ delimiter = '|'
+ else: # csv is the default
+ delimiter = ','
+ new_params.append(
+ (k, delimiter.join(str(value) for value in v)))
+ else:
+ new_params.append((k, v))
+ return new_params
+
+ def prepare_post_parameters(self, post_params=None, files=None):
+ """Builds form parameters.
+
+ :param post_params: Normal form parameters.
+ :param files: File parameters.
+ :return: Form parameters with files.
+ """
+ params = []
+
+ if post_params:
+ params = post_params
+
+ if files:
+ for k, v in six.iteritems(files):
+ if not v:
+ continue
+ file_names = v if type(v) is list else [v]
+ for n in file_names:
+ with open(n, 'rb') as f:
+ filename = os.path.basename(f.name)
+ filedata = f.read()
+ mimetype = (mimetypes.guess_type(filename)[0] or
+ 'application/octet-stream')
+ params.append(
+ tuple([k, tuple([filename, filedata, mimetype])]))
+
+ return params
+
+ def select_header_accept(self, accepts):
+ """Returns `Accept` based on an array of accepts provided.
+
+ :param accepts: List of headers.
+ :return: Accept (e.g. application/json).
+ """
+ if not accepts:
+ return
+
+ accepts = [x.lower() for x in accepts]
+
+ if 'application/json' in accepts:
+ return 'application/json'
+ else:
+ return ', '.join(accepts)
+
+ def select_header_content_type(self, content_types):
+ """Returns `Content-Type` based on an array of content_types provided.
+
+ :param content_types: List of content-types.
+ :return: Content-Type (e.g. application/json).
+ """
+ if not content_types:
+ return 'application/json'
+
+ content_types = [x.lower() for x in content_types]
+
+ if 'application/json' in content_types or '*/*' in content_types:
+ return 'application/json'
+ else:
+ return content_types[0]
+
+ def update_params_for_auth(self, headers, querys, auth_settings):
+ """Updates header and query params based on authentication setting.
+
+ :param headers: Header parameters dict to be updated.
+ :param querys: Query parameters tuple list to be updated.
+ :param auth_settings: Authentication setting identifiers list.
+ """
+ if not auth_settings:
+ return
+
+ for auth in auth_settings:
+ auth_setting = self.configuration.auth_settings().get(auth)
+ if auth_setting:
+ if not auth_setting['value']:
+ continue
+ elif auth_setting['in'] == 'header':
+ headers[auth_setting['key']] = auth_setting['value']
+ elif auth_setting['in'] == 'query':
+ querys.append((auth_setting['key'], auth_setting['value']))
+ else:
+ raise ValueError(
+ 'Authentication token must be in `query` or `header`'
+ )
+
+ def __deserialize_file(self, response):
+ """Deserializes body to file
+
+ Saves response body into a file in a temporary folder,
+ using the filename from the `Content-Disposition` header if provided.
+
+ :param response: RESTResponse.
+ :return: file path.
+ """
+ fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path)
+ os.close(fd)
+ os.remove(path)
+
+ content_disposition = response.getheader("Content-Disposition")
+ if content_disposition:
+ filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?',
+ content_disposition).group(1)
+ path = os.path.join(os.path.dirname(path), filename)
+ response_data = response.data
+ with open(path, "wb") as f:
+ if isinstance(response_data, str):
+ # change str to bytes so we can write it
+ response_data = response_data.encode('utf-8')
+ f.write(response_data)
+ else:
+ f.write(response_data)
+ return path
+
+ def __deserialize_primitive(self, data, klass):
+ """Deserializes string to primitive type.
+
+ :param data: str.
+ :param klass: class literal.
+
+ :return: int, long, float, str, bool.
+ """
+ try:
+ return klass(data)
+ except UnicodeEncodeError:
+ return six.text_type(data)
+ except TypeError:
+ return data
+
+ def __deserialize_object(self, value):
+ """Return a original value.
+
+ :return: object.
+ """
+ return value
+
+ def __deserialize_date(self, string):
+ """Deserializes string to date.
+
+ :param string: str.
+ :return: date.
+ """
+ try:
+ from dateutil.parser import parse
+ return parse(string).date()
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason="Failed to parse `{0}` as date object".format(string)
+ )
+
+ def __deserialize_datatime(self, string):
+ """Deserializes string to datetime.
+
+ The string should be in iso8601 datetime format.
+
+ :param string: str.
+ :return: datetime.
+ """
+ try:
+ from dateutil.parser import parse
+ return parse(string)
+ except ImportError:
+ return string
+ except ValueError:
+ raise rest.ApiException(
+ status=0,
+ reason=(
+ "Failed to parse `{0}` as datetime object"
+ .format(string)
+ )
+ )
+
+ def __hasattr(self, object, name):
+ return name in object.__class__.__dict__
+
+ def __deserialize_model(self, data, klass):
+ """Deserializes list or dict to model.
+
+ :param data: dict, list.
+ :param klass: class literal.
+ :return: model object.
+ """
+
+ if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'):
+ return data
+
+ kwargs = {}
+ if klass.swagger_types is not None:
+ for attr, attr_type in six.iteritems(klass.swagger_types):
+ if (data is not None and
+ klass.attribute_map[attr] in data and
+ isinstance(data, (list, dict))):
+ value = data[klass.attribute_map[attr]]
+ kwargs[attr] = self.__deserialize(value, attr_type)
+
+ instance = klass(**kwargs)
+
+ if (isinstance(instance, dict) and
+ klass.swagger_types is not None and
+ isinstance(data, dict)):
+ for key, value in data.items():
+ if key not in klass.swagger_types:
+ instance[key] = value
+ if self.__hasattr(instance, 'get_real_child_model'):
+ klass_name = instance.get_real_child_model(data)
+ if klass_name:
+ instance = self.__deserialize(data, klass_name)
+ return instance
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
new file mode 100644
index 00000000..0c5de8b3
--- /dev/null
+++ b/openrouteservice/configuration.py
@@ -0,0 +1,251 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import copy
+import logging
+import multiprocessing
+import sys
+import urllib3
+
+import six
+from six.moves import http_client as httplib
+
+
+class TypeWithDefault(type):
+ def __init__(cls, name, bases, dct):
+ super(TypeWithDefault, cls).__init__(name, bases, dct)
+ cls._default = None
+
+ def __call__(cls):
+ if cls._default is None:
+ cls._default = type.__call__(cls)
+ return copy.copy(cls._default)
+
+ def set_default(cls, default):
+ cls._default = copy.copy(default)
+
+
+class Configuration(six.with_metaclass(TypeWithDefault, object)):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Ref: https://github.com/swagger-api/swagger-codegen
+ Do not edit the class manually.
+ """
+
+ def __init__(self):
+ """Constructor"""
+ # Default Base url
+ self.host = "https://api.openrouteservice.org"
+ # Temp file folder for downloading files
+ self.temp_folder_path = None
+
+ # Authentication Settings
+ # dict to store API key(s)
+ self.api_key = {}
+ # dict to store API prefix (e.g. Bearer)
+ self.api_key_prefix = {}
+ # function to refresh API key if expired
+ self.refresh_api_key_hook = None
+ # Username for HTTP basic authentication
+ self.username = ""
+ # Password for HTTP basic authentication
+ self.password = ""
+ # Logging Settings
+ self.logger = {}
+ self.logger["package_logger"] = logging.getLogger("openrouteservice")
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
+ # Log format
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
+ # Log stream handler
+ self.logger_stream_handler = None
+ # Log file handler
+ self.logger_file_handler = None
+ # Debug file location
+ self.logger_file = None
+ # Debug switch
+ self.debug = False
+
+ # SSL/TLS verification
+ # Set this to false to skip verifying SSL certificate when calling API
+ # from https server.
+ self.verify_ssl = True
+ # Set this to customize the certificate file to verify the peer.
+ self.ssl_ca_cert = None
+ # client certificate file
+ self.cert_file = None
+ # client key file
+ self.key_file = None
+ # Set this to True/False to enable/disable SSL hostname verification.
+ self.assert_hostname = None
+
+ # urllib3 connection pool's maximum number of connections saved
+ # per pool. urllib3 uses 1 connection as default value, but this is
+ # not the best value when you are making a lot of possibly parallel
+ # requests to the same host, which is often the case here.
+ # cpu_count * 5 is used as default value to increase performance.
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
+
+ # Proxy URL
+ self.proxy = None
+ # Safe chars for path_param
+ self.safe_chars_for_path_param = ''
+
+ @property
+ def logger_file(self):
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ return self.__logger_file
+
+ @logger_file.setter
+ def logger_file(self, value):
+ """The logger file.
+
+ If the logger_file is None, then add stream handler and remove file
+ handler. Otherwise, add file handler and remove stream handler.
+
+ :param value: The logger_file path.
+ :type: str
+ """
+ self.__logger_file = value
+ if self.__logger_file:
+ # If set logging file,
+ # then add file handler and remove stream handler.
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
+ self.logger_file_handler.setFormatter(self.logger_formatter)
+ for _, logger in six.iteritems(self.logger):
+ logger.addHandler(self.logger_file_handler)
+ if self.logger_stream_handler:
+ logger.removeHandler(self.logger_stream_handler)
+ else:
+ # If not set logging file,
+ # then add stream handler and remove file handler.
+ self.logger_stream_handler = logging.StreamHandler()
+ self.logger_stream_handler.setFormatter(self.logger_formatter)
+ for _, logger in six.iteritems(self.logger):
+ logger.addHandler(self.logger_stream_handler)
+ if self.logger_file_handler:
+ logger.removeHandler(self.logger_file_handler)
+
+ @property
+ def debug(self):
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ return self.__debug
+
+ @debug.setter
+ def debug(self, value):
+ """Debug status
+
+ :param value: The debug status, True or False.
+ :type: bool
+ """
+ self.__debug = value
+ if self.__debug:
+ # if debug status is True, turn on debug logging
+ for _, logger in six.iteritems(self.logger):
+ logger.setLevel(logging.DEBUG)
+ # turn on httplib debug
+ httplib.HTTPConnection.debuglevel = 1
+ else:
+ # if debug status is False, turn off debug logging,
+ # setting log level to default `logging.WARNING`
+ for _, logger in six.iteritems(self.logger):
+ logger.setLevel(logging.WARNING)
+ # turn off httplib debug
+ httplib.HTTPConnection.debuglevel = 0
+
+ @property
+ def logger_format(self):
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ return self.__logger_format
+
+ @logger_format.setter
+ def logger_format(self, value):
+ """The logger format.
+
+ The logger_formatter will be updated when sets logger_format.
+
+ :param value: The format string.
+ :type: str
+ """
+ self.__logger_format = value
+ self.logger_formatter = logging.Formatter(self.__logger_format)
+
+ def get_api_key_with_prefix(self, identifier):
+ """Gets API key (with prefix if set).
+
+ :param identifier: The identifier of apiKey.
+ :return: The token for api key authentication.
+ """
+ if self.refresh_api_key_hook:
+ self.refresh_api_key_hook(self)
+
+ key = self.api_key.get(identifier)
+ if key:
+ prefix = self.api_key_prefix.get(identifier)
+ if prefix:
+ return "%s %s" % (prefix, key)
+ else:
+ return key
+
+ def get_basic_auth_token(self):
+ """Gets HTTP basic authentication header (string).
+
+ :return: The token for basic HTTP authentication.
+ """
+ return urllib3.util.make_headers(
+ basic_auth=self.username + ':' + self.password
+ ).get('authorization')
+
+ def auth_settings(self):
+ """Gets Auth Settings dict for api client.
+
+ :return: The Auth Settings information dict.
+ """
+ return {
+ 'ApiKeyAuth':
+ {
+ 'type': 'api_key',
+ 'in': 'header',
+ 'key': 'Authorization',
+ 'value': self.get_api_key_with_prefix('Authorization')
+ },
+ }
+
+ def to_debug_report(self):
+ """Gets the essential information for debugging.
+
+ :return: The report for debugging.
+ """
+ return "Python SDK Debug Report:\n"\
+ "OS: {env}\n"\
+ "Python Version: {pyversion}\n"\
+ "Version of the API: 7.1.0\n"\
+ "SDK Package Version: 7.1.0.post6".\
+ format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
new file mode 100644
index 00000000..a0b5d8de
--- /dev/null
+++ b/openrouteservice/models/__init__.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+# flake8: noqa
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+# 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.elevation_line_body import ElevationLineBody
+from openrouteservice.models.elevation_point_body import ElevationPointBody
+from openrouteservice.models.engine_info import EngineInfo
+from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
+from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
+from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
+from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry
+from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse
+from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
+from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
+from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
+from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
+from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
+from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
+from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
+from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
+from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
+from openrouteservice.models.geocode_response import GeocodeResponse
+from openrouteservice.models.gpx import Gpx
+from openrouteservice.models.graph_export_service import GraphExportService
+from openrouteservice.models.inline_response200 import InlineResponse200
+from openrouteservice.models.inline_response2001 import InlineResponse2001
+from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
+from openrouteservice.models.inline_response2002 import InlineResponse2002
+from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes
+from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
+from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
+from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
+from openrouteservice.models.inline_response2003 import InlineResponse2003
+from openrouteservice.models.inline_response2004 import InlineResponse2004
+from openrouteservice.models.inline_response2005 import InlineResponse2005
+from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
+from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
+from openrouteservice.models.isochrones_request import IsochronesRequest
+from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo
+from openrouteservice.models.json2_d_destinations import JSON2DDestinations
+from openrouteservice.models.json2_d_sources import JSON2DSources
+from openrouteservice.models.json_extra import JSONExtra
+from openrouteservice.models.json_extra_summary import JSONExtraSummary
+from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse
+from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras
+from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions
+from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs
+from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver
+from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments
+from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops
+from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
+from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
+from openrouteservice.models.json_leg import JSONLeg
+from openrouteservice.models.json_object import JSONObject
+from openrouteservice.models.jsonpt_stop import JSONPtStop
+from openrouteservice.models.json_route_response import JSONRouteResponse
+from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes
+from openrouteservice.models.json_segment import JSONSegment
+from openrouteservice.models.json_step import JSONStep
+from openrouteservice.models.json_step_maneuver import JSONStepManeuver
+from openrouteservice.models.json_summary import JSONSummary
+from openrouteservice.models.json_warning import JSONWarning
+from openrouteservice.models.json_edge import JsonEdge
+from openrouteservice.models.json_edge_extra import JsonEdgeExtra
+from openrouteservice.models.json_export_response import JsonExportResponse
+from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges
+from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra
+from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes
+from openrouteservice.models.json_node import JsonNode
+from openrouteservice.models.matrix_profile_body import MatrixProfileBody
+from openrouteservice.models.matrix_request import MatrixRequest
+from openrouteservice.models.matrix_response import MatrixResponse
+from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations
+from openrouteservice.models.matrix_response_info import MatrixResponseInfo
+from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata
+from openrouteservice.models.matrix_response_sources import MatrixResponseSources
+from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
+from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
+from openrouteservice.models.optimization_body import OptimizationBody
+from openrouteservice.models.optimization_jobs import OptimizationJobs
+from openrouteservice.models.optimization_options import OptimizationOptions
+from openrouteservice.models.optimization_vehicles import OptimizationVehicles
+from openrouteservice.models.pois_filters import PoisFilters
+from openrouteservice.models.pois_geometry import PoisGeometry
+from openrouteservice.models.profile_parameters import ProfileParameters
+from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
+from openrouteservice.models.profile_weightings import ProfileWeightings
+from openrouteservice.models.restrictions import Restrictions
+from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions
+from openrouteservice.models.route_options import RouteOptions
+from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
+from openrouteservice.models.route_response_info import RouteResponseInfo
+from openrouteservice.models.rte import Rte
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits
+from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
new file mode 100644
index 00000000..5274d6ac
--- /dev/null
+++ b/openrouteservice/models/alternative_routes.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class AlternativeRoutes(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'share_factor': 'float',
+ 'target_count': 'int',
+ 'weight_factor': 'float'
+ }
+
+ attribute_map = {
+ 'share_factor': 'share_factor',
+ 'target_count': 'target_count',
+ 'weight_factor': 'weight_factor'
+ }
+
+ def __init__(self, share_factor=None, target_count=None, weight_factor=None): # noqa: E501
+ """AlternativeRoutes - a model defined in Swagger""" # noqa: E501
+ self._share_factor = None
+ self._target_count = None
+ self._weight_factor = None
+ self.discriminator = None
+ if share_factor is not None:
+ self.share_factor = share_factor
+ if target_count is not None:
+ self.target_count = target_count
+ if weight_factor is not None:
+ self.weight_factor = weight_factor
+
+ @property
+ def share_factor(self):
+ """Gets the share_factor of this AlternativeRoutes. # noqa: E501
+
+ Maximum fraction of the route that alternatives may share with the optimal route. The default value of 0.6 means alternatives can share up to 60% of path segments with the optimal route. # noqa: E501
+
+ :return: The share_factor of this AlternativeRoutes. # noqa: E501
+ :rtype: float
+ """
+ return self._share_factor
+
+ @share_factor.setter
+ def share_factor(self, share_factor):
+ """Sets the share_factor of this AlternativeRoutes.
+
+ Maximum fraction of the route that alternatives may share with the optimal route. The default value of 0.6 means alternatives can share up to 60% of path segments with the optimal route. # noqa: E501
+
+ :param share_factor: The share_factor of this AlternativeRoutes. # noqa: E501
+ :type: float
+ """
+
+ self._share_factor = share_factor
+
+ @property
+ def target_count(self):
+ """Gets the target_count of this AlternativeRoutes. # noqa: E501
+
+ Target number of alternative routes to compute. Service returns up to this number of routes that fulfill the share-factor and weight-factor constraints. # noqa: E501
+
+ :return: The target_count of this AlternativeRoutes. # noqa: E501
+ :rtype: int
+ """
+ return self._target_count
+
+ @target_count.setter
+ def target_count(self, target_count):
+ """Sets the target_count of this AlternativeRoutes.
+
+ Target number of alternative routes to compute. Service returns up to this number of routes that fulfill the share-factor and weight-factor constraints. # noqa: E501
+
+ :param target_count: The target_count of this AlternativeRoutes. # noqa: E501
+ :type: int
+ """
+
+ self._target_count = target_count
+
+ @property
+ def weight_factor(self):
+ """Gets the weight_factor of this AlternativeRoutes. # noqa: E501
+
+ Maximum factor by which route weight may diverge from the optimal route. The default value of 1.4 means alternatives can be up to 1.4 times longer (costly) than the optimal route. # noqa: E501
+
+ :return: The weight_factor of this AlternativeRoutes. # noqa: E501
+ :rtype: float
+ """
+ return self._weight_factor
+
+ @weight_factor.setter
+ def weight_factor(self, weight_factor):
+ """Sets the weight_factor of this AlternativeRoutes.
+
+ Maximum factor by which route weight may diverge from the optimal route. The default value of 1.4 means alternatives can be up to 1.4 times longer (costly) than the optimal route. # noqa: E501
+
+ :param weight_factor: The weight_factor of this AlternativeRoutes. # noqa: E501
+ :type: float
+ """
+
+ self._weight_factor = weight_factor
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(AlternativeRoutes, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, AlternativeRoutes):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/directions_service.py b/openrouteservice/models/directions_service.py
new file mode 100644
index 00000000..174866f2
--- /dev/null
+++ b/openrouteservice/models/directions_service.py
@@ -0,0 +1,871 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class DirectionsService(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'alternative_routes': 'AlternativeRoutes',
+ 'attributes': 'list[str]',
+ 'bearings': 'list[list[float]]',
+ 'continue_straight': 'bool',
+ 'coordinates': 'list[list[float]]',
+ 'elevation': 'bool',
+ 'extra_info': 'list[str]',
+ 'geometry': 'bool',
+ 'geometry_simplify': 'bool',
+ 'id': 'str',
+ 'ignore_transfers': 'bool',
+ 'instructions': 'bool',
+ 'instructions_format': 'str',
+ 'language': 'str',
+ 'maneuvers': 'bool',
+ 'maximum_speed': 'float',
+ 'options': 'RouteOptions',
+ 'preference': 'str',
+ 'radiuses': 'list[float]',
+ 'roundabout_exits': 'bool',
+ 'schedule': 'bool',
+ 'schedule_duration': 'V2directionsprofilegeojsonScheduleDuration',
+ 'schedule_rows': 'int',
+ 'skip_segments': 'list[int]',
+ 'suppress_warnings': 'bool',
+ 'units': 'str',
+ 'walking_time': 'V2directionsprofilegeojsonWalkingTime'
+ }
+
+ attribute_map = {
+ 'alternative_routes': 'alternative_routes',
+ 'attributes': 'attributes',
+ 'bearings': 'bearings',
+ 'continue_straight': 'continue_straight',
+ 'coordinates': 'coordinates',
+ 'elevation': 'elevation',
+ 'extra_info': 'extra_info',
+ 'geometry': 'geometry',
+ 'geometry_simplify': 'geometry_simplify',
+ 'id': 'id',
+ 'ignore_transfers': 'ignore_transfers',
+ 'instructions': 'instructions',
+ 'instructions_format': 'instructions_format',
+ 'language': 'language',
+ 'maneuvers': 'maneuvers',
+ 'maximum_speed': 'maximum_speed',
+ 'options': 'options',
+ 'preference': 'preference',
+ 'radiuses': 'radiuses',
+ 'roundabout_exits': 'roundabout_exits',
+ 'schedule': 'schedule',
+ 'schedule_duration': 'schedule_duration',
+ 'schedule_rows': 'schedule_rows',
+ 'skip_segments': 'skip_segments',
+ 'suppress_warnings': 'suppress_warnings',
+ 'units': 'units',
+ 'walking_time': 'walking_time'
+ }
+
+ def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time=None): # noqa: E501
+ """DirectionsService - a model defined in Swagger""" # noqa: E501
+ self._alternative_routes = None
+ self._attributes = None
+ self._bearings = None
+ self._continue_straight = None
+ self._coordinates = None
+ self._elevation = None
+ self._extra_info = None
+ self._geometry = None
+ self._geometry_simplify = None
+ self._id = None
+ self._ignore_transfers = None
+ self._instructions = None
+ self._instructions_format = None
+ self._language = None
+ self._maneuvers = None
+ self._maximum_speed = None
+ self._options = None
+ self._preference = None
+ self._radiuses = None
+ self._roundabout_exits = None
+ self._schedule = None
+ self._schedule_duration = None
+ self._schedule_rows = None
+ self._skip_segments = None
+ self._suppress_warnings = None
+ self._units = None
+ self._walking_time = None
+ self.discriminator = None
+ if alternative_routes is not None:
+ self.alternative_routes = alternative_routes
+ if attributes is not None:
+ self.attributes = attributes
+ if bearings is not None:
+ self.bearings = bearings
+ if continue_straight is not None:
+ self.continue_straight = continue_straight
+ self.coordinates = coordinates
+ if elevation is not None:
+ self.elevation = elevation
+ if extra_info is not None:
+ self.extra_info = extra_info
+ if geometry is not None:
+ self.geometry = geometry
+ if geometry_simplify is not None:
+ self.geometry_simplify = geometry_simplify
+ if id is not None:
+ self.id = id
+ if ignore_transfers is not None:
+ self.ignore_transfers = ignore_transfers
+ if instructions is not None:
+ self.instructions = instructions
+ if instructions_format is not None:
+ self.instructions_format = instructions_format
+ if language is not None:
+ self.language = language
+ if maneuvers is not None:
+ self.maneuvers = maneuvers
+ if maximum_speed is not None:
+ self.maximum_speed = maximum_speed
+ if options is not None:
+ self.options = options
+ if preference is not None:
+ self.preference = preference
+ if radiuses is not None:
+ self.radiuses = radiuses
+ if roundabout_exits is not None:
+ self.roundabout_exits = roundabout_exits
+ if schedule is not None:
+ self.schedule = schedule
+ if schedule_duration is not None:
+ self.schedule_duration = schedule_duration
+ if schedule_rows is not None:
+ self.schedule_rows = schedule_rows
+ if skip_segments is not None:
+ self.skip_segments = skip_segments
+ if suppress_warnings is not None:
+ self.suppress_warnings = suppress_warnings
+ if units is not None:
+ self.units = units
+ if walking_time is not None:
+ self.walking_time = walking_time
+
+ @property
+ def alternative_routes(self):
+ """Gets the alternative_routes of this DirectionsService. # noqa: E501
+
+
+ :return: The alternative_routes of this DirectionsService. # noqa: E501
+ :rtype: AlternativeRoutes
+ """
+ return self._alternative_routes
+
+ @alternative_routes.setter
+ def alternative_routes(self, alternative_routes):
+ """Sets the alternative_routes of this DirectionsService.
+
+
+ :param alternative_routes: The alternative_routes of this DirectionsService. # noqa: E501
+ :type: AlternativeRoutes
+ """
+
+ self._alternative_routes = alternative_routes
+
+ @property
+ def attributes(self):
+ """Gets the attributes of this DirectionsService. # noqa: E501
+
+ List of route attributes # noqa: E501
+
+ :return: The attributes of this DirectionsService. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._attributes
+
+ @attributes.setter
+ def attributes(self, attributes):
+ """Sets the attributes of this DirectionsService.
+
+ List of route attributes # noqa: E501
+
+ :param attributes: The attributes of this DirectionsService. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["avgspeed", "detourfactor", "percentage"] # noqa: E501
+ if not set(attributes).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._attributes = attributes
+
+ @property
+ def bearings(self):
+ """Gets the bearings of this DirectionsService. # noqa: E501
+
+ 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]`. # noqa: E501
+
+ :return: The bearings of this DirectionsService. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._bearings
+
+ @bearings.setter
+ def bearings(self, bearings):
+ """Sets the bearings of this DirectionsService.
+
+ 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]`. # noqa: E501
+
+ :param bearings: The bearings of this DirectionsService. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._bearings = bearings
+
+ @property
+ def continue_straight(self):
+ """Gets the continue_straight of this DirectionsService. # noqa: E501
+
+ Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
+
+ :return: The continue_straight of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._continue_straight
+
+ @continue_straight.setter
+ def continue_straight(self, continue_straight):
+ """Sets the continue_straight of this DirectionsService.
+
+ Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
+
+ :param continue_straight: The continue_straight of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._continue_straight = continue_straight
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this DirectionsService. # noqa: E501
+
+ The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The coordinates of this DirectionsService. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this DirectionsService.
+
+ The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param coordinates: The coordinates of this DirectionsService. # noqa: E501
+ :type: list[list[float]]
+ """
+ if coordinates is None:
+ raise ValueError("Invalid value for `coordinates`, must not be `None`") # noqa: E501
+
+ self._coordinates = coordinates
+
+ @property
+ def elevation(self):
+ """Gets the elevation of this DirectionsService. # noqa: E501
+
+ Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
+
+ :return: The elevation of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._elevation
+
+ @elevation.setter
+ def elevation(self, elevation):
+ """Sets the elevation of this DirectionsService.
+
+ Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
+
+ :param elevation: The elevation of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._elevation = elevation
+
+ @property
+ def extra_info(self):
+ """Gets the extra_info of this DirectionsService. # noqa: E501
+
+ The extra info items to include in the response # noqa: E501
+
+ :return: The extra_info of this DirectionsService. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._extra_info
+
+ @extra_info.setter
+ def extra_info(self, extra_info):
+ """Sets the extra_info of this DirectionsService.
+
+ The extra info items to include in the response # noqa: E501
+
+ :param extra_info: The extra_info of this DirectionsService. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["steepness", "suitability", "surface", "waycategory", "waytype", "tollways", "traildifficulty", "osmid", "roadaccessrestrictions", "countryinfo", "green", "noise", "csv", "shadow"] # noqa: E501
+ if not set(extra_info).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `extra_info` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(extra_info) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._extra_info = extra_info
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this DirectionsService. # noqa: E501
+
+ Specifies whether to return geometry. # noqa: E501
+
+ :return: The geometry of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this DirectionsService.
+
+ Specifies whether to return geometry. # noqa: E501
+
+ :param geometry: The geometry of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._geometry = geometry
+
+ @property
+ def geometry_simplify(self):
+ """Gets the geometry_simplify of this DirectionsService. # noqa: E501
+
+ Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
+
+ :return: The geometry_simplify of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._geometry_simplify
+
+ @geometry_simplify.setter
+ def geometry_simplify(self, geometry_simplify):
+ """Sets the geometry_simplify of this DirectionsService.
+
+ Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
+
+ :param geometry_simplify: The geometry_simplify of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._geometry_simplify = geometry_simplify
+
+ @property
+ def id(self):
+ """Gets the id of this DirectionsService. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this DirectionsService. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this DirectionsService.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this DirectionsService. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def ignore_transfers(self):
+ """Gets the ignore_transfers of this DirectionsService. # noqa: E501
+
+ Specifies if transfers as criterion should be ignored. # noqa: E501
+
+ :return: The ignore_transfers of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._ignore_transfers
+
+ @ignore_transfers.setter
+ def ignore_transfers(self, ignore_transfers):
+ """Sets the ignore_transfers of this DirectionsService.
+
+ Specifies if transfers as criterion should be ignored. # noqa: E501
+
+ :param ignore_transfers: The ignore_transfers of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._ignore_transfers = ignore_transfers
+
+ @property
+ def instructions(self):
+ """Gets the instructions of this DirectionsService. # noqa: E501
+
+ Specifies whether to return instructions. # noqa: E501
+
+ :return: The instructions of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._instructions
+
+ @instructions.setter
+ def instructions(self, instructions):
+ """Sets the instructions of this DirectionsService.
+
+ Specifies whether to return instructions. # noqa: E501
+
+ :param instructions: The instructions of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._instructions = instructions
+
+ @property
+ def instructions_format(self):
+ """Gets the instructions_format of this DirectionsService. # noqa: E501
+
+ Select html for more verbose instructions. # noqa: E501
+
+ :return: The instructions_format of this DirectionsService. # noqa: E501
+ :rtype: str
+ """
+ return self._instructions_format
+
+ @instructions_format.setter
+ def instructions_format(self, instructions_format):
+ """Sets the instructions_format of this DirectionsService.
+
+ Select html for more verbose instructions. # noqa: E501
+
+ :param instructions_format: The instructions_format of this DirectionsService. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["html", "text"] # noqa: E501
+ if instructions_format not in allowed_values:
+ raise ValueError(
+ "Invalid value for `instructions_format` ({0}), must be one of {1}" # noqa: E501
+ .format(instructions_format, allowed_values)
+ )
+
+ self._instructions_format = instructions_format
+
+ @property
+ def language(self):
+ """Gets the language of this DirectionsService. # noqa: E501
+
+ Language for the route instructions. # noqa: E501
+
+ :return: The language of this DirectionsService. # noqa: E501
+ :rtype: str
+ """
+ return self._language
+
+ @language.setter
+ def language(self, language):
+ """Sets the language of this DirectionsService.
+
+ Language for the route instructions. # noqa: E501
+
+ :param language: The language of this DirectionsService. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
+ if language not in allowed_values:
+ raise ValueError(
+ "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
+ .format(language, allowed_values)
+ )
+
+ self._language = language
+
+ @property
+ def maneuvers(self):
+ """Gets the maneuvers of this DirectionsService. # noqa: E501
+
+ Specifies whether the maneuver object is included into the step object or not. # noqa: E501
+
+ :return: The maneuvers of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._maneuvers
+
+ @maneuvers.setter
+ def maneuvers(self, maneuvers):
+ """Sets the maneuvers of this DirectionsService.
+
+ Specifies whether the maneuver object is included into the step object or not. # noqa: E501
+
+ :param maneuvers: The maneuvers of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._maneuvers = maneuvers
+
+ @property
+ def maximum_speed(self):
+ """Gets the maximum_speed of this DirectionsService. # noqa: E501
+
+ The maximum speed specified by user. # noqa: E501
+
+ :return: The maximum_speed of this DirectionsService. # noqa: E501
+ :rtype: float
+ """
+ return self._maximum_speed
+
+ @maximum_speed.setter
+ def maximum_speed(self, maximum_speed):
+ """Sets the maximum_speed of this DirectionsService.
+
+ The maximum speed specified by user. # noqa: E501
+
+ :param maximum_speed: The maximum_speed of this DirectionsService. # noqa: E501
+ :type: float
+ """
+
+ self._maximum_speed = maximum_speed
+
+ @property
+ def options(self):
+ """Gets the options of this DirectionsService. # noqa: E501
+
+
+ :return: The options of this DirectionsService. # noqa: E501
+ :rtype: RouteOptions
+ """
+ return self._options
+
+ @options.setter
+ def options(self, options):
+ """Sets the options of this DirectionsService.
+
+
+ :param options: The options of this DirectionsService. # noqa: E501
+ :type: RouteOptions
+ """
+
+ self._options = options
+
+ @property
+ def preference(self):
+ """Gets the preference of this DirectionsService. # noqa: E501
+
+ Specifies the route preference # noqa: E501
+
+ :return: The preference of this DirectionsService. # noqa: E501
+ :rtype: str
+ """
+ return self._preference
+
+ @preference.setter
+ def preference(self, preference):
+ """Sets the preference of this DirectionsService.
+
+ Specifies the route preference # noqa: E501
+
+ :param preference: The preference of this DirectionsService. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["fastest", "shortest", "recommended"] # noqa: E501
+ if preference not in allowed_values:
+ raise ValueError(
+ "Invalid value for `preference` ({0}), must be one of {1}" # noqa: E501
+ .format(preference, allowed_values)
+ )
+
+ self._preference = preference
+
+ @property
+ def radiuses(self):
+ """Gets the radiuses of this DirectionsService. # noqa: E501
+
+ 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. # noqa: E501
+
+ :return: The radiuses of this DirectionsService. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._radiuses
+
+ @radiuses.setter
+ def radiuses(self, radiuses):
+ """Sets the radiuses of this DirectionsService.
+
+ 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. # noqa: E501
+
+ :param radiuses: The radiuses of this DirectionsService. # noqa: E501
+ :type: list[float]
+ """
+
+ self._radiuses = radiuses
+
+ @property
+ def roundabout_exits(self):
+ """Gets the roundabout_exits of this DirectionsService. # noqa: E501
+
+ Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
+
+ :return: The roundabout_exits of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._roundabout_exits
+
+ @roundabout_exits.setter
+ def roundabout_exits(self, roundabout_exits):
+ """Sets the roundabout_exits of this DirectionsService.
+
+ Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
+
+ :param roundabout_exits: The roundabout_exits of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._roundabout_exits = roundabout_exits
+
+ @property
+ def schedule(self):
+ """Gets the schedule of this DirectionsService. # noqa: E501
+
+ If true, return a public transport schedule starting at for the next minutes. # noqa: E501
+
+ :return: The schedule of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._schedule
+
+ @schedule.setter
+ def schedule(self, schedule):
+ """Sets the schedule of this DirectionsService.
+
+ If true, return a public transport schedule starting at for the next minutes. # noqa: E501
+
+ :param schedule: The schedule of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._schedule = schedule
+
+ @property
+ def schedule_duration(self):
+ """Gets the schedule_duration of this DirectionsService. # noqa: E501
+
+
+ :return: The schedule_duration of this DirectionsService. # noqa: E501
+ :rtype: V2directionsprofilegeojsonScheduleDuration
+ """
+ return self._schedule_duration
+
+ @schedule_duration.setter
+ def schedule_duration(self, schedule_duration):
+ """Sets the schedule_duration of this DirectionsService.
+
+
+ :param schedule_duration: The schedule_duration of this DirectionsService. # noqa: E501
+ :type: V2directionsprofilegeojsonScheduleDuration
+ """
+
+ self._schedule_duration = schedule_duration
+
+ @property
+ def schedule_rows(self):
+ """Gets the schedule_rows of this DirectionsService. # noqa: E501
+
+ The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
+
+ :return: The schedule_rows of this DirectionsService. # noqa: E501
+ :rtype: int
+ """
+ return self._schedule_rows
+
+ @schedule_rows.setter
+ def schedule_rows(self, schedule_rows):
+ """Sets the schedule_rows of this DirectionsService.
+
+ The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
+
+ :param schedule_rows: The schedule_rows of this DirectionsService. # noqa: E501
+ :type: int
+ """
+
+ self._schedule_rows = schedule_rows
+
+ @property
+ def skip_segments(self):
+ """Gets the skip_segments of this DirectionsService. # noqa: E501
+
+ 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. # noqa: E501
+
+ :return: The skip_segments of this DirectionsService. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._skip_segments
+
+ @skip_segments.setter
+ def skip_segments(self, skip_segments):
+ """Sets the skip_segments of this DirectionsService.
+
+ 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. # noqa: E501
+
+ :param skip_segments: The skip_segments of this DirectionsService. # noqa: E501
+ :type: list[int]
+ """
+
+ self._skip_segments = skip_segments
+
+ @property
+ def suppress_warnings(self):
+ """Gets the suppress_warnings of this DirectionsService. # noqa: E501
+
+ Suppress warning messages in the response # noqa: E501
+
+ :return: The suppress_warnings of this DirectionsService. # noqa: E501
+ :rtype: bool
+ """
+ return self._suppress_warnings
+
+ @suppress_warnings.setter
+ def suppress_warnings(self, suppress_warnings):
+ """Sets the suppress_warnings of this DirectionsService.
+
+ Suppress warning messages in the response # noqa: E501
+
+ :param suppress_warnings: The suppress_warnings of this DirectionsService. # noqa: E501
+ :type: bool
+ """
+
+ self._suppress_warnings = suppress_warnings
+
+ @property
+ def units(self):
+ """Gets the units of this DirectionsService. # noqa: E501
+
+ Specifies the distance unit. # noqa: E501
+
+ :return: The units of this DirectionsService. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this DirectionsService.
+
+ Specifies the distance unit. # noqa: E501
+
+ :param units: The units of this DirectionsService. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ @property
+ def walking_time(self):
+ """Gets the walking_time of this DirectionsService. # noqa: E501
+
+
+ :return: The walking_time of this DirectionsService. # noqa: E501
+ :rtype: V2directionsprofilegeojsonWalkingTime
+ """
+ return self._walking_time
+
+ @walking_time.setter
+ def walking_time(self, walking_time):
+ """Sets the walking_time of this DirectionsService.
+
+
+ :param walking_time: The walking_time of this DirectionsService. # noqa: E501
+ :type: V2directionsprofilegeojsonWalkingTime
+ """
+
+ self._walking_time = walking_time
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(DirectionsService, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, DirectionsService):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/directions_service1.py b/openrouteservice/models/directions_service1.py
new file mode 100644
index 00000000..1f5754c8
--- /dev/null
+++ b/openrouteservice/models/directions_service1.py
@@ -0,0 +1,871 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class DirectionsService1(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'alternative_routes': 'AlternativeRoutes',
+ 'attributes': 'list[str]',
+ 'bearings': 'list[list[float]]',
+ 'continue_straight': 'bool',
+ 'coordinates': 'list[list[float]]',
+ 'elevation': 'bool',
+ 'extra_info': 'list[str]',
+ 'geometry': 'bool',
+ 'geometry_simplify': 'bool',
+ 'id': 'str',
+ 'ignore_transfers': 'bool',
+ 'instructions': 'bool',
+ 'instructions_format': 'str',
+ 'language': 'str',
+ 'maneuvers': 'bool',
+ 'maximum_speed': 'float',
+ 'options': 'RouteOptions',
+ 'preference': 'str',
+ 'radiuses': 'list[float]',
+ 'roundabout_exits': 'bool',
+ 'schedule': 'bool',
+ 'schedule_duration': 'V2directionsprofilegeojsonScheduleDuration',
+ 'schedule_rows': 'int',
+ 'skip_segments': 'list[int]',
+ 'suppress_warnings': 'bool',
+ 'units': 'str',
+ 'walking_time': 'V2directionsprofilegeojsonWalkingTime'
+ }
+
+ attribute_map = {
+ 'alternative_routes': 'alternative_routes',
+ 'attributes': 'attributes',
+ 'bearings': 'bearings',
+ 'continue_straight': 'continue_straight',
+ 'coordinates': 'coordinates',
+ 'elevation': 'elevation',
+ 'extra_info': 'extra_info',
+ 'geometry': 'geometry',
+ 'geometry_simplify': 'geometry_simplify',
+ 'id': 'id',
+ 'ignore_transfers': 'ignore_transfers',
+ 'instructions': 'instructions',
+ 'instructions_format': 'instructions_format',
+ 'language': 'language',
+ 'maneuvers': 'maneuvers',
+ 'maximum_speed': 'maximum_speed',
+ 'options': 'options',
+ 'preference': 'preference',
+ 'radiuses': 'radiuses',
+ 'roundabout_exits': 'roundabout_exits',
+ 'schedule': 'schedule',
+ 'schedule_duration': 'schedule_duration',
+ 'schedule_rows': 'schedule_rows',
+ 'skip_segments': 'skip_segments',
+ 'suppress_warnings': 'suppress_warnings',
+ 'units': 'units',
+ 'walking_time': 'walking_time'
+ }
+
+ def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time=None): # noqa: E501
+ """DirectionsService1 - a model defined in Swagger""" # noqa: E501
+ self._alternative_routes = None
+ self._attributes = None
+ self._bearings = None
+ self._continue_straight = None
+ self._coordinates = None
+ self._elevation = None
+ self._extra_info = None
+ self._geometry = None
+ self._geometry_simplify = None
+ self._id = None
+ self._ignore_transfers = None
+ self._instructions = None
+ self._instructions_format = None
+ self._language = None
+ self._maneuvers = None
+ self._maximum_speed = None
+ self._options = None
+ self._preference = None
+ self._radiuses = None
+ self._roundabout_exits = None
+ self._schedule = None
+ self._schedule_duration = None
+ self._schedule_rows = None
+ self._skip_segments = None
+ self._suppress_warnings = None
+ self._units = None
+ self._walking_time = None
+ self.discriminator = None
+ if alternative_routes is not None:
+ self.alternative_routes = alternative_routes
+ if attributes is not None:
+ self.attributes = attributes
+ if bearings is not None:
+ self.bearings = bearings
+ if continue_straight is not None:
+ self.continue_straight = continue_straight
+ self.coordinates = coordinates
+ if elevation is not None:
+ self.elevation = elevation
+ if extra_info is not None:
+ self.extra_info = extra_info
+ if geometry is not None:
+ self.geometry = geometry
+ if geometry_simplify is not None:
+ self.geometry_simplify = geometry_simplify
+ if id is not None:
+ self.id = id
+ if ignore_transfers is not None:
+ self.ignore_transfers = ignore_transfers
+ if instructions is not None:
+ self.instructions = instructions
+ if instructions_format is not None:
+ self.instructions_format = instructions_format
+ if language is not None:
+ self.language = language
+ if maneuvers is not None:
+ self.maneuvers = maneuvers
+ if maximum_speed is not None:
+ self.maximum_speed = maximum_speed
+ if options is not None:
+ self.options = options
+ if preference is not None:
+ self.preference = preference
+ if radiuses is not None:
+ self.radiuses = radiuses
+ if roundabout_exits is not None:
+ self.roundabout_exits = roundabout_exits
+ if schedule is not None:
+ self.schedule = schedule
+ if schedule_duration is not None:
+ self.schedule_duration = schedule_duration
+ if schedule_rows is not None:
+ self.schedule_rows = schedule_rows
+ if skip_segments is not None:
+ self.skip_segments = skip_segments
+ if suppress_warnings is not None:
+ self.suppress_warnings = suppress_warnings
+ if units is not None:
+ self.units = units
+ if walking_time is not None:
+ self.walking_time = walking_time
+
+ @property
+ def alternative_routes(self):
+ """Gets the alternative_routes of this DirectionsService1. # noqa: E501
+
+
+ :return: The alternative_routes of this DirectionsService1. # noqa: E501
+ :rtype: AlternativeRoutes
+ """
+ return self._alternative_routes
+
+ @alternative_routes.setter
+ def alternative_routes(self, alternative_routes):
+ """Sets the alternative_routes of this DirectionsService1.
+
+
+ :param alternative_routes: The alternative_routes of this DirectionsService1. # noqa: E501
+ :type: AlternativeRoutes
+ """
+
+ self._alternative_routes = alternative_routes
+
+ @property
+ def attributes(self):
+ """Gets the attributes of this DirectionsService1. # noqa: E501
+
+ List of route attributes # noqa: E501
+
+ :return: The attributes of this DirectionsService1. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._attributes
+
+ @attributes.setter
+ def attributes(self, attributes):
+ """Sets the attributes of this DirectionsService1.
+
+ List of route attributes # noqa: E501
+
+ :param attributes: The attributes of this DirectionsService1. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["avgspeed", "detourfactor", "percentage"] # noqa: E501
+ if not set(attributes).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._attributes = attributes
+
+ @property
+ def bearings(self):
+ """Gets the bearings of this DirectionsService1. # noqa: E501
+
+ 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]`. # noqa: E501
+
+ :return: The bearings of this DirectionsService1. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._bearings
+
+ @bearings.setter
+ def bearings(self, bearings):
+ """Sets the bearings of this DirectionsService1.
+
+ 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]`. # noqa: E501
+
+ :param bearings: The bearings of this DirectionsService1. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._bearings = bearings
+
+ @property
+ def continue_straight(self):
+ """Gets the continue_straight of this DirectionsService1. # noqa: E501
+
+ Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
+
+ :return: The continue_straight of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._continue_straight
+
+ @continue_straight.setter
+ def continue_straight(self, continue_straight):
+ """Sets the continue_straight of this DirectionsService1.
+
+ Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
+
+ :param continue_straight: The continue_straight of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._continue_straight = continue_straight
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this DirectionsService1. # noqa: E501
+
+ The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The coordinates of this DirectionsService1. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this DirectionsService1.
+
+ The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param coordinates: The coordinates of this DirectionsService1. # noqa: E501
+ :type: list[list[float]]
+ """
+ if coordinates is None:
+ raise ValueError("Invalid value for `coordinates`, must not be `None`") # noqa: E501
+
+ self._coordinates = coordinates
+
+ @property
+ def elevation(self):
+ """Gets the elevation of this DirectionsService1. # noqa: E501
+
+ Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
+
+ :return: The elevation of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._elevation
+
+ @elevation.setter
+ def elevation(self, elevation):
+ """Sets the elevation of this DirectionsService1.
+
+ Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
+
+ :param elevation: The elevation of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._elevation = elevation
+
+ @property
+ def extra_info(self):
+ """Gets the extra_info of this DirectionsService1. # noqa: E501
+
+ The extra info items to include in the response # noqa: E501
+
+ :return: The extra_info of this DirectionsService1. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._extra_info
+
+ @extra_info.setter
+ def extra_info(self, extra_info):
+ """Sets the extra_info of this DirectionsService1.
+
+ The extra info items to include in the response # noqa: E501
+
+ :param extra_info: The extra_info of this DirectionsService1. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["steepness", "suitability", "surface", "waycategory", "waytype", "tollways", "traildifficulty", "osmid", "roadaccessrestrictions", "countryinfo", "green", "noise", "csv", "shadow"] # noqa: E501
+ if not set(extra_info).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `extra_info` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(extra_info) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._extra_info = extra_info
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this DirectionsService1. # noqa: E501
+
+ Specifies whether to return geometry. # noqa: E501
+
+ :return: The geometry of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this DirectionsService1.
+
+ Specifies whether to return geometry. # noqa: E501
+
+ :param geometry: The geometry of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._geometry = geometry
+
+ @property
+ def geometry_simplify(self):
+ """Gets the geometry_simplify of this DirectionsService1. # noqa: E501
+
+ Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
+
+ :return: The geometry_simplify of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._geometry_simplify
+
+ @geometry_simplify.setter
+ def geometry_simplify(self, geometry_simplify):
+ """Sets the geometry_simplify of this DirectionsService1.
+
+ Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
+
+ :param geometry_simplify: The geometry_simplify of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._geometry_simplify = geometry_simplify
+
+ @property
+ def id(self):
+ """Gets the id of this DirectionsService1. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this DirectionsService1. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this DirectionsService1.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this DirectionsService1. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def ignore_transfers(self):
+ """Gets the ignore_transfers of this DirectionsService1. # noqa: E501
+
+ Specifies if transfers as criterion should be ignored. # noqa: E501
+
+ :return: The ignore_transfers of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._ignore_transfers
+
+ @ignore_transfers.setter
+ def ignore_transfers(self, ignore_transfers):
+ """Sets the ignore_transfers of this DirectionsService1.
+
+ Specifies if transfers as criterion should be ignored. # noqa: E501
+
+ :param ignore_transfers: The ignore_transfers of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._ignore_transfers = ignore_transfers
+
+ @property
+ def instructions(self):
+ """Gets the instructions of this DirectionsService1. # noqa: E501
+
+ Specifies whether to return instructions. # noqa: E501
+
+ :return: The instructions of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._instructions
+
+ @instructions.setter
+ def instructions(self, instructions):
+ """Sets the instructions of this DirectionsService1.
+
+ Specifies whether to return instructions. # noqa: E501
+
+ :param instructions: The instructions of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._instructions = instructions
+
+ @property
+ def instructions_format(self):
+ """Gets the instructions_format of this DirectionsService1. # noqa: E501
+
+ Select html for more verbose instructions. # noqa: E501
+
+ :return: The instructions_format of this DirectionsService1. # noqa: E501
+ :rtype: str
+ """
+ return self._instructions_format
+
+ @instructions_format.setter
+ def instructions_format(self, instructions_format):
+ """Sets the instructions_format of this DirectionsService1.
+
+ Select html for more verbose instructions. # noqa: E501
+
+ :param instructions_format: The instructions_format of this DirectionsService1. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["html", "text"] # noqa: E501
+ if instructions_format not in allowed_values:
+ raise ValueError(
+ "Invalid value for `instructions_format` ({0}), must be one of {1}" # noqa: E501
+ .format(instructions_format, allowed_values)
+ )
+
+ self._instructions_format = instructions_format
+
+ @property
+ def language(self):
+ """Gets the language of this DirectionsService1. # noqa: E501
+
+ Language for the route instructions. # noqa: E501
+
+ :return: The language of this DirectionsService1. # noqa: E501
+ :rtype: str
+ """
+ return self._language
+
+ @language.setter
+ def language(self, language):
+ """Sets the language of this DirectionsService1.
+
+ Language for the route instructions. # noqa: E501
+
+ :param language: The language of this DirectionsService1. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
+ if language not in allowed_values:
+ raise ValueError(
+ "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
+ .format(language, allowed_values)
+ )
+
+ self._language = language
+
+ @property
+ def maneuvers(self):
+ """Gets the maneuvers of this DirectionsService1. # noqa: E501
+
+ Specifies whether the maneuver object is included into the step object or not. # noqa: E501
+
+ :return: The maneuvers of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._maneuvers
+
+ @maneuvers.setter
+ def maneuvers(self, maneuvers):
+ """Sets the maneuvers of this DirectionsService1.
+
+ Specifies whether the maneuver object is included into the step object or not. # noqa: E501
+
+ :param maneuvers: The maneuvers of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._maneuvers = maneuvers
+
+ @property
+ def maximum_speed(self):
+ """Gets the maximum_speed of this DirectionsService1. # noqa: E501
+
+ The maximum speed specified by user. # noqa: E501
+
+ :return: The maximum_speed of this DirectionsService1. # noqa: E501
+ :rtype: float
+ """
+ return self._maximum_speed
+
+ @maximum_speed.setter
+ def maximum_speed(self, maximum_speed):
+ """Sets the maximum_speed of this DirectionsService1.
+
+ The maximum speed specified by user. # noqa: E501
+
+ :param maximum_speed: The maximum_speed of this DirectionsService1. # noqa: E501
+ :type: float
+ """
+
+ self._maximum_speed = maximum_speed
+
+ @property
+ def options(self):
+ """Gets the options of this DirectionsService1. # noqa: E501
+
+
+ :return: The options of this DirectionsService1. # noqa: E501
+ :rtype: RouteOptions
+ """
+ return self._options
+
+ @options.setter
+ def options(self, options):
+ """Sets the options of this DirectionsService1.
+
+
+ :param options: The options of this DirectionsService1. # noqa: E501
+ :type: RouteOptions
+ """
+
+ self._options = options
+
+ @property
+ def preference(self):
+ """Gets the preference of this DirectionsService1. # noqa: E501
+
+ Specifies the route preference # noqa: E501
+
+ :return: The preference of this DirectionsService1. # noqa: E501
+ :rtype: str
+ """
+ return self._preference
+
+ @preference.setter
+ def preference(self, preference):
+ """Sets the preference of this DirectionsService1.
+
+ Specifies the route preference # noqa: E501
+
+ :param preference: The preference of this DirectionsService1. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["fastest", "shortest", "recommended"] # noqa: E501
+ if preference not in allowed_values:
+ raise ValueError(
+ "Invalid value for `preference` ({0}), must be one of {1}" # noqa: E501
+ .format(preference, allowed_values)
+ )
+
+ self._preference = preference
+
+ @property
+ def radiuses(self):
+ """Gets the radiuses of this DirectionsService1. # noqa: E501
+
+ 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. # noqa: E501
+
+ :return: The radiuses of this DirectionsService1. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._radiuses
+
+ @radiuses.setter
+ def radiuses(self, radiuses):
+ """Sets the radiuses of this DirectionsService1.
+
+ 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. # noqa: E501
+
+ :param radiuses: The radiuses of this DirectionsService1. # noqa: E501
+ :type: list[float]
+ """
+
+ self._radiuses = radiuses
+
+ @property
+ def roundabout_exits(self):
+ """Gets the roundabout_exits of this DirectionsService1. # noqa: E501
+
+ Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
+
+ :return: The roundabout_exits of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._roundabout_exits
+
+ @roundabout_exits.setter
+ def roundabout_exits(self, roundabout_exits):
+ """Sets the roundabout_exits of this DirectionsService1.
+
+ Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
+
+ :param roundabout_exits: The roundabout_exits of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._roundabout_exits = roundabout_exits
+
+ @property
+ def schedule(self):
+ """Gets the schedule of this DirectionsService1. # noqa: E501
+
+ If true, return a public transport schedule starting at for the next minutes. # noqa: E501
+
+ :return: The schedule of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._schedule
+
+ @schedule.setter
+ def schedule(self, schedule):
+ """Sets the schedule of this DirectionsService1.
+
+ If true, return a public transport schedule starting at for the next minutes. # noqa: E501
+
+ :param schedule: The schedule of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._schedule = schedule
+
+ @property
+ def schedule_duration(self):
+ """Gets the schedule_duration of this DirectionsService1. # noqa: E501
+
+
+ :return: The schedule_duration of this DirectionsService1. # noqa: E501
+ :rtype: V2directionsprofilegeojsonScheduleDuration
+ """
+ return self._schedule_duration
+
+ @schedule_duration.setter
+ def schedule_duration(self, schedule_duration):
+ """Sets the schedule_duration of this DirectionsService1.
+
+
+ :param schedule_duration: The schedule_duration of this DirectionsService1. # noqa: E501
+ :type: V2directionsprofilegeojsonScheduleDuration
+ """
+
+ self._schedule_duration = schedule_duration
+
+ @property
+ def schedule_rows(self):
+ """Gets the schedule_rows of this DirectionsService1. # noqa: E501
+
+ The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
+
+ :return: The schedule_rows of this DirectionsService1. # noqa: E501
+ :rtype: int
+ """
+ return self._schedule_rows
+
+ @schedule_rows.setter
+ def schedule_rows(self, schedule_rows):
+ """Sets the schedule_rows of this DirectionsService1.
+
+ The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
+
+ :param schedule_rows: The schedule_rows of this DirectionsService1. # noqa: E501
+ :type: int
+ """
+
+ self._schedule_rows = schedule_rows
+
+ @property
+ def skip_segments(self):
+ """Gets the skip_segments of this DirectionsService1. # noqa: E501
+
+ 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. # noqa: E501
+
+ :return: The skip_segments of this DirectionsService1. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._skip_segments
+
+ @skip_segments.setter
+ def skip_segments(self, skip_segments):
+ """Sets the skip_segments of this DirectionsService1.
+
+ 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. # noqa: E501
+
+ :param skip_segments: The skip_segments of this DirectionsService1. # noqa: E501
+ :type: list[int]
+ """
+
+ self._skip_segments = skip_segments
+
+ @property
+ def suppress_warnings(self):
+ """Gets the suppress_warnings of this DirectionsService1. # noqa: E501
+
+ Suppress warning messages in the response # noqa: E501
+
+ :return: The suppress_warnings of this DirectionsService1. # noqa: E501
+ :rtype: bool
+ """
+ return self._suppress_warnings
+
+ @suppress_warnings.setter
+ def suppress_warnings(self, suppress_warnings):
+ """Sets the suppress_warnings of this DirectionsService1.
+
+ Suppress warning messages in the response # noqa: E501
+
+ :param suppress_warnings: The suppress_warnings of this DirectionsService1. # noqa: E501
+ :type: bool
+ """
+
+ self._suppress_warnings = suppress_warnings
+
+ @property
+ def units(self):
+ """Gets the units of this DirectionsService1. # noqa: E501
+
+ Specifies the distance unit. # noqa: E501
+
+ :return: The units of this DirectionsService1. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this DirectionsService1.
+
+ Specifies the distance unit. # noqa: E501
+
+ :param units: The units of this DirectionsService1. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ @property
+ def walking_time(self):
+ """Gets the walking_time of this DirectionsService1. # noqa: E501
+
+
+ :return: The walking_time of this DirectionsService1. # noqa: E501
+ :rtype: V2directionsprofilegeojsonWalkingTime
+ """
+ return self._walking_time
+
+ @walking_time.setter
+ def walking_time(self, walking_time):
+ """Sets the walking_time of this DirectionsService1.
+
+
+ :param walking_time: The walking_time of this DirectionsService1. # noqa: E501
+ :type: V2directionsprofilegeojsonWalkingTime
+ """
+
+ self._walking_time = walking_time
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(DirectionsService1, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, DirectionsService1):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
new file mode 100644
index 00000000..934343f8
--- /dev/null
+++ b/openrouteservice/models/elevation_line_body.py
@@ -0,0 +1,216 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ElevationLineBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'dataset': 'str',
+ 'format_in': 'str',
+ 'format_out': 'str',
+ 'geometry': 'object'
+ }
+
+ attribute_map = {
+ 'dataset': 'dataset',
+ 'format_in': 'format_in',
+ 'format_out': 'format_out',
+ 'geometry': 'geometry'
+ }
+
+ def __init__(self, dataset='srtm', format_in=None, format_out='geojson', geometry=None): # noqa: E501
+ """ElevationLineBody - a model defined in Swagger""" # noqa: E501
+ self._dataset = None
+ self._format_in = None
+ self._format_out = None
+ self._geometry = None
+ self.discriminator = None
+ if dataset is not None:
+ self.dataset = dataset
+ self.format_in = format_in
+ if format_out is not None:
+ self.format_out = format_out
+ self.geometry = geometry
+
+ @property
+ def dataset(self):
+ """Gets the dataset of this ElevationLineBody. # noqa: E501
+
+ The elevation dataset to be used. # noqa: E501
+
+ :return: The dataset of this ElevationLineBody. # noqa: E501
+ :rtype: str
+ """
+ return self._dataset
+
+ @dataset.setter
+ def dataset(self, dataset):
+ """Sets the dataset of this ElevationLineBody.
+
+ The elevation dataset to be used. # noqa: E501
+
+ :param dataset: The dataset of this ElevationLineBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["srtm"] # noqa: E501
+ if dataset not in allowed_values:
+ raise ValueError(
+ "Invalid value for `dataset` ({0}), must be one of {1}" # noqa: E501
+ .format(dataset, allowed_values)
+ )
+
+ self._dataset = dataset
+
+ @property
+ def format_in(self):
+ """Gets the format_in of this ElevationLineBody. # noqa: E501
+
+ The input format the API has to expect. # noqa: E501
+
+ :return: The format_in of this ElevationLineBody. # noqa: E501
+ :rtype: str
+ """
+ return self._format_in
+
+ @format_in.setter
+ def format_in(self, format_in):
+ """Sets the format_in of this ElevationLineBody.
+
+ The input format the API has to expect. # noqa: E501
+
+ :param format_in: The format_in of this ElevationLineBody. # noqa: E501
+ :type: str
+ """
+ if format_in is None:
+ raise ValueError("Invalid value for `format_in`, must not be `None`") # noqa: E501
+ allowed_values = ["geojson", "polyline", "encodedpolyline5", "encodedpolyline6"] # noqa: E501
+ if format_in not in allowed_values:
+ raise ValueError(
+ "Invalid value for `format_in` ({0}), must be one of {1}" # noqa: E501
+ .format(format_in, allowed_values)
+ )
+
+ self._format_in = format_in
+
+ @property
+ def format_out(self):
+ """Gets the format_out of this ElevationLineBody. # noqa: E501
+
+ The output format to be returned. # noqa: E501
+
+ :return: The format_out of this ElevationLineBody. # noqa: E501
+ :rtype: str
+ """
+ return self._format_out
+
+ @format_out.setter
+ def format_out(self, format_out):
+ """Sets the format_out of this ElevationLineBody.
+
+ The output format to be returned. # noqa: E501
+
+ :param format_out: The format_out of this ElevationLineBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["geojson", "polyline", "encodedpolyline5", "encodedpolyline6"] # noqa: E501
+ if format_out not in allowed_values:
+ raise ValueError(
+ "Invalid value for `format_out` ({0}), must be one of {1}" # noqa: E501
+ .format(format_out, allowed_values)
+ )
+
+ self._format_out = format_out
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this ElevationLineBody. # noqa: E501
+
+ * geojson: A geometry object of a LineString GeoJSON, e.g. {\"type\": \"LineString\", \"coordinates\": [[13.331302, 38.108433],[13.331273, 38.10849]] } * polyline: A list of coordinate lists, e.g. [[13.331302, 38.108433], [13.331273, 38.10849]] * encodedpolyline5: A Google encoded polyline with a coordinate precision of 5, e.g. u`rgFswjpAKD * encodedpolyline6: A Google encoded polyline with a coordinate precision of 6, e.g. ap}tgAkutlXqBx@ # noqa: E501
+
+ :return: The geometry of this ElevationLineBody. # noqa: E501
+ :rtype: object
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this ElevationLineBody.
+
+ * geojson: A geometry object of a LineString GeoJSON, e.g. {\"type\": \"LineString\", \"coordinates\": [[13.331302, 38.108433],[13.331273, 38.10849]] } * polyline: A list of coordinate lists, e.g. [[13.331302, 38.108433], [13.331273, 38.10849]] * encodedpolyline5: A Google encoded polyline with a coordinate precision of 5, e.g. u`rgFswjpAKD * encodedpolyline6: A Google encoded polyline with a coordinate precision of 6, e.g. ap}tgAkutlXqBx@ # noqa: E501
+
+ :param geometry: The geometry of this ElevationLineBody. # noqa: E501
+ :type: object
+ """
+ if geometry is None:
+ raise ValueError("Invalid value for `geometry`, must not be `None`") # noqa: E501
+
+ self._geometry = geometry
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ElevationLineBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ElevationLineBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
new file mode 100644
index 00000000..e1d71d4c
--- /dev/null
+++ b/openrouteservice/models/elevation_point_body.py
@@ -0,0 +1,216 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ElevationPointBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'dataset': 'str',
+ 'format_in': 'str',
+ 'format_out': 'str',
+ 'geometry': 'object'
+ }
+
+ attribute_map = {
+ 'dataset': 'dataset',
+ 'format_in': 'format_in',
+ 'format_out': 'format_out',
+ 'geometry': 'geometry'
+ }
+
+ def __init__(self, dataset='srtm', format_in=None, format_out='geojson', geometry=None): # noqa: E501
+ """ElevationPointBody - a model defined in Swagger""" # noqa: E501
+ self._dataset = None
+ self._format_in = None
+ self._format_out = None
+ self._geometry = None
+ self.discriminator = None
+ if dataset is not None:
+ self.dataset = dataset
+ self.format_in = format_in
+ if format_out is not None:
+ self.format_out = format_out
+ self.geometry = geometry
+
+ @property
+ def dataset(self):
+ """Gets the dataset of this ElevationPointBody. # noqa: E501
+
+ The elevation dataset to be used. # noqa: E501
+
+ :return: The dataset of this ElevationPointBody. # noqa: E501
+ :rtype: str
+ """
+ return self._dataset
+
+ @dataset.setter
+ def dataset(self, dataset):
+ """Sets the dataset of this ElevationPointBody.
+
+ The elevation dataset to be used. # noqa: E501
+
+ :param dataset: The dataset of this ElevationPointBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["srtm"] # noqa: E501
+ if dataset not in allowed_values:
+ raise ValueError(
+ "Invalid value for `dataset` ({0}), must be one of {1}" # noqa: E501
+ .format(dataset, allowed_values)
+ )
+
+ self._dataset = dataset
+
+ @property
+ def format_in(self):
+ """Gets the format_in of this ElevationPointBody. # noqa: E501
+
+ The input format the API has to expect. # noqa: E501
+
+ :return: The format_in of this ElevationPointBody. # noqa: E501
+ :rtype: str
+ """
+ return self._format_in
+
+ @format_in.setter
+ def format_in(self, format_in):
+ """Sets the format_in of this ElevationPointBody.
+
+ The input format the API has to expect. # noqa: E501
+
+ :param format_in: The format_in of this ElevationPointBody. # noqa: E501
+ :type: str
+ """
+ if format_in is None:
+ raise ValueError("Invalid value for `format_in`, must not be `None`") # noqa: E501
+ allowed_values = ["geojson", "point"] # noqa: E501
+ if format_in not in allowed_values:
+ raise ValueError(
+ "Invalid value for `format_in` ({0}), must be one of {1}" # noqa: E501
+ .format(format_in, allowed_values)
+ )
+
+ self._format_in = format_in
+
+ @property
+ def format_out(self):
+ """Gets the format_out of this ElevationPointBody. # noqa: E501
+
+ The output format to be returned. # noqa: E501
+
+ :return: The format_out of this ElevationPointBody. # noqa: E501
+ :rtype: str
+ """
+ return self._format_out
+
+ @format_out.setter
+ def format_out(self, format_out):
+ """Sets the format_out of this ElevationPointBody.
+
+ The output format to be returned. # noqa: E501
+
+ :param format_out: The format_out of this ElevationPointBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["geojson", "point"] # noqa: E501
+ if format_out not in allowed_values:
+ raise ValueError(
+ "Invalid value for `format_out` ({0}), must be one of {1}" # noqa: E501
+ .format(format_out, allowed_values)
+ )
+
+ self._format_out = format_out
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this ElevationPointBody. # noqa: E501
+
+ * geojson: A geometry object of a Point GeoJSON, e.g. {\"type\": \"Point\", \"coordinates\": [13.331273, 38.10849] } * point: A coordinate list, e.g. [13.331273, 38.10849] # noqa: E501
+
+ :return: The geometry of this ElevationPointBody. # noqa: E501
+ :rtype: object
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this ElevationPointBody.
+
+ * geojson: A geometry object of a Point GeoJSON, e.g. {\"type\": \"Point\", \"coordinates\": [13.331273, 38.10849] } * point: A coordinate list, e.g. [13.331273, 38.10849] # noqa: E501
+
+ :param geometry: The geometry of this ElevationPointBody. # noqa: E501
+ :type: object
+ """
+ if geometry is None:
+ raise ValueError("Invalid value for `geometry`, must not be `None`") # noqa: E501
+
+ self._geometry = geometry
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ElevationPointBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ElevationPointBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/engine_info.py b/openrouteservice/models/engine_info.py
new file mode 100644
index 00000000..d08e012e
--- /dev/null
+++ b/openrouteservice/models/engine_info.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class EngineInfo(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'build_date': 'str',
+ 'graph_date': 'str',
+ 'version': 'str'
+ }
+
+ attribute_map = {
+ 'build_date': 'build_date',
+ 'graph_date': 'graph_date',
+ 'version': 'version'
+ }
+
+ def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E501
+ """EngineInfo - a model defined in Swagger""" # noqa: E501
+ self._build_date = None
+ self._graph_date = None
+ self._version = None
+ self.discriminator = None
+ if build_date is not None:
+ self.build_date = build_date
+ if graph_date is not None:
+ self.graph_date = graph_date
+ if version is not None:
+ self.version = version
+
+ @property
+ def build_date(self):
+ """Gets the build_date of this EngineInfo. # noqa: E501
+
+ The date that the service was last updated # noqa: E501
+
+ :return: The build_date of this EngineInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._build_date
+
+ @build_date.setter
+ def build_date(self, build_date):
+ """Sets the build_date of this EngineInfo.
+
+ The date that the service was last updated # noqa: E501
+
+ :param build_date: The build_date of this EngineInfo. # noqa: E501
+ :type: str
+ """
+
+ self._build_date = build_date
+
+ @property
+ def graph_date(self):
+ """Gets the graph_date of this EngineInfo. # noqa: E501
+
+ The date that the graph data was last updated # noqa: E501
+
+ :return: The graph_date of this EngineInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._graph_date
+
+ @graph_date.setter
+ def graph_date(self, graph_date):
+ """Sets the graph_date of this EngineInfo.
+
+ The date that the graph data was last updated # noqa: E501
+
+ :param graph_date: The graph_date of this EngineInfo. # noqa: E501
+ :type: str
+ """
+
+ self._graph_date = graph_date
+
+ @property
+ def version(self):
+ """Gets the version of this EngineInfo. # noqa: E501
+
+ The backend version of the openrouteservice that was queried # noqa: E501
+
+ :return: The version of this EngineInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this EngineInfo.
+
+ The backend version of the openrouteservice that was queried # noqa: E501
+
+ :param version: The version of this EngineInfo. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(EngineInfo, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, EngineInfo):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_features_object.py b/openrouteservice/models/geo_json_features_object.py
new file mode 100644
index 00000000..220f476d
--- /dev/null
+++ b/openrouteservice/models/geo_json_features_object.py
@@ -0,0 +1,162 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONFeaturesObject(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'feature_properties': 'GeoJSONPropertiesObject',
+ 'geometry': 'GeoJSONGeometryObject',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'feature_properties': 'feature_properties',
+ 'geometry': 'geometry',
+ 'type': 'type'
+ }
+
+ def __init__(self, feature_properties=None, geometry=None, type='Feature'): # noqa: E501
+ """GeoJSONFeaturesObject - a model defined in Swagger""" # noqa: E501
+ self._feature_properties = None
+ self._geometry = None
+ self._type = None
+ self.discriminator = None
+ if feature_properties is not None:
+ self.feature_properties = feature_properties
+ if geometry is not None:
+ self.geometry = geometry
+ if type is not None:
+ self.type = type
+
+ @property
+ def feature_properties(self):
+ """Gets the feature_properties of this GeoJSONFeaturesObject. # noqa: E501
+
+
+ :return: The feature_properties of this GeoJSONFeaturesObject. # noqa: E501
+ :rtype: GeoJSONPropertiesObject
+ """
+ return self._feature_properties
+
+ @feature_properties.setter
+ def feature_properties(self, feature_properties):
+ """Sets the feature_properties of this GeoJSONFeaturesObject.
+
+
+ :param feature_properties: The feature_properties of this GeoJSONFeaturesObject. # noqa: E501
+ :type: GeoJSONPropertiesObject
+ """
+
+ self._feature_properties = feature_properties
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this GeoJSONFeaturesObject. # noqa: E501
+
+
+ :return: The geometry of this GeoJSONFeaturesObject. # noqa: E501
+ :rtype: GeoJSONGeometryObject
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this GeoJSONFeaturesObject.
+
+
+ :param geometry: The geometry of this GeoJSONFeaturesObject. # noqa: E501
+ :type: GeoJSONGeometryObject
+ """
+
+ self._geometry = geometry
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONFeaturesObject. # noqa: E501
+
+
+ :return: The type of this GeoJSONFeaturesObject. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONFeaturesObject.
+
+
+ :param type: The type of this GeoJSONFeaturesObject. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONFeaturesObject, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONFeaturesObject):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_geometry_object.py b/openrouteservice/models/geo_json_geometry_object.py
new file mode 100644
index 00000000..8bb14208
--- /dev/null
+++ b/openrouteservice/models/geo_json_geometry_object.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONGeometryObject(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coordinates': 'list[float]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'coordinates': 'coordinates',
+ 'type': 'type'
+ }
+
+ def __init__(self, coordinates=None, type='Point'): # noqa: E501
+ """GeoJSONGeometryObject - a model defined in Swagger""" # noqa: E501
+ self._coordinates = None
+ self._type = None
+ self.discriminator = None
+ if coordinates is not None:
+ self.coordinates = coordinates
+ if type is not None:
+ self.type = type
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this GeoJSONGeometryObject. # noqa: E501
+
+
+ :return: The coordinates of this GeoJSONGeometryObject. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this GeoJSONGeometryObject.
+
+
+ :param coordinates: The coordinates of this GeoJSONGeometryObject. # noqa: E501
+ :type: list[float]
+ """
+
+ self._coordinates = coordinates
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONGeometryObject. # noqa: E501
+
+
+ :return: The type of this GeoJSONGeometryObject. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONGeometryObject.
+
+
+ :param type: The type of this GeoJSONGeometryObject. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONGeometryObject, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONGeometryObject):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrone_base.py b/openrouteservice/models/geo_json_isochrone_base.py
new file mode 100644
index 00000000..b45658a6
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrone_base.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochroneBase(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'geometry': 'GeoJSONIsochroneBaseGeometry',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'geometry': 'geometry',
+ 'type': 'type'
+ }
+
+ def __init__(self, geometry=None, type=None): # noqa: E501
+ """GeoJSONIsochroneBase - a model defined in Swagger""" # noqa: E501
+ self._geometry = None
+ self._type = None
+ self.discriminator = None
+ if geometry is not None:
+ self.geometry = geometry
+ if type is not None:
+ self.type = type
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this GeoJSONIsochroneBase. # noqa: E501
+
+
+ :return: The geometry of this GeoJSONIsochroneBase. # noqa: E501
+ :rtype: GeoJSONIsochroneBaseGeometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this GeoJSONIsochroneBase.
+
+
+ :param geometry: The geometry of this GeoJSONIsochroneBase. # noqa: E501
+ :type: GeoJSONIsochroneBaseGeometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONIsochroneBase. # noqa: E501
+
+
+ :return: The type of this GeoJSONIsochroneBase. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONIsochroneBase.
+
+
+ :param type: The type of this GeoJSONIsochroneBase. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochroneBase, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochroneBase):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrone_base_geometry.py b/openrouteservice/models/geo_json_isochrone_base_geometry.py
new file mode 100644
index 00000000..d1750a8b
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrone_base_geometry.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochroneBaseGeometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'empty': 'bool'
+ }
+
+ attribute_map = {
+ 'empty': 'empty'
+ }
+
+ def __init__(self, empty=None): # noqa: E501
+ """GeoJSONIsochroneBaseGeometry - a model defined in Swagger""" # noqa: E501
+ self._empty = None
+ self.discriminator = None
+ if empty is not None:
+ self.empty = empty
+
+ @property
+ def empty(self):
+ """Gets the empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+
+
+ :return: The empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+ :rtype: bool
+ """
+ return self._empty
+
+ @empty.setter
+ def empty(self, empty):
+ """Sets the empty of this GeoJSONIsochroneBaseGeometry.
+
+
+ :param empty: The empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+ :type: bool
+ """
+
+ self._empty = empty
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochroneBaseGeometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochroneBaseGeometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response.py b/openrouteservice/models/geo_json_isochrones_response.py
new file mode 100644
index 00000000..14f8791b
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrones_response.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochronesResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[GeoJSONIsochronesResponseFeatures]',
+ 'metadata': 'GeoJSONIsochronesResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
+ """GeoJSONIsochronesResponse - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this GeoJSONIsochronesResponse. # noqa: E501
+
+ Bounding box that covers all returned isochrones # noqa: E501
+
+ :return: The bbox of this GeoJSONIsochronesResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this GeoJSONIsochronesResponse.
+
+ Bounding box that covers all returned isochrones # noqa: E501
+
+ :param bbox: The bbox of this GeoJSONIsochronesResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this GeoJSONIsochronesResponse. # noqa: E501
+
+
+ :return: The features of this GeoJSONIsochronesResponse. # noqa: E501
+ :rtype: list[GeoJSONIsochronesResponseFeatures]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this GeoJSONIsochronesResponse.
+
+
+ :param features: The features of this GeoJSONIsochronesResponse. # noqa: E501
+ :type: list[GeoJSONIsochronesResponseFeatures]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this GeoJSONIsochronesResponse. # noqa: E501
+
+
+ :return: The metadata of this GeoJSONIsochronesResponse. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this GeoJSONIsochronesResponse.
+
+
+ :param metadata: The metadata of this GeoJSONIsochronesResponse. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONIsochronesResponse. # noqa: E501
+
+
+ :return: The type of this GeoJSONIsochronesResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONIsochronesResponse.
+
+
+ :param type: The type of this GeoJSONIsochronesResponse. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochronesResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochronesResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_features.py b/openrouteservice/models/geo_json_isochrones_response_features.py
new file mode 100644
index 00000000..c3a38a1d
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrones_response_features.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochronesResponseFeatures(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'geometry': 'GeoJSONIsochroneBaseGeometry',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'geometry': 'geometry',
+ 'type': 'type'
+ }
+
+ def __init__(self, geometry=None, type=None): # noqa: E501
+ """GeoJSONIsochronesResponseFeatures - a model defined in Swagger""" # noqa: E501
+ self._geometry = None
+ self._type = None
+ self.discriminator = None
+ if geometry is not None:
+ self.geometry = geometry
+ if type is not None:
+ self.type = type
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+
+
+ :return: The geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+ :rtype: GeoJSONIsochroneBaseGeometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this GeoJSONIsochronesResponseFeatures.
+
+
+ :param geometry: The geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+ :type: GeoJSONIsochroneBaseGeometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+
+
+ :return: The type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONIsochronesResponseFeatures.
+
+
+ :param type: The type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochronesResponseFeatures, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochronesResponseFeatures):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata.py b/openrouteservice/models/geo_json_isochrones_response_metadata.py
new file mode 100644
index 00000000..d4cb19eb
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrones_response_metadata.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochronesResponseMetadata(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'IsochronesProfileBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """GeoJSONIsochronesResponseMetadata - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this GeoJSONIsochronesResponseMetadata.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+
+ :return: The engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this GeoJSONIsochronesResponseMetadata.
+
+
+ :param engine: The engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this GeoJSONIsochronesResponseMetadata.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+
+ :return: The query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: IsochronesProfileBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this GeoJSONIsochronesResponseMetadata.
+
+
+ :param query: The query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: IsochronesProfileBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this GeoJSONIsochronesResponseMetadata.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this GeoJSONIsochronesResponseMetadata.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this GeoJSONIsochronesResponseMetadata.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochronesResponseMetadata, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochronesResponseMetadata):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py b/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
new file mode 100644
index 00000000..b631afaf
--- /dev/null
+++ b/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONIsochronesResponseMetadataEngine(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'build_date': 'str',
+ 'graph_date': 'str',
+ 'version': 'str'
+ }
+
+ attribute_map = {
+ 'build_date': 'build_date',
+ 'graph_date': 'graph_date',
+ 'version': 'version'
+ }
+
+ def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E501
+ """GeoJSONIsochronesResponseMetadataEngine - a model defined in Swagger""" # noqa: E501
+ self._build_date = None
+ self._graph_date = None
+ self._version = None
+ self.discriminator = None
+ if build_date is not None:
+ self.build_date = build_date
+ if graph_date is not None:
+ self.graph_date = graph_date
+ if version is not None:
+ self.version = version
+
+ @property
+ def build_date(self):
+ """Gets the build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+
+ The date that the service was last updated # noqa: E501
+
+ :return: The build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :rtype: str
+ """
+ return self._build_date
+
+ @build_date.setter
+ def build_date(self, build_date):
+ """Sets the build_date of this GeoJSONIsochronesResponseMetadataEngine.
+
+ The date that the service was last updated # noqa: E501
+
+ :param build_date: The build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :type: str
+ """
+
+ self._build_date = build_date
+
+ @property
+ def graph_date(self):
+ """Gets the graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+
+ The date that the graph data was last updated # noqa: E501
+
+ :return: The graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :rtype: str
+ """
+ return self._graph_date
+
+ @graph_date.setter
+ def graph_date(self, graph_date):
+ """Sets the graph_date of this GeoJSONIsochronesResponseMetadataEngine.
+
+ The date that the graph data was last updated # noqa: E501
+
+ :param graph_date: The graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :type: str
+ """
+
+ self._graph_date = graph_date
+
+ @property
+ def version(self):
+ """Gets the version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+
+ The backend version of the openrouteservice that was queried # noqa: E501
+
+ :return: The version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this GeoJSONIsochronesResponseMetadataEngine.
+
+ The backend version of the openrouteservice that was queried # noqa: E501
+
+ :param version: The version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONIsochronesResponseMetadataEngine, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONIsochronesResponseMetadataEngine):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object.py b/openrouteservice/models/geo_json_properties_object.py
new file mode 100644
index 00000000..d73b98ce
--- /dev/null
+++ b/openrouteservice/models/geo_json_properties_object.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONPropertiesObject(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'category_ids': 'GeoJSONPropertiesObjectCategoryIds',
+ 'distance': 'float',
+ 'osm_id': 'float',
+ 'osm_tags': 'GeoJSONPropertiesObjectOsmTags',
+ 'osm_type': 'float'
+ }
+
+ attribute_map = {
+ 'category_ids': 'category_ids',
+ 'distance': 'distance',
+ 'osm_id': 'osm_id',
+ 'osm_tags': 'osm_tags',
+ 'osm_type': 'osm_type'
+ }
+
+ def __init__(self, category_ids=None, distance=None, osm_id=None, osm_tags=None, osm_type=None): # noqa: E501
+ """GeoJSONPropertiesObject - a model defined in Swagger""" # noqa: E501
+ self._category_ids = None
+ self._distance = None
+ self._osm_id = None
+ self._osm_tags = None
+ self._osm_type = None
+ self.discriminator = None
+ if category_ids is not None:
+ self.category_ids = category_ids
+ if distance is not None:
+ self.distance = distance
+ if osm_id is not None:
+ self.osm_id = osm_id
+ if osm_tags is not None:
+ self.osm_tags = osm_tags
+ if osm_type is not None:
+ self.osm_type = osm_type
+
+ @property
+ def category_ids(self):
+ """Gets the category_ids of this GeoJSONPropertiesObject. # noqa: E501
+
+
+ :return: The category_ids of this GeoJSONPropertiesObject. # noqa: E501
+ :rtype: GeoJSONPropertiesObjectCategoryIds
+ """
+ return self._category_ids
+
+ @category_ids.setter
+ def category_ids(self, category_ids):
+ """Sets the category_ids of this GeoJSONPropertiesObject.
+
+
+ :param category_ids: The category_ids of this GeoJSONPropertiesObject. # noqa: E501
+ :type: GeoJSONPropertiesObjectCategoryIds
+ """
+
+ self._category_ids = category_ids
+
+ @property
+ def distance(self):
+ """Gets the distance of this GeoJSONPropertiesObject. # noqa: E501
+
+
+ :return: The distance of this GeoJSONPropertiesObject. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this GeoJSONPropertiesObject.
+
+
+ :param distance: The distance of this GeoJSONPropertiesObject. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def osm_id(self):
+ """Gets the osm_id of this GeoJSONPropertiesObject. # noqa: E501
+
+
+ :return: The osm_id of this GeoJSONPropertiesObject. # noqa: E501
+ :rtype: float
+ """
+ return self._osm_id
+
+ @osm_id.setter
+ def osm_id(self, osm_id):
+ """Sets the osm_id of this GeoJSONPropertiesObject.
+
+
+ :param osm_id: The osm_id of this GeoJSONPropertiesObject. # noqa: E501
+ :type: float
+ """
+
+ self._osm_id = osm_id
+
+ @property
+ def osm_tags(self):
+ """Gets the osm_tags of this GeoJSONPropertiesObject. # noqa: E501
+
+
+ :return: The osm_tags of this GeoJSONPropertiesObject. # noqa: E501
+ :rtype: GeoJSONPropertiesObjectOsmTags
+ """
+ return self._osm_tags
+
+ @osm_tags.setter
+ def osm_tags(self, osm_tags):
+ """Sets the osm_tags of this GeoJSONPropertiesObject.
+
+
+ :param osm_tags: The osm_tags of this GeoJSONPropertiesObject. # noqa: E501
+ :type: GeoJSONPropertiesObjectOsmTags
+ """
+
+ self._osm_tags = osm_tags
+
+ @property
+ def osm_type(self):
+ """Gets the osm_type of this GeoJSONPropertiesObject. # noqa: E501
+
+
+ :return: The osm_type of this GeoJSONPropertiesObject. # noqa: E501
+ :rtype: float
+ """
+ return self._osm_type
+
+ @osm_type.setter
+ def osm_type(self, osm_type):
+ """Sets the osm_type of this GeoJSONPropertiesObject.
+
+
+ :param osm_type: The osm_type of this GeoJSONPropertiesObject. # noqa: E501
+ :type: float
+ """
+
+ self._osm_type = osm_type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONPropertiesObject, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONPropertiesObject):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids.py b/openrouteservice/models/geo_json_properties_object_category_ids.py
new file mode 100644
index 00000000..0459a52d
--- /dev/null
+++ b/openrouteservice/models/geo_json_properties_object_category_ids.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONPropertiesObjectCategoryIds(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'category_id': 'GeoJSONPropertiesObjectCategoryIdsCategoryId'
+ }
+
+ attribute_map = {
+ 'category_id': 'category_id'
+ }
+
+ def __init__(self, category_id=None): # noqa: E501
+ """GeoJSONPropertiesObjectCategoryIds - a model defined in Swagger""" # noqa: E501
+ self._category_id = None
+ self.discriminator = None
+ if category_id is not None:
+ self.category_id = category_id
+
+ @property
+ def category_id(self):
+ """Gets the category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
+
+
+ :return: The category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
+ :rtype: GeoJSONPropertiesObjectCategoryIdsCategoryId
+ """
+ return self._category_id
+
+ @category_id.setter
+ def category_id(self, category_id):
+ """Sets the category_id of this GeoJSONPropertiesObjectCategoryIds.
+
+
+ :param category_id: The category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
+ :type: GeoJSONPropertiesObjectCategoryIdsCategoryId
+ """
+
+ self._category_id = category_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONPropertiesObjectCategoryIds, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONPropertiesObjectCategoryIds):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py b/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
new file mode 100644
index 00000000..19cbdc3a
--- /dev/null
+++ b/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONPropertiesObjectCategoryIdsCategoryId(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'category_group': 'float',
+ 'category_name': 'str'
+ }
+
+ attribute_map = {
+ 'category_group': 'category_group',
+ 'category_name': 'category_name'
+ }
+
+ def __init__(self, category_group=None, category_name=None): # noqa: E501
+ """GeoJSONPropertiesObjectCategoryIdsCategoryId - a model defined in Swagger""" # noqa: E501
+ self._category_group = None
+ self._category_name = None
+ self.discriminator = None
+ if category_group is not None:
+ self.category_group = category_group
+ if category_name is not None:
+ self.category_name = category_name
+
+ @property
+ def category_group(self):
+ """Gets the category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+
+
+ :return: The category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+ :rtype: float
+ """
+ return self._category_group
+
+ @category_group.setter
+ def category_group(self, category_group):
+ """Sets the category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId.
+
+
+ :param category_group: The category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+ :type: float
+ """
+
+ self._category_group = category_group
+
+ @property
+ def category_name(self):
+ """Gets the category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+
+
+ :return: The category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+ :rtype: str
+ """
+ return self._category_name
+
+ @category_name.setter
+ def category_name(self, category_name):
+ """Sets the category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId.
+
+
+ :param category_name: The category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
+ :type: str
+ """
+
+ self._category_name = category_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONPropertiesObjectCategoryIdsCategoryId, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONPropertiesObjectCategoryIdsCategoryId):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_osm_tags.py b/openrouteservice/models/geo_json_properties_object_osm_tags.py
new file mode 100644
index 00000000..0c441430
--- /dev/null
+++ b/openrouteservice/models/geo_json_properties_object_osm_tags.py
@@ -0,0 +1,266 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONPropertiesObjectOsmTags(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'address': 'str',
+ 'distance': 'str',
+ 'fee': 'str',
+ 'name': 'str',
+ 'opening_hours': 'str',
+ 'website': 'str',
+ 'wheelchair': 'str'
+ }
+
+ attribute_map = {
+ 'address': 'address',
+ 'distance': 'distance',
+ 'fee': 'fee',
+ 'name': 'name',
+ 'opening_hours': 'opening_hours',
+ 'website': 'website',
+ 'wheelchair': 'wheelchair'
+ }
+
+ def __init__(self, address=None, distance=None, fee=None, name=None, opening_hours=None, website=None, wheelchair=None): # noqa: E501
+ """GeoJSONPropertiesObjectOsmTags - a model defined in Swagger""" # noqa: E501
+ self._address = None
+ self._distance = None
+ self._fee = None
+ self._name = None
+ self._opening_hours = None
+ self._website = None
+ self._wheelchair = None
+ self.discriminator = None
+ if address is not None:
+ self.address = address
+ if distance is not None:
+ self.distance = distance
+ if fee is not None:
+ self.fee = fee
+ if name is not None:
+ self.name = name
+ if opening_hours is not None:
+ self.opening_hours = opening_hours
+ if website is not None:
+ self.website = website
+ if wheelchair is not None:
+ self.wheelchair = wheelchair
+
+ @property
+ def address(self):
+ """Gets the address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._address
+
+ @address.setter
+ def address(self, address):
+ """Sets the address of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param address: The address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._address = address
+
+ @property
+ def distance(self):
+ """Gets the distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param distance: The distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._distance = distance
+
+ @property
+ def fee(self):
+ """Gets the fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._fee
+
+ @fee.setter
+ def fee(self, fee):
+ """Sets the fee of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param fee: The fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._fee = fee
+
+ @property
+ def name(self):
+ """Gets the name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param name: The name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def opening_hours(self):
+ """Gets the opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._opening_hours
+
+ @opening_hours.setter
+ def opening_hours(self, opening_hours):
+ """Sets the opening_hours of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param opening_hours: The opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._opening_hours = opening_hours
+
+ @property
+ def website(self):
+ """Gets the website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._website
+
+ @website.setter
+ def website(self, website):
+ """Sets the website of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param website: The website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._website = website
+
+ @property
+ def wheelchair(self):
+ """Gets the wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+
+
+ :return: The wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :rtype: str
+ """
+ return self._wheelchair
+
+ @wheelchair.setter
+ def wheelchair(self, wheelchair):
+ """Sets the wheelchair of this GeoJSONPropertiesObjectOsmTags.
+
+
+ :param wheelchair: The wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
+ :type: str
+ """
+
+ self._wheelchair = wheelchair
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONPropertiesObjectOsmTags, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONPropertiesObjectOsmTags):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_route_response.py b/openrouteservice/models/geo_json_route_response.py
new file mode 100644
index 00000000..3dbc9c06
--- /dev/null
+++ b/openrouteservice/models/geo_json_route_response.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONRouteResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[object]',
+ 'metadata': 'GeoJSONRouteResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
+ """GeoJSONRouteResponse - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this GeoJSONRouteResponse. # noqa: E501
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :return: The bbox of this GeoJSONRouteResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this GeoJSONRouteResponse.
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :param bbox: The bbox of this GeoJSONRouteResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this GeoJSONRouteResponse. # noqa: E501
+
+
+ :return: The features of this GeoJSONRouteResponse. # noqa: E501
+ :rtype: list[object]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this GeoJSONRouteResponse.
+
+
+ :param features: The features of this GeoJSONRouteResponse. # noqa: E501
+ :type: list[object]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this GeoJSONRouteResponse. # noqa: E501
+
+
+ :return: The metadata of this GeoJSONRouteResponse. # noqa: E501
+ :rtype: GeoJSONRouteResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this GeoJSONRouteResponse.
+
+
+ :param metadata: The metadata of this GeoJSONRouteResponse. # noqa: E501
+ :type: GeoJSONRouteResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONRouteResponse. # noqa: E501
+
+
+ :return: The type of this GeoJSONRouteResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONRouteResponse.
+
+
+ :param type: The type of this GeoJSONRouteResponse. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONRouteResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONRouteResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_route_response_metadata.py b/openrouteservice/models/geo_json_route_response_metadata.py
new file mode 100644
index 00000000..f1723c7b
--- /dev/null
+++ b/openrouteservice/models/geo_json_route_response_metadata.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONRouteResponseMetadata(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'DirectionsService1',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """GeoJSONRouteResponseMetadata - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this GeoJSONRouteResponseMetadata.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+
+ :return: The engine of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this GeoJSONRouteResponseMetadata.
+
+
+ :param engine: The engine of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this GeoJSONRouteResponseMetadata.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this GeoJSONRouteResponseMetadata.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+
+ :return: The query of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: DirectionsService1
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this GeoJSONRouteResponseMetadata.
+
+
+ :param query: The query of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: DirectionsService1
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this GeoJSONRouteResponseMetadata.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this GeoJSONRouteResponseMetadata.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this GeoJSONRouteResponseMetadata.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONRouteResponseMetadata, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONRouteResponseMetadata):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geocode_response.py b/openrouteservice/models/geocode_response.py
new file mode 100644
index 00000000..1e2cd00c
--- /dev/null
+++ b/openrouteservice/models/geocode_response.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeocodeResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[object]',
+ 'geocoding': 'object',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'geocoding': 'geocoding',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, geocoding=None, type=None): # noqa: E501
+ """GeocodeResponse - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._geocoding = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if geocoding is not None:
+ self.geocoding = geocoding
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this GeocodeResponse. # noqa: E501
+
+
+ :return: The bbox of this GeocodeResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this GeocodeResponse.
+
+
+ :param bbox: The bbox of this GeocodeResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this GeocodeResponse. # noqa: E501
+
+
+ :return: The features of this GeocodeResponse. # noqa: E501
+ :rtype: list[object]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this GeocodeResponse.
+
+
+ :param features: The features of this GeocodeResponse. # noqa: E501
+ :type: list[object]
+ """
+
+ self._features = features
+
+ @property
+ def geocoding(self):
+ """Gets the geocoding of this GeocodeResponse. # noqa: E501
+
+
+ :return: The geocoding of this GeocodeResponse. # noqa: E501
+ :rtype: object
+ """
+ return self._geocoding
+
+ @geocoding.setter
+ def geocoding(self, geocoding):
+ """Sets the geocoding of this GeocodeResponse.
+
+
+ :param geocoding: The geocoding of this GeocodeResponse. # noqa: E501
+ :type: object
+ """
+
+ self._geocoding = geocoding
+
+ @property
+ def type(self):
+ """Gets the type of this GeocodeResponse. # noqa: E501
+
+
+ :return: The type of this GeocodeResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeocodeResponse.
+
+
+ :param type: The type of this GeocodeResponse. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeocodeResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeocodeResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/gpx.py b/openrouteservice/models/gpx.py
new file mode 100644
index 00000000..d059994e
--- /dev/null
+++ b/openrouteservice/models/gpx.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class Gpx(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'gpx_route_elements': 'list[object]'
+ }
+
+ attribute_map = {
+ 'gpx_route_elements': 'gpxRouteElements'
+ }
+
+ def __init__(self, gpx_route_elements=None): # noqa: E501
+ """Gpx - a model defined in Swagger""" # noqa: E501
+ self._gpx_route_elements = None
+ self.discriminator = None
+ if gpx_route_elements is not None:
+ self.gpx_route_elements = gpx_route_elements
+
+ @property
+ def gpx_route_elements(self):
+ """Gets the gpx_route_elements of this Gpx. # noqa: E501
+
+
+ :return: The gpx_route_elements of this Gpx. # noqa: E501
+ :rtype: list[object]
+ """
+ return self._gpx_route_elements
+
+ @gpx_route_elements.setter
+ def gpx_route_elements(self, gpx_route_elements):
+ """Sets the gpx_route_elements of this Gpx.
+
+
+ :param gpx_route_elements: The gpx_route_elements of this Gpx. # noqa: E501
+ :type: list[object]
+ """
+
+ self._gpx_route_elements = gpx_route_elements
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(Gpx, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Gpx):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/graph_export_service.py b/openrouteservice/models/graph_export_service.py
new file mode 100644
index 00000000..fe9e2a83
--- /dev/null
+++ b/openrouteservice/models/graph_export_service.py
@@ -0,0 +1,141 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GraphExportService(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[list[float]]',
+ 'id': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'id': 'id'
+ }
+
+ def __init__(self, bbox=None, id=None): # noqa: E501
+ """GraphExportService - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._id = None
+ self.discriminator = None
+ self.bbox = bbox
+ if id is not None:
+ self.id = id
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this GraphExportService. # noqa: E501
+
+ The bounding box to use for the request as an array of `longitude/latitude` pairs # noqa: E501
+
+ :return: The bbox of this GraphExportService. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this GraphExportService.
+
+ The bounding box to use for the request as an array of `longitude/latitude` pairs # noqa: E501
+
+ :param bbox: The bbox of this GraphExportService. # noqa: E501
+ :type: list[list[float]]
+ """
+ if bbox is None:
+ raise ValueError("Invalid value for `bbox`, must not be `None`") # noqa: E501
+
+ self._bbox = bbox
+
+ @property
+ def id(self):
+ """Gets the id of this GraphExportService. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this GraphExportService. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this GraphExportService.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this GraphExportService. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GraphExportService, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GraphExportService):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response200.py b/openrouteservice/models/inline_response200.py
new file mode 100644
index 00000000..2d32ea90
--- /dev/null
+++ b/openrouteservice/models/inline_response200.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse200(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'geometry': 'InlineResponse200Geometry',
+ 'timestamp': 'int',
+ 'version': 'str'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'geometry': 'geometry',
+ 'timestamp': 'timestamp',
+ 'version': 'version'
+ }
+
+ def __init__(self, attribution=None, geometry=None, timestamp=None, version=None): # noqa: E501
+ """InlineResponse200 - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._geometry = None
+ self._timestamp = None
+ self._version = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if geometry is not None:
+ self.geometry = geometry
+ if timestamp is not None:
+ self.timestamp = timestamp
+ if version is not None:
+ self.version = version
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this InlineResponse200. # noqa: E501
+
+
+ :return: The attribution of this InlineResponse200. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this InlineResponse200.
+
+
+ :param attribution: The attribution of this InlineResponse200. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this InlineResponse200. # noqa: E501
+
+
+ :return: The geometry of this InlineResponse200. # noqa: E501
+ :rtype: InlineResponse200Geometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this InlineResponse200.
+
+
+ :param geometry: The geometry of this InlineResponse200. # noqa: E501
+ :type: InlineResponse200Geometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this InlineResponse200. # noqa: E501
+
+
+ :return: The timestamp of this InlineResponse200. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this InlineResponse200.
+
+
+ :param timestamp: The timestamp of this InlineResponse200. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ @property
+ def version(self):
+ """Gets the version of this InlineResponse200. # noqa: E501
+
+
+ :return: The version of this InlineResponse200. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this InlineResponse200.
+
+
+ :param version: The version of this InlineResponse200. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse200, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse200):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2001.py b/openrouteservice/models/inline_response2001.py
new file mode 100644
index 00000000..195da092
--- /dev/null
+++ b/openrouteservice/models/inline_response2001.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2001(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'geometry': 'InlineResponse2001Geometry',
+ 'timestamp': 'int',
+ 'version': 'str'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'geometry': 'geometry',
+ 'timestamp': 'timestamp',
+ 'version': 'version'
+ }
+
+ def __init__(self, attribution=None, geometry=None, timestamp=None, version=None): # noqa: E501
+ """InlineResponse2001 - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._geometry = None
+ self._timestamp = None
+ self._version = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if geometry is not None:
+ self.geometry = geometry
+ if timestamp is not None:
+ self.timestamp = timestamp
+ if version is not None:
+ self.version = version
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this InlineResponse2001. # noqa: E501
+
+
+ :return: The attribution of this InlineResponse2001. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this InlineResponse2001.
+
+
+ :param attribution: The attribution of this InlineResponse2001. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this InlineResponse2001. # noqa: E501
+
+
+ :return: The geometry of this InlineResponse2001. # noqa: E501
+ :rtype: InlineResponse2001Geometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this InlineResponse2001.
+
+
+ :param geometry: The geometry of this InlineResponse2001. # noqa: E501
+ :type: InlineResponse2001Geometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this InlineResponse2001. # noqa: E501
+
+
+ :return: The timestamp of this InlineResponse2001. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this InlineResponse2001.
+
+
+ :param timestamp: The timestamp of this InlineResponse2001. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ @property
+ def version(self):
+ """Gets the version of this InlineResponse2001. # noqa: E501
+
+
+ :return: The version of this InlineResponse2001. # noqa: E501
+ :rtype: str
+ """
+ return self._version
+
+ @version.setter
+ def version(self, version):
+ """Sets the version of this InlineResponse2001.
+
+
+ :param version: The version of this InlineResponse2001. # noqa: E501
+ :type: str
+ """
+
+ self._version = version
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2001, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2001):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2001_geometry.py b/openrouteservice/models/inline_response2001_geometry.py
new file mode 100644
index 00000000..bd5b2c91
--- /dev/null
+++ b/openrouteservice/models/inline_response2001_geometry.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2001Geometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coordinates': 'list[float]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'coordinates': 'coordinates',
+ 'type': 'type'
+ }
+
+ def __init__(self, coordinates=None, type=None): # noqa: E501
+ """InlineResponse2001Geometry - a model defined in Swagger""" # noqa: E501
+ self._coordinates = None
+ self._type = None
+ self.discriminator = None
+ if coordinates is not None:
+ self.coordinates = coordinates
+ if type is not None:
+ self.type = type
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this InlineResponse2001Geometry. # noqa: E501
+
+
+ :return: The coordinates of this InlineResponse2001Geometry. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this InlineResponse2001Geometry.
+
+
+ :param coordinates: The coordinates of this InlineResponse2001Geometry. # noqa: E501
+ :type: list[float]
+ """
+
+ self._coordinates = coordinates
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse2001Geometry. # noqa: E501
+
+
+ :return: The type of this InlineResponse2001Geometry. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse2001Geometry.
+
+
+ :param type: The type of this InlineResponse2001Geometry. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2001Geometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2001Geometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2002.py b/openrouteservice/models/inline_response2002.py
new file mode 100644
index 00000000..31fa9d0e
--- /dev/null
+++ b/openrouteservice/models/inline_response2002.py
@@ -0,0 +1,222 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'code': 'int',
+ 'error': 'str',
+ 'routes': 'list[InlineResponse2002Routes]',
+ 'summary': 'InlineResponse2002Summary',
+ 'unassigned': 'list[InlineResponse2002Unassigned]'
+ }
+
+ attribute_map = {
+ 'code': 'code',
+ 'error': 'error',
+ 'routes': 'routes',
+ 'summary': 'summary',
+ 'unassigned': 'unassigned'
+ }
+
+ def __init__(self, code=None, error=None, routes=None, summary=None, unassigned=None): # noqa: E501
+ """InlineResponse2002 - a model defined in Swagger""" # noqa: E501
+ self._code = None
+ self._error = None
+ self._routes = None
+ self._summary = None
+ self._unassigned = None
+ self.discriminator = None
+ if code is not None:
+ self.code = code
+ if error is not None:
+ self.error = error
+ if routes is not None:
+ self.routes = routes
+ if summary is not None:
+ self.summary = summary
+ if unassigned is not None:
+ self.unassigned = unassigned
+
+ @property
+ def code(self):
+ """Gets the code of this InlineResponse2002. # noqa: E501
+
+ status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | # noqa: E501
+
+ :return: The code of this InlineResponse2002. # noqa: E501
+ :rtype: int
+ """
+ return self._code
+
+ @code.setter
+ def code(self, code):
+ """Sets the code of this InlineResponse2002.
+
+ status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | # noqa: E501
+
+ :param code: The code of this InlineResponse2002. # noqa: E501
+ :type: int
+ """
+
+ self._code = code
+
+ @property
+ def error(self):
+ """Gets the error of this InlineResponse2002. # noqa: E501
+
+ error message (present if `code` is different from `0`) # noqa: E501
+
+ :return: The error of this InlineResponse2002. # noqa: E501
+ :rtype: str
+ """
+ return self._error
+
+ @error.setter
+ def error(self, error):
+ """Sets the error of this InlineResponse2002.
+
+ error message (present if `code` is different from `0`) # noqa: E501
+
+ :param error: The error of this InlineResponse2002. # noqa: E501
+ :type: str
+ """
+
+ self._error = error
+
+ @property
+ def routes(self):
+ """Gets the routes of this InlineResponse2002. # noqa: E501
+
+ array of `route` objects # noqa: E501
+
+ :return: The routes of this InlineResponse2002. # noqa: E501
+ :rtype: list[InlineResponse2002Routes]
+ """
+ return self._routes
+
+ @routes.setter
+ def routes(self, routes):
+ """Sets the routes of this InlineResponse2002.
+
+ array of `route` objects # noqa: E501
+
+ :param routes: The routes of this InlineResponse2002. # noqa: E501
+ :type: list[InlineResponse2002Routes]
+ """
+
+ self._routes = routes
+
+ @property
+ def summary(self):
+ """Gets the summary of this InlineResponse2002. # noqa: E501
+
+
+ :return: The summary of this InlineResponse2002. # noqa: E501
+ :rtype: InlineResponse2002Summary
+ """
+ return self._summary
+
+ @summary.setter
+ def summary(self, summary):
+ """Sets the summary of this InlineResponse2002.
+
+
+ :param summary: The summary of this InlineResponse2002. # noqa: E501
+ :type: InlineResponse2002Summary
+ """
+
+ self._summary = summary
+
+ @property
+ def unassigned(self):
+ """Gets the unassigned of this InlineResponse2002. # noqa: E501
+
+ array of objects describing unassigned jobs with their `id` and `location` (if provided) # noqa: E501
+
+ :return: The unassigned of this InlineResponse2002. # noqa: E501
+ :rtype: list[InlineResponse2002Unassigned]
+ """
+ return self._unassigned
+
+ @unassigned.setter
+ def unassigned(self, unassigned):
+ """Sets the unassigned of this InlineResponse2002.
+
+ array of objects describing unassigned jobs with their `id` and `location` (if provided) # noqa: E501
+
+ :param unassigned: The unassigned of this InlineResponse2002. # noqa: E501
+ :type: list[InlineResponse2002Unassigned]
+ """
+
+ self._unassigned = unassigned
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2002_routes.py b/openrouteservice/models/inline_response2002_routes.py
new file mode 100644
index 00000000..e512fb0b
--- /dev/null
+++ b/openrouteservice/models/inline_response2002_routes.py
@@ -0,0 +1,336 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002Routes(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'amount': 'list[int]',
+ 'cost': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'geometry': 'str',
+ 'service': 'float',
+ 'steps': 'list[InlineResponse2002Steps]',
+ 'vehicle': 'int',
+ 'waiting_time': 'float'
+ }
+
+ attribute_map = {
+ 'amount': 'amount',
+ 'cost': 'cost',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'geometry': 'geometry',
+ 'service': 'service',
+ 'steps': 'steps',
+ 'vehicle': 'vehicle',
+ 'waiting_time': 'waiting_time'
+ }
+
+ def __init__(self, amount=None, cost=None, distance=None, duration=None, geometry=None, service=None, steps=None, vehicle=None, waiting_time=None): # noqa: E501
+ """InlineResponse2002Routes - a model defined in Swagger""" # noqa: E501
+ self._amount = None
+ self._cost = None
+ self._distance = None
+ self._duration = None
+ self._geometry = None
+ self._service = None
+ self._steps = None
+ self._vehicle = None
+ self._waiting_time = None
+ self.discriminator = None
+ if amount is not None:
+ self.amount = amount
+ if cost is not None:
+ self.cost = cost
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if geometry is not None:
+ self.geometry = geometry
+ if service is not None:
+ self.service = service
+ if steps is not None:
+ self.steps = steps
+ if vehicle is not None:
+ self.vehicle = vehicle
+ if waiting_time is not None:
+ self.waiting_time = waiting_time
+
+ @property
+ def amount(self):
+ """Gets the amount of this InlineResponse2002Routes. # noqa: E501
+
+ total amount for jobs in this route # noqa: E501
+
+ :return: The amount of this InlineResponse2002Routes. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._amount
+
+ @amount.setter
+ def amount(self, amount):
+ """Sets the amount of this InlineResponse2002Routes.
+
+ total amount for jobs in this route # noqa: E501
+
+ :param amount: The amount of this InlineResponse2002Routes. # noqa: E501
+ :type: list[int]
+ """
+
+ self._amount = amount
+
+ @property
+ def cost(self):
+ """Gets the cost of this InlineResponse2002Routes. # noqa: E501
+
+ cost for this route # noqa: E501
+
+ :return: The cost of this InlineResponse2002Routes. # noqa: E501
+ :rtype: float
+ """
+ return self._cost
+
+ @cost.setter
+ def cost(self, cost):
+ """Sets the cost of this InlineResponse2002Routes.
+
+ cost for this route # noqa: E501
+
+ :param cost: The cost of this InlineResponse2002Routes. # noqa: E501
+ :type: float
+ """
+
+ self._cost = cost
+
+ @property
+ def distance(self):
+ """Gets the distance of this InlineResponse2002Routes. # noqa: E501
+
+ total route distance. Only provided when using the `-g` flag # noqa: E501
+
+ :return: The distance of this InlineResponse2002Routes. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this InlineResponse2002Routes.
+
+ total route distance. Only provided when using the `-g` flag # noqa: E501
+
+ :param distance: The distance of this InlineResponse2002Routes. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this InlineResponse2002Routes. # noqa: E501
+
+ total travel time for this route # noqa: E501
+
+ :return: The duration of this InlineResponse2002Routes. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this InlineResponse2002Routes.
+
+ total travel time for this route # noqa: E501
+
+ :param duration: The duration of this InlineResponse2002Routes. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this InlineResponse2002Routes. # noqa: E501
+
+ polyline encoded route geometry. Only provided when using the `-g` flag # noqa: E501
+
+ :return: The geometry of this InlineResponse2002Routes. # noqa: E501
+ :rtype: str
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this InlineResponse2002Routes.
+
+ polyline encoded route geometry. Only provided when using the `-g` flag # noqa: E501
+
+ :param geometry: The geometry of this InlineResponse2002Routes. # noqa: E501
+ :type: str
+ """
+
+ self._geometry = geometry
+
+ @property
+ def service(self):
+ """Gets the service of this InlineResponse2002Routes. # noqa: E501
+
+ total service time for this route # noqa: E501
+
+ :return: The service of this InlineResponse2002Routes. # noqa: E501
+ :rtype: float
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this InlineResponse2002Routes.
+
+ total service time for this route # noqa: E501
+
+ :param service: The service of this InlineResponse2002Routes. # noqa: E501
+ :type: float
+ """
+
+ self._service = service
+
+ @property
+ def steps(self):
+ """Gets the steps of this InlineResponse2002Routes. # noqa: E501
+
+ array of `step` objects # noqa: E501
+
+ :return: The steps of this InlineResponse2002Routes. # noqa: E501
+ :rtype: list[InlineResponse2002Steps]
+ """
+ return self._steps
+
+ @steps.setter
+ def steps(self, steps):
+ """Sets the steps of this InlineResponse2002Routes.
+
+ array of `step` objects # noqa: E501
+
+ :param steps: The steps of this InlineResponse2002Routes. # noqa: E501
+ :type: list[InlineResponse2002Steps]
+ """
+
+ self._steps = steps
+
+ @property
+ def vehicle(self):
+ """Gets the vehicle of this InlineResponse2002Routes. # noqa: E501
+
+ id of the vehicle assigned to this route # noqa: E501
+
+ :return: The vehicle of this InlineResponse2002Routes. # noqa: E501
+ :rtype: int
+ """
+ return self._vehicle
+
+ @vehicle.setter
+ def vehicle(self, vehicle):
+ """Sets the vehicle of this InlineResponse2002Routes.
+
+ id of the vehicle assigned to this route # noqa: E501
+
+ :param vehicle: The vehicle of this InlineResponse2002Routes. # noqa: E501
+ :type: int
+ """
+
+ self._vehicle = vehicle
+
+ @property
+ def waiting_time(self):
+ """Gets the waiting_time of this InlineResponse2002Routes. # noqa: E501
+
+ total waiting time for this route # noqa: E501
+
+ :return: The waiting_time of this InlineResponse2002Routes. # noqa: E501
+ :rtype: float
+ """
+ return self._waiting_time
+
+ @waiting_time.setter
+ def waiting_time(self, waiting_time):
+ """Sets the waiting_time of this InlineResponse2002Routes.
+
+ total waiting time for this route # noqa: E501
+
+ :param waiting_time: The waiting_time of this InlineResponse2002Routes. # noqa: E501
+ :type: float
+ """
+
+ self._waiting_time = waiting_time
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002Routes, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002Routes):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2002_steps.py b/openrouteservice/models/inline_response2002_steps.py
new file mode 100644
index 00000000..562692c7
--- /dev/null
+++ b/openrouteservice/models/inline_response2002_steps.py
@@ -0,0 +1,308 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002Steps(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'job': 'int',
+ 'location': 'list[float]',
+ 'service': 'float',
+ 'type': 'str',
+ 'waiting_time': 'float'
+ }
+
+ attribute_map = {
+ 'arrival': 'arrival',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'job': 'job',
+ 'location': 'location',
+ 'service': 'service',
+ 'type': 'type',
+ 'waiting_time': 'waiting_time'
+ }
+
+ def __init__(self, arrival=None, distance=None, duration=None, job=None, location=None, service=None, type=None, waiting_time=None): # noqa: E501
+ """InlineResponse2002Steps - a model defined in Swagger""" # noqa: E501
+ self._arrival = None
+ self._distance = None
+ self._duration = None
+ self._job = None
+ self._location = None
+ self._service = None
+ self._type = None
+ self._waiting_time = None
+ self.discriminator = None
+ if arrival is not None:
+ self.arrival = arrival
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if job is not None:
+ self.job = job
+ if location is not None:
+ self.location = location
+ if service is not None:
+ self.service = service
+ if type is not None:
+ self.type = type
+ if waiting_time is not None:
+ self.waiting_time = waiting_time
+
+ @property
+ def arrival(self):
+ """Gets the arrival of this InlineResponse2002Steps. # noqa: E501
+
+ estimated time of arrival at this step in seconds # noqa: E501
+
+ :return: The arrival of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._arrival
+
+ @arrival.setter
+ def arrival(self, arrival):
+ """Sets the arrival of this InlineResponse2002Steps.
+
+ estimated time of arrival at this step in seconds # noqa: E501
+
+ :param arrival: The arrival of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._arrival = arrival
+
+ @property
+ def distance(self):
+ """Gets the distance of this InlineResponse2002Steps. # noqa: E501
+
+ traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+
+ :return: The distance of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this InlineResponse2002Steps.
+
+ traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+
+ :param distance: The distance of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this InlineResponse2002Steps. # noqa: E501
+
+ cumulated travel time upon arrival at this step in seconds # noqa: E501
+
+ :return: The duration of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this InlineResponse2002Steps.
+
+ cumulated travel time upon arrival at this step in seconds # noqa: E501
+
+ :param duration: The duration of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def job(self):
+ """Gets the job of this InlineResponse2002Steps. # noqa: E501
+
+ id of the job performed at this step, only provided if `type` value is `job` # noqa: E501
+
+ :return: The job of this InlineResponse2002Steps. # noqa: E501
+ :rtype: int
+ """
+ return self._job
+
+ @job.setter
+ def job(self, job):
+ """Sets the job of this InlineResponse2002Steps.
+
+ id of the job performed at this step, only provided if `type` value is `job` # noqa: E501
+
+ :param job: The job of this InlineResponse2002Steps. # noqa: E501
+ :type: int
+ """
+
+ self._job = job
+
+ @property
+ def location(self):
+ """Gets the location of this InlineResponse2002Steps. # noqa: E501
+
+ coordinates array for this step (if provided in input) # noqa: E501
+
+ :return: The location of this InlineResponse2002Steps. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this InlineResponse2002Steps.
+
+ coordinates array for this step (if provided in input) # noqa: E501
+
+ :param location: The location of this InlineResponse2002Steps. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def service(self):
+ """Gets the service of this InlineResponse2002Steps. # noqa: E501
+
+ service time at this step, only provided if `type` value is `job` # noqa: E501
+
+ :return: The service of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this InlineResponse2002Steps.
+
+ service time at this step, only provided if `type` value is `job` # noqa: E501
+
+ :param service: The service of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._service = service
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse2002Steps. # noqa: E501
+
+ string that is either `start`, `job` or `end` # noqa: E501
+
+ :return: The type of this InlineResponse2002Steps. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse2002Steps.
+
+ string that is either `start`, `job` or `end` # noqa: E501
+
+ :param type: The type of this InlineResponse2002Steps. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ @property
+ def waiting_time(self):
+ """Gets the waiting_time of this InlineResponse2002Steps. # noqa: E501
+
+ waiting time upon arrival at this step, only provided if `type` value is `job` # noqa: E501
+
+ :return: The waiting_time of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._waiting_time
+
+ @waiting_time.setter
+ def waiting_time(self, waiting_time):
+ """Sets the waiting_time of this InlineResponse2002Steps.
+
+ waiting time upon arrival at this step, only provided if `type` value is `job` # noqa: E501
+
+ :param waiting_time: The waiting_time of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._waiting_time = waiting_time
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002Steps, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002Steps):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2002_summary.py b/openrouteservice/models/inline_response2002_summary.py
new file mode 100644
index 00000000..00e516b9
--- /dev/null
+++ b/openrouteservice/models/inline_response2002_summary.py
@@ -0,0 +1,280 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002Summary(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'amount': 'list[int]',
+ 'cost': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'service': 'float',
+ 'unassigned': 'int',
+ 'waiting_time': 'float'
+ }
+
+ attribute_map = {
+ 'amount': 'amount',
+ 'cost': 'cost',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'service': 'service',
+ 'unassigned': 'unassigned',
+ 'waiting_time': 'waiting_time'
+ }
+
+ def __init__(self, amount=None, cost=None, distance=None, duration=None, service=None, unassigned=None, waiting_time=None): # noqa: E501
+ """InlineResponse2002Summary - a model defined in Swagger""" # noqa: E501
+ self._amount = None
+ self._cost = None
+ self._distance = None
+ self._duration = None
+ self._service = None
+ self._unassigned = None
+ self._waiting_time = None
+ self.discriminator = None
+ if amount is not None:
+ self.amount = amount
+ if cost is not None:
+ self.cost = cost
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if service is not None:
+ self.service = service
+ if unassigned is not None:
+ self.unassigned = unassigned
+ if waiting_time is not None:
+ self.waiting_time = waiting_time
+
+ @property
+ def amount(self):
+ """Gets the amount of this InlineResponse2002Summary. # noqa: E501
+
+ total amount for all routes # noqa: E501
+
+ :return: The amount of this InlineResponse2002Summary. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._amount
+
+ @amount.setter
+ def amount(self, amount):
+ """Sets the amount of this InlineResponse2002Summary.
+
+ total amount for all routes # noqa: E501
+
+ :param amount: The amount of this InlineResponse2002Summary. # noqa: E501
+ :type: list[int]
+ """
+
+ self._amount = amount
+
+ @property
+ def cost(self):
+ """Gets the cost of this InlineResponse2002Summary. # noqa: E501
+
+ total cost for all routes # noqa: E501
+
+ :return: The cost of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._cost
+
+ @cost.setter
+ def cost(self, cost):
+ """Sets the cost of this InlineResponse2002Summary.
+
+ total cost for all routes # noqa: E501
+
+ :param cost: The cost of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._cost = cost
+
+ @property
+ def distance(self):
+ """Gets the distance of this InlineResponse2002Summary. # noqa: E501
+
+ total distance for all routes. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+
+ :return: The distance of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this InlineResponse2002Summary.
+
+ total distance for all routes. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+
+ :param distance: The distance of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this InlineResponse2002Summary. # noqa: E501
+
+ total travel time for all routes # noqa: E501
+
+ :return: The duration of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this InlineResponse2002Summary.
+
+ total travel time for all routes # noqa: E501
+
+ :param duration: The duration of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def service(self):
+ """Gets the service of this InlineResponse2002Summary. # noqa: E501
+
+ total service time for all routes # noqa: E501
+
+ :return: The service of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this InlineResponse2002Summary.
+
+ total service time for all routes # noqa: E501
+
+ :param service: The service of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._service = service
+
+ @property
+ def unassigned(self):
+ """Gets the unassigned of this InlineResponse2002Summary. # noqa: E501
+
+ number of jobs that could not be served # noqa: E501
+
+ :return: The unassigned of this InlineResponse2002Summary. # noqa: E501
+ :rtype: int
+ """
+ return self._unassigned
+
+ @unassigned.setter
+ def unassigned(self, unassigned):
+ """Sets the unassigned of this InlineResponse2002Summary.
+
+ number of jobs that could not be served # noqa: E501
+
+ :param unassigned: The unassigned of this InlineResponse2002Summary. # noqa: E501
+ :type: int
+ """
+
+ self._unassigned = unassigned
+
+ @property
+ def waiting_time(self):
+ """Gets the waiting_time of this InlineResponse2002Summary. # noqa: E501
+
+ total waiting time for all routes # noqa: E501
+
+ :return: The waiting_time of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._waiting_time
+
+ @waiting_time.setter
+ def waiting_time(self, waiting_time):
+ """Sets the waiting_time of this InlineResponse2002Summary.
+
+ total waiting time for all routes # noqa: E501
+
+ :param waiting_time: The waiting_time of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._waiting_time = waiting_time
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002Summary, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002Summary):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2002_unassigned.py b/openrouteservice/models/inline_response2002_unassigned.py
new file mode 100644
index 00000000..4e4063bb
--- /dev/null
+++ b/openrouteservice/models/inline_response2002_unassigned.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002Unassigned(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'int',
+ 'location': 'list[float]'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'location': 'location'
+ }
+
+ def __init__(self, id=None, location=None): # noqa: E501
+ """InlineResponse2002Unassigned - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._location = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ if location is not None:
+ self.location = location
+
+ @property
+ def id(self):
+ """Gets the id of this InlineResponse2002Unassigned. # noqa: E501
+
+ The `id` of the unassigned job\" # noqa: E501
+
+ :return: The id of this InlineResponse2002Unassigned. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this InlineResponse2002Unassigned.
+
+ The `id` of the unassigned job\" # noqa: E501
+
+ :param id: The id of this InlineResponse2002Unassigned. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def location(self):
+ """Gets the location of this InlineResponse2002Unassigned. # noqa: E501
+
+ The `location` of the unassigned job # noqa: E501
+
+ :return: The location of this InlineResponse2002Unassigned. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this InlineResponse2002Unassigned.
+
+ The `location` of the unassigned job # noqa: E501
+
+ :param location: The location of this InlineResponse2002Unassigned. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002Unassigned, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002Unassigned):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2003.py b/openrouteservice/models/inline_response2003.py
new file mode 100644
index 00000000..0d5eeb3c
--- /dev/null
+++ b/openrouteservice/models/inline_response2003.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2003(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[object]',
+ 'metadata': 'GeoJSONRouteResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
+ """InlineResponse2003 - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this InlineResponse2003. # noqa: E501
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :return: The bbox of this InlineResponse2003. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this InlineResponse2003.
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :param bbox: The bbox of this InlineResponse2003. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this InlineResponse2003. # noqa: E501
+
+
+ :return: The features of this InlineResponse2003. # noqa: E501
+ :rtype: list[object]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this InlineResponse2003.
+
+
+ :param features: The features of this InlineResponse2003. # noqa: E501
+ :type: list[object]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2003. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2003. # noqa: E501
+ :rtype: GeoJSONRouteResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2003.
+
+
+ :param metadata: The metadata of this InlineResponse2003. # noqa: E501
+ :type: GeoJSONRouteResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse2003. # noqa: E501
+
+
+ :return: The type of this InlineResponse2003. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse2003.
+
+
+ :param type: The type of this InlineResponse2003. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2003, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2003):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2004.py b/openrouteservice/models/inline_response2004.py
new file mode 100644
index 00000000..72d2cc00
--- /dev/null
+++ b/openrouteservice/models/inline_response2004.py
@@ -0,0 +1,166 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2004(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'metadata': 'GeoJSONRouteResponseMetadata',
+ 'routes': 'list[JSONRouteResponseRoutes]'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'metadata': 'metadata',
+ 'routes': 'routes'
+ }
+
+ def __init__(self, bbox=None, metadata=None, routes=None): # noqa: E501
+ """InlineResponse2004 - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._metadata = None
+ self._routes = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if metadata is not None:
+ self.metadata = metadata
+ if routes is not None:
+ self.routes = routes
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this InlineResponse2004. # noqa: E501
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :return: The bbox of this InlineResponse2004. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this InlineResponse2004.
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :param bbox: The bbox of this InlineResponse2004. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2004. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2004. # noqa: E501
+ :rtype: GeoJSONRouteResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2004.
+
+
+ :param metadata: The metadata of this InlineResponse2004. # noqa: E501
+ :type: GeoJSONRouteResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def routes(self):
+ """Gets the routes of this InlineResponse2004. # noqa: E501
+
+ A list of routes returned from the request # noqa: E501
+
+ :return: The routes of this InlineResponse2004. # noqa: E501
+ :rtype: list[JSONRouteResponseRoutes]
+ """
+ return self._routes
+
+ @routes.setter
+ def routes(self, routes):
+ """Sets the routes of this InlineResponse2004.
+
+ A list of routes returned from the request # noqa: E501
+
+ :param routes: The routes of this InlineResponse2004. # noqa: E501
+ :type: list[JSONRouteResponseRoutes]
+ """
+
+ self._routes = routes
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2004, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2004):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2005.py b/openrouteservice/models/inline_response2005.py
new file mode 100644
index 00000000..cedd06aa
--- /dev/null
+++ b/openrouteservice/models/inline_response2005.py
@@ -0,0 +1,190 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2005(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[GeoJSONIsochronesResponseFeatures]',
+ 'metadata': 'GeoJSONIsochronesResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
+ """InlineResponse2005 - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this InlineResponse2005. # noqa: E501
+
+ Bounding box that covers all returned isochrones # noqa: E501
+
+ :return: The bbox of this InlineResponse2005. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this InlineResponse2005.
+
+ Bounding box that covers all returned isochrones # noqa: E501
+
+ :param bbox: The bbox of this InlineResponse2005. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this InlineResponse2005. # noqa: E501
+
+
+ :return: The features of this InlineResponse2005. # noqa: E501
+ :rtype: list[GeoJSONIsochronesResponseFeatures]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this InlineResponse2005.
+
+
+ :param features: The features of this InlineResponse2005. # noqa: E501
+ :type: list[GeoJSONIsochronesResponseFeatures]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2005. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2005. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2005.
+
+
+ :param metadata: The metadata of this InlineResponse2005. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse2005. # noqa: E501
+
+
+ :return: The type of this InlineResponse2005. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse2005.
+
+
+ :param type: The type of this InlineResponse2005. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2005, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2005):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2006.py b/openrouteservice/models/inline_response2006.py
new file mode 100644
index 00000000..55fdf938
--- /dev/null
+++ b/openrouteservice/models/inline_response2006.py
@@ -0,0 +1,222 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2006(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'destinations': 'list[MatrixResponseDestinations]',
+ 'distances': 'list[list[float]]',
+ 'durations': 'list[list[float]]',
+ 'metadata': 'MatrixResponseMetadata',
+ 'sources': 'list[MatrixResponseSources]'
+ }
+
+ attribute_map = {
+ 'destinations': 'destinations',
+ 'distances': 'distances',
+ 'durations': 'durations',
+ 'metadata': 'metadata',
+ 'sources': 'sources'
+ }
+
+ def __init__(self, destinations=None, distances=None, durations=None, metadata=None, sources=None): # noqa: E501
+ """InlineResponse2006 - a model defined in Swagger""" # noqa: E501
+ self._destinations = None
+ self._distances = None
+ self._durations = None
+ self._metadata = None
+ self._sources = None
+ self.discriminator = None
+ if destinations is not None:
+ self.destinations = destinations
+ if distances is not None:
+ self.distances = distances
+ if durations is not None:
+ self.durations = durations
+ if metadata is not None:
+ self.metadata = metadata
+ if sources is not None:
+ self.sources = sources
+
+ @property
+ def destinations(self):
+ """Gets the destinations of this InlineResponse2006. # noqa: E501
+
+ The individual destinations of the matrix calculations. # noqa: E501
+
+ :return: The destinations of this InlineResponse2006. # noqa: E501
+ :rtype: list[MatrixResponseDestinations]
+ """
+ return self._destinations
+
+ @destinations.setter
+ def destinations(self, destinations):
+ """Sets the destinations of this InlineResponse2006.
+
+ The individual destinations of the matrix calculations. # noqa: E501
+
+ :param destinations: The destinations of this InlineResponse2006. # noqa: E501
+ :type: list[MatrixResponseDestinations]
+ """
+
+ self._destinations = destinations
+
+ @property
+ def distances(self):
+ """Gets the distances of this InlineResponse2006. # noqa: E501
+
+ The distances of the matrix calculations. # noqa: E501
+
+ :return: The distances of this InlineResponse2006. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._distances
+
+ @distances.setter
+ def distances(self, distances):
+ """Sets the distances of this InlineResponse2006.
+
+ The distances of the matrix calculations. # noqa: E501
+
+ :param distances: The distances of this InlineResponse2006. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._distances = distances
+
+ @property
+ def durations(self):
+ """Gets the durations of this InlineResponse2006. # noqa: E501
+
+ The durations of the matrix calculations. # noqa: E501
+
+ :return: The durations of this InlineResponse2006. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._durations
+
+ @durations.setter
+ def durations(self, durations):
+ """Sets the durations of this InlineResponse2006.
+
+ The durations of the matrix calculations. # noqa: E501
+
+ :param durations: The durations of this InlineResponse2006. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._durations = durations
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2006. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2006. # noqa: E501
+ :rtype: MatrixResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2006.
+
+
+ :param metadata: The metadata of this InlineResponse2006. # noqa: E501
+ :type: MatrixResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def sources(self):
+ """Gets the sources of this InlineResponse2006. # noqa: E501
+
+ The individual sources of the matrix calculations. # noqa: E501
+
+ :return: The sources of this InlineResponse2006. # noqa: E501
+ :rtype: list[MatrixResponseSources]
+ """
+ return self._sources
+
+ @sources.setter
+ def sources(self, sources):
+ """Sets the sources of this InlineResponse2006.
+
+ The individual sources of the matrix calculations. # noqa: E501
+
+ :param sources: The sources of this InlineResponse2006. # noqa: E501
+ :type: list[MatrixResponseSources]
+ """
+
+ self._sources = sources
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2006, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2006):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response200_geometry.py b/openrouteservice/models/inline_response200_geometry.py
new file mode 100644
index 00000000..58f6aacb
--- /dev/null
+++ b/openrouteservice/models/inline_response200_geometry.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse200Geometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coordinates': 'list[list[float]]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'coordinates': 'coordinates',
+ 'type': 'type'
+ }
+
+ def __init__(self, coordinates=None, type=None): # noqa: E501
+ """InlineResponse200Geometry - a model defined in Swagger""" # noqa: E501
+ self._coordinates = None
+ self._type = None
+ self.discriminator = None
+ if coordinates is not None:
+ self.coordinates = coordinates
+ if type is not None:
+ self.type = type
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this InlineResponse200Geometry. # noqa: E501
+
+
+ :return: The coordinates of this InlineResponse200Geometry. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this InlineResponse200Geometry.
+
+
+ :param coordinates: The coordinates of this InlineResponse200Geometry. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._coordinates = coordinates
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse200Geometry. # noqa: E501
+
+
+ :return: The type of this InlineResponse200Geometry. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse200Geometry.
+
+
+ :param type: The type of this InlineResponse200Geometry. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse200Geometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse200Geometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
new file mode 100644
index 00000000..225636db
--- /dev/null
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -0,0 +1,451 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class IsochronesProfileBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'area_units': 'str',
+ 'attributes': 'list[str]',
+ 'id': 'str',
+ 'intersections': 'bool',
+ 'interval': 'float',
+ 'location_type': 'str',
+ 'locations': 'list[list[float]]',
+ 'options': 'RouteOptions',
+ 'range': 'list[float]',
+ 'range_type': 'str',
+ 'smoothing': 'float',
+ 'units': 'str'
+ }
+
+ attribute_map = {
+ 'area_units': 'area_units',
+ 'attributes': 'attributes',
+ 'id': 'id',
+ 'intersections': 'intersections',
+ 'interval': 'interval',
+ 'location_type': 'location_type',
+ 'locations': 'locations',
+ 'options': 'options',
+ 'range': 'range',
+ 'range_type': 'range_type',
+ 'smoothing': 'smoothing',
+ 'units': 'units'
+ }
+
+ def __init__(self, area_units='m', attributes=None, id=None, intersections=False, interval=None, location_type='start', locations=None, options=None, range=None, range_type='time', smoothing=None, units='m'): # noqa: E501
+ """IsochronesProfileBody - a model defined in Swagger""" # noqa: E501
+ self._area_units = None
+ self._attributes = None
+ self._id = None
+ self._intersections = None
+ self._interval = None
+ self._location_type = None
+ self._locations = None
+ self._options = None
+ self._range = None
+ self._range_type = None
+ self._smoothing = None
+ self._units = None
+ self.discriminator = None
+ if area_units is not None:
+ self.area_units = area_units
+ if attributes is not None:
+ self.attributes = attributes
+ if id is not None:
+ self.id = id
+ if intersections is not None:
+ self.intersections = intersections
+ if interval is not None:
+ self.interval = interval
+ if location_type is not None:
+ self.location_type = location_type
+ self.locations = locations
+ if options is not None:
+ self.options = options
+ self.range = range
+ if range_type is not None:
+ self.range_type = range_type
+ if smoothing is not None:
+ self.smoothing = smoothing
+ if units is not None:
+ self.units = units
+
+ @property
+ def area_units(self):
+ """Gets the area_units of this IsochronesProfileBody. # noqa: E501
+
+ Specifies the area unit. Default: m. # noqa: E501
+
+ :return: The area_units of this IsochronesProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._area_units
+
+ @area_units.setter
+ def area_units(self, area_units):
+ """Sets the area_units of this IsochronesProfileBody.
+
+ Specifies the area unit. Default: m. # noqa: E501
+
+ :param area_units: The area_units of this IsochronesProfileBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if area_units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `area_units` ({0}), must be one of {1}" # noqa: E501
+ .format(area_units, allowed_values)
+ )
+
+ self._area_units = area_units
+
+ @property
+ def attributes(self):
+ """Gets the attributes of this IsochronesProfileBody. # noqa: E501
+
+ List of isochrones attributes # noqa: E501
+
+ :return: The attributes of this IsochronesProfileBody. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._attributes
+
+ @attributes.setter
+ def attributes(self, attributes):
+ """Sets the attributes of this IsochronesProfileBody.
+
+ List of isochrones attributes # noqa: E501
+
+ :param attributes: The attributes of this IsochronesProfileBody. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["area", "reachfactor", "total_pop"] # noqa: E501
+ if not set(attributes).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._attributes = attributes
+
+ @property
+ def id(self):
+ """Gets the id of this IsochronesProfileBody. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this IsochronesProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this IsochronesProfileBody.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this IsochronesProfileBody. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def intersections(self):
+ """Gets the intersections of this IsochronesProfileBody. # noqa: E501
+
+ Specifies whether to return intersecting polygons. # noqa: E501
+
+ :return: The intersections of this IsochronesProfileBody. # noqa: E501
+ :rtype: bool
+ """
+ return self._intersections
+
+ @intersections.setter
+ def intersections(self, intersections):
+ """Sets the intersections of this IsochronesProfileBody.
+
+ Specifies whether to return intersecting polygons. # noqa: E501
+
+ :param intersections: The intersections of this IsochronesProfileBody. # noqa: E501
+ :type: bool
+ """
+
+ self._intersections = intersections
+
+ @property
+ def interval(self):
+ """Gets the interval of this IsochronesProfileBody. # noqa: E501
+
+ Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
+
+ :return: The interval of this IsochronesProfileBody. # noqa: E501
+ :rtype: float
+ """
+ return self._interval
+
+ @interval.setter
+ def interval(self, interval):
+ """Sets the interval of this IsochronesProfileBody.
+
+ Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
+
+ :param interval: The interval of this IsochronesProfileBody. # noqa: E501
+ :type: float
+ """
+
+ self._interval = interval
+
+ @property
+ def location_type(self):
+ """Gets the location_type of this IsochronesProfileBody. # noqa: E501
+
+ `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
+
+ :return: The location_type of this IsochronesProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._location_type
+
+ @location_type.setter
+ def location_type(self, location_type):
+ """Sets the location_type of this IsochronesProfileBody.
+
+ `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
+
+ :param location_type: The location_type of this IsochronesProfileBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["start", "destination"] # noqa: E501
+ if location_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `location_type` ({0}), must be one of {1}" # noqa: E501
+ .format(location_type, allowed_values)
+ )
+
+ self._location_type = location_type
+
+ @property
+ def locations(self):
+ """Gets the locations of this IsochronesProfileBody. # noqa: E501
+
+ The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The locations of this IsochronesProfileBody. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this IsochronesProfileBody.
+
+ The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param locations: The locations of this IsochronesProfileBody. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def options(self):
+ """Gets the options of this IsochronesProfileBody. # noqa: E501
+
+
+ :return: The options of this IsochronesProfileBody. # noqa: E501
+ :rtype: RouteOptions
+ """
+ return self._options
+
+ @options.setter
+ def options(self, options):
+ """Sets the options of this IsochronesProfileBody.
+
+
+ :param options: The options of this IsochronesProfileBody. # noqa: E501
+ :type: RouteOptions
+ """
+
+ self._options = options
+
+ @property
+ def range(self):
+ """Gets the range of this IsochronesProfileBody. # noqa: E501
+
+ Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
+
+ :return: The range of this IsochronesProfileBody. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._range
+
+ @range.setter
+ def range(self, range):
+ """Sets the range of this IsochronesProfileBody.
+
+ Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
+
+ :param range: The range of this IsochronesProfileBody. # noqa: E501
+ :type: list[float]
+ """
+ if range is None:
+ raise ValueError("Invalid value for `range`, must not be `None`") # noqa: E501
+
+ self._range = range
+
+ @property
+ def range_type(self):
+ """Gets the range_type of this IsochronesProfileBody. # noqa: E501
+
+ Specifies the isochrones reachability type. # noqa: E501
+
+ :return: The range_type of this IsochronesProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._range_type
+
+ @range_type.setter
+ def range_type(self, range_type):
+ """Sets the range_type of this IsochronesProfileBody.
+
+ Specifies the isochrones reachability type. # noqa: E501
+
+ :param range_type: The range_type of this IsochronesProfileBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["time", "distance"] # noqa: E501
+ if range_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `range_type` ({0}), must be one of {1}" # noqa: E501
+ .format(range_type, allowed_values)
+ )
+
+ self._range_type = range_type
+
+ @property
+ def smoothing(self):
+ """Gets the smoothing of this IsochronesProfileBody. # noqa: E501
+
+ Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
+
+ :return: The smoothing of this IsochronesProfileBody. # noqa: E501
+ :rtype: float
+ """
+ return self._smoothing
+
+ @smoothing.setter
+ def smoothing(self, smoothing):
+ """Sets the smoothing of this IsochronesProfileBody.
+
+ Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
+
+ :param smoothing: The smoothing of this IsochronesProfileBody. # noqa: E501
+ :type: float
+ """
+
+ self._smoothing = smoothing
+
+ @property
+ def units(self):
+ """Gets the units of this IsochronesProfileBody. # noqa: E501
+
+ Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
+
+ :return: The units of this IsochronesProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this IsochronesProfileBody.
+
+ Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
+
+ :param units: The units of this IsochronesProfileBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(IsochronesProfileBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, IsochronesProfileBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/isochrones_request.py b/openrouteservice/models/isochrones_request.py
new file mode 100644
index 00000000..4ba4047e
--- /dev/null
+++ b/openrouteservice/models/isochrones_request.py
@@ -0,0 +1,451 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class IsochronesRequest(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'area_units': 'str',
+ 'attributes': 'list[str]',
+ 'id': 'str',
+ 'intersections': 'bool',
+ 'interval': 'float',
+ 'location_type': 'str',
+ 'locations': 'list[list[float]]',
+ 'options': 'RouteOptions',
+ 'range': 'list[float]',
+ 'range_type': 'str',
+ 'smoothing': 'float',
+ 'units': 'str'
+ }
+
+ attribute_map = {
+ 'area_units': 'area_units',
+ 'attributes': 'attributes',
+ 'id': 'id',
+ 'intersections': 'intersections',
+ 'interval': 'interval',
+ 'location_type': 'location_type',
+ 'locations': 'locations',
+ 'options': 'options',
+ 'range': 'range',
+ 'range_type': 'range_type',
+ 'smoothing': 'smoothing',
+ 'units': 'units'
+ }
+
+ def __init__(self, area_units='m', attributes=None, id=None, intersections=False, interval=None, location_type='start', locations=None, options=None, range=None, range_type='time', smoothing=None, units='m'): # noqa: E501
+ """IsochronesRequest - a model defined in Swagger""" # noqa: E501
+ self._area_units = None
+ self._attributes = None
+ self._id = None
+ self._intersections = None
+ self._interval = None
+ self._location_type = None
+ self._locations = None
+ self._options = None
+ self._range = None
+ self._range_type = None
+ self._smoothing = None
+ self._units = None
+ self.discriminator = None
+ if area_units is not None:
+ self.area_units = area_units
+ if attributes is not None:
+ self.attributes = attributes
+ if id is not None:
+ self.id = id
+ if intersections is not None:
+ self.intersections = intersections
+ if interval is not None:
+ self.interval = interval
+ if location_type is not None:
+ self.location_type = location_type
+ self.locations = locations
+ if options is not None:
+ self.options = options
+ self.range = range
+ if range_type is not None:
+ self.range_type = range_type
+ if smoothing is not None:
+ self.smoothing = smoothing
+ if units is not None:
+ self.units = units
+
+ @property
+ def area_units(self):
+ """Gets the area_units of this IsochronesRequest. # noqa: E501
+
+ Specifies the area unit. Default: m. # noqa: E501
+
+ :return: The area_units of this IsochronesRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._area_units
+
+ @area_units.setter
+ def area_units(self, area_units):
+ """Sets the area_units of this IsochronesRequest.
+
+ Specifies the area unit. Default: m. # noqa: E501
+
+ :param area_units: The area_units of this IsochronesRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if area_units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `area_units` ({0}), must be one of {1}" # noqa: E501
+ .format(area_units, allowed_values)
+ )
+
+ self._area_units = area_units
+
+ @property
+ def attributes(self):
+ """Gets the attributes of this IsochronesRequest. # noqa: E501
+
+ List of isochrones attributes # noqa: E501
+
+ :return: The attributes of this IsochronesRequest. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._attributes
+
+ @attributes.setter
+ def attributes(self, attributes):
+ """Sets the attributes of this IsochronesRequest.
+
+ List of isochrones attributes # noqa: E501
+
+ :param attributes: The attributes of this IsochronesRequest. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["area", "reachfactor", "total_pop"] # noqa: E501
+ if not set(attributes).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._attributes = attributes
+
+ @property
+ def id(self):
+ """Gets the id of this IsochronesRequest. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this IsochronesRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this IsochronesRequest.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this IsochronesRequest. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def intersections(self):
+ """Gets the intersections of this IsochronesRequest. # noqa: E501
+
+ Specifies whether to return intersecting polygons. # noqa: E501
+
+ :return: The intersections of this IsochronesRequest. # noqa: E501
+ :rtype: bool
+ """
+ return self._intersections
+
+ @intersections.setter
+ def intersections(self, intersections):
+ """Sets the intersections of this IsochronesRequest.
+
+ Specifies whether to return intersecting polygons. # noqa: E501
+
+ :param intersections: The intersections of this IsochronesRequest. # noqa: E501
+ :type: bool
+ """
+
+ self._intersections = intersections
+
+ @property
+ def interval(self):
+ """Gets the interval of this IsochronesRequest. # noqa: E501
+
+ Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
+
+ :return: The interval of this IsochronesRequest. # noqa: E501
+ :rtype: float
+ """
+ return self._interval
+
+ @interval.setter
+ def interval(self, interval):
+ """Sets the interval of this IsochronesRequest.
+
+ Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
+
+ :param interval: The interval of this IsochronesRequest. # noqa: E501
+ :type: float
+ """
+
+ self._interval = interval
+
+ @property
+ def location_type(self):
+ """Gets the location_type of this IsochronesRequest. # noqa: E501
+
+ `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
+
+ :return: The location_type of this IsochronesRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._location_type
+
+ @location_type.setter
+ def location_type(self, location_type):
+ """Sets the location_type of this IsochronesRequest.
+
+ `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
+
+ :param location_type: The location_type of this IsochronesRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["start", "destination"] # noqa: E501
+ if location_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `location_type` ({0}), must be one of {1}" # noqa: E501
+ .format(location_type, allowed_values)
+ )
+
+ self._location_type = location_type
+
+ @property
+ def locations(self):
+ """Gets the locations of this IsochronesRequest. # noqa: E501
+
+ The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The locations of this IsochronesRequest. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this IsochronesRequest.
+
+ The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param locations: The locations of this IsochronesRequest. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def options(self):
+ """Gets the options of this IsochronesRequest. # noqa: E501
+
+
+ :return: The options of this IsochronesRequest. # noqa: E501
+ :rtype: RouteOptions
+ """
+ return self._options
+
+ @options.setter
+ def options(self, options):
+ """Sets the options of this IsochronesRequest.
+
+
+ :param options: The options of this IsochronesRequest. # noqa: E501
+ :type: RouteOptions
+ """
+
+ self._options = options
+
+ @property
+ def range(self):
+ """Gets the range of this IsochronesRequest. # noqa: E501
+
+ Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
+
+ :return: The range of this IsochronesRequest. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._range
+
+ @range.setter
+ def range(self, range):
+ """Sets the range of this IsochronesRequest.
+
+ Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
+
+ :param range: The range of this IsochronesRequest. # noqa: E501
+ :type: list[float]
+ """
+ if range is None:
+ raise ValueError("Invalid value for `range`, must not be `None`") # noqa: E501
+
+ self._range = range
+
+ @property
+ def range_type(self):
+ """Gets the range_type of this IsochronesRequest. # noqa: E501
+
+ Specifies the isochrones reachability type. # noqa: E501
+
+ :return: The range_type of this IsochronesRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._range_type
+
+ @range_type.setter
+ def range_type(self, range_type):
+ """Sets the range_type of this IsochronesRequest.
+
+ Specifies the isochrones reachability type. # noqa: E501
+
+ :param range_type: The range_type of this IsochronesRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["time", "distance"] # noqa: E501
+ if range_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `range_type` ({0}), must be one of {1}" # noqa: E501
+ .format(range_type, allowed_values)
+ )
+
+ self._range_type = range_type
+
+ @property
+ def smoothing(self):
+ """Gets the smoothing of this IsochronesRequest. # noqa: E501
+
+ Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
+
+ :return: The smoothing of this IsochronesRequest. # noqa: E501
+ :rtype: float
+ """
+ return self._smoothing
+
+ @smoothing.setter
+ def smoothing(self, smoothing):
+ """Sets the smoothing of this IsochronesRequest.
+
+ Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
+
+ :param smoothing: The smoothing of this IsochronesRequest. # noqa: E501
+ :type: float
+ """
+
+ self._smoothing = smoothing
+
+ @property
+ def units(self):
+ """Gets the units of this IsochronesRequest. # noqa: E501
+
+ Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
+
+ :return: The units of this IsochronesRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this IsochronesRequest.
+
+ Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
+
+ :param units: The units of this IsochronesRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(IsochronesRequest, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, IsochronesRequest):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/isochrones_response_info.py b/openrouteservice/models/isochrones_response_info.py
new file mode 100644
index 00000000..b8120bd5
--- /dev/null
+++ b/openrouteservice/models/isochrones_response_info.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class IsochronesResponseInfo(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'IsochronesProfileBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """IsochronesResponseInfo - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this IsochronesResponseInfo. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this IsochronesResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this IsochronesResponseInfo.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this IsochronesResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this IsochronesResponseInfo. # noqa: E501
+
+
+ :return: The engine of this IsochronesResponseInfo. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this IsochronesResponseInfo.
+
+
+ :param engine: The engine of this IsochronesResponseInfo. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this IsochronesResponseInfo. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this IsochronesResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this IsochronesResponseInfo.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this IsochronesResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this IsochronesResponseInfo.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this IsochronesResponseInfo. # noqa: E501
+
+
+ :return: The query of this IsochronesResponseInfo. # noqa: E501
+ :rtype: IsochronesProfileBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this IsochronesResponseInfo.
+
+
+ :param query: The query of this IsochronesResponseInfo. # noqa: E501
+ :type: IsochronesProfileBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this IsochronesResponseInfo. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this IsochronesResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this IsochronesResponseInfo.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this IsochronesResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this IsochronesResponseInfo. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this IsochronesResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this IsochronesResponseInfo.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this IsochronesResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this IsochronesResponseInfo. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this IsochronesResponseInfo. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this IsochronesResponseInfo.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this IsochronesResponseInfo. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(IsochronesResponseInfo, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, IsochronesResponseInfo):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json2_d_destinations.py b/openrouteservice/models/json2_d_destinations.py
new file mode 100644
index 00000000..95795042
--- /dev/null
+++ b/openrouteservice/models/json2_d_destinations.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSON2DDestinations(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """JSON2DDestinations - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this JSON2DDestinations. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this JSON2DDestinations. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSON2DDestinations.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this JSON2DDestinations. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this JSON2DDestinations. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this JSON2DDestinations. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSON2DDestinations.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this JSON2DDestinations. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this JSON2DDestinations. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :return: The snapped_distance of this JSON2DDestinations. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this JSON2DDestinations.
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this JSON2DDestinations. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSON2DDestinations, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSON2DDestinations):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json2_d_sources.py b/openrouteservice/models/json2_d_sources.py
new file mode 100644
index 00000000..070e3067
--- /dev/null
+++ b/openrouteservice/models/json2_d_sources.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSON2DSources(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """JSON2DSources - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this JSON2DSources. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this JSON2DSources. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSON2DSources.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this JSON2DSources. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this JSON2DSources. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this JSON2DSources. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSON2DSources.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this JSON2DSources. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this JSON2DSources. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :return: The snapped_distance of this JSON2DSources. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this JSON2DSources.
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this JSON2DSources. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSON2DSources, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSON2DSources):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_edge.py b/openrouteservice/models/json_edge.py
new file mode 100644
index 00000000..b326a6c6
--- /dev/null
+++ b/openrouteservice/models/json_edge.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonEdge(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'from_id': 'int',
+ 'to_id': 'int',
+ 'weight': 'float'
+ }
+
+ attribute_map = {
+ 'from_id': 'fromId',
+ 'to_id': 'toId',
+ 'weight': 'weight'
+ }
+
+ def __init__(self, from_id=None, to_id=None, weight=None): # noqa: E501
+ """JsonEdge - a model defined in Swagger""" # noqa: E501
+ self._from_id = None
+ self._to_id = None
+ self._weight = None
+ self.discriminator = None
+ if from_id is not None:
+ self.from_id = from_id
+ if to_id is not None:
+ self.to_id = to_id
+ if weight is not None:
+ self.weight = weight
+
+ @property
+ def from_id(self):
+ """Gets the from_id of this JsonEdge. # noqa: E501
+
+ Id of the start point of the edge # noqa: E501
+
+ :return: The from_id of this JsonEdge. # noqa: E501
+ :rtype: int
+ """
+ return self._from_id
+
+ @from_id.setter
+ def from_id(self, from_id):
+ """Sets the from_id of this JsonEdge.
+
+ Id of the start point of the edge # noqa: E501
+
+ :param from_id: The from_id of this JsonEdge. # noqa: E501
+ :type: int
+ """
+
+ self._from_id = from_id
+
+ @property
+ def to_id(self):
+ """Gets the to_id of this JsonEdge. # noqa: E501
+
+ Id of the end point of the edge # noqa: E501
+
+ :return: The to_id of this JsonEdge. # noqa: E501
+ :rtype: int
+ """
+ return self._to_id
+
+ @to_id.setter
+ def to_id(self, to_id):
+ """Sets the to_id of this JsonEdge.
+
+ Id of the end point of the edge # noqa: E501
+
+ :param to_id: The to_id of this JsonEdge. # noqa: E501
+ :type: int
+ """
+
+ self._to_id = to_id
+
+ @property
+ def weight(self):
+ """Gets the weight of this JsonEdge. # noqa: E501
+
+ Weight of the corresponding edge in the given bounding box # noqa: E501
+
+ :return: The weight of this JsonEdge. # noqa: E501
+ :rtype: float
+ """
+ return self._weight
+
+ @weight.setter
+ def weight(self, weight):
+ """Sets the weight of this JsonEdge.
+
+ Weight of the corresponding edge in the given bounding box # noqa: E501
+
+ :param weight: The weight of this JsonEdge. # noqa: E501
+ :type: float
+ """
+
+ self._weight = weight
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonEdge, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonEdge):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_edge_extra.py b/openrouteservice/models/json_edge_extra.py
new file mode 100644
index 00000000..b04bfa0e
--- /dev/null
+++ b/openrouteservice/models/json_edge_extra.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonEdgeExtra(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edge_id': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'edge_id': 'edgeId',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, edge_id=None, extra=None): # noqa: E501
+ """JsonEdgeExtra - a model defined in Swagger""" # noqa: E501
+ self._edge_id = None
+ self._extra = None
+ self.discriminator = None
+ if edge_id is not None:
+ self.edge_id = edge_id
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def edge_id(self):
+ """Gets the edge_id of this JsonEdgeExtra. # noqa: E501
+
+ Id of the corresponding edge in the graph # noqa: E501
+
+ :return: The edge_id of this JsonEdgeExtra. # noqa: E501
+ :rtype: str
+ """
+ return self._edge_id
+
+ @edge_id.setter
+ def edge_id(self, edge_id):
+ """Sets the edge_id of this JsonEdgeExtra.
+
+ Id of the corresponding edge in the graph # noqa: E501
+
+ :param edge_id: The edge_id of this JsonEdgeExtra. # noqa: E501
+ :type: str
+ """
+
+ self._edge_id = edge_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this JsonEdgeExtra. # noqa: E501
+
+ Extra info stored on the edge # noqa: E501
+
+ :return: The extra of this JsonEdgeExtra. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this JsonEdgeExtra.
+
+ Extra info stored on the edge # noqa: E501
+
+ :param extra: The extra of this JsonEdgeExtra. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonEdgeExtra, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonEdgeExtra):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_export_response.py b/openrouteservice/models/json_export_response.py
new file mode 100644
index 00000000..0c42c0ae
--- /dev/null
+++ b/openrouteservice/models/json_export_response.py
@@ -0,0 +1,240 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonExportResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edges': 'list[JsonExportResponseEdges]',
+ 'edges_count': 'int',
+ 'edges_extra': 'list[JsonExportResponseEdgesExtra]',
+ 'nodes': 'list[JsonExportResponseNodes]',
+ 'nodes_count': 'int',
+ 'warning': 'JSONIndividualRouteResponseWarnings'
+ }
+
+ attribute_map = {
+ 'edges': 'edges',
+ 'edges_count': 'edges_count',
+ 'edges_extra': 'edges_extra',
+ 'nodes': 'nodes',
+ 'nodes_count': 'nodes_count',
+ 'warning': 'warning'
+ }
+
+ def __init__(self, edges=None, edges_count=None, edges_extra=None, nodes=None, nodes_count=None, warning=None): # noqa: E501
+ """JsonExportResponse - a model defined in Swagger""" # noqa: E501
+ self._edges = None
+ self._edges_count = None
+ self._edges_extra = None
+ self._nodes = None
+ self._nodes_count = None
+ self._warning = None
+ self.discriminator = None
+ if edges is not None:
+ self.edges = edges
+ if edges_count is not None:
+ self.edges_count = edges_count
+ if edges_extra is not None:
+ self.edges_extra = edges_extra
+ if nodes is not None:
+ self.nodes = nodes
+ if nodes_count is not None:
+ self.nodes_count = nodes_count
+ if warning is not None:
+ self.warning = warning
+
+ @property
+ def edges(self):
+ """Gets the edges of this JsonExportResponse. # noqa: E501
+
+
+ :return: The edges of this JsonExportResponse. # noqa: E501
+ :rtype: list[JsonExportResponseEdges]
+ """
+ return self._edges
+
+ @edges.setter
+ def edges(self, edges):
+ """Sets the edges of this JsonExportResponse.
+
+
+ :param edges: The edges of this JsonExportResponse. # noqa: E501
+ :type: list[JsonExportResponseEdges]
+ """
+
+ self._edges = edges
+
+ @property
+ def edges_count(self):
+ """Gets the edges_count of this JsonExportResponse. # noqa: E501
+
+
+ :return: The edges_count of this JsonExportResponse. # noqa: E501
+ :rtype: int
+ """
+ return self._edges_count
+
+ @edges_count.setter
+ def edges_count(self, edges_count):
+ """Sets the edges_count of this JsonExportResponse.
+
+
+ :param edges_count: The edges_count of this JsonExportResponse. # noqa: E501
+ :type: int
+ """
+
+ self._edges_count = edges_count
+
+ @property
+ def edges_extra(self):
+ """Gets the edges_extra of this JsonExportResponse. # noqa: E501
+
+
+ :return: The edges_extra of this JsonExportResponse. # noqa: E501
+ :rtype: list[JsonExportResponseEdgesExtra]
+ """
+ return self._edges_extra
+
+ @edges_extra.setter
+ def edges_extra(self, edges_extra):
+ """Sets the edges_extra of this JsonExportResponse.
+
+
+ :param edges_extra: The edges_extra of this JsonExportResponse. # noqa: E501
+ :type: list[JsonExportResponseEdgesExtra]
+ """
+
+ self._edges_extra = edges_extra
+
+ @property
+ def nodes(self):
+ """Gets the nodes of this JsonExportResponse. # noqa: E501
+
+
+ :return: The nodes of this JsonExportResponse. # noqa: E501
+ :rtype: list[JsonExportResponseNodes]
+ """
+ return self._nodes
+
+ @nodes.setter
+ def nodes(self, nodes):
+ """Sets the nodes of this JsonExportResponse.
+
+
+ :param nodes: The nodes of this JsonExportResponse. # noqa: E501
+ :type: list[JsonExportResponseNodes]
+ """
+
+ self._nodes = nodes
+
+ @property
+ def nodes_count(self):
+ """Gets the nodes_count of this JsonExportResponse. # noqa: E501
+
+
+ :return: The nodes_count of this JsonExportResponse. # noqa: E501
+ :rtype: int
+ """
+ return self._nodes_count
+
+ @nodes_count.setter
+ def nodes_count(self, nodes_count):
+ """Sets the nodes_count of this JsonExportResponse.
+
+
+ :param nodes_count: The nodes_count of this JsonExportResponse. # noqa: E501
+ :type: int
+ """
+
+ self._nodes_count = nodes_count
+
+ @property
+ def warning(self):
+ """Gets the warning of this JsonExportResponse. # noqa: E501
+
+
+ :return: The warning of this JsonExportResponse. # noqa: E501
+ :rtype: JSONIndividualRouteResponseWarnings
+ """
+ return self._warning
+
+ @warning.setter
+ def warning(self, warning):
+ """Sets the warning of this JsonExportResponse.
+
+
+ :param warning: The warning of this JsonExportResponse. # noqa: E501
+ :type: JSONIndividualRouteResponseWarnings
+ """
+
+ self._warning = warning
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonExportResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonExportResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_export_response_edges.py b/openrouteservice/models/json_export_response_edges.py
new file mode 100644
index 00000000..ac763475
--- /dev/null
+++ b/openrouteservice/models/json_export_response_edges.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonExportResponseEdges(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'from_id': 'int',
+ 'to_id': 'int',
+ 'weight': 'float'
+ }
+
+ attribute_map = {
+ 'from_id': 'fromId',
+ 'to_id': 'toId',
+ 'weight': 'weight'
+ }
+
+ def __init__(self, from_id=None, to_id=None, weight=None): # noqa: E501
+ """JsonExportResponseEdges - a model defined in Swagger""" # noqa: E501
+ self._from_id = None
+ self._to_id = None
+ self._weight = None
+ self.discriminator = None
+ if from_id is not None:
+ self.from_id = from_id
+ if to_id is not None:
+ self.to_id = to_id
+ if weight is not None:
+ self.weight = weight
+
+ @property
+ def from_id(self):
+ """Gets the from_id of this JsonExportResponseEdges. # noqa: E501
+
+ Id of the start point of the edge # noqa: E501
+
+ :return: The from_id of this JsonExportResponseEdges. # noqa: E501
+ :rtype: int
+ """
+ return self._from_id
+
+ @from_id.setter
+ def from_id(self, from_id):
+ """Sets the from_id of this JsonExportResponseEdges.
+
+ Id of the start point of the edge # noqa: E501
+
+ :param from_id: The from_id of this JsonExportResponseEdges. # noqa: E501
+ :type: int
+ """
+
+ self._from_id = from_id
+
+ @property
+ def to_id(self):
+ """Gets the to_id of this JsonExportResponseEdges. # noqa: E501
+
+ Id of the end point of the edge # noqa: E501
+
+ :return: The to_id of this JsonExportResponseEdges. # noqa: E501
+ :rtype: int
+ """
+ return self._to_id
+
+ @to_id.setter
+ def to_id(self, to_id):
+ """Sets the to_id of this JsonExportResponseEdges.
+
+ Id of the end point of the edge # noqa: E501
+
+ :param to_id: The to_id of this JsonExportResponseEdges. # noqa: E501
+ :type: int
+ """
+
+ self._to_id = to_id
+
+ @property
+ def weight(self):
+ """Gets the weight of this JsonExportResponseEdges. # noqa: E501
+
+ Weight of the corresponding edge in the given bounding box # noqa: E501
+
+ :return: The weight of this JsonExportResponseEdges. # noqa: E501
+ :rtype: float
+ """
+ return self._weight
+
+ @weight.setter
+ def weight(self, weight):
+ """Sets the weight of this JsonExportResponseEdges.
+
+ Weight of the corresponding edge in the given bounding box # noqa: E501
+
+ :param weight: The weight of this JsonExportResponseEdges. # noqa: E501
+ :type: float
+ """
+
+ self._weight = weight
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonExportResponseEdges, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonExportResponseEdges):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_export_response_edges_extra.py b/openrouteservice/models/json_export_response_edges_extra.py
new file mode 100644
index 00000000..ae667373
--- /dev/null
+++ b/openrouteservice/models/json_export_response_edges_extra.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonExportResponseEdgesExtra(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'edge_id': 'str',
+ 'extra': 'object'
+ }
+
+ attribute_map = {
+ 'edge_id': 'edgeId',
+ 'extra': 'extra'
+ }
+
+ def __init__(self, edge_id=None, extra=None): # noqa: E501
+ """JsonExportResponseEdgesExtra - a model defined in Swagger""" # noqa: E501
+ self._edge_id = None
+ self._extra = None
+ self.discriminator = None
+ if edge_id is not None:
+ self.edge_id = edge_id
+ if extra is not None:
+ self.extra = extra
+
+ @property
+ def edge_id(self):
+ """Gets the edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
+
+ Id of the corresponding edge in the graph # noqa: E501
+
+ :return: The edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
+ :rtype: str
+ """
+ return self._edge_id
+
+ @edge_id.setter
+ def edge_id(self, edge_id):
+ """Sets the edge_id of this JsonExportResponseEdgesExtra.
+
+ Id of the corresponding edge in the graph # noqa: E501
+
+ :param edge_id: The edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
+ :type: str
+ """
+
+ self._edge_id = edge_id
+
+ @property
+ def extra(self):
+ """Gets the extra of this JsonExportResponseEdgesExtra. # noqa: E501
+
+ Extra info stored on the edge # noqa: E501
+
+ :return: The extra of this JsonExportResponseEdgesExtra. # noqa: E501
+ :rtype: object
+ """
+ return self._extra
+
+ @extra.setter
+ def extra(self, extra):
+ """Sets the extra of this JsonExportResponseEdgesExtra.
+
+ Extra info stored on the edge # noqa: E501
+
+ :param extra: The extra of this JsonExportResponseEdgesExtra. # noqa: E501
+ :type: object
+ """
+
+ self._extra = extra
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonExportResponseEdgesExtra, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonExportResponseEdgesExtra):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_export_response_nodes.py b/openrouteservice/models/json_export_response_nodes.py
new file mode 100644
index 00000000..d19474e7
--- /dev/null
+++ b/openrouteservice/models/json_export_response_nodes.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonExportResponseNodes(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'node_id': 'int'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'node_id': 'nodeId'
+ }
+
+ def __init__(self, location=None, node_id=None): # noqa: E501
+ """JsonExportResponseNodes - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._node_id = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if node_id is not None:
+ self.node_id = node_id
+
+ @property
+ def location(self):
+ """Gets the location of this JsonExportResponseNodes. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this JsonExportResponseNodes. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JsonExportResponseNodes.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this JsonExportResponseNodes. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def node_id(self):
+ """Gets the node_id of this JsonExportResponseNodes. # noqa: E501
+
+ Id of the corresponding node in the graph # noqa: E501
+
+ :return: The node_id of this JsonExportResponseNodes. # noqa: E501
+ :rtype: int
+ """
+ return self._node_id
+
+ @node_id.setter
+ def node_id(self, node_id):
+ """Sets the node_id of this JsonExportResponseNodes.
+
+ Id of the corresponding node in the graph # noqa: E501
+
+ :param node_id: The node_id of this JsonExportResponseNodes. # noqa: E501
+ :type: int
+ """
+
+ self._node_id = node_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonExportResponseNodes, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonExportResponseNodes):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_extra.py b/openrouteservice/models/json_extra.py
new file mode 100644
index 00000000..aa3fe123
--- /dev/null
+++ b/openrouteservice/models/json_extra.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONExtra(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'summary': 'list[JSONExtraSummary]',
+ 'values': 'list[list[int]]'
+ }
+
+ attribute_map = {
+ 'summary': 'summary',
+ 'values': 'values'
+ }
+
+ def __init__(self, summary=None, values=None): # noqa: E501
+ """JSONExtra - a model defined in Swagger""" # noqa: E501
+ self._summary = None
+ self._values = None
+ self.discriminator = None
+ if summary is not None:
+ self.summary = summary
+ if values is not None:
+ self.values = values
+
+ @property
+ def summary(self):
+ """Gets the summary of this JSONExtra. # noqa: E501
+
+ List representing the summary of the extra info items. # noqa: E501
+
+ :return: The summary of this JSONExtra. # noqa: E501
+ :rtype: list[JSONExtraSummary]
+ """
+ return self._summary
+
+ @summary.setter
+ def summary(self, summary):
+ """Sets the summary of this JSONExtra.
+
+ List representing the summary of the extra info items. # noqa: E501
+
+ :param summary: The summary of this JSONExtra. # noqa: E501
+ :type: list[JSONExtraSummary]
+ """
+
+ self._summary = summary
+
+ @property
+ def values(self):
+ """Gets the values of this JSONExtra. # noqa: E501
+
+ A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
+
+ :return: The values of this JSONExtra. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._values
+
+ @values.setter
+ def values(self, values):
+ """Sets the values of this JSONExtra.
+
+ A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
+
+ :param values: The values of this JSONExtra. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._values = values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONExtra, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONExtra):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_extra_summary.py b/openrouteservice/models/json_extra_summary.py
new file mode 100644
index 00000000..cfff3690
--- /dev/null
+++ b/openrouteservice/models/json_extra_summary.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONExtraSummary(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'amount': 'float',
+ 'distance': 'float',
+ 'value': 'float'
+ }
+
+ attribute_map = {
+ 'amount': 'amount',
+ 'distance': 'distance',
+ 'value': 'value'
+ }
+
+ def __init__(self, amount=None, distance=None, value=None): # noqa: E501
+ """JSONExtraSummary - a model defined in Swagger""" # noqa: E501
+ self._amount = None
+ self._distance = None
+ self._value = None
+ self.discriminator = None
+ if amount is not None:
+ self.amount = amount
+ if distance is not None:
+ self.distance = distance
+ if value is not None:
+ self.value = value
+
+ @property
+ def amount(self):
+ """Gets the amount of this JSONExtraSummary. # noqa: E501
+
+ Category percentage of the entire route. # noqa: E501
+
+ :return: The amount of this JSONExtraSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._amount
+
+ @amount.setter
+ def amount(self, amount):
+ """Sets the amount of this JSONExtraSummary.
+
+ Category percentage of the entire route. # noqa: E501
+
+ :param amount: The amount of this JSONExtraSummary. # noqa: E501
+ :type: float
+ """
+
+ self._amount = amount
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONExtraSummary. # noqa: E501
+
+ Cumulative distance of this value. # noqa: E501
+
+ :return: The distance of this JSONExtraSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONExtraSummary.
+
+ Cumulative distance of this value. # noqa: E501
+
+ :param distance: The distance of this JSONExtraSummary. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def value(self):
+ """Gets the value of this JSONExtraSummary. # noqa: E501
+
+ [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
+
+ :return: The value of this JSONExtraSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._value
+
+ @value.setter
+ def value(self, value):
+ """Sets the value of this JSONExtraSummary.
+
+ [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
+
+ :param value: The value of this JSONExtraSummary. # noqa: E501
+ :type: float
+ """
+
+ self._value = value
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONExtraSummary, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONExtraSummary):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response.py b/openrouteservice/models/json_individual_route_response.py
new file mode 100644
index 00000000..3e569cc9
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response.py
@@ -0,0 +1,362 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival': 'datetime',
+ 'bbox': 'list[float]',
+ 'departure': 'datetime',
+ 'extras': 'dict(str, JSONIndividualRouteResponseExtras)',
+ 'geometry': 'str',
+ 'legs': 'list[JSONIndividualRouteResponseLegs]',
+ 'segments': 'list[JSONIndividualRouteResponseSegments]',
+ 'summary': 'JSONIndividualRouteResponseSummary',
+ 'warnings': 'list[JSONIndividualRouteResponseWarnings]',
+ 'way_points': 'list[int]'
+ }
+
+ attribute_map = {
+ 'arrival': 'arrival',
+ 'bbox': 'bbox',
+ 'departure': 'departure',
+ 'extras': 'extras',
+ 'geometry': 'geometry',
+ 'legs': 'legs',
+ 'segments': 'segments',
+ 'summary': 'summary',
+ 'warnings': 'warnings',
+ 'way_points': 'way_points'
+ }
+
+ def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometry=None, legs=None, segments=None, summary=None, warnings=None, way_points=None): # noqa: E501
+ """JSONIndividualRouteResponse - a model defined in Swagger""" # noqa: E501
+ self._arrival = None
+ self._bbox = None
+ self._departure = None
+ self._extras = None
+ self._geometry = None
+ self._legs = None
+ self._segments = None
+ self._summary = None
+ self._warnings = None
+ self._way_points = None
+ self.discriminator = None
+ if arrival is not None:
+ self.arrival = arrival
+ if bbox is not None:
+ self.bbox = bbox
+ if departure is not None:
+ self.departure = departure
+ if extras is not None:
+ self.extras = extras
+ if geometry is not None:
+ self.geometry = geometry
+ if legs is not None:
+ self.legs = legs
+ if segments is not None:
+ self.segments = segments
+ if summary is not None:
+ self.summary = summary
+ if warnings is not None:
+ self.warnings = warnings
+ if way_points is not None:
+ self.way_points = way_points
+
+ @property
+ def arrival(self):
+ """Gets the arrival of this JSONIndividualRouteResponse. # noqa: E501
+
+ Arrival date and time # noqa: E501
+
+ :return: The arrival of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival
+
+ @arrival.setter
+ def arrival(self, arrival):
+ """Sets the arrival of this JSONIndividualRouteResponse.
+
+ Arrival date and time # noqa: E501
+
+ :param arrival: The arrival of this JSONIndividualRouteResponse. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival = arrival
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this JSONIndividualRouteResponse. # noqa: E501
+
+ A bounding box which contains the entire route # noqa: E501
+
+ :return: The bbox of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this JSONIndividualRouteResponse.
+
+ A bounding box which contains the entire route # noqa: E501
+
+ :param bbox: The bbox of this JSONIndividualRouteResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def departure(self):
+ """Gets the departure of this JSONIndividualRouteResponse. # noqa: E501
+
+ Departure date and time # noqa: E501
+
+ :return: The departure of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure
+
+ @departure.setter
+ def departure(self, departure):
+ """Sets the departure of this JSONIndividualRouteResponse.
+
+ Departure date and time # noqa: E501
+
+ :param departure: The departure of this JSONIndividualRouteResponse. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure = departure
+
+ @property
+ def extras(self):
+ """Gets the extras of this JSONIndividualRouteResponse. # noqa: E501
+
+ List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
+
+ :return: The extras of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: dict(str, JSONIndividualRouteResponseExtras)
+ """
+ return self._extras
+
+ @extras.setter
+ def extras(self, extras):
+ """Sets the extras of this JSONIndividualRouteResponse.
+
+ List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
+
+ :param extras: The extras of this JSONIndividualRouteResponse. # noqa: E501
+ :type: dict(str, JSONIndividualRouteResponseExtras)
+ """
+
+ self._extras = extras
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this JSONIndividualRouteResponse. # noqa: E501
+
+ The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
+
+ :return: The geometry of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this JSONIndividualRouteResponse.
+
+ The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
+
+ :param geometry: The geometry of this JSONIndividualRouteResponse. # noqa: E501
+ :type: str
+ """
+
+ self._geometry = geometry
+
+ @property
+ def legs(self):
+ """Gets the legs of this JSONIndividualRouteResponse. # noqa: E501
+
+ List containing the legs the route consists of. # noqa: E501
+
+ :return: The legs of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseLegs]
+ """
+ return self._legs
+
+ @legs.setter
+ def legs(self, legs):
+ """Sets the legs of this JSONIndividualRouteResponse.
+
+ List containing the legs the route consists of. # noqa: E501
+
+ :param legs: The legs of this JSONIndividualRouteResponse. # noqa: E501
+ :type: list[JSONIndividualRouteResponseLegs]
+ """
+
+ self._legs = legs
+
+ @property
+ def segments(self):
+ """Gets the segments of this JSONIndividualRouteResponse. # noqa: E501
+
+ List containing the segments and its corresponding steps which make up the route. # noqa: E501
+
+ :return: The segments of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseSegments]
+ """
+ return self._segments
+
+ @segments.setter
+ def segments(self, segments):
+ """Sets the segments of this JSONIndividualRouteResponse.
+
+ List containing the segments and its corresponding steps which make up the route. # noqa: E501
+
+ :param segments: The segments of this JSONIndividualRouteResponse. # noqa: E501
+ :type: list[JSONIndividualRouteResponseSegments]
+ """
+
+ self._segments = segments
+
+ @property
+ def summary(self):
+ """Gets the summary of this JSONIndividualRouteResponse. # noqa: E501
+
+
+ :return: The summary of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: JSONIndividualRouteResponseSummary
+ """
+ return self._summary
+
+ @summary.setter
+ def summary(self, summary):
+ """Sets the summary of this JSONIndividualRouteResponse.
+
+
+ :param summary: The summary of this JSONIndividualRouteResponse. # noqa: E501
+ :type: JSONIndividualRouteResponseSummary
+ """
+
+ self._summary = summary
+
+ @property
+ def warnings(self):
+ """Gets the warnings of this JSONIndividualRouteResponse. # noqa: E501
+
+ List of warnings that have been generated for the route # noqa: E501
+
+ :return: The warnings of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseWarnings]
+ """
+ return self._warnings
+
+ @warnings.setter
+ def warnings(self, warnings):
+ """Sets the warnings of this JSONIndividualRouteResponse.
+
+ List of warnings that have been generated for the route # noqa: E501
+
+ :param warnings: The warnings of this JSONIndividualRouteResponse. # noqa: E501
+ :type: list[JSONIndividualRouteResponseWarnings]
+ """
+
+ self._warnings = warnings
+
+ @property
+ def way_points(self):
+ """Gets the way_points of this JSONIndividualRouteResponse. # noqa: E501
+
+ List containing the indices of way points corresponding to the *geometry*. # noqa: E501
+
+ :return: The way_points of this JSONIndividualRouteResponse. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._way_points
+
+ @way_points.setter
+ def way_points(self, way_points):
+ """Sets the way_points of this JSONIndividualRouteResponse.
+
+ List containing the indices of way points corresponding to the *geometry*. # noqa: E501
+
+ :param way_points: The way_points of this JSONIndividualRouteResponse. # noqa: E501
+ :type: list[int]
+ """
+
+ self._way_points = way_points
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_extras.py b/openrouteservice/models/json_individual_route_response_extras.py
new file mode 100644
index 00000000..3de07567
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_extras.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseExtras(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'summary': 'list[JSONExtraSummary]',
+ 'values': 'list[list[int]]'
+ }
+
+ attribute_map = {
+ 'summary': 'summary',
+ 'values': 'values'
+ }
+
+ def __init__(self, summary=None, values=None): # noqa: E501
+ """JSONIndividualRouteResponseExtras - a model defined in Swagger""" # noqa: E501
+ self._summary = None
+ self._values = None
+ self.discriminator = None
+ if summary is not None:
+ self.summary = summary
+ if values is not None:
+ self.values = values
+
+ @property
+ def summary(self):
+ """Gets the summary of this JSONIndividualRouteResponseExtras. # noqa: E501
+
+ List representing the summary of the extra info items. # noqa: E501
+
+ :return: The summary of this JSONIndividualRouteResponseExtras. # noqa: E501
+ :rtype: list[JSONExtraSummary]
+ """
+ return self._summary
+
+ @summary.setter
+ def summary(self, summary):
+ """Sets the summary of this JSONIndividualRouteResponseExtras.
+
+ List representing the summary of the extra info items. # noqa: E501
+
+ :param summary: The summary of this JSONIndividualRouteResponseExtras. # noqa: E501
+ :type: list[JSONExtraSummary]
+ """
+
+ self._summary = summary
+
+ @property
+ def values(self):
+ """Gets the values of this JSONIndividualRouteResponseExtras. # noqa: E501
+
+ A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
+
+ :return: The values of this JSONIndividualRouteResponseExtras. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._values
+
+ @values.setter
+ def values(self, values):
+ """Sets the values of this JSONIndividualRouteResponseExtras.
+
+ A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
+
+ :param values: The values of this JSONIndividualRouteResponseExtras. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._values = values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseExtras, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseExtras):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_instructions.py b/openrouteservice/models/json_individual_route_response_instructions.py
new file mode 100644
index 00000000..df3e8082
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_instructions.py
@@ -0,0 +1,334 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseInstructions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'distance': 'float',
+ 'duration': 'float',
+ 'exit_bearings': 'list[int]',
+ 'exit_number': 'int',
+ 'instruction': 'str',
+ 'maneuver': 'JSONIndividualRouteResponseManeuver',
+ 'name': 'str',
+ 'type': 'int',
+ 'way_points': 'list[int]'
+ }
+
+ attribute_map = {
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'exit_bearings': 'exit_bearings',
+ 'exit_number': 'exit_number',
+ 'instruction': 'instruction',
+ 'maneuver': 'maneuver',
+ 'name': 'name',
+ 'type': 'type',
+ 'way_points': 'way_points'
+ }
+
+ def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number=None, instruction=None, maneuver=None, name=None, type=None, way_points=None): # noqa: E501
+ """JSONIndividualRouteResponseInstructions - a model defined in Swagger""" # noqa: E501
+ self._distance = None
+ self._duration = None
+ self._exit_bearings = None
+ self._exit_number = None
+ self._instruction = None
+ self._maneuver = None
+ self._name = None
+ self._type = None
+ self._way_points = None
+ self.discriminator = None
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if exit_bearings is not None:
+ self.exit_bearings = exit_bearings
+ if exit_number is not None:
+ self.exit_number = exit_number
+ if instruction is not None:
+ self.instruction = instruction
+ if maneuver is not None:
+ self.maneuver = maneuver
+ if name is not None:
+ self.name = name
+ if type is not None:
+ self.type = type
+ if way_points is not None:
+ self.way_points = way_points
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ The distance for the step in metres. # noqa: E501
+
+ :return: The distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONIndividualRouteResponseInstructions.
+
+ The distance for the step in metres. # noqa: E501
+
+ :param distance: The distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ The duration for the step in seconds. # noqa: E501
+
+ :return: The duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONIndividualRouteResponseInstructions.
+
+ The duration for the step in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def exit_bearings(self):
+ """Gets the exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
+
+ :return: The exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._exit_bearings
+
+ @exit_bearings.setter
+ def exit_bearings(self, exit_bearings):
+ """Sets the exit_bearings of this JSONIndividualRouteResponseInstructions.
+
+ Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
+
+ :param exit_bearings: The exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: list[int]
+ """
+
+ self._exit_bearings = exit_bearings
+
+ @property
+ def exit_number(self):
+ """Gets the exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ Only for roundabouts. Contains the number of the exit to take. # noqa: E501
+
+ :return: The exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: int
+ """
+ return self._exit_number
+
+ @exit_number.setter
+ def exit_number(self, exit_number):
+ """Sets the exit_number of this JSONIndividualRouteResponseInstructions.
+
+ Only for roundabouts. Contains the number of the exit to take. # noqa: E501
+
+ :param exit_number: The exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: int
+ """
+
+ self._exit_number = exit_number
+
+ @property
+ def instruction(self):
+ """Gets the instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ The routing instruction text for the step. # noqa: E501
+
+ :return: The instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: str
+ """
+ return self._instruction
+
+ @instruction.setter
+ def instruction(self, instruction):
+ """Sets the instruction of this JSONIndividualRouteResponseInstructions.
+
+ The routing instruction text for the step. # noqa: E501
+
+ :param instruction: The instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: str
+ """
+
+ self._instruction = instruction
+
+ @property
+ def maneuver(self):
+ """Gets the maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+
+ :return: The maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: JSONIndividualRouteResponseManeuver
+ """
+ return self._maneuver
+
+ @maneuver.setter
+ def maneuver(self, maneuver):
+ """Sets the maneuver of this JSONIndividualRouteResponseInstructions.
+
+
+ :param maneuver: The maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: JSONIndividualRouteResponseManeuver
+ """
+
+ self._maneuver = maneuver
+
+ @property
+ def name(self):
+ """Gets the name of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ The name of the next street. # noqa: E501
+
+ :return: The name of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSONIndividualRouteResponseInstructions.
+
+ The name of the next street. # noqa: E501
+
+ :param name: The name of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def type(self):
+ """Gets the type of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
+
+ :return: The type of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: int
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this JSONIndividualRouteResponseInstructions.
+
+ The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
+
+ :param type: The type of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: int
+ """
+
+ self._type = type
+
+ @property
+ def way_points(self):
+ """Gets the way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
+
+ List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
+
+ :return: The way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._way_points
+
+ @way_points.setter
+ def way_points(self, way_points):
+ """Sets the way_points of this JSONIndividualRouteResponseInstructions.
+
+ List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
+
+ :param way_points: The way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
+ :type: list[int]
+ """
+
+ self._way_points = way_points
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseInstructions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseInstructions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_legs.py b/openrouteservice/models/json_individual_route_response_legs.py
new file mode 100644
index 00000000..b0103732
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_legs.py
@@ -0,0 +1,588 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseLegs(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival': 'datetime',
+ 'departure': 'datetime',
+ 'departure_location': 'str',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'feed_id': 'str',
+ 'geometry': 'str',
+ 'instructions': 'list[JSONIndividualRouteResponseInstructions]',
+ 'is_in_same_vehicle_as_previous': 'bool',
+ 'route_desc': 'str',
+ 'route_id': 'str',
+ 'route_long_name': 'str',
+ 'route_short_name': 'str',
+ 'route_type': 'int',
+ 'stops': 'list[JSONIndividualRouteResponseStops]',
+ 'trip_headsign': 'str',
+ 'trip_id': 'str',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'arrival': 'arrival',
+ 'departure': 'departure',
+ 'departure_location': 'departure_location',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'feed_id': 'feed_id',
+ 'geometry': 'geometry',
+ 'instructions': 'instructions',
+ 'is_in_same_vehicle_as_previous': 'is_in_same_vehicle_as_previous',
+ 'route_desc': 'route_desc',
+ 'route_id': 'route_id',
+ 'route_long_name': 'route_long_name',
+ 'route_short_name': 'route_short_name',
+ 'route_type': 'route_type',
+ 'stops': 'stops',
+ 'trip_headsign': 'trip_headsign',
+ 'trip_id': 'trip_id',
+ 'type': 'type'
+ }
+
+ def __init__(self, arrival=None, departure=None, departure_location=None, distance=None, duration=None, feed_id=None, geometry=None, instructions=None, is_in_same_vehicle_as_previous=None, route_desc=None, route_id=None, route_long_name=None, route_short_name=None, route_type=None, stops=None, trip_headsign=None, trip_id=None, type=None): # noqa: E501
+ """JSONIndividualRouteResponseLegs - a model defined in Swagger""" # noqa: E501
+ self._arrival = None
+ self._departure = None
+ self._departure_location = None
+ self._distance = None
+ self._duration = None
+ self._feed_id = None
+ self._geometry = None
+ self._instructions = None
+ self._is_in_same_vehicle_as_previous = None
+ self._route_desc = None
+ self._route_id = None
+ self._route_long_name = None
+ self._route_short_name = None
+ self._route_type = None
+ self._stops = None
+ self._trip_headsign = None
+ self._trip_id = None
+ self._type = None
+ self.discriminator = None
+ if arrival is not None:
+ self.arrival = arrival
+ if departure is not None:
+ self.departure = departure
+ if departure_location is not None:
+ self.departure_location = departure_location
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if feed_id is not None:
+ self.feed_id = feed_id
+ if geometry is not None:
+ self.geometry = geometry
+ if instructions is not None:
+ self.instructions = instructions
+ if is_in_same_vehicle_as_previous is not None:
+ self.is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
+ if route_desc is not None:
+ self.route_desc = route_desc
+ if route_id is not None:
+ self.route_id = route_id
+ if route_long_name is not None:
+ self.route_long_name = route_long_name
+ if route_short_name is not None:
+ self.route_short_name = route_short_name
+ if route_type is not None:
+ self.route_type = route_type
+ if stops is not None:
+ self.stops = stops
+ if trip_headsign is not None:
+ self.trip_headsign = trip_headsign
+ if trip_id is not None:
+ self.trip_id = trip_id
+ if type is not None:
+ self.type = type
+
+ @property
+ def arrival(self):
+ """Gets the arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ Arrival date and time # noqa: E501
+
+ :return: The arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival
+
+ @arrival.setter
+ def arrival(self, arrival):
+ """Sets the arrival of this JSONIndividualRouteResponseLegs.
+
+ Arrival date and time # noqa: E501
+
+ :param arrival: The arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival = arrival
+
+ @property
+ def departure(self):
+ """Gets the departure of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ Departure date and time # noqa: E501
+
+ :return: The departure of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure
+
+ @departure.setter
+ def departure(self, departure):
+ """Sets the departure of this JSONIndividualRouteResponseLegs.
+
+ Departure date and time # noqa: E501
+
+ :param departure: The departure of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure = departure
+
+ @property
+ def departure_location(self):
+ """Gets the departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The departure location of the leg. # noqa: E501
+
+ :return: The departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._departure_location
+
+ @departure_location.setter
+ def departure_location(self, departure_location):
+ """Sets the departure_location of this JSONIndividualRouteResponseLegs.
+
+ The departure location of the leg. # noqa: E501
+
+ :param departure_location: The departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._departure_location = departure_location
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The distance for the leg in metres. # noqa: E501
+
+ :return: The distance of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONIndividualRouteResponseLegs.
+
+ The distance for the leg in metres. # noqa: E501
+
+ :param distance: The distance of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The duration for the leg in seconds. # noqa: E501
+
+ :return: The duration of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONIndividualRouteResponseLegs.
+
+ The duration for the leg in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def feed_id(self):
+ """Gets the feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The feed ID this public transport leg based its information from. # noqa: E501
+
+ :return: The feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._feed_id
+
+ @feed_id.setter
+ def feed_id(self, feed_id):
+ """Sets the feed_id of this JSONIndividualRouteResponseLegs.
+
+ The feed ID this public transport leg based its information from. # noqa: E501
+
+ :param feed_id: The feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._feed_id = feed_id
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The geometry of the leg. This is an encoded polyline. # noqa: E501
+
+ :return: The geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this JSONIndividualRouteResponseLegs.
+
+ The geometry of the leg. This is an encoded polyline. # noqa: E501
+
+ :param geometry: The geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._geometry = geometry
+
+ @property
+ def instructions(self):
+ """Gets the instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :return: The instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseInstructions]
+ """
+ return self._instructions
+
+ @instructions.setter
+ def instructions(self, instructions):
+ """Sets the instructions of this JSONIndividualRouteResponseLegs.
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :param instructions: The instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: list[JSONIndividualRouteResponseInstructions]
+ """
+
+ self._instructions = instructions
+
+ @property
+ def is_in_same_vehicle_as_previous(self):
+ """Gets the is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ Whether the legs continues in the same vehicle as the previous one. # noqa: E501
+
+ :return: The is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: bool
+ """
+ return self._is_in_same_vehicle_as_previous
+
+ @is_in_same_vehicle_as_previous.setter
+ def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
+ """Sets the is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs.
+
+ Whether the legs continues in the same vehicle as the previous one. # noqa: E501
+
+ :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: bool
+ """
+
+ self._is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
+
+ @property
+ def route_desc(self):
+ """Gets the route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The route description of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :return: The route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._route_desc
+
+ @route_desc.setter
+ def route_desc(self, route_desc):
+ """Sets the route_desc of this JSONIndividualRouteResponseLegs.
+
+ The route description of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :param route_desc: The route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._route_desc = route_desc
+
+ @property
+ def route_id(self):
+ """Gets the route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The route ID of this public transport leg. # noqa: E501
+
+ :return: The route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._route_id
+
+ @route_id.setter
+ def route_id(self, route_id):
+ """Sets the route_id of this JSONIndividualRouteResponseLegs.
+
+ The route ID of this public transport leg. # noqa: E501
+
+ :param route_id: The route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._route_id = route_id
+
+ @property
+ def route_long_name(self):
+ """Gets the route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The public transport route name of the leg. # noqa: E501
+
+ :return: The route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._route_long_name
+
+ @route_long_name.setter
+ def route_long_name(self, route_long_name):
+ """Sets the route_long_name of this JSONIndividualRouteResponseLegs.
+
+ The public transport route name of the leg. # noqa: E501
+
+ :param route_long_name: The route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._route_long_name = route_long_name
+
+ @property
+ def route_short_name(self):
+ """Gets the route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The public transport route name (short version) of the leg. # noqa: E501
+
+ :return: The route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._route_short_name
+
+ @route_short_name.setter
+ def route_short_name(self, route_short_name):
+ """Sets the route_short_name of this JSONIndividualRouteResponseLegs.
+
+ The public transport route name (short version) of the leg. # noqa: E501
+
+ :param route_short_name: The route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._route_short_name = route_short_name
+
+ @property
+ def route_type(self):
+ """Gets the route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The route type of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :return: The route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: int
+ """
+ return self._route_type
+
+ @route_type.setter
+ def route_type(self, route_type):
+ """Sets the route_type of this JSONIndividualRouteResponseLegs.
+
+ The route type of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :param route_type: The route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: int
+ """
+
+ self._route_type = route_type
+
+ @property
+ def stops(self):
+ """Gets the stops of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ List containing the stops the along the leg. # noqa: E501
+
+ :return: The stops of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseStops]
+ """
+ return self._stops
+
+ @stops.setter
+ def stops(self, stops):
+ """Sets the stops of this JSONIndividualRouteResponseLegs.
+
+ List containing the stops the along the leg. # noqa: E501
+
+ :param stops: The stops of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: list[JSONIndividualRouteResponseStops]
+ """
+
+ self._stops = stops
+
+ @property
+ def trip_headsign(self):
+ """Gets the trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The headsign of the public transport vehicle of the leg. # noqa: E501
+
+ :return: The trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._trip_headsign
+
+ @trip_headsign.setter
+ def trip_headsign(self, trip_headsign):
+ """Sets the trip_headsign of this JSONIndividualRouteResponseLegs.
+
+ The headsign of the public transport vehicle of the leg. # noqa: E501
+
+ :param trip_headsign: The trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._trip_headsign = trip_headsign
+
+ @property
+ def trip_id(self):
+ """Gets the trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The trip ID of this public transport leg. # noqa: E501
+
+ :return: The trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._trip_id
+
+ @trip_id.setter
+ def trip_id(self, trip_id):
+ """Sets the trip_id of this JSONIndividualRouteResponseLegs.
+
+ The trip ID of this public transport leg. # noqa: E501
+
+ :param trip_id: The trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._trip_id = trip_id
+
+ @property
+ def type(self):
+ """Gets the type of this JSONIndividualRouteResponseLegs. # noqa: E501
+
+ The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
+
+ :return: The type of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this JSONIndividualRouteResponseLegs.
+
+ The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
+
+ :param type: The type of this JSONIndividualRouteResponseLegs. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseLegs, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseLegs):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_maneuver.py b/openrouteservice/models/json_individual_route_response_maneuver.py
new file mode 100644
index 00000000..5462f3ab
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_maneuver.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseManeuver(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bearing_after': 'int',
+ 'bearing_before': 'int',
+ 'location': 'list[float]'
+ }
+
+ attribute_map = {
+ 'bearing_after': 'bearing_after',
+ 'bearing_before': 'bearing_before',
+ 'location': 'location'
+ }
+
+ def __init__(self, bearing_after=None, bearing_before=None, location=None): # noqa: E501
+ """JSONIndividualRouteResponseManeuver - a model defined in Swagger""" # noqa: E501
+ self._bearing_after = None
+ self._bearing_before = None
+ self._location = None
+ self.discriminator = None
+ if bearing_after is not None:
+ self.bearing_after = bearing_after
+ if bearing_before is not None:
+ self.bearing_before = bearing_before
+ if location is not None:
+ self.location = location
+
+ @property
+ def bearing_after(self):
+ """Gets the bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
+
+ The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
+
+ :return: The bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :rtype: int
+ """
+ return self._bearing_after
+
+ @bearing_after.setter
+ def bearing_after(self, bearing_after):
+ """Sets the bearing_after of this JSONIndividualRouteResponseManeuver.
+
+ The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
+
+ :param bearing_after: The bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :type: int
+ """
+
+ self._bearing_after = bearing_after
+
+ @property
+ def bearing_before(self):
+ """Gets the bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
+
+ The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
+
+ :return: The bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :rtype: int
+ """
+ return self._bearing_before
+
+ @bearing_before.setter
+ def bearing_before(self, bearing_before):
+ """Sets the bearing_before of this JSONIndividualRouteResponseManeuver.
+
+ The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
+
+ :param bearing_before: The bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :type: int
+ """
+
+ self._bearing_before = bearing_before
+
+ @property
+ def location(self):
+ """Gets the location of this JSONIndividualRouteResponseManeuver. # noqa: E501
+
+ The coordinate of the point where a maneuver takes place. # noqa: E501
+
+ :return: The location of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSONIndividualRouteResponseManeuver.
+
+ The coordinate of the point where a maneuver takes place. # noqa: E501
+
+ :param location: The location of this JSONIndividualRouteResponseManeuver. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseManeuver, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseManeuver):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_segments.py b/openrouteservice/models/json_individual_route_response_segments.py
new file mode 100644
index 00000000..2f856054
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_segments.py
@@ -0,0 +1,308 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseSegments(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'ascent': 'float',
+ 'avgspeed': 'float',
+ 'descent': 'float',
+ 'detourfactor': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'percentage': 'float',
+ 'steps': 'list[JSONIndividualRouteResponseInstructions]'
+ }
+
+ attribute_map = {
+ 'ascent': 'ascent',
+ 'avgspeed': 'avgspeed',
+ 'descent': 'descent',
+ 'detourfactor': 'detourfactor',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'percentage': 'percentage',
+ 'steps': 'steps'
+ }
+
+ def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None, distance=None, duration=None, percentage=None, steps=None): # noqa: E501
+ """JSONIndividualRouteResponseSegments - a model defined in Swagger""" # noqa: E501
+ self._ascent = None
+ self._avgspeed = None
+ self._descent = None
+ self._detourfactor = None
+ self._distance = None
+ self._duration = None
+ self._percentage = None
+ self._steps = None
+ self.discriminator = None
+ if ascent is not None:
+ self.ascent = ascent
+ if avgspeed is not None:
+ self.avgspeed = avgspeed
+ if descent is not None:
+ self.descent = descent
+ if detourfactor is not None:
+ self.detourfactor = detourfactor
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if percentage is not None:
+ self.percentage = percentage
+ if steps is not None:
+ self.steps = steps
+
+ @property
+ def ascent(self):
+ """Gets the ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains ascent of this segment in metres. # noqa: E501
+
+ :return: The ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._ascent
+
+ @ascent.setter
+ def ascent(self, ascent):
+ """Sets the ascent of this JSONIndividualRouteResponseSegments.
+
+ Contains ascent of this segment in metres. # noqa: E501
+
+ :param ascent: The ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._ascent = ascent
+
+ @property
+ def avgspeed(self):
+ """Gets the avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains the average speed of this segment in km/h. # noqa: E501
+
+ :return: The avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._avgspeed
+
+ @avgspeed.setter
+ def avgspeed(self, avgspeed):
+ """Sets the avgspeed of this JSONIndividualRouteResponseSegments.
+
+ Contains the average speed of this segment in km/h. # noqa: E501
+
+ :param avgspeed: The avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._avgspeed = avgspeed
+
+ @property
+ def descent(self):
+ """Gets the descent of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains descent of this segment in metres. # noqa: E501
+
+ :return: The descent of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._descent
+
+ @descent.setter
+ def descent(self, descent):
+ """Sets the descent of this JSONIndividualRouteResponseSegments.
+
+ Contains descent of this segment in metres. # noqa: E501
+
+ :param descent: The descent of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._descent = descent
+
+ @property
+ def detourfactor(self):
+ """Gets the detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
+
+ :return: The detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._detourfactor
+
+ @detourfactor.setter
+ def detourfactor(self, detourfactor):
+ """Sets the detourfactor of this JSONIndividualRouteResponseSegments.
+
+ Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
+
+ :param detourfactor: The detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._detourfactor = detourfactor
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains the distance of the segment in specified units. # noqa: E501
+
+ :return: The distance of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONIndividualRouteResponseSegments.
+
+ Contains the distance of the segment in specified units. # noqa: E501
+
+ :param distance: The distance of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains the duration of the segment in seconds. # noqa: E501
+
+ :return: The duration of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONIndividualRouteResponseSegments.
+
+ Contains the duration of the segment in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def percentage(self):
+ """Gets the percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ Contains the proportion of the route in percent. # noqa: E501
+
+ :return: The percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: float
+ """
+ return self._percentage
+
+ @percentage.setter
+ def percentage(self, percentage):
+ """Sets the percentage of this JSONIndividualRouteResponseSegments.
+
+ Contains the proportion of the route in percent. # noqa: E501
+
+ :param percentage: The percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: float
+ """
+
+ self._percentage = percentage
+
+ @property
+ def steps(self):
+ """Gets the steps of this JSONIndividualRouteResponseSegments. # noqa: E501
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :return: The steps of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseInstructions]
+ """
+ return self._steps
+
+ @steps.setter
+ def steps(self, steps):
+ """Sets the steps of this JSONIndividualRouteResponseSegments.
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :param steps: The steps of this JSONIndividualRouteResponseSegments. # noqa: E501
+ :type: list[JSONIndividualRouteResponseInstructions]
+ """
+
+ self._steps = steps
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseSegments, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseSegments):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_stops.py b/openrouteservice/models/json_individual_route_response_stops.py
new file mode 100644
index 00000000..d7f49a14
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_stops.py
@@ -0,0 +1,392 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseStops(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival_cancelled': 'bool',
+ 'arrival_time': 'datetime',
+ 'departure_cancelled': 'bool',
+ 'departure_time': 'datetime',
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'planned_arrival_time': 'datetime',
+ 'planned_departure_time': 'datetime',
+ 'predicted_arrival_time': 'datetime',
+ 'predicted_departure_time': 'datetime',
+ 'stop_id': 'str'
+ }
+
+ attribute_map = {
+ 'arrival_cancelled': 'arrival_cancelled',
+ 'arrival_time': 'arrival_time',
+ 'departure_cancelled': 'departure_cancelled',
+ 'departure_time': 'departure_time',
+ 'location': 'location',
+ 'name': 'name',
+ 'planned_arrival_time': 'planned_arrival_time',
+ 'planned_departure_time': 'planned_departure_time',
+ 'predicted_arrival_time': 'predicted_arrival_time',
+ 'predicted_departure_time': 'predicted_departure_time',
+ 'stop_id': 'stop_id'
+ }
+
+ def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelled=None, departure_time=None, location=None, name=None, planned_arrival_time=None, planned_departure_time=None, predicted_arrival_time=None, predicted_departure_time=None, stop_id=None): # noqa: E501
+ """JSONIndividualRouteResponseStops - a model defined in Swagger""" # noqa: E501
+ self._arrival_cancelled = None
+ self._arrival_time = None
+ self._departure_cancelled = None
+ self._departure_time = None
+ self._location = None
+ self._name = None
+ self._planned_arrival_time = None
+ self._planned_departure_time = None
+ self._predicted_arrival_time = None
+ self._predicted_departure_time = None
+ self._stop_id = None
+ self.discriminator = None
+ if arrival_cancelled is not None:
+ self.arrival_cancelled = arrival_cancelled
+ if arrival_time is not None:
+ self.arrival_time = arrival_time
+ if departure_cancelled is not None:
+ self.departure_cancelled = departure_cancelled
+ if departure_time is not None:
+ self.departure_time = departure_time
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if planned_arrival_time is not None:
+ self.planned_arrival_time = planned_arrival_time
+ if planned_departure_time is not None:
+ self.planned_departure_time = planned_departure_time
+ if predicted_arrival_time is not None:
+ self.predicted_arrival_time = predicted_arrival_time
+ if predicted_departure_time is not None:
+ self.predicted_departure_time = predicted_departure_time
+ if stop_id is not None:
+ self.stop_id = stop_id
+
+ @property
+ def arrival_cancelled(self):
+ """Gets the arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Whether arrival at the stop was cancelled. # noqa: E501
+
+ :return: The arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: bool
+ """
+ return self._arrival_cancelled
+
+ @arrival_cancelled.setter
+ def arrival_cancelled(self, arrival_cancelled):
+ """Sets the arrival_cancelled of this JSONIndividualRouteResponseStops.
+
+ Whether arrival at the stop was cancelled. # noqa: E501
+
+ :param arrival_cancelled: The arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: bool
+ """
+
+ self._arrival_cancelled = arrival_cancelled
+
+ @property
+ def arrival_time(self):
+ """Gets the arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Arrival time of the stop. # noqa: E501
+
+ :return: The arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival_time
+
+ @arrival_time.setter
+ def arrival_time(self, arrival_time):
+ """Sets the arrival_time of this JSONIndividualRouteResponseStops.
+
+ Arrival time of the stop. # noqa: E501
+
+ :param arrival_time: The arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival_time = arrival_time
+
+ @property
+ def departure_cancelled(self):
+ """Gets the departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Whether departure at the stop was cancelled. # noqa: E501
+
+ :return: The departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: bool
+ """
+ return self._departure_cancelled
+
+ @departure_cancelled.setter
+ def departure_cancelled(self, departure_cancelled):
+ """Sets the departure_cancelled of this JSONIndividualRouteResponseStops.
+
+ Whether departure at the stop was cancelled. # noqa: E501
+
+ :param departure_cancelled: The departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: bool
+ """
+
+ self._departure_cancelled = departure_cancelled
+
+ @property
+ def departure_time(self):
+ """Gets the departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Departure time of the stop. # noqa: E501
+
+ :return: The departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure_time
+
+ @departure_time.setter
+ def departure_time(self, departure_time):
+ """Sets the departure_time of this JSONIndividualRouteResponseStops.
+
+ Departure time of the stop. # noqa: E501
+
+ :param departure_time: The departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure_time = departure_time
+
+ @property
+ def location(self):
+ """Gets the location of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ The location of the stop. # noqa: E501
+
+ :return: The location of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSONIndividualRouteResponseStops.
+
+ The location of the stop. # noqa: E501
+
+ :param location: The location of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ The name of the stop. # noqa: E501
+
+ :return: The name of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSONIndividualRouteResponseStops.
+
+ The name of the stop. # noqa: E501
+
+ :param name: The name of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def planned_arrival_time(self):
+ """Gets the planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Planned arrival time of the stop. # noqa: E501
+
+ :return: The planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._planned_arrival_time
+
+ @planned_arrival_time.setter
+ def planned_arrival_time(self, planned_arrival_time):
+ """Sets the planned_arrival_time of this JSONIndividualRouteResponseStops.
+
+ Planned arrival time of the stop. # noqa: E501
+
+ :param planned_arrival_time: The planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._planned_arrival_time = planned_arrival_time
+
+ @property
+ def planned_departure_time(self):
+ """Gets the planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Planned departure time of the stop. # noqa: E501
+
+ :return: The planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._planned_departure_time
+
+ @planned_departure_time.setter
+ def planned_departure_time(self, planned_departure_time):
+ """Sets the planned_departure_time of this JSONIndividualRouteResponseStops.
+
+ Planned departure time of the stop. # noqa: E501
+
+ :param planned_departure_time: The planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._planned_departure_time = planned_departure_time
+
+ @property
+ def predicted_arrival_time(self):
+ """Gets the predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Predicted arrival time of the stop. # noqa: E501
+
+ :return: The predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._predicted_arrival_time
+
+ @predicted_arrival_time.setter
+ def predicted_arrival_time(self, predicted_arrival_time):
+ """Sets the predicted_arrival_time of this JSONIndividualRouteResponseStops.
+
+ Predicted arrival time of the stop. # noqa: E501
+
+ :param predicted_arrival_time: The predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._predicted_arrival_time = predicted_arrival_time
+
+ @property
+ def predicted_departure_time(self):
+ """Gets the predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ Predicted departure time of the stop. # noqa: E501
+
+ :return: The predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: datetime
+ """
+ return self._predicted_departure_time
+
+ @predicted_departure_time.setter
+ def predicted_departure_time(self, predicted_departure_time):
+ """Sets the predicted_departure_time of this JSONIndividualRouteResponseStops.
+
+ Predicted departure time of the stop. # noqa: E501
+
+ :param predicted_departure_time: The predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: datetime
+ """
+
+ self._predicted_departure_time = predicted_departure_time
+
+ @property
+ def stop_id(self):
+ """Gets the stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
+
+ The ID of the stop. # noqa: E501
+
+ :return: The stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
+ :rtype: str
+ """
+ return self._stop_id
+
+ @stop_id.setter
+ def stop_id(self, stop_id):
+ """Sets the stop_id of this JSONIndividualRouteResponseStops.
+
+ The ID of the stop. # noqa: E501
+
+ :param stop_id: The stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
+ :type: str
+ """
+
+ self._stop_id = stop_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseStops, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseStops):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_summary.py b/openrouteservice/models/json_individual_route_response_summary.py
new file mode 100644
index 00000000..323597c3
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_summary.py
@@ -0,0 +1,248 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseSummary(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'ascent': 'float',
+ 'descent': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'fare': 'int',
+ 'transfers': 'int'
+ }
+
+ attribute_map = {
+ 'ascent': 'ascent',
+ 'descent': 'descent',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'fare': 'fare',
+ 'transfers': 'transfers'
+ }
+
+ def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare=None, transfers=None): # noqa: E501
+ """JSONIndividualRouteResponseSummary - a model defined in Swagger""" # noqa: E501
+ self._ascent = None
+ self._descent = None
+ self._distance = None
+ self._duration = None
+ self._fare = None
+ self._transfers = None
+ self.discriminator = None
+ if ascent is not None:
+ self.ascent = ascent
+ if descent is not None:
+ self.descent = descent
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if fare is not None:
+ self.fare = fare
+ if transfers is not None:
+ self.transfers = transfers
+
+ @property
+ def ascent(self):
+ """Gets the ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+ Total ascent in meters. # noqa: E501
+
+ :return: The ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._ascent
+
+ @ascent.setter
+ def ascent(self, ascent):
+ """Sets the ascent of this JSONIndividualRouteResponseSummary.
+
+ Total ascent in meters. # noqa: E501
+
+ :param ascent: The ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: float
+ """
+
+ self._ascent = ascent
+
+ @property
+ def descent(self):
+ """Gets the descent of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+ Total descent in meters. # noqa: E501
+
+ :return: The descent of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._descent
+
+ @descent.setter
+ def descent(self, descent):
+ """Sets the descent of this JSONIndividualRouteResponseSummary.
+
+ Total descent in meters. # noqa: E501
+
+ :param descent: The descent of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: float
+ """
+
+ self._descent = descent
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+ Total route distance in specified units. # noqa: E501
+
+ :return: The distance of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONIndividualRouteResponseSummary.
+
+ Total route distance in specified units. # noqa: E501
+
+ :param distance: The distance of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+ Total duration in seconds. # noqa: E501
+
+ :return: The duration of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONIndividualRouteResponseSummary.
+
+ Total duration in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def fare(self):
+ """Gets the fare of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+
+ :return: The fare of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: int
+ """
+ return self._fare
+
+ @fare.setter
+ def fare(self, fare):
+ """Sets the fare of this JSONIndividualRouteResponseSummary.
+
+
+ :param fare: The fare of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: int
+ """
+
+ self._fare = fare
+
+ @property
+ def transfers(self):
+ """Gets the transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
+
+
+ :return: The transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :rtype: int
+ """
+ return self._transfers
+
+ @transfers.setter
+ def transfers(self, transfers):
+ """Sets the transfers of this JSONIndividualRouteResponseSummary.
+
+
+ :param transfers: The transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
+ :type: int
+ """
+
+ self._transfers = transfers
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseSummary, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseSummary):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_warnings.py b/openrouteservice/models/json_individual_route_response_warnings.py
new file mode 100644
index 00000000..6a3cfc9c
--- /dev/null
+++ b/openrouteservice/models/json_individual_route_response_warnings.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONIndividualRouteResponseWarnings(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'code': 'int',
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'code': 'code',
+ 'message': 'message'
+ }
+
+ def __init__(self, code=None, message=None): # noqa: E501
+ """JSONIndividualRouteResponseWarnings - a model defined in Swagger""" # noqa: E501
+ self._code = None
+ self._message = None
+ self.discriminator = None
+ if code is not None:
+ self.code = code
+ if message is not None:
+ self.message = message
+
+ @property
+ def code(self):
+ """Gets the code of this JSONIndividualRouteResponseWarnings. # noqa: E501
+
+ Identification code for the warning # noqa: E501
+
+ :return: The code of this JSONIndividualRouteResponseWarnings. # noqa: E501
+ :rtype: int
+ """
+ return self._code
+
+ @code.setter
+ def code(self, code):
+ """Sets the code of this JSONIndividualRouteResponseWarnings.
+
+ Identification code for the warning # noqa: E501
+
+ :param code: The code of this JSONIndividualRouteResponseWarnings. # noqa: E501
+ :type: int
+ """
+
+ self._code = code
+
+ @property
+ def message(self):
+ """Gets the message of this JSONIndividualRouteResponseWarnings. # noqa: E501
+
+ The message associated with the warning # noqa: E501
+
+ :return: The message of this JSONIndividualRouteResponseWarnings. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this JSONIndividualRouteResponseWarnings.
+
+ The message associated with the warning # noqa: E501
+
+ :param message: The message of this JSONIndividualRouteResponseWarnings. # noqa: E501
+ :type: str
+ """
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONIndividualRouteResponseWarnings, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONIndividualRouteResponseWarnings):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_leg.py b/openrouteservice/models/json_leg.py
new file mode 100644
index 00000000..1e11ab7a
--- /dev/null
+++ b/openrouteservice/models/json_leg.py
@@ -0,0 +1,588 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONLeg(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival': 'datetime',
+ 'departure': 'datetime',
+ 'departure_location': 'str',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'feed_id': 'str',
+ 'geometry': 'str',
+ 'instructions': 'list[JSONIndividualRouteResponseInstructions]',
+ 'is_in_same_vehicle_as_previous': 'bool',
+ 'route_desc': 'str',
+ 'route_id': 'str',
+ 'route_long_name': 'str',
+ 'route_short_name': 'str',
+ 'route_type': 'int',
+ 'stops': 'list[JSONIndividualRouteResponseStops]',
+ 'trip_headsign': 'str',
+ 'trip_id': 'str',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'arrival': 'arrival',
+ 'departure': 'departure',
+ 'departure_location': 'departure_location',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'feed_id': 'feed_id',
+ 'geometry': 'geometry',
+ 'instructions': 'instructions',
+ 'is_in_same_vehicle_as_previous': 'is_in_same_vehicle_as_previous',
+ 'route_desc': 'route_desc',
+ 'route_id': 'route_id',
+ 'route_long_name': 'route_long_name',
+ 'route_short_name': 'route_short_name',
+ 'route_type': 'route_type',
+ 'stops': 'stops',
+ 'trip_headsign': 'trip_headsign',
+ 'trip_id': 'trip_id',
+ 'type': 'type'
+ }
+
+ def __init__(self, arrival=None, departure=None, departure_location=None, distance=None, duration=None, feed_id=None, geometry=None, instructions=None, is_in_same_vehicle_as_previous=None, route_desc=None, route_id=None, route_long_name=None, route_short_name=None, route_type=None, stops=None, trip_headsign=None, trip_id=None, type=None): # noqa: E501
+ """JSONLeg - a model defined in Swagger""" # noqa: E501
+ self._arrival = None
+ self._departure = None
+ self._departure_location = None
+ self._distance = None
+ self._duration = None
+ self._feed_id = None
+ self._geometry = None
+ self._instructions = None
+ self._is_in_same_vehicle_as_previous = None
+ self._route_desc = None
+ self._route_id = None
+ self._route_long_name = None
+ self._route_short_name = None
+ self._route_type = None
+ self._stops = None
+ self._trip_headsign = None
+ self._trip_id = None
+ self._type = None
+ self.discriminator = None
+ if arrival is not None:
+ self.arrival = arrival
+ if departure is not None:
+ self.departure = departure
+ if departure_location is not None:
+ self.departure_location = departure_location
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if feed_id is not None:
+ self.feed_id = feed_id
+ if geometry is not None:
+ self.geometry = geometry
+ if instructions is not None:
+ self.instructions = instructions
+ if is_in_same_vehicle_as_previous is not None:
+ self.is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
+ if route_desc is not None:
+ self.route_desc = route_desc
+ if route_id is not None:
+ self.route_id = route_id
+ if route_long_name is not None:
+ self.route_long_name = route_long_name
+ if route_short_name is not None:
+ self.route_short_name = route_short_name
+ if route_type is not None:
+ self.route_type = route_type
+ if stops is not None:
+ self.stops = stops
+ if trip_headsign is not None:
+ self.trip_headsign = trip_headsign
+ if trip_id is not None:
+ self.trip_id = trip_id
+ if type is not None:
+ self.type = type
+
+ @property
+ def arrival(self):
+ """Gets the arrival of this JSONLeg. # noqa: E501
+
+ Arrival date and time # noqa: E501
+
+ :return: The arrival of this JSONLeg. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival
+
+ @arrival.setter
+ def arrival(self, arrival):
+ """Sets the arrival of this JSONLeg.
+
+ Arrival date and time # noqa: E501
+
+ :param arrival: The arrival of this JSONLeg. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival = arrival
+
+ @property
+ def departure(self):
+ """Gets the departure of this JSONLeg. # noqa: E501
+
+ Departure date and time # noqa: E501
+
+ :return: The departure of this JSONLeg. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure
+
+ @departure.setter
+ def departure(self, departure):
+ """Sets the departure of this JSONLeg.
+
+ Departure date and time # noqa: E501
+
+ :param departure: The departure of this JSONLeg. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure = departure
+
+ @property
+ def departure_location(self):
+ """Gets the departure_location of this JSONLeg. # noqa: E501
+
+ The departure location of the leg. # noqa: E501
+
+ :return: The departure_location of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._departure_location
+
+ @departure_location.setter
+ def departure_location(self, departure_location):
+ """Sets the departure_location of this JSONLeg.
+
+ The departure location of the leg. # noqa: E501
+
+ :param departure_location: The departure_location of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._departure_location = departure_location
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONLeg. # noqa: E501
+
+ The distance for the leg in metres. # noqa: E501
+
+ :return: The distance of this JSONLeg. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONLeg.
+
+ The distance for the leg in metres. # noqa: E501
+
+ :param distance: The distance of this JSONLeg. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONLeg. # noqa: E501
+
+ The duration for the leg in seconds. # noqa: E501
+
+ :return: The duration of this JSONLeg. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONLeg.
+
+ The duration for the leg in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONLeg. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def feed_id(self):
+ """Gets the feed_id of this JSONLeg. # noqa: E501
+
+ The feed ID this public transport leg based its information from. # noqa: E501
+
+ :return: The feed_id of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._feed_id
+
+ @feed_id.setter
+ def feed_id(self, feed_id):
+ """Sets the feed_id of this JSONLeg.
+
+ The feed ID this public transport leg based its information from. # noqa: E501
+
+ :param feed_id: The feed_id of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._feed_id = feed_id
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this JSONLeg. # noqa: E501
+
+ The geometry of the leg. This is an encoded polyline. # noqa: E501
+
+ :return: The geometry of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this JSONLeg.
+
+ The geometry of the leg. This is an encoded polyline. # noqa: E501
+
+ :param geometry: The geometry of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._geometry = geometry
+
+ @property
+ def instructions(self):
+ """Gets the instructions of this JSONLeg. # noqa: E501
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :return: The instructions of this JSONLeg. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseInstructions]
+ """
+ return self._instructions
+
+ @instructions.setter
+ def instructions(self, instructions):
+ """Sets the instructions of this JSONLeg.
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :param instructions: The instructions of this JSONLeg. # noqa: E501
+ :type: list[JSONIndividualRouteResponseInstructions]
+ """
+
+ self._instructions = instructions
+
+ @property
+ def is_in_same_vehicle_as_previous(self):
+ """Gets the is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+
+ Whether the legs continues in the same vehicle as the previous one. # noqa: E501
+
+ :return: The is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+ :rtype: bool
+ """
+ return self._is_in_same_vehicle_as_previous
+
+ @is_in_same_vehicle_as_previous.setter
+ def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
+ """Sets the is_in_same_vehicle_as_previous of this JSONLeg.
+
+ Whether the legs continues in the same vehicle as the previous one. # noqa: E501
+
+ :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+ :type: bool
+ """
+
+ self._is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
+
+ @property
+ def route_desc(self):
+ """Gets the route_desc of this JSONLeg. # noqa: E501
+
+ The route description of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :return: The route_desc of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._route_desc
+
+ @route_desc.setter
+ def route_desc(self, route_desc):
+ """Sets the route_desc of this JSONLeg.
+
+ The route description of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :param route_desc: The route_desc of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._route_desc = route_desc
+
+ @property
+ def route_id(self):
+ """Gets the route_id of this JSONLeg. # noqa: E501
+
+ The route ID of this public transport leg. # noqa: E501
+
+ :return: The route_id of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._route_id
+
+ @route_id.setter
+ def route_id(self, route_id):
+ """Sets the route_id of this JSONLeg.
+
+ The route ID of this public transport leg. # noqa: E501
+
+ :param route_id: The route_id of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._route_id = route_id
+
+ @property
+ def route_long_name(self):
+ """Gets the route_long_name of this JSONLeg. # noqa: E501
+
+ The public transport route name of the leg. # noqa: E501
+
+ :return: The route_long_name of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._route_long_name
+
+ @route_long_name.setter
+ def route_long_name(self, route_long_name):
+ """Sets the route_long_name of this JSONLeg.
+
+ The public transport route name of the leg. # noqa: E501
+
+ :param route_long_name: The route_long_name of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._route_long_name = route_long_name
+
+ @property
+ def route_short_name(self):
+ """Gets the route_short_name of this JSONLeg. # noqa: E501
+
+ The public transport route name (short version) of the leg. # noqa: E501
+
+ :return: The route_short_name of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._route_short_name
+
+ @route_short_name.setter
+ def route_short_name(self, route_short_name):
+ """Sets the route_short_name of this JSONLeg.
+
+ The public transport route name (short version) of the leg. # noqa: E501
+
+ :param route_short_name: The route_short_name of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._route_short_name = route_short_name
+
+ @property
+ def route_type(self):
+ """Gets the route_type of this JSONLeg. # noqa: E501
+
+ The route type of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :return: The route_type of this JSONLeg. # noqa: E501
+ :rtype: int
+ """
+ return self._route_type
+
+ @route_type.setter
+ def route_type(self, route_type):
+ """Sets the route_type of this JSONLeg.
+
+ The route type of the leg (if provided in the GTFS data set). # noqa: E501
+
+ :param route_type: The route_type of this JSONLeg. # noqa: E501
+ :type: int
+ """
+
+ self._route_type = route_type
+
+ @property
+ def stops(self):
+ """Gets the stops of this JSONLeg. # noqa: E501
+
+ List containing the stops the along the leg. # noqa: E501
+
+ :return: The stops of this JSONLeg. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseStops]
+ """
+ return self._stops
+
+ @stops.setter
+ def stops(self, stops):
+ """Sets the stops of this JSONLeg.
+
+ List containing the stops the along the leg. # noqa: E501
+
+ :param stops: The stops of this JSONLeg. # noqa: E501
+ :type: list[JSONIndividualRouteResponseStops]
+ """
+
+ self._stops = stops
+
+ @property
+ def trip_headsign(self):
+ """Gets the trip_headsign of this JSONLeg. # noqa: E501
+
+ The headsign of the public transport vehicle of the leg. # noqa: E501
+
+ :return: The trip_headsign of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._trip_headsign
+
+ @trip_headsign.setter
+ def trip_headsign(self, trip_headsign):
+ """Sets the trip_headsign of this JSONLeg.
+
+ The headsign of the public transport vehicle of the leg. # noqa: E501
+
+ :param trip_headsign: The trip_headsign of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._trip_headsign = trip_headsign
+
+ @property
+ def trip_id(self):
+ """Gets the trip_id of this JSONLeg. # noqa: E501
+
+ The trip ID of this public transport leg. # noqa: E501
+
+ :return: The trip_id of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._trip_id
+
+ @trip_id.setter
+ def trip_id(self, trip_id):
+ """Sets the trip_id of this JSONLeg.
+
+ The trip ID of this public transport leg. # noqa: E501
+
+ :param trip_id: The trip_id of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._trip_id = trip_id
+
+ @property
+ def type(self):
+ """Gets the type of this JSONLeg. # noqa: E501
+
+ The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
+
+ :return: The type of this JSONLeg. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this JSONLeg.
+
+ The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
+
+ :param type: The type of this JSONLeg. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONLeg, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONLeg):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_node.py b/openrouteservice/models/json_node.py
new file mode 100644
index 00000000..44bc1667
--- /dev/null
+++ b/openrouteservice/models/json_node.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JsonNode(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'node_id': 'int'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'node_id': 'nodeId'
+ }
+
+ def __init__(self, location=None, node_id=None): # noqa: E501
+ """JsonNode - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._node_id = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if node_id is not None:
+ self.node_id = node_id
+
+ @property
+ def location(self):
+ """Gets the location of this JsonNode. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this JsonNode. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JsonNode.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this JsonNode. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def node_id(self):
+ """Gets the node_id of this JsonNode. # noqa: E501
+
+ Id of the corresponding node in the graph # noqa: E501
+
+ :return: The node_id of this JsonNode. # noqa: E501
+ :rtype: int
+ """
+ return self._node_id
+
+ @node_id.setter
+ def node_id(self, node_id):
+ """Sets the node_id of this JsonNode.
+
+ Id of the corresponding node in the graph # noqa: E501
+
+ :param node_id: The node_id of this JsonNode. # noqa: E501
+ :type: int
+ """
+
+ self._node_id = node_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JsonNode, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JsonNode):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_object.py b/openrouteservice/models/json_object.py
new file mode 100644
index 00000000..3b0b62fd
--- /dev/null
+++ b/openrouteservice/models/json_object.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONObject(dict):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ }
+ if hasattr(dict, "swagger_types"):
+ swagger_types.update(dict.swagger_types)
+
+ attribute_map = {
+ }
+ if hasattr(dict, "attribute_map"):
+ attribute_map.update(dict.attribute_map)
+
+ def __init__(self, *args, **kwargs): # noqa: E501
+ """JSONObject - a model defined in Swagger""" # noqa: E501
+ self.discriminator = None
+ dict.__init__(self, *args, **kwargs)
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONObject, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONObject):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_route_response.py b/openrouteservice/models/json_route_response.py
new file mode 100644
index 00000000..b0af4e20
--- /dev/null
+++ b/openrouteservice/models/json_route_response.py
@@ -0,0 +1,166 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONRouteResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'metadata': 'GeoJSONRouteResponseMetadata',
+ 'routes': 'list[JSONRouteResponseRoutes]'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'metadata': 'metadata',
+ 'routes': 'routes'
+ }
+
+ def __init__(self, bbox=None, metadata=None, routes=None): # noqa: E501
+ """JSONRouteResponse - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._metadata = None
+ self._routes = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if metadata is not None:
+ self.metadata = metadata
+ if routes is not None:
+ self.routes = routes
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this JSONRouteResponse. # noqa: E501
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :return: The bbox of this JSONRouteResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this JSONRouteResponse.
+
+ Bounding box that covers all returned routes # noqa: E501
+
+ :param bbox: The bbox of this JSONRouteResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this JSONRouteResponse. # noqa: E501
+
+
+ :return: The metadata of this JSONRouteResponse. # noqa: E501
+ :rtype: GeoJSONRouteResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this JSONRouteResponse.
+
+
+ :param metadata: The metadata of this JSONRouteResponse. # noqa: E501
+ :type: GeoJSONRouteResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def routes(self):
+ """Gets the routes of this JSONRouteResponse. # noqa: E501
+
+ A list of routes returned from the request # noqa: E501
+
+ :return: The routes of this JSONRouteResponse. # noqa: E501
+ :rtype: list[JSONRouteResponseRoutes]
+ """
+ return self._routes
+
+ @routes.setter
+ def routes(self, routes):
+ """Sets the routes of this JSONRouteResponse.
+
+ A list of routes returned from the request # noqa: E501
+
+ :param routes: The routes of this JSONRouteResponse. # noqa: E501
+ :type: list[JSONRouteResponseRoutes]
+ """
+
+ self._routes = routes
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONRouteResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONRouteResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_route_response_routes.py b/openrouteservice/models/json_route_response_routes.py
new file mode 100644
index 00000000..0e74728a
--- /dev/null
+++ b/openrouteservice/models/json_route_response_routes.py
@@ -0,0 +1,362 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONRouteResponseRoutes(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival': 'datetime',
+ 'bbox': 'list[float]',
+ 'departure': 'datetime',
+ 'extras': 'dict(str, JSONIndividualRouteResponseExtras)',
+ 'geometry': 'str',
+ 'legs': 'list[JSONIndividualRouteResponseLegs]',
+ 'segments': 'list[JSONIndividualRouteResponseSegments]',
+ 'summary': 'JSONIndividualRouteResponseSummary',
+ 'warnings': 'list[JSONIndividualRouteResponseWarnings]',
+ 'way_points': 'list[int]'
+ }
+
+ attribute_map = {
+ 'arrival': 'arrival',
+ 'bbox': 'bbox',
+ 'departure': 'departure',
+ 'extras': 'extras',
+ 'geometry': 'geometry',
+ 'legs': 'legs',
+ 'segments': 'segments',
+ 'summary': 'summary',
+ 'warnings': 'warnings',
+ 'way_points': 'way_points'
+ }
+
+ def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometry=None, legs=None, segments=None, summary=None, warnings=None, way_points=None): # noqa: E501
+ """JSONRouteResponseRoutes - a model defined in Swagger""" # noqa: E501
+ self._arrival = None
+ self._bbox = None
+ self._departure = None
+ self._extras = None
+ self._geometry = None
+ self._legs = None
+ self._segments = None
+ self._summary = None
+ self._warnings = None
+ self._way_points = None
+ self.discriminator = None
+ if arrival is not None:
+ self.arrival = arrival
+ if bbox is not None:
+ self.bbox = bbox
+ if departure is not None:
+ self.departure = departure
+ if extras is not None:
+ self.extras = extras
+ if geometry is not None:
+ self.geometry = geometry
+ if legs is not None:
+ self.legs = legs
+ if segments is not None:
+ self.segments = segments
+ if summary is not None:
+ self.summary = summary
+ if warnings is not None:
+ self.warnings = warnings
+ if way_points is not None:
+ self.way_points = way_points
+
+ @property
+ def arrival(self):
+ """Gets the arrival of this JSONRouteResponseRoutes. # noqa: E501
+
+ Arrival date and time # noqa: E501
+
+ :return: The arrival of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival
+
+ @arrival.setter
+ def arrival(self, arrival):
+ """Sets the arrival of this JSONRouteResponseRoutes.
+
+ Arrival date and time # noqa: E501
+
+ :param arrival: The arrival of this JSONRouteResponseRoutes. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival = arrival
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this JSONRouteResponseRoutes. # noqa: E501
+
+ A bounding box which contains the entire route # noqa: E501
+
+ :return: The bbox of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this JSONRouteResponseRoutes.
+
+ A bounding box which contains the entire route # noqa: E501
+
+ :param bbox: The bbox of this JSONRouteResponseRoutes. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def departure(self):
+ """Gets the departure of this JSONRouteResponseRoutes. # noqa: E501
+
+ Departure date and time # noqa: E501
+
+ :return: The departure of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure
+
+ @departure.setter
+ def departure(self, departure):
+ """Sets the departure of this JSONRouteResponseRoutes.
+
+ Departure date and time # noqa: E501
+
+ :param departure: The departure of this JSONRouteResponseRoutes. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure = departure
+
+ @property
+ def extras(self):
+ """Gets the extras of this JSONRouteResponseRoutes. # noqa: E501
+
+ List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
+
+ :return: The extras of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: dict(str, JSONIndividualRouteResponseExtras)
+ """
+ return self._extras
+
+ @extras.setter
+ def extras(self, extras):
+ """Sets the extras of this JSONRouteResponseRoutes.
+
+ List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
+
+ :param extras: The extras of this JSONRouteResponseRoutes. # noqa: E501
+ :type: dict(str, JSONIndividualRouteResponseExtras)
+ """
+
+ self._extras = extras
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this JSONRouteResponseRoutes. # noqa: E501
+
+ The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
+
+ :return: The geometry of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: str
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this JSONRouteResponseRoutes.
+
+ The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
+
+ :param geometry: The geometry of this JSONRouteResponseRoutes. # noqa: E501
+ :type: str
+ """
+
+ self._geometry = geometry
+
+ @property
+ def legs(self):
+ """Gets the legs of this JSONRouteResponseRoutes. # noqa: E501
+
+ List containing the legs the route consists of. # noqa: E501
+
+ :return: The legs of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseLegs]
+ """
+ return self._legs
+
+ @legs.setter
+ def legs(self, legs):
+ """Sets the legs of this JSONRouteResponseRoutes.
+
+ List containing the legs the route consists of. # noqa: E501
+
+ :param legs: The legs of this JSONRouteResponseRoutes. # noqa: E501
+ :type: list[JSONIndividualRouteResponseLegs]
+ """
+
+ self._legs = legs
+
+ @property
+ def segments(self):
+ """Gets the segments of this JSONRouteResponseRoutes. # noqa: E501
+
+ List containing the segments and its corresponding steps which make up the route. # noqa: E501
+
+ :return: The segments of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseSegments]
+ """
+ return self._segments
+
+ @segments.setter
+ def segments(self, segments):
+ """Sets the segments of this JSONRouteResponseRoutes.
+
+ List containing the segments and its corresponding steps which make up the route. # noqa: E501
+
+ :param segments: The segments of this JSONRouteResponseRoutes. # noqa: E501
+ :type: list[JSONIndividualRouteResponseSegments]
+ """
+
+ self._segments = segments
+
+ @property
+ def summary(self):
+ """Gets the summary of this JSONRouteResponseRoutes. # noqa: E501
+
+
+ :return: The summary of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: JSONIndividualRouteResponseSummary
+ """
+ return self._summary
+
+ @summary.setter
+ def summary(self, summary):
+ """Sets the summary of this JSONRouteResponseRoutes.
+
+
+ :param summary: The summary of this JSONRouteResponseRoutes. # noqa: E501
+ :type: JSONIndividualRouteResponseSummary
+ """
+
+ self._summary = summary
+
+ @property
+ def warnings(self):
+ """Gets the warnings of this JSONRouteResponseRoutes. # noqa: E501
+
+ List of warnings that have been generated for the route # noqa: E501
+
+ :return: The warnings of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseWarnings]
+ """
+ return self._warnings
+
+ @warnings.setter
+ def warnings(self, warnings):
+ """Sets the warnings of this JSONRouteResponseRoutes.
+
+ List of warnings that have been generated for the route # noqa: E501
+
+ :param warnings: The warnings of this JSONRouteResponseRoutes. # noqa: E501
+ :type: list[JSONIndividualRouteResponseWarnings]
+ """
+
+ self._warnings = warnings
+
+ @property
+ def way_points(self):
+ """Gets the way_points of this JSONRouteResponseRoutes. # noqa: E501
+
+ List containing the indices of way points corresponding to the *geometry*. # noqa: E501
+
+ :return: The way_points of this JSONRouteResponseRoutes. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._way_points
+
+ @way_points.setter
+ def way_points(self, way_points):
+ """Sets the way_points of this JSONRouteResponseRoutes.
+
+ List containing the indices of way points corresponding to the *geometry*. # noqa: E501
+
+ :param way_points: The way_points of this JSONRouteResponseRoutes. # noqa: E501
+ :type: list[int]
+ """
+
+ self._way_points = way_points
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONRouteResponseRoutes, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONRouteResponseRoutes):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_segment.py b/openrouteservice/models/json_segment.py
new file mode 100644
index 00000000..65038051
--- /dev/null
+++ b/openrouteservice/models/json_segment.py
@@ -0,0 +1,308 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONSegment(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'ascent': 'float',
+ 'avgspeed': 'float',
+ 'descent': 'float',
+ 'detourfactor': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'percentage': 'float',
+ 'steps': 'list[JSONIndividualRouteResponseInstructions]'
+ }
+
+ attribute_map = {
+ 'ascent': 'ascent',
+ 'avgspeed': 'avgspeed',
+ 'descent': 'descent',
+ 'detourfactor': 'detourfactor',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'percentage': 'percentage',
+ 'steps': 'steps'
+ }
+
+ def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None, distance=None, duration=None, percentage=None, steps=None): # noqa: E501
+ """JSONSegment - a model defined in Swagger""" # noqa: E501
+ self._ascent = None
+ self._avgspeed = None
+ self._descent = None
+ self._detourfactor = None
+ self._distance = None
+ self._duration = None
+ self._percentage = None
+ self._steps = None
+ self.discriminator = None
+ if ascent is not None:
+ self.ascent = ascent
+ if avgspeed is not None:
+ self.avgspeed = avgspeed
+ if descent is not None:
+ self.descent = descent
+ if detourfactor is not None:
+ self.detourfactor = detourfactor
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if percentage is not None:
+ self.percentage = percentage
+ if steps is not None:
+ self.steps = steps
+
+ @property
+ def ascent(self):
+ """Gets the ascent of this JSONSegment. # noqa: E501
+
+ Contains ascent of this segment in metres. # noqa: E501
+
+ :return: The ascent of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._ascent
+
+ @ascent.setter
+ def ascent(self, ascent):
+ """Sets the ascent of this JSONSegment.
+
+ Contains ascent of this segment in metres. # noqa: E501
+
+ :param ascent: The ascent of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._ascent = ascent
+
+ @property
+ def avgspeed(self):
+ """Gets the avgspeed of this JSONSegment. # noqa: E501
+
+ Contains the average speed of this segment in km/h. # noqa: E501
+
+ :return: The avgspeed of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._avgspeed
+
+ @avgspeed.setter
+ def avgspeed(self, avgspeed):
+ """Sets the avgspeed of this JSONSegment.
+
+ Contains the average speed of this segment in km/h. # noqa: E501
+
+ :param avgspeed: The avgspeed of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._avgspeed = avgspeed
+
+ @property
+ def descent(self):
+ """Gets the descent of this JSONSegment. # noqa: E501
+
+ Contains descent of this segment in metres. # noqa: E501
+
+ :return: The descent of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._descent
+
+ @descent.setter
+ def descent(self, descent):
+ """Sets the descent of this JSONSegment.
+
+ Contains descent of this segment in metres. # noqa: E501
+
+ :param descent: The descent of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._descent = descent
+
+ @property
+ def detourfactor(self):
+ """Gets the detourfactor of this JSONSegment. # noqa: E501
+
+ Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
+
+ :return: The detourfactor of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._detourfactor
+
+ @detourfactor.setter
+ def detourfactor(self, detourfactor):
+ """Sets the detourfactor of this JSONSegment.
+
+ Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
+
+ :param detourfactor: The detourfactor of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._detourfactor = detourfactor
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONSegment. # noqa: E501
+
+ Contains the distance of the segment in specified units. # noqa: E501
+
+ :return: The distance of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONSegment.
+
+ Contains the distance of the segment in specified units. # noqa: E501
+
+ :param distance: The distance of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONSegment. # noqa: E501
+
+ Contains the duration of the segment in seconds. # noqa: E501
+
+ :return: The duration of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONSegment.
+
+ Contains the duration of the segment in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def percentage(self):
+ """Gets the percentage of this JSONSegment. # noqa: E501
+
+ Contains the proportion of the route in percent. # noqa: E501
+
+ :return: The percentage of this JSONSegment. # noqa: E501
+ :rtype: float
+ """
+ return self._percentage
+
+ @percentage.setter
+ def percentage(self, percentage):
+ """Sets the percentage of this JSONSegment.
+
+ Contains the proportion of the route in percent. # noqa: E501
+
+ :param percentage: The percentage of this JSONSegment. # noqa: E501
+ :type: float
+ """
+
+ self._percentage = percentage
+
+ @property
+ def steps(self):
+ """Gets the steps of this JSONSegment. # noqa: E501
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :return: The steps of this JSONSegment. # noqa: E501
+ :rtype: list[JSONIndividualRouteResponseInstructions]
+ """
+ return self._steps
+
+ @steps.setter
+ def steps(self, steps):
+ """Sets the steps of this JSONSegment.
+
+ List containing the specific steps the segment consists of. # noqa: E501
+
+ :param steps: The steps of this JSONSegment. # noqa: E501
+ :type: list[JSONIndividualRouteResponseInstructions]
+ """
+
+ self._steps = steps
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONSegment, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONSegment):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_step.py b/openrouteservice/models/json_step.py
new file mode 100644
index 00000000..03403c94
--- /dev/null
+++ b/openrouteservice/models/json_step.py
@@ -0,0 +1,334 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONStep(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'distance': 'float',
+ 'duration': 'float',
+ 'exit_bearings': 'list[int]',
+ 'exit_number': 'int',
+ 'instruction': 'str',
+ 'maneuver': 'JSONIndividualRouteResponseManeuver',
+ 'name': 'str',
+ 'type': 'int',
+ 'way_points': 'list[int]'
+ }
+
+ attribute_map = {
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'exit_bearings': 'exit_bearings',
+ 'exit_number': 'exit_number',
+ 'instruction': 'instruction',
+ 'maneuver': 'maneuver',
+ 'name': 'name',
+ 'type': 'type',
+ 'way_points': 'way_points'
+ }
+
+ def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number=None, instruction=None, maneuver=None, name=None, type=None, way_points=None): # noqa: E501
+ """JSONStep - a model defined in Swagger""" # noqa: E501
+ self._distance = None
+ self._duration = None
+ self._exit_bearings = None
+ self._exit_number = None
+ self._instruction = None
+ self._maneuver = None
+ self._name = None
+ self._type = None
+ self._way_points = None
+ self.discriminator = None
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if exit_bearings is not None:
+ self.exit_bearings = exit_bearings
+ if exit_number is not None:
+ self.exit_number = exit_number
+ if instruction is not None:
+ self.instruction = instruction
+ if maneuver is not None:
+ self.maneuver = maneuver
+ if name is not None:
+ self.name = name
+ if type is not None:
+ self.type = type
+ if way_points is not None:
+ self.way_points = way_points
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONStep. # noqa: E501
+
+ The distance for the step in metres. # noqa: E501
+
+ :return: The distance of this JSONStep. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONStep.
+
+ The distance for the step in metres. # noqa: E501
+
+ :param distance: The distance of this JSONStep. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONStep. # noqa: E501
+
+ The duration for the step in seconds. # noqa: E501
+
+ :return: The duration of this JSONStep. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONStep.
+
+ The duration for the step in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONStep. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def exit_bearings(self):
+ """Gets the exit_bearings of this JSONStep. # noqa: E501
+
+ Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
+
+ :return: The exit_bearings of this JSONStep. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._exit_bearings
+
+ @exit_bearings.setter
+ def exit_bearings(self, exit_bearings):
+ """Sets the exit_bearings of this JSONStep.
+
+ Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
+
+ :param exit_bearings: The exit_bearings of this JSONStep. # noqa: E501
+ :type: list[int]
+ """
+
+ self._exit_bearings = exit_bearings
+
+ @property
+ def exit_number(self):
+ """Gets the exit_number of this JSONStep. # noqa: E501
+
+ Only for roundabouts. Contains the number of the exit to take. # noqa: E501
+
+ :return: The exit_number of this JSONStep. # noqa: E501
+ :rtype: int
+ """
+ return self._exit_number
+
+ @exit_number.setter
+ def exit_number(self, exit_number):
+ """Sets the exit_number of this JSONStep.
+
+ Only for roundabouts. Contains the number of the exit to take. # noqa: E501
+
+ :param exit_number: The exit_number of this JSONStep. # noqa: E501
+ :type: int
+ """
+
+ self._exit_number = exit_number
+
+ @property
+ def instruction(self):
+ """Gets the instruction of this JSONStep. # noqa: E501
+
+ The routing instruction text for the step. # noqa: E501
+
+ :return: The instruction of this JSONStep. # noqa: E501
+ :rtype: str
+ """
+ return self._instruction
+
+ @instruction.setter
+ def instruction(self, instruction):
+ """Sets the instruction of this JSONStep.
+
+ The routing instruction text for the step. # noqa: E501
+
+ :param instruction: The instruction of this JSONStep. # noqa: E501
+ :type: str
+ """
+
+ self._instruction = instruction
+
+ @property
+ def maneuver(self):
+ """Gets the maneuver of this JSONStep. # noqa: E501
+
+
+ :return: The maneuver of this JSONStep. # noqa: E501
+ :rtype: JSONIndividualRouteResponseManeuver
+ """
+ return self._maneuver
+
+ @maneuver.setter
+ def maneuver(self, maneuver):
+ """Sets the maneuver of this JSONStep.
+
+
+ :param maneuver: The maneuver of this JSONStep. # noqa: E501
+ :type: JSONIndividualRouteResponseManeuver
+ """
+
+ self._maneuver = maneuver
+
+ @property
+ def name(self):
+ """Gets the name of this JSONStep. # noqa: E501
+
+ The name of the next street. # noqa: E501
+
+ :return: The name of this JSONStep. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSONStep.
+
+ The name of the next street. # noqa: E501
+
+ :param name: The name of this JSONStep. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def type(self):
+ """Gets the type of this JSONStep. # noqa: E501
+
+ The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
+
+ :return: The type of this JSONStep. # noqa: E501
+ :rtype: int
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this JSONStep.
+
+ The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
+
+ :param type: The type of this JSONStep. # noqa: E501
+ :type: int
+ """
+
+ self._type = type
+
+ @property
+ def way_points(self):
+ """Gets the way_points of this JSONStep. # noqa: E501
+
+ List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
+
+ :return: The way_points of this JSONStep. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._way_points
+
+ @way_points.setter
+ def way_points(self, way_points):
+ """Sets the way_points of this JSONStep.
+
+ List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
+
+ :param way_points: The way_points of this JSONStep. # noqa: E501
+ :type: list[int]
+ """
+
+ self._way_points = way_points
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONStep, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONStep):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_step_maneuver.py b/openrouteservice/models/json_step_maneuver.py
new file mode 100644
index 00000000..bea0488f
--- /dev/null
+++ b/openrouteservice/models/json_step_maneuver.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONStepManeuver(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bearing_after': 'int',
+ 'bearing_before': 'int',
+ 'location': 'list[float]'
+ }
+
+ attribute_map = {
+ 'bearing_after': 'bearing_after',
+ 'bearing_before': 'bearing_before',
+ 'location': 'location'
+ }
+
+ def __init__(self, bearing_after=None, bearing_before=None, location=None): # noqa: E501
+ """JSONStepManeuver - a model defined in Swagger""" # noqa: E501
+ self._bearing_after = None
+ self._bearing_before = None
+ self._location = None
+ self.discriminator = None
+ if bearing_after is not None:
+ self.bearing_after = bearing_after
+ if bearing_before is not None:
+ self.bearing_before = bearing_before
+ if location is not None:
+ self.location = location
+
+ @property
+ def bearing_after(self):
+ """Gets the bearing_after of this JSONStepManeuver. # noqa: E501
+
+ The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
+
+ :return: The bearing_after of this JSONStepManeuver. # noqa: E501
+ :rtype: int
+ """
+ return self._bearing_after
+
+ @bearing_after.setter
+ def bearing_after(self, bearing_after):
+ """Sets the bearing_after of this JSONStepManeuver.
+
+ The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
+
+ :param bearing_after: The bearing_after of this JSONStepManeuver. # noqa: E501
+ :type: int
+ """
+
+ self._bearing_after = bearing_after
+
+ @property
+ def bearing_before(self):
+ """Gets the bearing_before of this JSONStepManeuver. # noqa: E501
+
+ The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
+
+ :return: The bearing_before of this JSONStepManeuver. # noqa: E501
+ :rtype: int
+ """
+ return self._bearing_before
+
+ @bearing_before.setter
+ def bearing_before(self, bearing_before):
+ """Sets the bearing_before of this JSONStepManeuver.
+
+ The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
+
+ :param bearing_before: The bearing_before of this JSONStepManeuver. # noqa: E501
+ :type: int
+ """
+
+ self._bearing_before = bearing_before
+
+ @property
+ def location(self):
+ """Gets the location of this JSONStepManeuver. # noqa: E501
+
+ The coordinate of the point where a maneuver takes place. # noqa: E501
+
+ :return: The location of this JSONStepManeuver. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSONStepManeuver.
+
+ The coordinate of the point where a maneuver takes place. # noqa: E501
+
+ :param location: The location of this JSONStepManeuver. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONStepManeuver, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONStepManeuver):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_summary.py b/openrouteservice/models/json_summary.py
new file mode 100644
index 00000000..ea63bd17
--- /dev/null
+++ b/openrouteservice/models/json_summary.py
@@ -0,0 +1,248 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONSummary(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'ascent': 'float',
+ 'descent': 'float',
+ 'distance': 'float',
+ 'duration': 'float',
+ 'fare': 'int',
+ 'transfers': 'int'
+ }
+
+ attribute_map = {
+ 'ascent': 'ascent',
+ 'descent': 'descent',
+ 'distance': 'distance',
+ 'duration': 'duration',
+ 'fare': 'fare',
+ 'transfers': 'transfers'
+ }
+
+ def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare=None, transfers=None): # noqa: E501
+ """JSONSummary - a model defined in Swagger""" # noqa: E501
+ self._ascent = None
+ self._descent = None
+ self._distance = None
+ self._duration = None
+ self._fare = None
+ self._transfers = None
+ self.discriminator = None
+ if ascent is not None:
+ self.ascent = ascent
+ if descent is not None:
+ self.descent = descent
+ if distance is not None:
+ self.distance = distance
+ if duration is not None:
+ self.duration = duration
+ if fare is not None:
+ self.fare = fare
+ if transfers is not None:
+ self.transfers = transfers
+
+ @property
+ def ascent(self):
+ """Gets the ascent of this JSONSummary. # noqa: E501
+
+ Total ascent in meters. # noqa: E501
+
+ :return: The ascent of this JSONSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._ascent
+
+ @ascent.setter
+ def ascent(self, ascent):
+ """Sets the ascent of this JSONSummary.
+
+ Total ascent in meters. # noqa: E501
+
+ :param ascent: The ascent of this JSONSummary. # noqa: E501
+ :type: float
+ """
+
+ self._ascent = ascent
+
+ @property
+ def descent(self):
+ """Gets the descent of this JSONSummary. # noqa: E501
+
+ Total descent in meters. # noqa: E501
+
+ :return: The descent of this JSONSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._descent
+
+ @descent.setter
+ def descent(self, descent):
+ """Sets the descent of this JSONSummary.
+
+ Total descent in meters. # noqa: E501
+
+ :param descent: The descent of this JSONSummary. # noqa: E501
+ :type: float
+ """
+
+ self._descent = descent
+
+ @property
+ def distance(self):
+ """Gets the distance of this JSONSummary. # noqa: E501
+
+ Total route distance in specified units. # noqa: E501
+
+ :return: The distance of this JSONSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._distance
+
+ @distance.setter
+ def distance(self, distance):
+ """Sets the distance of this JSONSummary.
+
+ Total route distance in specified units. # noqa: E501
+
+ :param distance: The distance of this JSONSummary. # noqa: E501
+ :type: float
+ """
+
+ self._distance = distance
+
+ @property
+ def duration(self):
+ """Gets the duration of this JSONSummary. # noqa: E501
+
+ Total duration in seconds. # noqa: E501
+
+ :return: The duration of this JSONSummary. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this JSONSummary.
+
+ Total duration in seconds. # noqa: E501
+
+ :param duration: The duration of this JSONSummary. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ @property
+ def fare(self):
+ """Gets the fare of this JSONSummary. # noqa: E501
+
+
+ :return: The fare of this JSONSummary. # noqa: E501
+ :rtype: int
+ """
+ return self._fare
+
+ @fare.setter
+ def fare(self, fare):
+ """Sets the fare of this JSONSummary.
+
+
+ :param fare: The fare of this JSONSummary. # noqa: E501
+ :type: int
+ """
+
+ self._fare = fare
+
+ @property
+ def transfers(self):
+ """Gets the transfers of this JSONSummary. # noqa: E501
+
+
+ :return: The transfers of this JSONSummary. # noqa: E501
+ :rtype: int
+ """
+ return self._transfers
+
+ @transfers.setter
+ def transfers(self, transfers):
+ """Sets the transfers of this JSONSummary.
+
+
+ :param transfers: The transfers of this JSONSummary. # noqa: E501
+ :type: int
+ """
+
+ self._transfers = transfers
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONSummary, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONSummary):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_warning.py b/openrouteservice/models/json_warning.py
new file mode 100644
index 00000000..6e1c28b1
--- /dev/null
+++ b/openrouteservice/models/json_warning.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONWarning(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'code': 'int',
+ 'message': 'str'
+ }
+
+ attribute_map = {
+ 'code': 'code',
+ 'message': 'message'
+ }
+
+ def __init__(self, code=None, message=None): # noqa: E501
+ """JSONWarning - a model defined in Swagger""" # noqa: E501
+ self._code = None
+ self._message = None
+ self.discriminator = None
+ if code is not None:
+ self.code = code
+ if message is not None:
+ self.message = message
+
+ @property
+ def code(self):
+ """Gets the code of this JSONWarning. # noqa: E501
+
+ Identification code for the warning # noqa: E501
+
+ :return: The code of this JSONWarning. # noqa: E501
+ :rtype: int
+ """
+ return self._code
+
+ @code.setter
+ def code(self, code):
+ """Sets the code of this JSONWarning.
+
+ Identification code for the warning # noqa: E501
+
+ :param code: The code of this JSONWarning. # noqa: E501
+ :type: int
+ """
+
+ self._code = code
+
+ @property
+ def message(self):
+ """Gets the message of this JSONWarning. # noqa: E501
+
+ The message associated with the warning # noqa: E501
+
+ :return: The message of this JSONWarning. # noqa: E501
+ :rtype: str
+ """
+ return self._message
+
+ @message.setter
+ def message(self, message):
+ """Sets the message of this JSONWarning.
+
+ The message associated with the warning # noqa: E501
+
+ :param message: The message of this JSONWarning. # noqa: E501
+ :type: str
+ """
+
+ self._message = message
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONWarning, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONWarning):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/jsonpt_stop.py b/openrouteservice/models/jsonpt_stop.py
new file mode 100644
index 00000000..3357cdfb
--- /dev/null
+++ b/openrouteservice/models/jsonpt_stop.py
@@ -0,0 +1,392 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONPtStop(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'arrival_cancelled': 'bool',
+ 'arrival_time': 'datetime',
+ 'departure_cancelled': 'bool',
+ 'departure_time': 'datetime',
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'planned_arrival_time': 'datetime',
+ 'planned_departure_time': 'datetime',
+ 'predicted_arrival_time': 'datetime',
+ 'predicted_departure_time': 'datetime',
+ 'stop_id': 'str'
+ }
+
+ attribute_map = {
+ 'arrival_cancelled': 'arrival_cancelled',
+ 'arrival_time': 'arrival_time',
+ 'departure_cancelled': 'departure_cancelled',
+ 'departure_time': 'departure_time',
+ 'location': 'location',
+ 'name': 'name',
+ 'planned_arrival_time': 'planned_arrival_time',
+ 'planned_departure_time': 'planned_departure_time',
+ 'predicted_arrival_time': 'predicted_arrival_time',
+ 'predicted_departure_time': 'predicted_departure_time',
+ 'stop_id': 'stop_id'
+ }
+
+ def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelled=None, departure_time=None, location=None, name=None, planned_arrival_time=None, planned_departure_time=None, predicted_arrival_time=None, predicted_departure_time=None, stop_id=None): # noqa: E501
+ """JSONPtStop - a model defined in Swagger""" # noqa: E501
+ self._arrival_cancelled = None
+ self._arrival_time = None
+ self._departure_cancelled = None
+ self._departure_time = None
+ self._location = None
+ self._name = None
+ self._planned_arrival_time = None
+ self._planned_departure_time = None
+ self._predicted_arrival_time = None
+ self._predicted_departure_time = None
+ self._stop_id = None
+ self.discriminator = None
+ if arrival_cancelled is not None:
+ self.arrival_cancelled = arrival_cancelled
+ if arrival_time is not None:
+ self.arrival_time = arrival_time
+ if departure_cancelled is not None:
+ self.departure_cancelled = departure_cancelled
+ if departure_time is not None:
+ self.departure_time = departure_time
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if planned_arrival_time is not None:
+ self.planned_arrival_time = planned_arrival_time
+ if planned_departure_time is not None:
+ self.planned_departure_time = planned_departure_time
+ if predicted_arrival_time is not None:
+ self.predicted_arrival_time = predicted_arrival_time
+ if predicted_departure_time is not None:
+ self.predicted_departure_time = predicted_departure_time
+ if stop_id is not None:
+ self.stop_id = stop_id
+
+ @property
+ def arrival_cancelled(self):
+ """Gets the arrival_cancelled of this JSONPtStop. # noqa: E501
+
+ Whether arrival at the stop was cancelled. # noqa: E501
+
+ :return: The arrival_cancelled of this JSONPtStop. # noqa: E501
+ :rtype: bool
+ """
+ return self._arrival_cancelled
+
+ @arrival_cancelled.setter
+ def arrival_cancelled(self, arrival_cancelled):
+ """Sets the arrival_cancelled of this JSONPtStop.
+
+ Whether arrival at the stop was cancelled. # noqa: E501
+
+ :param arrival_cancelled: The arrival_cancelled of this JSONPtStop. # noqa: E501
+ :type: bool
+ """
+
+ self._arrival_cancelled = arrival_cancelled
+
+ @property
+ def arrival_time(self):
+ """Gets the arrival_time of this JSONPtStop. # noqa: E501
+
+ Arrival time of the stop. # noqa: E501
+
+ :return: The arrival_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._arrival_time
+
+ @arrival_time.setter
+ def arrival_time(self, arrival_time):
+ """Sets the arrival_time of this JSONPtStop.
+
+ Arrival time of the stop. # noqa: E501
+
+ :param arrival_time: The arrival_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._arrival_time = arrival_time
+
+ @property
+ def departure_cancelled(self):
+ """Gets the departure_cancelled of this JSONPtStop. # noqa: E501
+
+ Whether departure at the stop was cancelled. # noqa: E501
+
+ :return: The departure_cancelled of this JSONPtStop. # noqa: E501
+ :rtype: bool
+ """
+ return self._departure_cancelled
+
+ @departure_cancelled.setter
+ def departure_cancelled(self, departure_cancelled):
+ """Sets the departure_cancelled of this JSONPtStop.
+
+ Whether departure at the stop was cancelled. # noqa: E501
+
+ :param departure_cancelled: The departure_cancelled of this JSONPtStop. # noqa: E501
+ :type: bool
+ """
+
+ self._departure_cancelled = departure_cancelled
+
+ @property
+ def departure_time(self):
+ """Gets the departure_time of this JSONPtStop. # noqa: E501
+
+ Departure time of the stop. # noqa: E501
+
+ :return: The departure_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._departure_time
+
+ @departure_time.setter
+ def departure_time(self, departure_time):
+ """Sets the departure_time of this JSONPtStop.
+
+ Departure time of the stop. # noqa: E501
+
+ :param departure_time: The departure_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._departure_time = departure_time
+
+ @property
+ def location(self):
+ """Gets the location of this JSONPtStop. # noqa: E501
+
+ The location of the stop. # noqa: E501
+
+ :return: The location of this JSONPtStop. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSONPtStop.
+
+ The location of the stop. # noqa: E501
+
+ :param location: The location of this JSONPtStop. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this JSONPtStop. # noqa: E501
+
+ The name of the stop. # noqa: E501
+
+ :return: The name of this JSONPtStop. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSONPtStop.
+
+ The name of the stop. # noqa: E501
+
+ :param name: The name of this JSONPtStop. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def planned_arrival_time(self):
+ """Gets the planned_arrival_time of this JSONPtStop. # noqa: E501
+
+ Planned arrival time of the stop. # noqa: E501
+
+ :return: The planned_arrival_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._planned_arrival_time
+
+ @planned_arrival_time.setter
+ def planned_arrival_time(self, planned_arrival_time):
+ """Sets the planned_arrival_time of this JSONPtStop.
+
+ Planned arrival time of the stop. # noqa: E501
+
+ :param planned_arrival_time: The planned_arrival_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._planned_arrival_time = planned_arrival_time
+
+ @property
+ def planned_departure_time(self):
+ """Gets the planned_departure_time of this JSONPtStop. # noqa: E501
+
+ Planned departure time of the stop. # noqa: E501
+
+ :return: The planned_departure_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._planned_departure_time
+
+ @planned_departure_time.setter
+ def planned_departure_time(self, planned_departure_time):
+ """Sets the planned_departure_time of this JSONPtStop.
+
+ Planned departure time of the stop. # noqa: E501
+
+ :param planned_departure_time: The planned_departure_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._planned_departure_time = planned_departure_time
+
+ @property
+ def predicted_arrival_time(self):
+ """Gets the predicted_arrival_time of this JSONPtStop. # noqa: E501
+
+ Predicted arrival time of the stop. # noqa: E501
+
+ :return: The predicted_arrival_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._predicted_arrival_time
+
+ @predicted_arrival_time.setter
+ def predicted_arrival_time(self, predicted_arrival_time):
+ """Sets the predicted_arrival_time of this JSONPtStop.
+
+ Predicted arrival time of the stop. # noqa: E501
+
+ :param predicted_arrival_time: The predicted_arrival_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._predicted_arrival_time = predicted_arrival_time
+
+ @property
+ def predicted_departure_time(self):
+ """Gets the predicted_departure_time of this JSONPtStop. # noqa: E501
+
+ Predicted departure time of the stop. # noqa: E501
+
+ :return: The predicted_departure_time of this JSONPtStop. # noqa: E501
+ :rtype: datetime
+ """
+ return self._predicted_departure_time
+
+ @predicted_departure_time.setter
+ def predicted_departure_time(self, predicted_departure_time):
+ """Sets the predicted_departure_time of this JSONPtStop.
+
+ Predicted departure time of the stop. # noqa: E501
+
+ :param predicted_departure_time: The predicted_departure_time of this JSONPtStop. # noqa: E501
+ :type: datetime
+ """
+
+ self._predicted_departure_time = predicted_departure_time
+
+ @property
+ def stop_id(self):
+ """Gets the stop_id of this JSONPtStop. # noqa: E501
+
+ The ID of the stop. # noqa: E501
+
+ :return: The stop_id of this JSONPtStop. # noqa: E501
+ :rtype: str
+ """
+ return self._stop_id
+
+ @stop_id.setter
+ def stop_id(self, stop_id):
+ """Sets the stop_id of this JSONPtStop.
+
+ The ID of the stop. # noqa: E501
+
+ :param stop_id: The stop_id of this JSONPtStop. # noqa: E501
+ :type: str
+ """
+
+ self._stop_id = stop_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONPtStop, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONPtStop):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
new file mode 100644
index 00000000..0c7e9ce1
--- /dev/null
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -0,0 +1,294 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixProfileBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'destinations': 'list[str]',
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'metrics': 'list[str]',
+ 'resolve_locations': 'bool',
+ 'sources': 'list[str]',
+ 'units': 'str'
+ }
+
+ attribute_map = {
+ 'destinations': 'destinations',
+ 'id': 'id',
+ 'locations': 'locations',
+ 'metrics': 'metrics',
+ 'resolve_locations': 'resolve_locations',
+ 'sources': 'sources',
+ 'units': 'units'
+ }
+
+ def __init__(self, destinations=None, id=None, locations=None, metrics=None, resolve_locations=False, sources=None, units='m'): # noqa: E501
+ """MatrixProfileBody - a model defined in Swagger""" # noqa: E501
+ self._destinations = None
+ self._id = None
+ self._locations = None
+ self._metrics = None
+ self._resolve_locations = None
+ self._sources = None
+ self._units = None
+ self.discriminator = None
+ if destinations is not None:
+ self.destinations = destinations
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ if metrics is not None:
+ self.metrics = metrics
+ if resolve_locations is not None:
+ self.resolve_locations = resolve_locations
+ if sources is not None:
+ self.sources = sources
+ if units is not None:
+ self.units = units
+
+ @property
+ def destinations(self):
+ """Gets the destinations of this MatrixProfileBody. # noqa: E501
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
+
+ :return: The destinations of this MatrixProfileBody. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._destinations
+
+ @destinations.setter
+ def destinations(self, destinations):
+ """Sets the destinations of this MatrixProfileBody.
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
+
+ :param destinations: The destinations of this MatrixProfileBody. # noqa: E501
+ :type: list[str]
+ """
+
+ self._destinations = destinations
+
+ @property
+ def id(self):
+ """Gets the id of this MatrixProfileBody. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this MatrixProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this MatrixProfileBody.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this MatrixProfileBody. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this MatrixProfileBody. # noqa: E501
+
+ List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The locations of this MatrixProfileBody. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this MatrixProfileBody.
+
+ List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param locations: The locations of this MatrixProfileBody. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def metrics(self):
+ """Gets the metrics of this MatrixProfileBody. # noqa: E501
+
+ Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
+
+ :return: The metrics of this MatrixProfileBody. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._metrics
+
+ @metrics.setter
+ def metrics(self, metrics):
+ """Sets the metrics of this MatrixProfileBody.
+
+ Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
+
+ :param metrics: The metrics of this MatrixProfileBody. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["distance", "duration"] # noqa: E501
+ if not set(metrics).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `metrics` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(metrics) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._metrics = metrics
+
+ @property
+ def resolve_locations(self):
+ """Gets the resolve_locations of this MatrixProfileBody. # noqa: E501
+
+ Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
+
+ :return: The resolve_locations of this MatrixProfileBody. # noqa: E501
+ :rtype: bool
+ """
+ return self._resolve_locations
+
+ @resolve_locations.setter
+ def resolve_locations(self, resolve_locations):
+ """Sets the resolve_locations of this MatrixProfileBody.
+
+ Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
+
+ :param resolve_locations: The resolve_locations of this MatrixProfileBody. # noqa: E501
+ :type: bool
+ """
+
+ self._resolve_locations = resolve_locations
+
+ @property
+ def sources(self):
+ """Gets the sources of this MatrixProfileBody. # noqa: E501
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
+
+ :return: The sources of this MatrixProfileBody. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._sources
+
+ @sources.setter
+ def sources(self, sources):
+ """Sets the sources of this MatrixProfileBody.
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
+
+ :param sources: The sources of this MatrixProfileBody. # noqa: E501
+ :type: list[str]
+ """
+
+ self._sources = sources
+
+ @property
+ def units(self):
+ """Gets the units of this MatrixProfileBody. # noqa: E501
+
+ Specifies the distance unit. Default: m. # noqa: E501
+
+ :return: The units of this MatrixProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this MatrixProfileBody.
+
+ Specifies the distance unit. Default: m. # noqa: E501
+
+ :param units: The units of this MatrixProfileBody. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixProfileBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixProfileBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_request.py b/openrouteservice/models/matrix_request.py
new file mode 100644
index 00000000..675968d1
--- /dev/null
+++ b/openrouteservice/models/matrix_request.py
@@ -0,0 +1,294 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixRequest(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'destinations': 'list[str]',
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'metrics': 'list[str]',
+ 'resolve_locations': 'bool',
+ 'sources': 'list[str]',
+ 'units': 'str'
+ }
+
+ attribute_map = {
+ 'destinations': 'destinations',
+ 'id': 'id',
+ 'locations': 'locations',
+ 'metrics': 'metrics',
+ 'resolve_locations': 'resolve_locations',
+ 'sources': 'sources',
+ 'units': 'units'
+ }
+
+ def __init__(self, destinations=None, id=None, locations=None, metrics=None, resolve_locations=False, sources=None, units='m'): # noqa: E501
+ """MatrixRequest - a model defined in Swagger""" # noqa: E501
+ self._destinations = None
+ self._id = None
+ self._locations = None
+ self._metrics = None
+ self._resolve_locations = None
+ self._sources = None
+ self._units = None
+ self.discriminator = None
+ if destinations is not None:
+ self.destinations = destinations
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ if metrics is not None:
+ self.metrics = metrics
+ if resolve_locations is not None:
+ self.resolve_locations = resolve_locations
+ if sources is not None:
+ self.sources = sources
+ if units is not None:
+ self.units = units
+
+ @property
+ def destinations(self):
+ """Gets the destinations of this MatrixRequest. # noqa: E501
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
+
+ :return: The destinations of this MatrixRequest. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._destinations
+
+ @destinations.setter
+ def destinations(self, destinations):
+ """Sets the destinations of this MatrixRequest.
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
+
+ :param destinations: The destinations of this MatrixRequest. # noqa: E501
+ :type: list[str]
+ """
+
+ self._destinations = destinations
+
+ @property
+ def id(self):
+ """Gets the id of this MatrixRequest. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this MatrixRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this MatrixRequest.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this MatrixRequest. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this MatrixRequest. # noqa: E501
+
+ List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
+
+ :return: The locations of this MatrixRequest. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this MatrixRequest.
+
+ List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
+
+ :param locations: The locations of this MatrixRequest. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def metrics(self):
+ """Gets the metrics of this MatrixRequest. # noqa: E501
+
+ Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
+
+ :return: The metrics of this MatrixRequest. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._metrics
+
+ @metrics.setter
+ def metrics(self, metrics):
+ """Sets the metrics of this MatrixRequest.
+
+ Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
+
+ :param metrics: The metrics of this MatrixRequest. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["distance", "duration"] # noqa: E501
+ if not set(metrics).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `metrics` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(metrics) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._metrics = metrics
+
+ @property
+ def resolve_locations(self):
+ """Gets the resolve_locations of this MatrixRequest. # noqa: E501
+
+ Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
+
+ :return: The resolve_locations of this MatrixRequest. # noqa: E501
+ :rtype: bool
+ """
+ return self._resolve_locations
+
+ @resolve_locations.setter
+ def resolve_locations(self, resolve_locations):
+ """Sets the resolve_locations of this MatrixRequest.
+
+ Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
+
+ :param resolve_locations: The resolve_locations of this MatrixRequest. # noqa: E501
+ :type: bool
+ """
+
+ self._resolve_locations = resolve_locations
+
+ @property
+ def sources(self):
+ """Gets the sources of this MatrixRequest. # noqa: E501
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
+
+ :return: The sources of this MatrixRequest. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._sources
+
+ @sources.setter
+ def sources(self, sources):
+ """Sets the sources of this MatrixRequest.
+
+ A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
+
+ :param sources: The sources of this MatrixRequest. # noqa: E501
+ :type: list[str]
+ """
+
+ self._sources = sources
+
+ @property
+ def units(self):
+ """Gets the units of this MatrixRequest. # noqa: E501
+
+ Specifies the distance unit. Default: m. # noqa: E501
+
+ :return: The units of this MatrixRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this MatrixRequest.
+
+ Specifies the distance unit. Default: m. # noqa: E501
+
+ :param units: The units of this MatrixRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["m", "km", "mi"] # noqa: E501
+ if units not in allowed_values:
+ raise ValueError(
+ "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
+ .format(units, allowed_values)
+ )
+
+ self._units = units
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixRequest, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixRequest):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_response.py b/openrouteservice/models/matrix_response.py
new file mode 100644
index 00000000..f8957713
--- /dev/null
+++ b/openrouteservice/models/matrix_response.py
@@ -0,0 +1,222 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'destinations': 'list[MatrixResponseDestinations]',
+ 'distances': 'list[list[float]]',
+ 'durations': 'list[list[float]]',
+ 'metadata': 'MatrixResponseMetadata',
+ 'sources': 'list[MatrixResponseSources]'
+ }
+
+ attribute_map = {
+ 'destinations': 'destinations',
+ 'distances': 'distances',
+ 'durations': 'durations',
+ 'metadata': 'metadata',
+ 'sources': 'sources'
+ }
+
+ def __init__(self, destinations=None, distances=None, durations=None, metadata=None, sources=None): # noqa: E501
+ """MatrixResponse - a model defined in Swagger""" # noqa: E501
+ self._destinations = None
+ self._distances = None
+ self._durations = None
+ self._metadata = None
+ self._sources = None
+ self.discriminator = None
+ if destinations is not None:
+ self.destinations = destinations
+ if distances is not None:
+ self.distances = distances
+ if durations is not None:
+ self.durations = durations
+ if metadata is not None:
+ self.metadata = metadata
+ if sources is not None:
+ self.sources = sources
+
+ @property
+ def destinations(self):
+ """Gets the destinations of this MatrixResponse. # noqa: E501
+
+ The individual destinations of the matrix calculations. # noqa: E501
+
+ :return: The destinations of this MatrixResponse. # noqa: E501
+ :rtype: list[MatrixResponseDestinations]
+ """
+ return self._destinations
+
+ @destinations.setter
+ def destinations(self, destinations):
+ """Sets the destinations of this MatrixResponse.
+
+ The individual destinations of the matrix calculations. # noqa: E501
+
+ :param destinations: The destinations of this MatrixResponse. # noqa: E501
+ :type: list[MatrixResponseDestinations]
+ """
+
+ self._destinations = destinations
+
+ @property
+ def distances(self):
+ """Gets the distances of this MatrixResponse. # noqa: E501
+
+ The distances of the matrix calculations. # noqa: E501
+
+ :return: The distances of this MatrixResponse. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._distances
+
+ @distances.setter
+ def distances(self, distances):
+ """Sets the distances of this MatrixResponse.
+
+ The distances of the matrix calculations. # noqa: E501
+
+ :param distances: The distances of this MatrixResponse. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._distances = distances
+
+ @property
+ def durations(self):
+ """Gets the durations of this MatrixResponse. # noqa: E501
+
+ The durations of the matrix calculations. # noqa: E501
+
+ :return: The durations of this MatrixResponse. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._durations
+
+ @durations.setter
+ def durations(self, durations):
+ """Sets the durations of this MatrixResponse.
+
+ The durations of the matrix calculations. # noqa: E501
+
+ :param durations: The durations of this MatrixResponse. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._durations = durations
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this MatrixResponse. # noqa: E501
+
+
+ :return: The metadata of this MatrixResponse. # noqa: E501
+ :rtype: MatrixResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this MatrixResponse.
+
+
+ :param metadata: The metadata of this MatrixResponse. # noqa: E501
+ :type: MatrixResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def sources(self):
+ """Gets the sources of this MatrixResponse. # noqa: E501
+
+ The individual sources of the matrix calculations. # noqa: E501
+
+ :return: The sources of this MatrixResponse. # noqa: E501
+ :rtype: list[MatrixResponseSources]
+ """
+ return self._sources
+
+ @sources.setter
+ def sources(self, sources):
+ """Sets the sources of this MatrixResponse.
+
+ The individual sources of the matrix calculations. # noqa: E501
+
+ :param sources: The sources of this MatrixResponse. # noqa: E501
+ :type: list[MatrixResponseSources]
+ """
+
+ self._sources = sources
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_response_destinations.py b/openrouteservice/models/matrix_response_destinations.py
new file mode 100644
index 00000000..7dfbf664
--- /dev/null
+++ b/openrouteservice/models/matrix_response_destinations.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixResponseDestinations(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """MatrixResponseDestinations - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this MatrixResponseDestinations. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this MatrixResponseDestinations. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this MatrixResponseDestinations.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this MatrixResponseDestinations. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this MatrixResponseDestinations. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this MatrixResponseDestinations. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this MatrixResponseDestinations.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this MatrixResponseDestinations. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this MatrixResponseDestinations. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :return: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this MatrixResponseDestinations.
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixResponseDestinations, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixResponseDestinations):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_response_info.py b/openrouteservice/models/matrix_response_info.py
new file mode 100644
index 00000000..8799d320
--- /dev/null
+++ b/openrouteservice/models/matrix_response_info.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixResponseInfo(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'MatrixProfileBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """MatrixResponseInfo - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this MatrixResponseInfo. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this MatrixResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this MatrixResponseInfo.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this MatrixResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this MatrixResponseInfo. # noqa: E501
+
+
+ :return: The engine of this MatrixResponseInfo. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this MatrixResponseInfo.
+
+
+ :param engine: The engine of this MatrixResponseInfo. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this MatrixResponseInfo. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this MatrixResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this MatrixResponseInfo.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this MatrixResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this MatrixResponseInfo.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this MatrixResponseInfo. # noqa: E501
+
+
+ :return: The query of this MatrixResponseInfo. # noqa: E501
+ :rtype: MatrixProfileBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this MatrixResponseInfo.
+
+
+ :param query: The query of this MatrixResponseInfo. # noqa: E501
+ :type: MatrixProfileBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this MatrixResponseInfo. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this MatrixResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this MatrixResponseInfo.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this MatrixResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this MatrixResponseInfo. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this MatrixResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this MatrixResponseInfo.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this MatrixResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this MatrixResponseInfo. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this MatrixResponseInfo. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this MatrixResponseInfo.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this MatrixResponseInfo. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixResponseInfo, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixResponseInfo):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_response_metadata.py b/openrouteservice/models/matrix_response_metadata.py
new file mode 100644
index 00000000..75cc7590
--- /dev/null
+++ b/openrouteservice/models/matrix_response_metadata.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixResponseMetadata(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'MatrixProfileBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """MatrixResponseMetadata - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this MatrixResponseMetadata. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this MatrixResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this MatrixResponseMetadata.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this MatrixResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this MatrixResponseMetadata. # noqa: E501
+
+
+ :return: The engine of this MatrixResponseMetadata. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this MatrixResponseMetadata.
+
+
+ :param engine: The engine of this MatrixResponseMetadata. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this MatrixResponseMetadata. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this MatrixResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this MatrixResponseMetadata.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this MatrixResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this MatrixResponseMetadata.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this MatrixResponseMetadata. # noqa: E501
+
+
+ :return: The query of this MatrixResponseMetadata. # noqa: E501
+ :rtype: MatrixProfileBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this MatrixResponseMetadata.
+
+
+ :param query: The query of this MatrixResponseMetadata. # noqa: E501
+ :type: MatrixProfileBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this MatrixResponseMetadata. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this MatrixResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this MatrixResponseMetadata.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this MatrixResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this MatrixResponseMetadata. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this MatrixResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this MatrixResponseMetadata.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this MatrixResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this MatrixResponseMetadata. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this MatrixResponseMetadata. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this MatrixResponseMetadata.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this MatrixResponseMetadata. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixResponseMetadata, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixResponseMetadata):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/matrix_response_sources.py b/openrouteservice/models/matrix_response_sources.py
new file mode 100644
index 00000000..320dfe83
--- /dev/null
+++ b/openrouteservice/models/matrix_response_sources.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class MatrixResponseSources(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """MatrixResponseSources - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this MatrixResponseSources. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this MatrixResponseSources. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this MatrixResponseSources.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this MatrixResponseSources. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this MatrixResponseSources. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this MatrixResponseSources. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this MatrixResponseSources.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this MatrixResponseSources. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this MatrixResponseSources. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :return: The snapped_distance of this MatrixResponseSources. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this MatrixResponseSources.
+
+ Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this MatrixResponseSources. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(MatrixResponseSources, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, MatrixResponseSources):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
new file mode 100644
index 00000000..33b73d2d
--- /dev/null
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -0,0 +1,234 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OpenpoiservicePoiRequest(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'filters': 'PoisFilters',
+ 'geometry': 'PoisGeometry',
+ 'limit': 'int',
+ 'request': 'str',
+ 'sortby': 'str'
+ }
+
+ attribute_map = {
+ 'filters': 'filters',
+ 'geometry': 'geometry',
+ 'limit': 'limit',
+ 'request': 'request',
+ 'sortby': 'sortby'
+ }
+
+ def __init__(self, filters=None, geometry=None, limit=None, request=None, sortby=None): # noqa: E501
+ """OpenpoiservicePoiRequest - a model defined in Swagger""" # noqa: E501
+ self._filters = None
+ self._geometry = None
+ self._limit = None
+ self._request = None
+ self._sortby = None
+ self.discriminator = None
+ if filters is not None:
+ self.filters = filters
+ self.geometry = geometry
+ if limit is not None:
+ self.limit = limit
+ self.request = request
+ if sortby is not None:
+ self.sortby = sortby
+
+ @property
+ def filters(self):
+ """Gets the filters of this OpenpoiservicePoiRequest. # noqa: E501
+
+
+ :return: The filters of this OpenpoiservicePoiRequest. # noqa: E501
+ :rtype: PoisFilters
+ """
+ return self._filters
+
+ @filters.setter
+ def filters(self, filters):
+ """Sets the filters of this OpenpoiservicePoiRequest.
+
+
+ :param filters: The filters of this OpenpoiservicePoiRequest. # noqa: E501
+ :type: PoisFilters
+ """
+
+ self._filters = filters
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this OpenpoiservicePoiRequest. # noqa: E501
+
+
+ :return: The geometry of this OpenpoiservicePoiRequest. # noqa: E501
+ :rtype: PoisGeometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this OpenpoiservicePoiRequest.
+
+
+ :param geometry: The geometry of this OpenpoiservicePoiRequest. # noqa: E501
+ :type: PoisGeometry
+ """
+ if geometry is None:
+ raise ValueError("Invalid value for `geometry`, must not be `None`") # noqa: E501
+
+ self._geometry = geometry
+
+ @property
+ def limit(self):
+ """Gets the limit of this OpenpoiservicePoiRequest. # noqa: E501
+
+ The limit of objects to be returned in the response. # noqa: E501
+
+ :return: The limit of this OpenpoiservicePoiRequest. # noqa: E501
+ :rtype: int
+ """
+ return self._limit
+
+ @limit.setter
+ def limit(self, limit):
+ """Sets the limit of this OpenpoiservicePoiRequest.
+
+ The limit of objects to be returned in the response. # noqa: E501
+
+ :param limit: The limit of this OpenpoiservicePoiRequest. # noqa: E501
+ :type: int
+ """
+
+ self._limit = limit
+
+ @property
+ def request(self):
+ """Gets the request of this OpenpoiservicePoiRequest. # noqa: E501
+
+ Examples: ``` #### JSON bodies for POST requests ##### Pois around a buffered point { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 250 } } ##### Pois given categories { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_ids\": [180, 245] } } ##### Pois given category groups { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_group_ids\": [160] } } ##### Pois statistics { \"request\": \"stats\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 } } ##### Pois categories as a list { \"request\": \"list\" } ``` # noqa: E501
+
+ :return: The request of this OpenpoiservicePoiRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._request
+
+ @request.setter
+ def request(self, request):
+ """Sets the request of this OpenpoiservicePoiRequest.
+
+ Examples: ``` #### JSON bodies for POST requests ##### Pois around a buffered point { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 250 } } ##### Pois given categories { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_ids\": [180, 245] } } ##### Pois given category groups { \"request\": \"pois\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 }, \"limit\": 200, \"filters\": { \"category_group_ids\": [160] } } ##### Pois statistics { \"request\": \"stats\", \"geometry\": { \"bbox\": [ [8.8034, 53.0756], [8.7834, 53.0456] ], \"geojson\": { \"type\": \"Point\", \"coordinates\": [8.8034, 53.0756] }, \"buffer\": 100 } } ##### Pois categories as a list { \"request\": \"list\" } ``` # noqa: E501
+
+ :param request: The request of this OpenpoiservicePoiRequest. # noqa: E501
+ :type: str
+ """
+ if request is None:
+ raise ValueError("Invalid value for `request`, must not be `None`") # noqa: E501
+ allowed_values = ["pois", "stats", "list"] # noqa: E501
+ if request not in allowed_values:
+ raise ValueError(
+ "Invalid value for `request` ({0}), must be one of {1}" # noqa: E501
+ .format(request, allowed_values)
+ )
+
+ self._request = request
+
+ @property
+ def sortby(self):
+ """Gets the sortby of this OpenpoiservicePoiRequest. # noqa: E501
+
+ Either you can sort by category or the distance to the geometry object provided in the request. # noqa: E501
+
+ :return: The sortby of this OpenpoiservicePoiRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._sortby
+
+ @sortby.setter
+ def sortby(self, sortby):
+ """Sets the sortby of this OpenpoiservicePoiRequest.
+
+ Either you can sort by category or the distance to the geometry object provided in the request. # noqa: E501
+
+ :param sortby: The sortby of this OpenpoiservicePoiRequest. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["category", "distance"] # noqa: E501
+ if sortby not in allowed_values:
+ raise ValueError(
+ "Invalid value for `sortby` ({0}), must be one of {1}" # noqa: E501
+ .format(sortby, allowed_values)
+ )
+
+ self._sortby = sortby
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OpenpoiservicePoiRequest, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OpenpoiservicePoiRequest):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/openpoiservice_poi_response.py b/openrouteservice/models/openpoiservice_poi_response.py
new file mode 100644
index 00000000..934e51ee
--- /dev/null
+++ b/openrouteservice/models/openpoiservice_poi_response.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OpenpoiservicePoiResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'features': 'list[GeoJSONFeaturesObject]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'features': 'features',
+ 'type': 'type'
+ }
+
+ def __init__(self, features=None, type='FeatureCollection'): # noqa: E501
+ """OpenpoiservicePoiResponse - a model defined in Swagger""" # noqa: E501
+ self._features = None
+ self._type = None
+ self.discriminator = None
+ if features is not None:
+ self.features = features
+ if type is not None:
+ self.type = type
+
+ @property
+ def features(self):
+ """Gets the features of this OpenpoiservicePoiResponse. # noqa: E501
+
+
+ :return: The features of this OpenpoiservicePoiResponse. # noqa: E501
+ :rtype: list[GeoJSONFeaturesObject]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this OpenpoiservicePoiResponse.
+
+
+ :param features: The features of this OpenpoiservicePoiResponse. # noqa: E501
+ :type: list[GeoJSONFeaturesObject]
+ """
+
+ self._features = features
+
+ @property
+ def type(self):
+ """Gets the type of this OpenpoiservicePoiResponse. # noqa: E501
+
+
+ :return: The type of this OpenpoiservicePoiResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this OpenpoiservicePoiResponse.
+
+
+ :param type: The type of this OpenpoiservicePoiResponse. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OpenpoiservicePoiResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OpenpoiservicePoiResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
new file mode 100644
index 00000000..fe19b957
--- /dev/null
+++ b/openrouteservice/models/optimization_body.py
@@ -0,0 +1,196 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'jobs': 'list[OptimizationJobs]',
+ 'matrix': 'list[list]',
+ 'options': 'OptimizationOptions',
+ 'vehicles': 'list[OptimizationVehicles]'
+ }
+
+ attribute_map = {
+ 'jobs': 'jobs',
+ 'matrix': 'matrix',
+ 'options': 'options',
+ 'vehicles': 'vehicles'
+ }
+
+ def __init__(self, jobs=None, matrix=None, options=None, vehicles=None): # noqa: E501
+ """OptimizationBody - a model defined in Swagger""" # noqa: E501
+ self._jobs = None
+ self._matrix = None
+ self._options = None
+ self._vehicles = None
+ self.discriminator = None
+ self.jobs = jobs
+ if matrix is not None:
+ self.matrix = matrix
+ if options is not None:
+ self.options = options
+ self.vehicles = vehicles
+
+ @property
+ def jobs(self):
+ """Gets the jobs of this OptimizationBody. # noqa: E501
+
+ Array of `job` objects describing the places to visit. For a detailed object description visit the [VROOM api description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#jobs) # noqa: E501
+
+ :return: The jobs of this OptimizationBody. # noqa: E501
+ :rtype: list[OptimizationJobs]
+ """
+ return self._jobs
+
+ @jobs.setter
+ def jobs(self, jobs):
+ """Sets the jobs of this OptimizationBody.
+
+ Array of `job` objects describing the places to visit. For a detailed object description visit the [VROOM api description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#jobs) # noqa: E501
+
+ :param jobs: The jobs of this OptimizationBody. # noqa: E501
+ :type: list[OptimizationJobs]
+ """
+ if jobs is None:
+ raise ValueError("Invalid value for `jobs`, must not be `None`") # noqa: E501
+
+ self._jobs = jobs
+
+ @property
+ def matrix(self):
+ """Gets the matrix of this OptimizationBody. # noqa: E501
+
+ Optional two-dimensional array describing a custom matrix # noqa: E501
+
+ :return: The matrix of this OptimizationBody. # noqa: E501
+ :rtype: list[list]
+ """
+ return self._matrix
+
+ @matrix.setter
+ def matrix(self, matrix):
+ """Sets the matrix of this OptimizationBody.
+
+ Optional two-dimensional array describing a custom matrix # noqa: E501
+
+ :param matrix: The matrix of this OptimizationBody. # noqa: E501
+ :type: list[list]
+ """
+
+ self._matrix = matrix
+
+ @property
+ def options(self):
+ """Gets the options of this OptimizationBody. # noqa: E501
+
+
+ :return: The options of this OptimizationBody. # noqa: E501
+ :rtype: OptimizationOptions
+ """
+ return self._options
+
+ @options.setter
+ def options(self, options):
+ """Sets the options of this OptimizationBody.
+
+
+ :param options: The options of this OptimizationBody. # noqa: E501
+ :type: OptimizationOptions
+ """
+
+ self._options = options
+
+ @property
+ def vehicles(self):
+ """Gets the vehicles of this OptimizationBody. # noqa: E501
+
+ Array of `vehicle` objects describing the available vehicles. For a detailed object description visit the [VROOM API description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles) # noqa: E501
+
+ :return: The vehicles of this OptimizationBody. # noqa: E501
+ :rtype: list[OptimizationVehicles]
+ """
+ return self._vehicles
+
+ @vehicles.setter
+ def vehicles(self, vehicles):
+ """Sets the vehicles of this OptimizationBody.
+
+ Array of `vehicle` objects describing the available vehicles. For a detailed object description visit the [VROOM API description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles) # noqa: E501
+
+ :param vehicles: The vehicles of this OptimizationBody. # noqa: E501
+ :type: list[OptimizationVehicles]
+ """
+ if vehicles is None:
+ raise ValueError("Invalid value for `vehicles`, must not be `None`") # noqa: E501
+
+ self._vehicles = vehicles
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
new file mode 100644
index 00000000..6aeb86cb
--- /dev/null
+++ b/openrouteservice/models/optimization_jobs.py
@@ -0,0 +1,280 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationJobs(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'amount': 'list[int]',
+ 'id': 'int',
+ 'location': 'list[list[float]]',
+ 'location_index': 'object',
+ 'service': 'object',
+ 'skills': 'list[int]',
+ 'time_windows': 'list[list[int]]'
+ }
+
+ attribute_map = {
+ 'amount': 'amount',
+ 'id': 'id',
+ 'location': 'location',
+ 'location_index': 'location_index',
+ 'service': 'service',
+ 'skills': 'skills',
+ 'time_windows': 'time_windows'
+ }
+
+ def __init__(self, amount=None, id=None, location=None, location_index=None, service=None, skills=None, time_windows=None): # noqa: E501
+ """OptimizationJobs - a model defined in Swagger""" # noqa: E501
+ self._amount = None
+ self._id = None
+ self._location = None
+ self._location_index = None
+ self._service = None
+ self._skills = None
+ self._time_windows = None
+ self.discriminator = None
+ if amount is not None:
+ self.amount = amount
+ if id is not None:
+ self.id = id
+ if location is not None:
+ self.location = location
+ if location_index is not None:
+ self.location_index = location_index
+ if service is not None:
+ self.service = service
+ if skills is not None:
+ self.skills = skills
+ if time_windows is not None:
+ self.time_windows = time_windows
+
+ @property
+ def amount(self):
+ """Gets the amount of this OptimizationJobs. # noqa: E501
+
+ Array describing multidimensional quantities # noqa: E501
+
+ :return: The amount of this OptimizationJobs. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._amount
+
+ @amount.setter
+ def amount(self, amount):
+ """Sets the amount of this OptimizationJobs.
+
+ Array describing multidimensional quantities # noqa: E501
+
+ :param amount: The amount of this OptimizationJobs. # noqa: E501
+ :type: list[int]
+ """
+
+ self._amount = amount
+
+ @property
+ def id(self):
+ """Gets the id of this OptimizationJobs. # noqa: E501
+
+ an integer used as unique identifier # noqa: E501
+
+ :return: The id of this OptimizationJobs. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this OptimizationJobs.
+
+ an integer used as unique identifier # noqa: E501
+
+ :param id: The id of this OptimizationJobs. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def location(self):
+ """Gets the location of this OptimizationJobs. # noqa: E501
+
+ coordinates array in `[lon, lat]` # noqa: E501
+
+ :return: The location of this OptimizationJobs. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this OptimizationJobs.
+
+ coordinates array in `[lon, lat]` # noqa: E501
+
+ :param location: The location of this OptimizationJobs. # noqa: E501
+ :type: list[list[float]]
+ """
+
+ self._location = location
+
+ @property
+ def location_index(self):
+ """Gets the location_index of this OptimizationJobs. # noqa: E501
+
+ index of relevant row and column in custom matrix # noqa: E501
+
+ :return: The location_index of this OptimizationJobs. # noqa: E501
+ :rtype: object
+ """
+ return self._location_index
+
+ @location_index.setter
+ def location_index(self, location_index):
+ """Sets the location_index of this OptimizationJobs.
+
+ index of relevant row and column in custom matrix # noqa: E501
+
+ :param location_index: The location_index of this OptimizationJobs. # noqa: E501
+ :type: object
+ """
+
+ self._location_index = location_index
+
+ @property
+ def service(self):
+ """Gets the service of this OptimizationJobs. # noqa: E501
+
+ job service duration (defaults to 0), in seconds # noqa: E501
+
+ :return: The service of this OptimizationJobs. # noqa: E501
+ :rtype: object
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this OptimizationJobs.
+
+ job service duration (defaults to 0), in seconds # noqa: E501
+
+ :param service: The service of this OptimizationJobs. # noqa: E501
+ :type: object
+ """
+
+ self._service = service
+
+ @property
+ def skills(self):
+ """Gets the skills of this OptimizationJobs. # noqa: E501
+
+ Array of integers defining mandatory skills for this job # noqa: E501
+
+ :return: The skills of this OptimizationJobs. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._skills
+
+ @skills.setter
+ def skills(self, skills):
+ """Sets the skills of this OptimizationJobs.
+
+ Array of integers defining mandatory skills for this job # noqa: E501
+
+ :param skills: The skills of this OptimizationJobs. # noqa: E501
+ :type: list[int]
+ """
+
+ self._skills = skills
+
+ @property
+ def time_windows(self):
+ """Gets the time_windows of this OptimizationJobs. # noqa: E501
+
+ Array of `time_window` arrays describing valid slots for job service start and end, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :return: The time_windows of this OptimizationJobs. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._time_windows
+
+ @time_windows.setter
+ def time_windows(self, time_windows):
+ """Sets the time_windows of this OptimizationJobs.
+
+ Array of `time_window` arrays describing valid slots for job service start and end, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :param time_windows: The time_windows of this OptimizationJobs. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._time_windows = time_windows
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationJobs, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationJobs):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
new file mode 100644
index 00000000..7b4bc462
--- /dev/null
+++ b/openrouteservice/models/optimization_options.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationOptions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'g': 'bool'
+ }
+
+ attribute_map = {
+ 'g': 'g'
+ }
+
+ def __init__(self, g=None): # noqa: E501
+ """OptimizationOptions - a model defined in Swagger""" # noqa: E501
+ self._g = None
+ self.discriminator = None
+ if g is not None:
+ self.g = g
+
+ @property
+ def g(self):
+ """Gets the g of this OptimizationOptions. # noqa: E501
+
+ Calculate geometries for the optimized routes. # noqa: E501
+
+ :return: The g of this OptimizationOptions. # noqa: E501
+ :rtype: bool
+ """
+ return self._g
+
+ @g.setter
+ def g(self, g):
+ """Sets the g of this OptimizationOptions.
+
+ Calculate geometries for the optimized routes. # noqa: E501
+
+ :param g: The g of this OptimizationOptions. # noqa: E501
+ :type: bool
+ """
+
+ self._g = g
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationOptions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationOptions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
new file mode 100644
index 00000000..15ac3e8f
--- /dev/null
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -0,0 +1,342 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationVehicles(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'capacity': 'list[int]',
+ 'end': 'list[float]',
+ 'end_index': 'object',
+ 'id': 'int',
+ 'profile': 'str',
+ 'skills': 'list[int]',
+ 'start': 'list[float]',
+ 'start_index': 'object',
+ 'time_window': 'list[int]'
+ }
+
+ attribute_map = {
+ 'capacity': 'capacity',
+ 'end': 'end',
+ 'end_index': 'end_index',
+ 'id': 'id',
+ 'profile': 'profile',
+ 'skills': 'skills',
+ 'start': 'start',
+ 'start_index': 'start_index',
+ 'time_window': 'time_window'
+ }
+
+ def __init__(self, capacity=None, end=None, end_index=None, id=None, profile=None, skills=None, start=None, start_index=None, time_window=None): # noqa: E501
+ """OptimizationVehicles - a model defined in Swagger""" # noqa: E501
+ self._capacity = None
+ self._end = None
+ self._end_index = None
+ self._id = None
+ self._profile = None
+ self._skills = None
+ self._start = None
+ self._start_index = None
+ self._time_window = None
+ self.discriminator = None
+ if capacity is not None:
+ self.capacity = capacity
+ if end is not None:
+ self.end = end
+ if end_index is not None:
+ self.end_index = end_index
+ if id is not None:
+ self.id = id
+ if profile is not None:
+ self.profile = profile
+ if skills is not None:
+ self.skills = skills
+ if start is not None:
+ self.start = start
+ if start_index is not None:
+ self.start_index = start_index
+ if time_window is not None:
+ self.time_window = time_window
+
+ @property
+ def capacity(self):
+ """Gets the capacity of this OptimizationVehicles. # noqa: E501
+
+ Array of integers describing multidimensional quantities. # noqa: E501
+
+ :return: The capacity of this OptimizationVehicles. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this OptimizationVehicles.
+
+ Array of integers describing multidimensional quantities. # noqa: E501
+
+ :param capacity: The capacity of this OptimizationVehicles. # noqa: E501
+ :type: list[int]
+ """
+
+ self._capacity = capacity
+
+ @property
+ def end(self):
+ """Gets the end of this OptimizationVehicles. # noqa: E501
+
+ End coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal end point. # noqa: E501
+
+ :return: The end of this OptimizationVehicles. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._end
+
+ @end.setter
+ def end(self, end):
+ """Sets the end of this OptimizationVehicles.
+
+ End coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal end point. # noqa: E501
+
+ :param end: The end of this OptimizationVehicles. # noqa: E501
+ :type: list[float]
+ """
+
+ self._end = end
+
+ @property
+ def end_index(self):
+ """Gets the end_index of this OptimizationVehicles. # noqa: E501
+
+ Index of relevant row and column in custom matrix. # noqa: E501
+
+ :return: The end_index of this OptimizationVehicles. # noqa: E501
+ :rtype: object
+ """
+ return self._end_index
+
+ @end_index.setter
+ def end_index(self, end_index):
+ """Sets the end_index of this OptimizationVehicles.
+
+ Index of relevant row and column in custom matrix. # noqa: E501
+
+ :param end_index: The end_index of this OptimizationVehicles. # noqa: E501
+ :type: object
+ """
+
+ self._end_index = end_index
+
+ @property
+ def id(self):
+ """Gets the id of this OptimizationVehicles. # noqa: E501
+
+ Integer used as unique identifier # noqa: E501
+
+ :return: The id of this OptimizationVehicles. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this OptimizationVehicles.
+
+ Integer used as unique identifier # noqa: E501
+
+ :param id: The id of this OptimizationVehicles. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def profile(self):
+ """Gets the profile of this OptimizationVehicles. # noqa: E501
+
+ The ORS routing profile for the vehicle. # noqa: E501
+
+ :return: The profile of this OptimizationVehicles. # noqa: E501
+ :rtype: str
+ """
+ return self._profile
+
+ @profile.setter
+ def profile(self, profile):
+ """Sets the profile of this OptimizationVehicles.
+
+ The ORS routing profile for the vehicle. # noqa: E501
+
+ :param profile: The profile of this OptimizationVehicles. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["driving-car", "driving-hgv", "cycling-regular", "cycling-mountain", "cycling-electric", "cycling-road", "foot-walking", "foot-hiking", "wheelchair"] # noqa: E501
+ if profile not in allowed_values:
+ raise ValueError(
+ "Invalid value for `profile` ({0}), must be one of {1}" # noqa: E501
+ .format(profile, allowed_values)
+ )
+
+ self._profile = profile
+
+ @property
+ def skills(self):
+ """Gets the skills of this OptimizationVehicles. # noqa: E501
+
+ Array of integers defining skills for this vehicle # noqa: E501
+
+ :return: The skills of this OptimizationVehicles. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._skills
+
+ @skills.setter
+ def skills(self, skills):
+ """Sets the skills of this OptimizationVehicles.
+
+ Array of integers defining skills for this vehicle # noqa: E501
+
+ :param skills: The skills of this OptimizationVehicles. # noqa: E501
+ :type: list[int]
+ """
+
+ self._skills = skills
+
+ @property
+ def start(self):
+ """Gets the start of this OptimizationVehicles. # noqa: E501
+
+ Start coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal start point. # noqa: E501
+
+ :return: The start of this OptimizationVehicles. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._start
+
+ @start.setter
+ def start(self, start):
+ """Sets the start of this OptimizationVehicles.
+
+ Start coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal start point. # noqa: E501
+
+ :param start: The start of this OptimizationVehicles. # noqa: E501
+ :type: list[float]
+ """
+
+ self._start = start
+
+ @property
+ def start_index(self):
+ """Gets the start_index of this OptimizationVehicles. # noqa: E501
+
+ Index of relevant row and column in custom matrix. # noqa: E501
+
+ :return: The start_index of this OptimizationVehicles. # noqa: E501
+ :rtype: object
+ """
+ return self._start_index
+
+ @start_index.setter
+ def start_index(self, start_index):
+ """Sets the start_index of this OptimizationVehicles.
+
+ Index of relevant row and column in custom matrix. # noqa: E501
+
+ :param start_index: The start_index of this OptimizationVehicles. # noqa: E501
+ :type: object
+ """
+
+ self._start_index = start_index
+
+ @property
+ def time_window(self):
+ """Gets the time_window of this OptimizationVehicles. # noqa: E501
+
+ A `time_window` array describing working hours for this vehicle, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :return: The time_window of this OptimizationVehicles. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._time_window
+
+ @time_window.setter
+ def time_window(self, time_window):
+ """Sets the time_window of this OptimizationVehicles.
+
+ A `time_window` array describing working hours for this vehicle, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :param time_window: The time_window of this OptimizationVehicles. # noqa: E501
+ :type: list[int]
+ """
+
+ self._time_window = time_window
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationVehicles, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationVehicles):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
new file mode 100644
index 00000000..a086af4c
--- /dev/null
+++ b/openrouteservice/models/pois_filters.py
@@ -0,0 +1,248 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class PoisFilters(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'category_group_ids': 'list[int]',
+ 'category_ids': 'list[int]',
+ 'fee': 'list[str]',
+ 'name': 'list[str]',
+ 'smoking': 'list[str]',
+ 'wheelchair': 'list[str]'
+ }
+
+ attribute_map = {
+ 'category_group_ids': 'category_group_ids',
+ 'category_ids': 'category_ids',
+ 'fee': 'fee',
+ 'name': 'name',
+ 'smoking': 'smoking',
+ 'wheelchair': 'wheelchair'
+ }
+
+ def __init__(self, category_group_ids=None, category_ids=None, fee=None, name=None, smoking=None, wheelchair=None): # noqa: E501
+ """PoisFilters - a model defined in Swagger""" # noqa: E501
+ self._category_group_ids = None
+ self._category_ids = None
+ self._fee = None
+ self._name = None
+ self._smoking = None
+ self._wheelchair = None
+ self.discriminator = None
+ if category_group_ids is not None:
+ self.category_group_ids = category_group_ids
+ if category_ids is not None:
+ self.category_ids = category_ids
+ if fee is not None:
+ self.fee = fee
+ if name is not None:
+ self.name = name
+ if smoking is not None:
+ self.smoking = smoking
+ if wheelchair is not None:
+ self.wheelchair = wheelchair
+
+ @property
+ def category_group_ids(self):
+ """Gets the category_group_ids of this PoisFilters. # noqa: E501
+
+
+ :return: The category_group_ids of this PoisFilters. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._category_group_ids
+
+ @category_group_ids.setter
+ def category_group_ids(self, category_group_ids):
+ """Sets the category_group_ids of this PoisFilters.
+
+
+ :param category_group_ids: The category_group_ids of this PoisFilters. # noqa: E501
+ :type: list[int]
+ """
+
+ self._category_group_ids = category_group_ids
+
+ @property
+ def category_ids(self):
+ """Gets the category_ids of this PoisFilters. # noqa: E501
+
+
+ :return: The category_ids of this PoisFilters. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._category_ids
+
+ @category_ids.setter
+ def category_ids(self, category_ids):
+ """Sets the category_ids of this PoisFilters.
+
+
+ :param category_ids: The category_ids of this PoisFilters. # noqa: E501
+ :type: list[int]
+ """
+
+ self._category_ids = category_ids
+
+ @property
+ def fee(self):
+ """Gets the fee of this PoisFilters. # noqa: E501
+
+ Filter example. # noqa: E501
+
+ :return: The fee of this PoisFilters. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._fee
+
+ @fee.setter
+ def fee(self, fee):
+ """Sets the fee of this PoisFilters.
+
+ Filter example. # noqa: E501
+
+ :param fee: The fee of this PoisFilters. # noqa: E501
+ :type: list[str]
+ """
+
+ self._fee = fee
+
+ @property
+ def name(self):
+ """Gets the name of this PoisFilters. # noqa: E501
+
+ Filter by name of the poi object. # noqa: E501
+
+ :return: The name of this PoisFilters. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this PoisFilters.
+
+ Filter by name of the poi object. # noqa: E501
+
+ :param name: The name of this PoisFilters. # noqa: E501
+ :type: list[str]
+ """
+
+ self._name = name
+
+ @property
+ def smoking(self):
+ """Gets the smoking of this PoisFilters. # noqa: E501
+
+ Filter example. # noqa: E501
+
+ :return: The smoking of this PoisFilters. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._smoking
+
+ @smoking.setter
+ def smoking(self, smoking):
+ """Sets the smoking of this PoisFilters.
+
+ Filter example. # noqa: E501
+
+ :param smoking: The smoking of this PoisFilters. # noqa: E501
+ :type: list[str]
+ """
+
+ self._smoking = smoking
+
+ @property
+ def wheelchair(self):
+ """Gets the wheelchair of this PoisFilters. # noqa: E501
+
+ Filter example. # noqa: E501
+
+ :return: The wheelchair of this PoisFilters. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._wheelchair
+
+ @wheelchair.setter
+ def wheelchair(self, wheelchair):
+ """Sets the wheelchair of this PoisFilters.
+
+ Filter example. # noqa: E501
+
+ :param wheelchair: The wheelchair of this PoisFilters. # noqa: E501
+ :type: list[str]
+ """
+
+ self._wheelchair = wheelchair
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(PoisFilters, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, PoisFilters):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
new file mode 100644
index 00000000..5f1a8296
--- /dev/null
+++ b/openrouteservice/models/pois_geometry.py
@@ -0,0 +1,166 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class PoisGeometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'buffer': 'int',
+ 'geojson': 'object'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'buffer': 'buffer',
+ 'geojson': 'geojson'
+ }
+
+ def __init__(self, bbox=None, buffer=None, geojson=None): # noqa: E501
+ """PoisGeometry - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._buffer = None
+ self._geojson = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if buffer is not None:
+ self.buffer = buffer
+ if geojson is not None:
+ self.geojson = geojson
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this PoisGeometry. # noqa: E501
+
+ The pattern for this bbox string is minlon,minlat,maxlon,maxlat # noqa: E501
+
+ :return: The bbox of this PoisGeometry. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this PoisGeometry.
+
+ The pattern for this bbox string is minlon,minlat,maxlon,maxlat # noqa: E501
+
+ :param bbox: The bbox of this PoisGeometry. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def buffer(self):
+ """Gets the buffer of this PoisGeometry. # noqa: E501
+
+
+ :return: The buffer of this PoisGeometry. # noqa: E501
+ :rtype: int
+ """
+ return self._buffer
+
+ @buffer.setter
+ def buffer(self, buffer):
+ """Sets the buffer of this PoisGeometry.
+
+
+ :param buffer: The buffer of this PoisGeometry. # noqa: E501
+ :type: int
+ """
+
+ self._buffer = buffer
+
+ @property
+ def geojson(self):
+ """Gets the geojson of this PoisGeometry. # noqa: E501
+
+ This is a GeoJSON object. Is either Point, Polygon or LineString. # noqa: E501
+
+ :return: The geojson of this PoisGeometry. # noqa: E501
+ :rtype: object
+ """
+ return self._geojson
+
+ @geojson.setter
+ def geojson(self, geojson):
+ """Sets the geojson of this PoisGeometry.
+
+ This is a GeoJSON object. Is either Point, Polygon or LineString. # noqa: E501
+
+ :param geojson: The geojson of this PoisGeometry. # noqa: E501
+ :type: object
+ """
+
+ self._geojson = geojson
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(PoisGeometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, PoisGeometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
new file mode 100644
index 00000000..bec97fd5
--- /dev/null
+++ b/openrouteservice/models/profile_parameters.py
@@ -0,0 +1,192 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ProfileParameters(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'allow_unsuitable': 'bool',
+ 'restrictions': 'ProfileParametersRestrictions',
+ 'surface_quality_known': 'bool',
+ 'weightings': 'ProfileWeightings'
+ }
+
+ attribute_map = {
+ 'allow_unsuitable': 'allow_unsuitable',
+ 'restrictions': 'restrictions',
+ 'surface_quality_known': 'surface_quality_known',
+ 'weightings': 'weightings'
+ }
+
+ def __init__(self, allow_unsuitable=None, restrictions=None, surface_quality_known=None, weightings=None): # noqa: E501
+ """ProfileParameters - a model defined in Swagger""" # noqa: E501
+ self._allow_unsuitable = None
+ self._restrictions = None
+ self._surface_quality_known = None
+ self._weightings = None
+ self.discriminator = None
+ if allow_unsuitable is not None:
+ self.allow_unsuitable = allow_unsuitable
+ if restrictions is not None:
+ self.restrictions = restrictions
+ if surface_quality_known is not None:
+ self.surface_quality_known = surface_quality_known
+ if weightings is not None:
+ self.weightings = weightings
+
+ @property
+ def allow_unsuitable(self):
+ """Gets the allow_unsuitable of this ProfileParameters. # noqa: E501
+
+ Specifies if ways that might not be suitable (e.g. unknown pedestrian usage) should be included in finding routes - default false # noqa: E501
+
+ :return: The allow_unsuitable of this ProfileParameters. # noqa: E501
+ :rtype: bool
+ """
+ return self._allow_unsuitable
+
+ @allow_unsuitable.setter
+ def allow_unsuitable(self, allow_unsuitable):
+ """Sets the allow_unsuitable of this ProfileParameters.
+
+ Specifies if ways that might not be suitable (e.g. unknown pedestrian usage) should be included in finding routes - default false # noqa: E501
+
+ :param allow_unsuitable: The allow_unsuitable of this ProfileParameters. # noqa: E501
+ :type: bool
+ """
+
+ self._allow_unsuitable = allow_unsuitable
+
+ @property
+ def restrictions(self):
+ """Gets the restrictions of this ProfileParameters. # noqa: E501
+
+
+ :return: The restrictions of this ProfileParameters. # noqa: E501
+ :rtype: ProfileParametersRestrictions
+ """
+ return self._restrictions
+
+ @restrictions.setter
+ def restrictions(self, restrictions):
+ """Sets the restrictions of this ProfileParameters.
+
+
+ :param restrictions: The restrictions of this ProfileParameters. # noqa: E501
+ :type: ProfileParametersRestrictions
+ """
+
+ self._restrictions = restrictions
+
+ @property
+ def surface_quality_known(self):
+ """Gets the surface_quality_known of this ProfileParameters. # noqa: E501
+
+ Specifies whether to enforce that only ways with known information on surface quality be taken into account - default false # noqa: E501
+
+ :return: The surface_quality_known of this ProfileParameters. # noqa: E501
+ :rtype: bool
+ """
+ return self._surface_quality_known
+
+ @surface_quality_known.setter
+ def surface_quality_known(self, surface_quality_known):
+ """Sets the surface_quality_known of this ProfileParameters.
+
+ Specifies whether to enforce that only ways with known information on surface quality be taken into account - default false # noqa: E501
+
+ :param surface_quality_known: The surface_quality_known of this ProfileParameters. # noqa: E501
+ :type: bool
+ """
+
+ self._surface_quality_known = surface_quality_known
+
+ @property
+ def weightings(self):
+ """Gets the weightings of this ProfileParameters. # noqa: E501
+
+
+ :return: The weightings of this ProfileParameters. # noqa: E501
+ :rtype: ProfileWeightings
+ """
+ return self._weightings
+
+ @weightings.setter
+ def weightings(self, weightings):
+ """Sets the weightings of this ProfileParameters.
+
+
+ :param weightings: The weightings of this ProfileParameters. # noqa: E501
+ :type: ProfileWeightings
+ """
+
+ self._weightings = weightings
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ProfileParameters, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ProfileParameters):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
new file mode 100644
index 00000000..a08c7ae6
--- /dev/null
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -0,0 +1,426 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ProfileParametersRestrictions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'axleload': 'float',
+ 'hazmat': 'bool',
+ 'height': 'float',
+ 'length': 'float',
+ 'maximum_incline': 'int',
+ 'maximum_sloped_kerb': 'float',
+ 'minimum_width': 'float',
+ 'smoothness_type': 'str',
+ 'surface_type': 'str',
+ 'track_type': 'str',
+ 'weight': 'float',
+ 'width': 'float'
+ }
+
+ attribute_map = {
+ 'axleload': 'axleload',
+ 'hazmat': 'hazmat',
+ 'height': 'height',
+ 'length': 'length',
+ 'maximum_incline': 'maximum_incline',
+ 'maximum_sloped_kerb': 'maximum_sloped_kerb',
+ 'minimum_width': 'minimum_width',
+ 'smoothness_type': 'smoothness_type',
+ 'surface_type': 'surface_type',
+ 'track_type': 'track_type',
+ 'weight': 'weight',
+ 'width': 'width'
+ }
+
+ def __init__(self, axleload=None, hazmat=False, height=None, length=None, maximum_incline=6, maximum_sloped_kerb=0.6, minimum_width=None, smoothness_type='good', surface_type='sett', track_type='grade1', weight=None, width=None): # noqa: E501
+ """ProfileParametersRestrictions - a model defined in Swagger""" # noqa: E501
+ self._axleload = None
+ self._hazmat = None
+ self._height = None
+ self._length = None
+ self._maximum_incline = None
+ self._maximum_sloped_kerb = None
+ self._minimum_width = None
+ self._smoothness_type = None
+ self._surface_type = None
+ self._track_type = None
+ self._weight = None
+ self._width = None
+ self.discriminator = None
+ if axleload is not None:
+ self.axleload = axleload
+ if hazmat is not None:
+ self.hazmat = hazmat
+ if height is not None:
+ self.height = height
+ if length is not None:
+ self.length = length
+ if maximum_incline is not None:
+ self.maximum_incline = maximum_incline
+ if maximum_sloped_kerb is not None:
+ self.maximum_sloped_kerb = maximum_sloped_kerb
+ if minimum_width is not None:
+ self.minimum_width = minimum_width
+ if smoothness_type is not None:
+ self.smoothness_type = smoothness_type
+ if surface_type is not None:
+ self.surface_type = surface_type
+ if track_type is not None:
+ self.track_type = track_type
+ if weight is not None:
+ self.weight = weight
+ if width is not None:
+ self.width = width
+
+ @property
+ def axleload(self):
+ """Gets the axleload of this ProfileParametersRestrictions. # noqa: E501
+
+ Axleload restriction in tons. # noqa: E501
+
+ :return: The axleload of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._axleload
+
+ @axleload.setter
+ def axleload(self, axleload):
+ """Sets the axleload of this ProfileParametersRestrictions.
+
+ Axleload restriction in tons. # noqa: E501
+
+ :param axleload: The axleload of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._axleload = axleload
+
+ @property
+ def hazmat(self):
+ """Gets the hazmat of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
+
+ :return: The hazmat of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: bool
+ """
+ return self._hazmat
+
+ @hazmat.setter
+ def hazmat(self, hazmat):
+ """Sets the hazmat of this ProfileParametersRestrictions.
+
+ Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
+
+ :param hazmat: The hazmat of this ProfileParametersRestrictions. # noqa: E501
+ :type: bool
+ """
+
+ self._hazmat = hazmat
+
+ @property
+ def height(self):
+ """Gets the height of this ProfileParametersRestrictions. # noqa: E501
+
+ Height restriction in metres. # noqa: E501
+
+ :return: The height of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._height
+
+ @height.setter
+ def height(self, height):
+ """Sets the height of this ProfileParametersRestrictions.
+
+ Height restriction in metres. # noqa: E501
+
+ :param height: The height of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._height = height
+
+ @property
+ def length(self):
+ """Gets the length of this ProfileParametersRestrictions. # noqa: E501
+
+ Length restriction in metres. # noqa: E501
+
+ :return: The length of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._length
+
+ @length.setter
+ def length(self, length):
+ """Sets the length of this ProfileParametersRestrictions.
+
+ Length restriction in metres. # noqa: E501
+
+ :param length: The length of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._length = length
+
+ @property
+ def maximum_incline(self):
+ """Gets the maximum_incline of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
+
+ :return: The maximum_incline of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: int
+ """
+ return self._maximum_incline
+
+ @maximum_incline.setter
+ def maximum_incline(self, maximum_incline):
+ """Sets the maximum_incline of this ProfileParametersRestrictions.
+
+ Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
+
+ :param maximum_incline: The maximum_incline of this ProfileParametersRestrictions. # noqa: E501
+ :type: int
+ """
+
+ self._maximum_incline = maximum_incline
+
+ @property
+ def maximum_sloped_kerb(self):
+ """Gets the maximum_sloped_kerb of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
+
+ :return: The maximum_sloped_kerb of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._maximum_sloped_kerb
+
+ @maximum_sloped_kerb.setter
+ def maximum_sloped_kerb(self, maximum_sloped_kerb):
+ """Sets the maximum_sloped_kerb of this ProfileParametersRestrictions.
+
+ Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
+
+ :param maximum_sloped_kerb: The maximum_sloped_kerb of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._maximum_sloped_kerb = maximum_sloped_kerb
+
+ @property
+ def minimum_width(self):
+ """Gets the minimum_width of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the minimum width of the footway in metres. # noqa: E501
+
+ :return: The minimum_width of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._minimum_width
+
+ @minimum_width.setter
+ def minimum_width(self, minimum_width):
+ """Sets the minimum_width of this ProfileParametersRestrictions.
+
+ Specifies the minimum width of the footway in metres. # noqa: E501
+
+ :param minimum_width: The minimum_width of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._minimum_width = minimum_width
+
+ @property
+ def smoothness_type(self):
+ """Gets the smoothness_type of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
+
+ :return: The smoothness_type of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._smoothness_type
+
+ @smoothness_type.setter
+ def smoothness_type(self, smoothness_type):
+ """Sets the smoothness_type of this ProfileParametersRestrictions.
+
+ Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
+
+ :param smoothness_type: The smoothness_type of this ProfileParametersRestrictions. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["excellent", "good", "intermediate", "bad", "very_bad", "horrible", "very_horrible", "impassable"] # noqa: E501
+ if smoothness_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `smoothness_type` ({0}), must be one of {1}" # noqa: E501
+ .format(smoothness_type, allowed_values)
+ )
+
+ self._smoothness_type = smoothness_type
+
+ @property
+ def surface_type(self):
+ """Gets the surface_type of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the minimum surface type. Default is `sett`. # noqa: E501
+
+ :return: The surface_type of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._surface_type
+
+ @surface_type.setter
+ def surface_type(self, surface_type):
+ """Sets the surface_type of this ProfileParametersRestrictions.
+
+ Specifies the minimum surface type. Default is `sett`. # noqa: E501
+
+ :param surface_type: The surface_type of this ProfileParametersRestrictions. # noqa: E501
+ :type: str
+ """
+
+ self._surface_type = surface_type
+
+ @property
+ def track_type(self):
+ """Gets the track_type of this ProfileParametersRestrictions. # noqa: E501
+
+ Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
+
+ :return: The track_type of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._track_type
+
+ @track_type.setter
+ def track_type(self, track_type):
+ """Sets the track_type of this ProfileParametersRestrictions.
+
+ Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
+
+ :param track_type: The track_type of this ProfileParametersRestrictions. # noqa: E501
+ :type: str
+ """
+
+ self._track_type = track_type
+
+ @property
+ def weight(self):
+ """Gets the weight of this ProfileParametersRestrictions. # noqa: E501
+
+ Weight restriction in tons. # noqa: E501
+
+ :return: The weight of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._weight
+
+ @weight.setter
+ def weight(self, weight):
+ """Sets the weight of this ProfileParametersRestrictions.
+
+ Weight restriction in tons. # noqa: E501
+
+ :param weight: The weight of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._weight = weight
+
+ @property
+ def width(self):
+ """Gets the width of this ProfileParametersRestrictions. # noqa: E501
+
+ Width restriction in metres. # noqa: E501
+
+ :return: The width of this ProfileParametersRestrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._width
+
+ @width.setter
+ def width(self, width):
+ """Sets the width of this ProfileParametersRestrictions.
+
+ Width restriction in metres. # noqa: E501
+
+ :param width: The width of this ProfileParametersRestrictions. # noqa: E501
+ :type: float
+ """
+
+ self._width = width
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ProfileParametersRestrictions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ProfileParametersRestrictions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
new file mode 100644
index 00000000..96ef1525
--- /dev/null
+++ b/openrouteservice/models/profile_weightings.py
@@ -0,0 +1,196 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ProfileWeightings(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'green': 'float',
+ 'quiet': 'float',
+ 'shadow': 'float',
+ 'steepness_difficulty': 'int'
+ }
+
+ attribute_map = {
+ 'green': 'green',
+ 'quiet': 'quiet',
+ 'shadow': 'shadow',
+ 'steepness_difficulty': 'steepness_difficulty'
+ }
+
+ def __init__(self, green=None, quiet=None, shadow=None, steepness_difficulty=None): # noqa: E501
+ """ProfileWeightings - a model defined in Swagger""" # noqa: E501
+ self._green = None
+ self._quiet = None
+ self._shadow = None
+ self._steepness_difficulty = None
+ self.discriminator = None
+ if green is not None:
+ self.green = green
+ if quiet is not None:
+ self.quiet = quiet
+ if shadow is not None:
+ self.shadow = shadow
+ if steepness_difficulty is not None:
+ self.steepness_difficulty = steepness_difficulty
+
+ @property
+ def green(self):
+ """Gets the green of this ProfileWeightings. # noqa: E501
+
+ Specifies the Green factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the green routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through green areas over a shorter route. # noqa: E501
+
+ :return: The green of this ProfileWeightings. # noqa: E501
+ :rtype: float
+ """
+ return self._green
+
+ @green.setter
+ def green(self, green):
+ """Sets the green of this ProfileWeightings.
+
+ Specifies the Green factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the green routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through green areas over a shorter route. # noqa: E501
+
+ :param green: The green of this ProfileWeightings. # noqa: E501
+ :type: float
+ """
+
+ self._green = green
+
+ @property
+ def quiet(self):
+ """Gets the quiet of this ProfileWeightings. # noqa: E501
+
+ Specifies the Quiet factor for foot-* profiles. factor: Multiplication factor range from 0 to 1. 0 is the quiet routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer quiet ways over a shorter route. # noqa: E501
+
+ :return: The quiet of this ProfileWeightings. # noqa: E501
+ :rtype: float
+ """
+ return self._quiet
+
+ @quiet.setter
+ def quiet(self, quiet):
+ """Sets the quiet of this ProfileWeightings.
+
+ Specifies the Quiet factor for foot-* profiles. factor: Multiplication factor range from 0 to 1. 0 is the quiet routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer quiet ways over a shorter route. # noqa: E501
+
+ :param quiet: The quiet of this ProfileWeightings. # noqa: E501
+ :type: float
+ """
+
+ self._quiet = quiet
+
+ @property
+ def shadow(self):
+ """Gets the shadow of this ProfileWeightings. # noqa: E501
+
+ Specifies the shadow factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the shadow routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through shadow areas over a shorter route. # noqa: E501
+
+ :return: The shadow of this ProfileWeightings. # noqa: E501
+ :rtype: float
+ """
+ return self._shadow
+
+ @shadow.setter
+ def shadow(self, shadow):
+ """Sets the shadow of this ProfileWeightings.
+
+ Specifies the shadow factor for `foot-*` profiles. factor: Multiplication factor range from 0 to 1. 0 is the shadow routing base factor without multiplying it by the manual factor and is already different from normal routing. 1 will prefer ways through shadow areas over a shorter route. # noqa: E501
+
+ :param shadow: The shadow of this ProfileWeightings. # noqa: E501
+ :type: float
+ """
+
+ self._shadow = shadow
+
+ @property
+ def steepness_difficulty(self):
+ """Gets the steepness_difficulty of this ProfileWeightings. # noqa: E501
+
+ Specifies the fitness level for `cycling-*` profiles. level: 0 = Novice, 1 = Moderate, 2 = Amateur, 3 = Pro. The prefered gradient increases with level. # noqa: E501
+
+ :return: The steepness_difficulty of this ProfileWeightings. # noqa: E501
+ :rtype: int
+ """
+ return self._steepness_difficulty
+
+ @steepness_difficulty.setter
+ def steepness_difficulty(self, steepness_difficulty):
+ """Sets the steepness_difficulty of this ProfileWeightings.
+
+ Specifies the fitness level for `cycling-*` profiles. level: 0 = Novice, 1 = Moderate, 2 = Amateur, 3 = Pro. The prefered gradient increases with level. # noqa: E501
+
+ :param steepness_difficulty: The steepness_difficulty of this ProfileWeightings. # noqa: E501
+ :type: int
+ """
+
+ self._steepness_difficulty = steepness_difficulty
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ProfileWeightings, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ProfileWeightings):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/restrictions.py b/openrouteservice/models/restrictions.py
new file mode 100644
index 00000000..5fdc1572
--- /dev/null
+++ b/openrouteservice/models/restrictions.py
@@ -0,0 +1,426 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class Restrictions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'axleload': 'float',
+ 'hazmat': 'bool',
+ 'height': 'float',
+ 'length': 'float',
+ 'maximum_incline': 'int',
+ 'maximum_sloped_kerb': 'float',
+ 'minimum_width': 'float',
+ 'smoothness_type': 'str',
+ 'surface_type': 'str',
+ 'track_type': 'str',
+ 'weight': 'float',
+ 'width': 'float'
+ }
+
+ attribute_map = {
+ 'axleload': 'axleload',
+ 'hazmat': 'hazmat',
+ 'height': 'height',
+ 'length': 'length',
+ 'maximum_incline': 'maximum_incline',
+ 'maximum_sloped_kerb': 'maximum_sloped_kerb',
+ 'minimum_width': 'minimum_width',
+ 'smoothness_type': 'smoothness_type',
+ 'surface_type': 'surface_type',
+ 'track_type': 'track_type',
+ 'weight': 'weight',
+ 'width': 'width'
+ }
+
+ def __init__(self, axleload=None, hazmat=False, height=None, length=None, maximum_incline=6, maximum_sloped_kerb=0.6, minimum_width=None, smoothness_type='good', surface_type='sett', track_type='grade1', weight=None, width=None): # noqa: E501
+ """Restrictions - a model defined in Swagger""" # noqa: E501
+ self._axleload = None
+ self._hazmat = None
+ self._height = None
+ self._length = None
+ self._maximum_incline = None
+ self._maximum_sloped_kerb = None
+ self._minimum_width = None
+ self._smoothness_type = None
+ self._surface_type = None
+ self._track_type = None
+ self._weight = None
+ self._width = None
+ self.discriminator = None
+ if axleload is not None:
+ self.axleload = axleload
+ if hazmat is not None:
+ self.hazmat = hazmat
+ if height is not None:
+ self.height = height
+ if length is not None:
+ self.length = length
+ if maximum_incline is not None:
+ self.maximum_incline = maximum_incline
+ if maximum_sloped_kerb is not None:
+ self.maximum_sloped_kerb = maximum_sloped_kerb
+ if minimum_width is not None:
+ self.minimum_width = minimum_width
+ if smoothness_type is not None:
+ self.smoothness_type = smoothness_type
+ if surface_type is not None:
+ self.surface_type = surface_type
+ if track_type is not None:
+ self.track_type = track_type
+ if weight is not None:
+ self.weight = weight
+ if width is not None:
+ self.width = width
+
+ @property
+ def axleload(self):
+ """Gets the axleload of this Restrictions. # noqa: E501
+
+ Axleload restriction in tons. # noqa: E501
+
+ :return: The axleload of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._axleload
+
+ @axleload.setter
+ def axleload(self, axleload):
+ """Sets the axleload of this Restrictions.
+
+ Axleload restriction in tons. # noqa: E501
+
+ :param axleload: The axleload of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._axleload = axleload
+
+ @property
+ def hazmat(self):
+ """Gets the hazmat of this Restrictions. # noqa: E501
+
+ Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
+
+ :return: The hazmat of this Restrictions. # noqa: E501
+ :rtype: bool
+ """
+ return self._hazmat
+
+ @hazmat.setter
+ def hazmat(self, hazmat):
+ """Sets the hazmat of this Restrictions.
+
+ Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
+
+ :param hazmat: The hazmat of this Restrictions. # noqa: E501
+ :type: bool
+ """
+
+ self._hazmat = hazmat
+
+ @property
+ def height(self):
+ """Gets the height of this Restrictions. # noqa: E501
+
+ Height restriction in metres. # noqa: E501
+
+ :return: The height of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._height
+
+ @height.setter
+ def height(self, height):
+ """Sets the height of this Restrictions.
+
+ Height restriction in metres. # noqa: E501
+
+ :param height: The height of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._height = height
+
+ @property
+ def length(self):
+ """Gets the length of this Restrictions. # noqa: E501
+
+ Length restriction in metres. # noqa: E501
+
+ :return: The length of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._length
+
+ @length.setter
+ def length(self, length):
+ """Sets the length of this Restrictions.
+
+ Length restriction in metres. # noqa: E501
+
+ :param length: The length of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._length = length
+
+ @property
+ def maximum_incline(self):
+ """Gets the maximum_incline of this Restrictions. # noqa: E501
+
+ Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
+
+ :return: The maximum_incline of this Restrictions. # noqa: E501
+ :rtype: int
+ """
+ return self._maximum_incline
+
+ @maximum_incline.setter
+ def maximum_incline(self, maximum_incline):
+ """Sets the maximum_incline of this Restrictions.
+
+ Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
+
+ :param maximum_incline: The maximum_incline of this Restrictions. # noqa: E501
+ :type: int
+ """
+
+ self._maximum_incline = maximum_incline
+
+ @property
+ def maximum_sloped_kerb(self):
+ """Gets the maximum_sloped_kerb of this Restrictions. # noqa: E501
+
+ Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
+
+ :return: The maximum_sloped_kerb of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._maximum_sloped_kerb
+
+ @maximum_sloped_kerb.setter
+ def maximum_sloped_kerb(self, maximum_sloped_kerb):
+ """Sets the maximum_sloped_kerb of this Restrictions.
+
+ Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
+
+ :param maximum_sloped_kerb: The maximum_sloped_kerb of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._maximum_sloped_kerb = maximum_sloped_kerb
+
+ @property
+ def minimum_width(self):
+ """Gets the minimum_width of this Restrictions. # noqa: E501
+
+ Specifies the minimum width of the footway in metres. # noqa: E501
+
+ :return: The minimum_width of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._minimum_width
+
+ @minimum_width.setter
+ def minimum_width(self, minimum_width):
+ """Sets the minimum_width of this Restrictions.
+
+ Specifies the minimum width of the footway in metres. # noqa: E501
+
+ :param minimum_width: The minimum_width of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._minimum_width = minimum_width
+
+ @property
+ def smoothness_type(self):
+ """Gets the smoothness_type of this Restrictions. # noqa: E501
+
+ Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
+
+ :return: The smoothness_type of this Restrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._smoothness_type
+
+ @smoothness_type.setter
+ def smoothness_type(self, smoothness_type):
+ """Sets the smoothness_type of this Restrictions.
+
+ Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
+
+ :param smoothness_type: The smoothness_type of this Restrictions. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["excellent", "good", "intermediate", "bad", "very_bad", "horrible", "very_horrible", "impassable"] # noqa: E501
+ if smoothness_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `smoothness_type` ({0}), must be one of {1}" # noqa: E501
+ .format(smoothness_type, allowed_values)
+ )
+
+ self._smoothness_type = smoothness_type
+
+ @property
+ def surface_type(self):
+ """Gets the surface_type of this Restrictions. # noqa: E501
+
+ Specifies the minimum surface type. Default is `sett`. # noqa: E501
+
+ :return: The surface_type of this Restrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._surface_type
+
+ @surface_type.setter
+ def surface_type(self, surface_type):
+ """Sets the surface_type of this Restrictions.
+
+ Specifies the minimum surface type. Default is `sett`. # noqa: E501
+
+ :param surface_type: The surface_type of this Restrictions. # noqa: E501
+ :type: str
+ """
+
+ self._surface_type = surface_type
+
+ @property
+ def track_type(self):
+ """Gets the track_type of this Restrictions. # noqa: E501
+
+ Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
+
+ :return: The track_type of this Restrictions. # noqa: E501
+ :rtype: str
+ """
+ return self._track_type
+
+ @track_type.setter
+ def track_type(self, track_type):
+ """Sets the track_type of this Restrictions.
+
+ Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
+
+ :param track_type: The track_type of this Restrictions. # noqa: E501
+ :type: str
+ """
+
+ self._track_type = track_type
+
+ @property
+ def weight(self):
+ """Gets the weight of this Restrictions. # noqa: E501
+
+ Weight restriction in tons. # noqa: E501
+
+ :return: The weight of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._weight
+
+ @weight.setter
+ def weight(self, weight):
+ """Sets the weight of this Restrictions.
+
+ Weight restriction in tons. # noqa: E501
+
+ :param weight: The weight of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._weight = weight
+
+ @property
+ def width(self):
+ """Gets the width of this Restrictions. # noqa: E501
+
+ Width restriction in metres. # noqa: E501
+
+ :return: The width of this Restrictions. # noqa: E501
+ :rtype: float
+ """
+ return self._width
+
+ @width.setter
+ def width(self, width):
+ """Sets the width of this Restrictions.
+
+ Width restriction in metres. # noqa: E501
+
+ :param width: The width of this Restrictions. # noqa: E501
+ :type: float
+ """
+
+ self._width = width
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(Restrictions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Restrictions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
new file mode 100644
index 00000000..7060e181
--- /dev/null
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class RoundTripRouteOptions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'length': 'float',
+ 'points': 'int',
+ 'seed': 'int'
+ }
+
+ attribute_map = {
+ 'length': 'length',
+ 'points': 'points',
+ 'seed': 'seed'
+ }
+
+ def __init__(self, length=None, points=None, seed=None): # noqa: E501
+ """RoundTripRouteOptions - a model defined in Swagger""" # noqa: E501
+ self._length = None
+ self._points = None
+ self._seed = None
+ self.discriminator = None
+ if length is not None:
+ self.length = length
+ if points is not None:
+ self.points = points
+ if seed is not None:
+ self.seed = seed
+
+ @property
+ def length(self):
+ """Gets the length of this RoundTripRouteOptions. # noqa: E501
+
+ The target length of the route in `m` (note that this is a preferred value, but results may be different). # noqa: E501
+
+ :return: The length of this RoundTripRouteOptions. # noqa: E501
+ :rtype: float
+ """
+ return self._length
+
+ @length.setter
+ def length(self, length):
+ """Sets the length of this RoundTripRouteOptions.
+
+ The target length of the route in `m` (note that this is a preferred value, but results may be different). # noqa: E501
+
+ :param length: The length of this RoundTripRouteOptions. # noqa: E501
+ :type: float
+ """
+
+ self._length = length
+
+ @property
+ def points(self):
+ """Gets the points of this RoundTripRouteOptions. # noqa: E501
+
+ The number of points to use on the route. Larger values create more circular routes. # noqa: E501
+
+ :return: The points of this RoundTripRouteOptions. # noqa: E501
+ :rtype: int
+ """
+ return self._points
+
+ @points.setter
+ def points(self, points):
+ """Sets the points of this RoundTripRouteOptions.
+
+ The number of points to use on the route. Larger values create more circular routes. # noqa: E501
+
+ :param points: The points of this RoundTripRouteOptions. # noqa: E501
+ :type: int
+ """
+
+ self._points = points
+
+ @property
+ def seed(self):
+ """Gets the seed of this RoundTripRouteOptions. # noqa: E501
+
+ A seed to use for adding randomisation to the overall direction of the generated route # noqa: E501
+
+ :return: The seed of this RoundTripRouteOptions. # noqa: E501
+ :rtype: int
+ """
+ return self._seed
+
+ @seed.setter
+ def seed(self, seed):
+ """Sets the seed of this RoundTripRouteOptions.
+
+ A seed to use for adding randomisation to the overall direction of the generated route # noqa: E501
+
+ :param seed: The seed of this RoundTripRouteOptions. # noqa: E501
+ :type: int
+ """
+
+ self._seed = seed
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(RoundTripRouteOptions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, RoundTripRouteOptions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
new file mode 100644
index 00000000..baa39b86
--- /dev/null
+++ b/openrouteservice/models/route_options.py
@@ -0,0 +1,293 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class RouteOptions(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'avoid_borders': 'str',
+ 'avoid_countries': 'list[str]',
+ 'avoid_features': 'list[str]',
+ 'avoid_polygons': 'RouteOptionsAvoidPolygons',
+ 'profile_params': 'ProfileParameters',
+ 'round_trip': 'RoundTripRouteOptions',
+ 'vehicle_type': 'str'
+ }
+
+ attribute_map = {
+ 'avoid_borders': 'avoid_borders',
+ 'avoid_countries': 'avoid_countries',
+ 'avoid_features': 'avoid_features',
+ 'avoid_polygons': 'avoid_polygons',
+ 'profile_params': 'profile_params',
+ 'round_trip': 'round_trip',
+ 'vehicle_type': 'vehicle_type'
+ }
+
+ def __init__(self, avoid_borders=None, avoid_countries=None, avoid_features=None, avoid_polygons=None, profile_params=None, round_trip=None, vehicle_type='hgv'): # noqa: E501
+ """RouteOptions - a model defined in Swagger""" # noqa: E501
+ self._avoid_borders = None
+ self._avoid_countries = None
+ self._avoid_features = None
+ self._avoid_polygons = None
+ self._profile_params = None
+ self._round_trip = None
+ self._vehicle_type = None
+ self.discriminator = None
+ if avoid_borders is not None:
+ self.avoid_borders = avoid_borders
+ if avoid_countries is not None:
+ self.avoid_countries = avoid_countries
+ if avoid_features is not None:
+ self.avoid_features = avoid_features
+ if avoid_polygons is not None:
+ self.avoid_polygons = avoid_polygons
+ if profile_params is not None:
+ self.profile_params = profile_params
+ if round_trip is not None:
+ self.round_trip = round_trip
+ if vehicle_type is not None:
+ self.vehicle_type = vehicle_type
+
+ @property
+ def avoid_borders(self):
+ """Gets the avoid_borders of this RouteOptions. # noqa: E501
+
+ Specify which type of border crossing to avoid # noqa: E501
+
+ :return: The avoid_borders of this RouteOptions. # noqa: E501
+ :rtype: str
+ """
+ return self._avoid_borders
+
+ @avoid_borders.setter
+ def avoid_borders(self, avoid_borders):
+ """Sets the avoid_borders of this RouteOptions.
+
+ Specify which type of border crossing to avoid # noqa: E501
+
+ :param avoid_borders: The avoid_borders of this RouteOptions. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["all", "controlled", "none"] # noqa: E501
+ if avoid_borders not in allowed_values:
+ raise ValueError(
+ "Invalid value for `avoid_borders` ({0}), must be one of {1}" # noqa: E501
+ .format(avoid_borders, allowed_values)
+ )
+
+ self._avoid_borders = avoid_borders
+
+ @property
+ def avoid_countries(self):
+ """Gets the avoid_countries of this RouteOptions. # noqa: E501
+
+ List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
+
+ :return: The avoid_countries of this RouteOptions. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._avoid_countries
+
+ @avoid_countries.setter
+ def avoid_countries(self, avoid_countries):
+ """Sets the avoid_countries of this RouteOptions.
+
+ List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
+
+ :param avoid_countries: The avoid_countries of this RouteOptions. # noqa: E501
+ :type: list[str]
+ """
+
+ self._avoid_countries = avoid_countries
+
+ @property
+ def avoid_features(self):
+ """Gets the avoid_features of this RouteOptions. # noqa: E501
+
+ List of features to avoid. # noqa: E501
+
+ :return: The avoid_features of this RouteOptions. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._avoid_features
+
+ @avoid_features.setter
+ def avoid_features(self, avoid_features):
+ """Sets the avoid_features of this RouteOptions.
+
+ List of features to avoid. # noqa: E501
+
+ :param avoid_features: The avoid_features of this RouteOptions. # noqa: E501
+ :type: list[str]
+ """
+ allowed_values = ["highways", "tollways", "ferries", "fords", "steps"] # noqa: E501
+ if not set(avoid_features).issubset(set(allowed_values)):
+ raise ValueError(
+ "Invalid values for `avoid_features` [{0}], must be a subset of [{1}]" # noqa: E501
+ .format(", ".join(map(str, set(avoid_features) - set(allowed_values))), # noqa: E501
+ ", ".join(map(str, allowed_values)))
+ )
+
+ self._avoid_features = avoid_features
+
+ @property
+ def avoid_polygons(self):
+ """Gets the avoid_polygons of this RouteOptions. # noqa: E501
+
+
+ :return: The avoid_polygons of this RouteOptions. # noqa: E501
+ :rtype: RouteOptionsAvoidPolygons
+ """
+ return self._avoid_polygons
+
+ @avoid_polygons.setter
+ def avoid_polygons(self, avoid_polygons):
+ """Sets the avoid_polygons of this RouteOptions.
+
+
+ :param avoid_polygons: The avoid_polygons of this RouteOptions. # noqa: E501
+ :type: RouteOptionsAvoidPolygons
+ """
+
+ self._avoid_polygons = avoid_polygons
+
+ @property
+ def profile_params(self):
+ """Gets the profile_params of this RouteOptions. # noqa: E501
+
+
+ :return: The profile_params of this RouteOptions. # noqa: E501
+ :rtype: ProfileParameters
+ """
+ return self._profile_params
+
+ @profile_params.setter
+ def profile_params(self, profile_params):
+ """Sets the profile_params of this RouteOptions.
+
+
+ :param profile_params: The profile_params of this RouteOptions. # noqa: E501
+ :type: ProfileParameters
+ """
+
+ self._profile_params = profile_params
+
+ @property
+ def round_trip(self):
+ """Gets the round_trip of this RouteOptions. # noqa: E501
+
+
+ :return: The round_trip of this RouteOptions. # noqa: E501
+ :rtype: RoundTripRouteOptions
+ """
+ return self._round_trip
+
+ @round_trip.setter
+ def round_trip(self, round_trip):
+ """Sets the round_trip of this RouteOptions.
+
+
+ :param round_trip: The round_trip of this RouteOptions. # noqa: E501
+ :type: RoundTripRouteOptions
+ """
+
+ self._round_trip = round_trip
+
+ @property
+ def vehicle_type(self):
+ """Gets the vehicle_type of this RouteOptions. # noqa: E501
+
+ Definition of the vehicle type. # noqa: E501
+
+ :return: The vehicle_type of this RouteOptions. # noqa: E501
+ :rtype: str
+ """
+ return self._vehicle_type
+
+ @vehicle_type.setter
+ def vehicle_type(self, vehicle_type):
+ """Sets the vehicle_type of this RouteOptions.
+
+ Definition of the vehicle type. # noqa: E501
+
+ :param vehicle_type: The vehicle_type of this RouteOptions. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["hgv", "bus", "agricultural", "delivery", "forestry", "goods", "unknown"] # noqa: E501
+ if vehicle_type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `vehicle_type` ({0}), must be one of {1}" # noqa: E501
+ .format(vehicle_type, allowed_values)
+ )
+
+ self._vehicle_type = vehicle_type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(RouteOptions, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, RouteOptions):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
new file mode 100644
index 00000000..b8b7feff
--- /dev/null
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class RouteOptionsAvoidPolygons(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'empty': 'bool'
+ }
+
+ attribute_map = {
+ 'empty': 'empty'
+ }
+
+ def __init__(self, empty=None): # noqa: E501
+ """RouteOptionsAvoidPolygons - a model defined in Swagger""" # noqa: E501
+ self._empty = None
+ self.discriminator = None
+ if empty is not None:
+ self.empty = empty
+
+ @property
+ def empty(self):
+ """Gets the empty of this RouteOptionsAvoidPolygons. # noqa: E501
+
+
+ :return: The empty of this RouteOptionsAvoidPolygons. # noqa: E501
+ :rtype: bool
+ """
+ return self._empty
+
+ @empty.setter
+ def empty(self, empty):
+ """Sets the empty of this RouteOptionsAvoidPolygons.
+
+
+ :param empty: The empty of this RouteOptionsAvoidPolygons. # noqa: E501
+ :type: bool
+ """
+
+ self._empty = empty
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(RouteOptionsAvoidPolygons, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, RouteOptionsAvoidPolygons):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/route_response_info.py b/openrouteservice/models/route_response_info.py
new file mode 100644
index 00000000..3f762774
--- /dev/null
+++ b/openrouteservice/models/route_response_info.py
@@ -0,0 +1,304 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class RouteResponseInfo(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'id': 'str',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'DirectionsService1',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'id': 'id',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """RouteResponseInfo - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._id = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if id is not None:
+ self.id = id
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this RouteResponseInfo. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this RouteResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this RouteResponseInfo.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this RouteResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this RouteResponseInfo. # noqa: E501
+
+
+ :return: The engine of this RouteResponseInfo. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this RouteResponseInfo.
+
+
+ :param engine: The engine of this RouteResponseInfo. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def id(self):
+ """Gets the id of this RouteResponseInfo. # noqa: E501
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :return: The id of this RouteResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this RouteResponseInfo.
+
+ ID of the request (as passed in by the query) # noqa: E501
+
+ :param id: The id of this RouteResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this RouteResponseInfo.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this RouteResponseInfo. # noqa: E501
+
+
+ :return: The query of this RouteResponseInfo. # noqa: E501
+ :rtype: DirectionsService1
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this RouteResponseInfo.
+
+
+ :param query: The query of this RouteResponseInfo. # noqa: E501
+ :type: DirectionsService1
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this RouteResponseInfo. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this RouteResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this RouteResponseInfo.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this RouteResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this RouteResponseInfo. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this RouteResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this RouteResponseInfo.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this RouteResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this RouteResponseInfo. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this RouteResponseInfo. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this RouteResponseInfo.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this RouteResponseInfo. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(RouteResponseInfo, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, RouteResponseInfo):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/rte.py b/openrouteservice/models/rte.py
new file mode 100644
index 00000000..7180ad72
--- /dev/null
+++ b/openrouteservice/models/rte.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class Rte(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ }
+
+ attribute_map = {
+ }
+
+ def __init__(self): # noqa: E501
+ """Rte - a model defined in Swagger""" # noqa: E501
+ self.discriminator = None
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(Rte, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, Rte):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
new file mode 100644
index 00000000..d27e674f
--- /dev/null
+++ b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class V2directionsprofilegeojsonScheduleDuration(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'nano': 'int',
+ 'negative': 'bool',
+ 'seconds': 'int',
+ 'units': 'list[V2directionsprofilegeojsonScheduleDurationUnits]',
+ 'zero': 'bool'
+ }
+
+ attribute_map = {
+ 'nano': 'nano',
+ 'negative': 'negative',
+ 'seconds': 'seconds',
+ 'units': 'units',
+ 'zero': 'zero'
+ }
+
+ def __init__(self, nano=None, negative=None, seconds=None, units=None, zero=None): # noqa: E501
+ """V2directionsprofilegeojsonScheduleDuration - a model defined in Swagger""" # noqa: E501
+ self._nano = None
+ self._negative = None
+ self._seconds = None
+ self._units = None
+ self._zero = None
+ self.discriminator = None
+ if nano is not None:
+ self.nano = nano
+ if negative is not None:
+ self.negative = negative
+ if seconds is not None:
+ self.seconds = seconds
+ if units is not None:
+ self.units = units
+ if zero is not None:
+ self.zero = zero
+
+ @property
+ def nano(self):
+ """Gets the nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+
+
+ :return: The nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :rtype: int
+ """
+ return self._nano
+
+ @nano.setter
+ def nano(self, nano):
+ """Sets the nano of this V2directionsprofilegeojsonScheduleDuration.
+
+
+ :param nano: The nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :type: int
+ """
+
+ self._nano = nano
+
+ @property
+ def negative(self):
+ """Gets the negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+
+
+ :return: The negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :rtype: bool
+ """
+ return self._negative
+
+ @negative.setter
+ def negative(self, negative):
+ """Sets the negative of this V2directionsprofilegeojsonScheduleDuration.
+
+
+ :param negative: The negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :type: bool
+ """
+
+ self._negative = negative
+
+ @property
+ def seconds(self):
+ """Gets the seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+
+
+ :return: The seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :rtype: int
+ """
+ return self._seconds
+
+ @seconds.setter
+ def seconds(self, seconds):
+ """Sets the seconds of this V2directionsprofilegeojsonScheduleDuration.
+
+
+ :param seconds: The seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :type: int
+ """
+
+ self._seconds = seconds
+
+ @property
+ def units(self):
+ """Gets the units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+
+
+ :return: The units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :rtype: list[V2directionsprofilegeojsonScheduleDurationUnits]
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this V2directionsprofilegeojsonScheduleDuration.
+
+
+ :param units: The units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :type: list[V2directionsprofilegeojsonScheduleDurationUnits]
+ """
+
+ self._units = units
+
+ @property
+ def zero(self):
+ """Gets the zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+
+
+ :return: The zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :rtype: bool
+ """
+ return self._zero
+
+ @zero.setter
+ def zero(self, zero):
+ """Sets the zero of this V2directionsprofilegeojsonScheduleDuration.
+
+
+ :param zero: The zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
+ :type: bool
+ """
+
+ self._zero = zero
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(V2directionsprofilegeojsonScheduleDuration, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V2directionsprofilegeojsonScheduleDuration):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
new file mode 100644
index 00000000..a4df1d7f
--- /dev/null
+++ b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class V2directionsprofilegeojsonScheduleDurationDuration(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'nano': 'int',
+ 'negative': 'bool',
+ 'seconds': 'int',
+ 'zero': 'bool'
+ }
+
+ attribute_map = {
+ 'nano': 'nano',
+ 'negative': 'negative',
+ 'seconds': 'seconds',
+ 'zero': 'zero'
+ }
+
+ def __init__(self, nano=None, negative=None, seconds=None, zero=None): # noqa: E501
+ """V2directionsprofilegeojsonScheduleDurationDuration - a model defined in Swagger""" # noqa: E501
+ self._nano = None
+ self._negative = None
+ self._seconds = None
+ self._zero = None
+ self.discriminator = None
+ if nano is not None:
+ self.nano = nano
+ if negative is not None:
+ self.negative = negative
+ if seconds is not None:
+ self.seconds = seconds
+ if zero is not None:
+ self.zero = zero
+
+ @property
+ def nano(self):
+ """Gets the nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+
+
+ :return: The nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :rtype: int
+ """
+ return self._nano
+
+ @nano.setter
+ def nano(self, nano):
+ """Sets the nano of this V2directionsprofilegeojsonScheduleDurationDuration.
+
+
+ :param nano: The nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :type: int
+ """
+
+ self._nano = nano
+
+ @property
+ def negative(self):
+ """Gets the negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+
+
+ :return: The negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :rtype: bool
+ """
+ return self._negative
+
+ @negative.setter
+ def negative(self, negative):
+ """Sets the negative of this V2directionsprofilegeojsonScheduleDurationDuration.
+
+
+ :param negative: The negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :type: bool
+ """
+
+ self._negative = negative
+
+ @property
+ def seconds(self):
+ """Gets the seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+
+
+ :return: The seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :rtype: int
+ """
+ return self._seconds
+
+ @seconds.setter
+ def seconds(self, seconds):
+ """Sets the seconds of this V2directionsprofilegeojsonScheduleDurationDuration.
+
+
+ :param seconds: The seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :type: int
+ """
+
+ self._seconds = seconds
+
+ @property
+ def zero(self):
+ """Gets the zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+
+
+ :return: The zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :rtype: bool
+ """
+ return self._zero
+
+ @zero.setter
+ def zero(self, zero):
+ """Sets the zero of this V2directionsprofilegeojsonScheduleDurationDuration.
+
+
+ :param zero: The zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
+ :type: bool
+ """
+
+ self._zero = zero
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(V2directionsprofilegeojsonScheduleDurationDuration, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V2directionsprofilegeojsonScheduleDurationDuration):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
new file mode 100644
index 00000000..31799769
--- /dev/null
+++ b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
@@ -0,0 +1,188 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class V2directionsprofilegeojsonScheduleDurationUnits(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'date_based': 'bool',
+ 'duration': 'V2directionsprofilegeojsonScheduleDurationDuration',
+ 'duration_estimated': 'bool',
+ 'time_based': 'bool'
+ }
+
+ attribute_map = {
+ 'date_based': 'dateBased',
+ 'duration': 'duration',
+ 'duration_estimated': 'durationEstimated',
+ 'time_based': 'timeBased'
+ }
+
+ def __init__(self, date_based=None, duration=None, duration_estimated=None, time_based=None): # noqa: E501
+ """V2directionsprofilegeojsonScheduleDurationUnits - a model defined in Swagger""" # noqa: E501
+ self._date_based = None
+ self._duration = None
+ self._duration_estimated = None
+ self._time_based = None
+ self.discriminator = None
+ if date_based is not None:
+ self.date_based = date_based
+ if duration is not None:
+ self.duration = duration
+ if duration_estimated is not None:
+ self.duration_estimated = duration_estimated
+ if time_based is not None:
+ self.time_based = time_based
+
+ @property
+ def date_based(self):
+ """Gets the date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+
+
+ :return: The date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :rtype: bool
+ """
+ return self._date_based
+
+ @date_based.setter
+ def date_based(self, date_based):
+ """Sets the date_based of this V2directionsprofilegeojsonScheduleDurationUnits.
+
+
+ :param date_based: The date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :type: bool
+ """
+
+ self._date_based = date_based
+
+ @property
+ def duration(self):
+ """Gets the duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+
+
+ :return: The duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :rtype: V2directionsprofilegeojsonScheduleDurationDuration
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this V2directionsprofilegeojsonScheduleDurationUnits.
+
+
+ :param duration: The duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :type: V2directionsprofilegeojsonScheduleDurationDuration
+ """
+
+ self._duration = duration
+
+ @property
+ def duration_estimated(self):
+ """Gets the duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+
+
+ :return: The duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :rtype: bool
+ """
+ return self._duration_estimated
+
+ @duration_estimated.setter
+ def duration_estimated(self, duration_estimated):
+ """Sets the duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits.
+
+
+ :param duration_estimated: The duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :type: bool
+ """
+
+ self._duration_estimated = duration_estimated
+
+ @property
+ def time_based(self):
+ """Gets the time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+
+
+ :return: The time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :rtype: bool
+ """
+ return self._time_based
+
+ @time_based.setter
+ def time_based(self, time_based):
+ """Sets the time_based of this V2directionsprofilegeojsonScheduleDurationUnits.
+
+
+ :param time_based: The time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
+ :type: bool
+ """
+
+ self._time_based = time_based
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(V2directionsprofilegeojsonScheduleDurationUnits, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V2directionsprofilegeojsonScheduleDurationUnits):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_walking_time.py b/openrouteservice/models/v2directionsprofilegeojson_walking_time.py
new file mode 100644
index 00000000..493352f5
--- /dev/null
+++ b/openrouteservice/models/v2directionsprofilegeojson_walking_time.py
@@ -0,0 +1,214 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class V2directionsprofilegeojsonWalkingTime(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'nano': 'int',
+ 'negative': 'bool',
+ 'seconds': 'int',
+ 'units': 'list[V2directionsprofilegeojsonScheduleDurationUnits]',
+ 'zero': 'bool'
+ }
+
+ attribute_map = {
+ 'nano': 'nano',
+ 'negative': 'negative',
+ 'seconds': 'seconds',
+ 'units': 'units',
+ 'zero': 'zero'
+ }
+
+ def __init__(self, nano=None, negative=None, seconds=None, units=None, zero=None): # noqa: E501
+ """V2directionsprofilegeojsonWalkingTime - a model defined in Swagger""" # noqa: E501
+ self._nano = None
+ self._negative = None
+ self._seconds = None
+ self._units = None
+ self._zero = None
+ self.discriminator = None
+ if nano is not None:
+ self.nano = nano
+ if negative is not None:
+ self.negative = negative
+ if seconds is not None:
+ self.seconds = seconds
+ if units is not None:
+ self.units = units
+ if zero is not None:
+ self.zero = zero
+
+ @property
+ def nano(self):
+ """Gets the nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+
+
+ :return: The nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :rtype: int
+ """
+ return self._nano
+
+ @nano.setter
+ def nano(self, nano):
+ """Sets the nano of this V2directionsprofilegeojsonWalkingTime.
+
+
+ :param nano: The nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :type: int
+ """
+
+ self._nano = nano
+
+ @property
+ def negative(self):
+ """Gets the negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+
+
+ :return: The negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :rtype: bool
+ """
+ return self._negative
+
+ @negative.setter
+ def negative(self, negative):
+ """Sets the negative of this V2directionsprofilegeojsonWalkingTime.
+
+
+ :param negative: The negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :type: bool
+ """
+
+ self._negative = negative
+
+ @property
+ def seconds(self):
+ """Gets the seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+
+
+ :return: The seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :rtype: int
+ """
+ return self._seconds
+
+ @seconds.setter
+ def seconds(self, seconds):
+ """Sets the seconds of this V2directionsprofilegeojsonWalkingTime.
+
+
+ :param seconds: The seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :type: int
+ """
+
+ self._seconds = seconds
+
+ @property
+ def units(self):
+ """Gets the units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+
+
+ :return: The units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :rtype: list[V2directionsprofilegeojsonScheduleDurationUnits]
+ """
+ return self._units
+
+ @units.setter
+ def units(self, units):
+ """Sets the units of this V2directionsprofilegeojsonWalkingTime.
+
+
+ :param units: The units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :type: list[V2directionsprofilegeojsonScheduleDurationUnits]
+ """
+
+ self._units = units
+
+ @property
+ def zero(self):
+ """Gets the zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+
+
+ :return: The zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :rtype: bool
+ """
+ return self._zero
+
+ @zero.setter
+ def zero(self, zero):
+ """Sets the zero of this V2directionsprofilegeojsonWalkingTime.
+
+
+ :param zero: The zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
+ :type: bool
+ """
+
+ self._zero = zero
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(V2directionsprofilegeojsonWalkingTime, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V2directionsprofilegeojsonWalkingTime):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
new file mode 100644
index 00000000..6409cf3b
--- /dev/null
+++ b/openrouteservice/rest.py
@@ -0,0 +1,317 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import io
+import json
+import logging
+import re
+import ssl
+
+import certifi
+# python 2 and python 3 compatibility library
+import six
+from six.moves.urllib.parse import urlencode
+
+try:
+ import urllib3
+except ImportError:
+ raise ImportError('Swagger python client requires urllib3.')
+
+
+logger = logging.getLogger(__name__)
+
+
+class RESTResponse(io.IOBase):
+
+ def __init__(self, resp):
+ self.urllib3_response = resp
+ self.status = resp.status
+ self.reason = resp.reason
+ self.data = resp.data
+
+ def getheaders(self):
+ """Returns a dictionary of the response headers."""
+ return self.urllib3_response.getheaders()
+
+ def getheader(self, name, default=None):
+ """Returns a given response header."""
+ return self.urllib3_response.getheader(name, default)
+
+
+class RESTClientObject(object):
+
+ def __init__(self, configuration, pools_size=4, maxsize=None):
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
+ # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
+
+ # cert_reqs
+ if configuration.verify_ssl:
+ cert_reqs = ssl.CERT_REQUIRED
+ else:
+ cert_reqs = ssl.CERT_NONE
+
+ # ca_certs
+ if configuration.ssl_ca_cert:
+ ca_certs = configuration.ssl_ca_cert
+ else:
+ # if not set certificate file, use Mozilla's root certificates.
+ ca_certs = certifi.where()
+
+ addition_pool_args = {}
+ if configuration.assert_hostname is not None:
+ addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
+
+ if maxsize is None:
+ if configuration.connection_pool_maxsize is not None:
+ maxsize = configuration.connection_pool_maxsize
+ else:
+ maxsize = 4
+
+ # https pool manager
+ if configuration.proxy:
+ self.pool_manager = urllib3.ProxyManager(
+ num_pools=pools_size,
+ maxsize=maxsize,
+ cert_reqs=cert_reqs,
+ ca_certs=ca_certs,
+ cert_file=configuration.cert_file,
+ key_file=configuration.key_file,
+ proxy_url=configuration.proxy,
+ **addition_pool_args
+ )
+ else:
+ self.pool_manager = urllib3.PoolManager(
+ num_pools=pools_size,
+ maxsize=maxsize,
+ cert_reqs=cert_reqs,
+ ca_certs=ca_certs,
+ cert_file=configuration.cert_file,
+ key_file=configuration.key_file,
+ **addition_pool_args
+ )
+
+ def request(self, method, url, query_params=None, headers=None,
+ body=None, post_params=None, _preload_content=True,
+ _request_timeout=None):
+ """Perform requests.
+
+ :param method: http request method
+ :param url: http request url
+ :param query_params: query parameters in the url
+ :param headers: http request headers
+ :param body: request json body, for `application/json`
+ :param post_params: request post parameters,
+ `application/x-www-form-urlencoded`
+ and `multipart/form-data`
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ """
+ method = method.upper()
+ assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
+ 'PATCH', 'OPTIONS']
+
+ if post_params and body:
+ raise ValueError(
+ "body parameter cannot be used with post_params parameter."
+ )
+
+ post_params = post_params or {}
+ headers = headers or {}
+
+ timeout = None
+ if _request_timeout:
+ if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821
+ timeout = urllib3.Timeout(total=_request_timeout)
+ elif (isinstance(_request_timeout, tuple) and
+ len(_request_timeout) == 2):
+ timeout = urllib3.Timeout(
+ connect=_request_timeout[0], read=_request_timeout[1])
+
+ if 'Content-Type' not in headers:
+ headers['Content-Type'] = 'application/json'
+
+ try:
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
+ if query_params:
+ url += '?' + urlencode(query_params)
+ if re.search('json', headers['Content-Type'], re.IGNORECASE):
+ request_body = '{}'
+ if body is not None:
+ request_body = json.dumps(body)
+ r = self.pool_manager.request(
+ method, url,
+ body=request_body,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
+ r = self.pool_manager.request(
+ method, url,
+ fields=post_params,
+ encode_multipart=False,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ elif headers['Content-Type'] == 'multipart/form-data':
+ # must del headers['Content-Type'], or the correct
+ # Content-Type which generated by urllib3 will be
+ # overwritten.
+ del headers['Content-Type']
+ r = self.pool_manager.request(
+ method, url,
+ fields=post_params,
+ encode_multipart=True,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ # Pass a `string` parameter directly in the body to support
+ # other content types than Json when `body` argument is
+ # provided in serialized form
+ elif isinstance(body, str):
+ request_body = body
+ r = self.pool_manager.request(
+ method, url,
+ body=request_body,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ else:
+ # Cannot generate the request from given parameters
+ msg = """Cannot prepare a request message for provided
+ arguments. Please check that your arguments match
+ declared content type."""
+ raise ApiException(status=0, reason=msg)
+ # For `GET`, `HEAD`
+ else:
+ r = self.pool_manager.request(method, url,
+ fields=query_params,
+ preload_content=_preload_content,
+ timeout=timeout,
+ headers=headers)
+ except urllib3.exceptions.SSLError as e:
+ msg = "{0}\n{1}".format(type(e).__name__, str(e))
+ raise ApiException(status=0, reason=msg)
+
+ if _preload_content:
+ r = RESTResponse(r)
+
+ # log response body
+ logger.debug("response body: %s", r.data)
+
+ if not 200 <= r.status <= 299:
+ raise ApiException(http_resp=r)
+
+ return r
+
+ def GET(self, url, headers=None, query_params=None, _preload_content=True,
+ _request_timeout=None):
+ return self.request("GET", url,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ query_params=query_params)
+
+ def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
+ _request_timeout=None):
+ return self.request("HEAD", url,
+ headers=headers,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ query_params=query_params)
+
+ def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("OPTIONS", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def DELETE(self, url, headers=None, query_params=None, body=None,
+ _preload_content=True, _request_timeout=None):
+ return self.request("DELETE", url,
+ headers=headers,
+ query_params=query_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def POST(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("POST", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def PUT(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("PUT", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+ def PATCH(self, url, headers=None, query_params=None, post_params=None,
+ body=None, _preload_content=True, _request_timeout=None):
+ return self.request("PATCH", url,
+ headers=headers,
+ query_params=query_params,
+ post_params=post_params,
+ _preload_content=_preload_content,
+ _request_timeout=_request_timeout,
+ body=body)
+
+
+class ApiException(Exception):
+
+ def __init__(self, status=None, reason=None, http_resp=None):
+ if http_resp:
+ self.status = http_resp.status
+ self.reason = http_resp.reason
+ self.body = http_resp.data
+ self.headers = http_resp.getheaders()
+ else:
+ self.status = status
+ self.reason = reason
+ self.body = None
+ self.headers = None
+
+ def __str__(self):
+ """Custom error messages for exception"""
+ error_message = "({0})\n"\
+ "Reason: {1}\n".format(self.status, self.reason)
+ if self.headers:
+ error_message += "HTTP response headers: {0}\n".format(
+ self.headers)
+
+ if self.body:
+ error_message += "HTTP response body: {0}\n".format(self.body)
+
+ return error_message
diff --git a/openrouteservice/utility.py b/openrouteservice/utility.py
new file mode 100644
index 00000000..b672ca29
--- /dev/null
+++ b/openrouteservice/utility.py
@@ -0,0 +1,87 @@
+def decode_polyline(polyline, is3d=False):
+ """Decodes a Polyline string into a GeoJSON geometry.
+ :param polyline: An encoded polyline, only the geometry.
+ :type polyline: string
+ :param is3d: Specifies if geometry contains Z component.
+ :type is3d: boolean
+ :returns: GeoJSON Linestring geometry
+ :rtype: dict
+ """
+ points = []
+ index = lat = lng = z = 0
+
+ while index < len(polyline):
+ result = 1
+ shift = 0
+ while True:
+ b = ord(polyline[index]) - 63 - 1
+ index += 1
+ result += b << shift
+ shift += 5
+ if b < 0x1F:
+ break
+ lat += (~result >> 1) if (result & 1) != 0 else (result >> 1)
+
+ result = 1
+ shift = 0
+ while True:
+ b = ord(polyline[index]) - 63 - 1
+ index += 1
+ result += b << shift
+ shift += 5
+ if b < 0x1F:
+ break
+ lng += ~(result >> 1) if (result & 1) != 0 else (result >> 1)
+
+ if is3d:
+ result = 1
+ shift = 0
+ while True:
+ b = ord(polyline[index]) - 63 - 1
+ index += 1
+ result += b << shift
+ shift += 5
+ if b < 0x1F:
+ break
+ if (result & 1) != 0:
+ z += ~(result >> 1)
+ else:
+ z += result >> 1
+
+ points.append(
+ [
+ round(lng * 1e-5, 6),
+ round(lat * 1e-5, 6),
+ round(z * 1e-2, 1),
+ ]
+ )
+
+ else:
+ points.append([round(lng * 1e-5, 6), round(lat * 1e-5, 6)])
+
+ geojson = {u"type": u"LineString", u"coordinates": points}
+
+ return geojson
+
+
+def todict(obj, classkey=None):
+ """Converts an object to a dict
+ :param obj: the object to convert
+ """
+ if isinstance(obj, dict):
+ data = {}
+ for (k, v) in obj.items():
+ data[k] = todict(v, classkey)
+ return data
+ elif hasattr(obj, "to_dict"):
+ return obj.to_dict()
+ elif hasattr(obj, "__iter__") and not isinstance(obj, str):
+ return [todict(v, classkey) for v in obj]
+ elif hasattr(obj, "__dict__"):
+ data = dict([(key[1:] if key[0] == "_" else key, todict(getattr(obj, key), classkey))
+ for key in obj.__dict__])
+ if classkey is not None and hasattr(obj, "__class__"):
+ data[classkey] = obj.__class__.__name__
+ return data
+ else:
+ return obj
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 00000000..86e711b5
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1248 @@
+{
+ "name": "openrouteservice-py",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "devDependencies": {
+ "vitepress": "^1.0.0-rc.39",
+ "vue": "^3.4.15"
+ }
+ },
+ "node_modules/@algolia/autocomplete-core": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/autocomplete-plugin-algolia-insights": "1.9.3",
+ "@algolia/autocomplete-shared": "1.9.3"
+ }
+ },
+ "node_modules/@algolia/autocomplete-plugin-algolia-insights": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/autocomplete-shared": "1.9.3"
+ },
+ "peerDependencies": {
+ "search-insights": ">= 1 < 3"
+ }
+ },
+ "node_modules/@algolia/autocomplete-preset-algolia": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/autocomplete-shared": "1.9.3"
+ },
+ "peerDependencies": {
+ "@algolia/client-search": ">= 4.9.1 < 6",
+ "algoliasearch": ">= 4.9.1 < 6"
+ }
+ },
+ "node_modules/@algolia/autocomplete-shared": {
+ "version": "1.9.3",
+ "dev": true,
+ "license": "MIT",
+ "peerDependencies": {
+ "@algolia/client-search": ">= 4.9.1 < 6",
+ "algoliasearch": ">= 4.9.1 < 6"
+ }
+ },
+ "node_modules/@algolia/cache-browser-local-storage": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/cache-common": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/cache-common": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@algolia/cache-in-memory": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/cache-common": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/client-account": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/client-common": "4.22.1",
+ "@algolia/client-search": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/client-analytics": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/client-common": "4.22.1",
+ "@algolia/client-search": "4.22.1",
+ "@algolia/requester-common": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/client-common": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/requester-common": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/client-personalization": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/client-common": "4.22.1",
+ "@algolia/requester-common": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/client-search": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/client-common": "4.22.1",
+ "@algolia/requester-common": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/logger-common": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@algolia/logger-console": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/logger-common": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/requester-browser-xhr": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/requester-common": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/requester-common": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@algolia/requester-node-http": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/requester-common": "4.22.1"
+ }
+ },
+ "node_modules/@algolia/transporter": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/cache-common": "4.22.1",
+ "@algolia/logger-common": "4.22.1",
+ "@algolia/requester-common": "4.22.1"
+ }
+ },
+ "node_modules/@babel/parser": {
+ "version": "7.23.6",
+ "dev": true,
+ "license": "MIT",
+ "bin": {
+ "parser": "bin/babel-parser.js"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/@docsearch/css": {
+ "version": "3.5.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@docsearch/js": {
+ "version": "3.5.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@docsearch/react": "3.5.2",
+ "preact": "^10.0.0"
+ }
+ },
+ "node_modules/@docsearch/react": {
+ "version": "3.5.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/autocomplete-core": "1.9.3",
+ "@algolia/autocomplete-preset-algolia": "1.9.3",
+ "@docsearch/css": "3.5.2",
+ "algoliasearch": "^4.19.1"
+ },
+ "peerDependencies": {
+ "@types/react": ">= 16.8.0 < 19.0.0",
+ "react": ">= 16.8.0 < 19.0.0",
+ "react-dom": ">= 16.8.0 < 19.0.0",
+ "search-insights": ">= 1 < 3"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "react": {
+ "optional": true
+ },
+ "react-dom": {
+ "optional": true
+ },
+ "search-insights": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.19.11.tgz",
+ "integrity": "sha512-FnzU0LyE3ySQk7UntJO4+qIiQgI7KoODnZg5xzXIrFJlKd2P2gwHsHY4927xj9y5PJmJSzULiUCWmv7iWnNa7g==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.11.tgz",
+ "integrity": "sha512-5OVapq0ClabvKvQ58Bws8+wkLCV+Rxg7tUVbo9xu034Nm536QTII4YzhaFriQ7rMrorfnFKUsArD2lqKbFY4vw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.11.tgz",
+ "integrity": "sha512-aiu7K/5JnLj//KOnOfEZ0D90obUkRzDMyqd/wNAUQ34m4YUPVhRZpnqKV9uqDGxT7cToSDnIHsGooyIczu9T+Q==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.11.tgz",
+ "integrity": "sha512-eccxjlfGw43WYoY9QgB82SgGgDbibcqyDTlk3l3C0jOVHKxrjdc9CTwDUQd0vkvYg5um0OH+GpxYvp39r+IPOg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.11.tgz",
+ "integrity": "sha512-ETp87DRWuSt9KdDVkqSoKoLFHYTrkyz2+65fj9nfXsaV3bMhTCjtQfw3y+um88vGRKRiF7erPrh/ZuIdLUIVxQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.11.tgz",
+ "integrity": "sha512-fkFUiS6IUK9WYUO/+22omwetaSNl5/A8giXvQlcinLIjVkxwTLSktbF5f/kJMftM2MJp9+fXqZ5ezS7+SALp4g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.11.tgz",
+ "integrity": "sha512-lhoSp5K6bxKRNdXUtHoNc5HhbXVCS8V0iZmDvyWvYq9S5WSfTIHU2UGjcGt7UeS6iEYp9eeymIl5mJBn0yiuxA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.11.tgz",
+ "integrity": "sha512-JkUqn44AffGXitVI6/AbQdoYAq0TEullFdqcMY/PCUZ36xJ9ZJRtQabzMA+Vi7r78+25ZIBosLTOKnUXBSi1Kw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.11.tgz",
+ "integrity": "sha512-3CRkr9+vCV2XJbjwgzjPtO8T0SZUmRZla+UL1jw+XqHZPkPgZiyWvbDvl9rqAN8Zl7qJF0O/9ycMtjU67HN9/Q==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.11.tgz",
+ "integrity": "sha512-LneLg3ypEeveBSMuoa0kwMpCGmpu8XQUh+mL8XXwoYZ6Be2qBnVtcDI5azSvh7vioMDhoJFZzp9GWp9IWpYoUg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.11.tgz",
+ "integrity": "sha512-caHy++CsD8Bgq2V5CodbJjFPEiDPq8JJmBdeyZ8GWVQMjRD0sU548nNdwPNvKjVpamYYVL40AORekgfIubwHoA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.11.tgz",
+ "integrity": "sha512-ppZSSLVpPrwHccvC6nQVZaSHlFsvCQyjnvirnVjbKSHuE5N24Yl8F3UwYUUR1UEPaFObGD2tSvVKbvR+uT1Nrg==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.11.tgz",
+ "integrity": "sha512-B5x9j0OgjG+v1dF2DkH34lr+7Gmv0kzX6/V0afF41FkPMMqaQ77pH7CrhWeR22aEeHKaeZVtZ6yFwlxOKPVFyg==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.11.tgz",
+ "integrity": "sha512-MHrZYLeCG8vXblMetWyttkdVRjQlQUb/oMgBNurVEnhj4YWOr4G5lmBfZjHYQHHN0g6yDmCAQRR8MUHldvvRDA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.11.tgz",
+ "integrity": "sha512-f3DY++t94uVg141dozDu4CCUkYW+09rWtaWfnb3bqe4w5NqmZd6nPVBm+qbz7WaHZCoqXqHz5p6CM6qv3qnSSQ==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.11.tgz",
+ "integrity": "sha512-A5xdUoyWJHMMlcSMcPGVLzYzpcY8QP1RtYzX5/bS4dvjBGVxdhuiYyFwp7z74ocV7WDc0n1harxmpq2ePOjI0Q==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.11.tgz",
+ "integrity": "sha512-grbyMlVCvJSfxFQUndw5mCtWs5LO1gUlwP4CDi4iJBbVpZcqLVT29FxgGuBJGSzyOxotFG4LoO5X+M1350zmPA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.11.tgz",
+ "integrity": "sha512-13jvrQZJc3P230OhU8xgwUnDeuC/9egsjTkXN49b3GcS5BKvJqZn86aGM8W9pd14Kd+u7HuFBMVtrNGhh6fHEQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.11.tgz",
+ "integrity": "sha512-ysyOGZuTp6SNKPE11INDUeFVVQFrhcNDVUgSQVDzqsqX38DjhPEPATpid04LCoUr2WXhQTEZ8ct/EgJCUDpyNw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.11.tgz",
+ "integrity": "sha512-Hf+Sad9nVwvtxy4DXCZQqLpgmRTQqyFyhT3bZ4F2XlJCjxGmRFF0Shwn9rzhOYRB61w9VMXUkxlBy56dk9JJiQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.11.tgz",
+ "integrity": "sha512-0P58Sbi0LctOMOQbpEOvOL44Ne0sqbS0XWHMvvrg6NE5jQ1xguCSSw9jQeUk2lfrXYsKDdOe6K+oZiwKPilYPQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.11.tgz",
+ "integrity": "sha512-6YOrWS+sDJDmshdBIQU+Uoyh7pQKrdykdefC1avn76ss5c+RN6gut3LZA4E2cH5xUEp5/cA0+YxRaVtRAb0xBg==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.11.tgz",
+ "integrity": "sha512-vfkhltrjCAb603XaFhqhAF4LGDi2M4OrCRrFusyQ+iTLQ/o60QQXxc9cZC/FFpihBI9N1Grn6SMKVJ4KP7Fuiw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/@jridgewell/sourcemap-codec": {
+ "version": "1.4.15",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@rollup/rollup-linux-x64-gnu": {
+ "version": "4.9.5",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@rollup/rollup-linux-x64-musl": {
+ "version": "4.9.5",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ]
+ },
+ "node_modules/@types/estree": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/linkify-it": {
+ "version": "3.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/markdown-it": {
+ "version": "13.0.7",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/linkify-it": "*",
+ "@types/mdurl": "*"
+ }
+ },
+ "node_modules/@types/mdurl": {
+ "version": "1.0.5",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/web-bluetooth": {
+ "version": "0.0.20",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vitejs/plugin-vue": {
+ "version": "5.0.3",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "peerDependencies": {
+ "vite": "^5.0.0",
+ "vue": "^3.2.25"
+ }
+ },
+ "node_modules/@vue/compiler-core": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.23.6",
+ "@vue/shared": "3.4.15",
+ "entities": "^4.5.0",
+ "estree-walker": "^2.0.2",
+ "source-map-js": "^1.0.2"
+ }
+ },
+ "node_modules/@vue/compiler-dom": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-core": "3.4.15",
+ "@vue/shared": "3.4.15"
+ }
+ },
+ "node_modules/@vue/compiler-sfc": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@babel/parser": "^7.23.6",
+ "@vue/compiler-core": "3.4.15",
+ "@vue/compiler-dom": "3.4.15",
+ "@vue/compiler-ssr": "3.4.15",
+ "@vue/shared": "3.4.15",
+ "estree-walker": "^2.0.2",
+ "magic-string": "^0.30.5",
+ "postcss": "^8.4.33",
+ "source-map-js": "^1.0.2"
+ }
+ },
+ "node_modules/@vue/compiler-ssr": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-dom": "3.4.15",
+ "@vue/shared": "3.4.15"
+ }
+ },
+ "node_modules/@vue/devtools-api": {
+ "version": "6.5.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vue/reactivity": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/shared": "3.4.15"
+ }
+ },
+ "node_modules/@vue/runtime-core": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/reactivity": "3.4.15",
+ "@vue/shared": "3.4.15"
+ }
+ },
+ "node_modules/@vue/runtime-dom": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/runtime-core": "3.4.15",
+ "@vue/shared": "3.4.15",
+ "csstype": "^3.1.3"
+ }
+ },
+ "node_modules/@vue/server-renderer": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vue/compiler-ssr": "3.4.15",
+ "@vue/shared": "3.4.15"
+ },
+ "peerDependencies": {
+ "vue": "3.4.15"
+ }
+ },
+ "node_modules/@vue/shared": {
+ "version": "3.4.15",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@vueuse/core": {
+ "version": "10.7.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/web-bluetooth": "^0.0.20",
+ "@vueuse/metadata": "10.7.2",
+ "@vueuse/shared": "10.7.2",
+ "vue-demi": ">=0.14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/@vueuse/integrations": {
+ "version": "10.7.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@vueuse/core": "10.7.2",
+ "@vueuse/shared": "10.7.2",
+ "vue-demi": ">=0.14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "async-validator": "*",
+ "axios": "*",
+ "change-case": "*",
+ "drauu": "*",
+ "focus-trap": "*",
+ "fuse.js": "*",
+ "idb-keyval": "*",
+ "jwt-decode": "*",
+ "nprogress": "*",
+ "qrcode": "*",
+ "sortablejs": "*",
+ "universal-cookie": "*"
+ },
+ "peerDependenciesMeta": {
+ "async-validator": {
+ "optional": true
+ },
+ "axios": {
+ "optional": true
+ },
+ "change-case": {
+ "optional": true
+ },
+ "drauu": {
+ "optional": true
+ },
+ "focus-trap": {
+ "optional": true
+ },
+ "fuse.js": {
+ "optional": true
+ },
+ "idb-keyval": {
+ "optional": true
+ },
+ "jwt-decode": {
+ "optional": true
+ },
+ "nprogress": {
+ "optional": true
+ },
+ "qrcode": {
+ "optional": true
+ },
+ "sortablejs": {
+ "optional": true
+ },
+ "universal-cookie": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@vueuse/metadata": {
+ "version": "10.7.2",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/@vueuse/shared": {
+ "version": "10.7.2",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "vue-demi": ">=0.14.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ }
+ },
+ "node_modules/algoliasearch": {
+ "version": "4.22.1",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@algolia/cache-browser-local-storage": "4.22.1",
+ "@algolia/cache-common": "4.22.1",
+ "@algolia/cache-in-memory": "4.22.1",
+ "@algolia/client-account": "4.22.1",
+ "@algolia/client-analytics": "4.22.1",
+ "@algolia/client-common": "4.22.1",
+ "@algolia/client-personalization": "4.22.1",
+ "@algolia/client-search": "4.22.1",
+ "@algolia/logger-common": "4.22.1",
+ "@algolia/logger-console": "4.22.1",
+ "@algolia/requester-browser-xhr": "4.22.1",
+ "@algolia/requester-common": "4.22.1",
+ "@algolia/requester-node-http": "4.22.1",
+ "@algolia/transporter": "4.22.1"
+ }
+ },
+ "node_modules/csstype": {
+ "version": "3.1.3",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/entities": {
+ "version": "4.5.0",
+ "dev": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/esbuild": {
+ "version": "0.19.11",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.11.tgz",
+ "integrity": "sha512-HJ96Hev2hX/6i5cDVwcqiJBBtuo9+FeIJOtZ9W1kA5M6AMJRHUZlpYZ1/SbEwtO0ioNAW8rUooVpC/WehY2SfA==",
+ "dev": true,
+ "hasInstallScript": true,
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.19.11",
+ "@esbuild/android-arm": "0.19.11",
+ "@esbuild/android-arm64": "0.19.11",
+ "@esbuild/android-x64": "0.19.11",
+ "@esbuild/darwin-arm64": "0.19.11",
+ "@esbuild/darwin-x64": "0.19.11",
+ "@esbuild/freebsd-arm64": "0.19.11",
+ "@esbuild/freebsd-x64": "0.19.11",
+ "@esbuild/linux-arm": "0.19.11",
+ "@esbuild/linux-arm64": "0.19.11",
+ "@esbuild/linux-ia32": "0.19.11",
+ "@esbuild/linux-loong64": "0.19.11",
+ "@esbuild/linux-mips64el": "0.19.11",
+ "@esbuild/linux-ppc64": "0.19.11",
+ "@esbuild/linux-riscv64": "0.19.11",
+ "@esbuild/linux-s390x": "0.19.11",
+ "@esbuild/linux-x64": "0.19.11",
+ "@esbuild/netbsd-x64": "0.19.11",
+ "@esbuild/openbsd-x64": "0.19.11",
+ "@esbuild/sunos-x64": "0.19.11",
+ "@esbuild/win32-arm64": "0.19.11",
+ "@esbuild/win32-ia32": "0.19.11",
+ "@esbuild/win32-x64": "0.19.11"
+ }
+ },
+ "node_modules/estree-walker": {
+ "version": "2.0.2",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/focus-trap": {
+ "version": "7.5.4",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "tabbable": "^6.2.0"
+ }
+ },
+ "node_modules/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "node_modules/magic-string": {
+ "version": "0.30.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@jridgewell/sourcemap-codec": "^1.4.15"
+ },
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/mark.js": {
+ "version": "8.11.1",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/minisearch": {
+ "version": "6.3.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/nanoid": {
+ "version": "3.3.7",
+ "dev": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "bin": {
+ "nanoid": "bin/nanoid.cjs"
+ },
+ "engines": {
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.0.0",
+ "dev": true,
+ "license": "ISC"
+ },
+ "node_modules/postcss": {
+ "version": "8.4.33",
+ "dev": true,
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "nanoid": "^3.3.7",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.0.2"
+ },
+ "engines": {
+ "node": "^10 || ^12 || >=14"
+ }
+ },
+ "node_modules/preact": {
+ "version": "10.19.3",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/preact"
+ }
+ },
+ "node_modules/rollup": {
+ "version": "4.9.5",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/estree": "1.0.5"
+ },
+ "bin": {
+ "rollup": "dist/bin/rollup"
+ },
+ "engines": {
+ "node": ">=18.0.0",
+ "npm": ">=8.0.0"
+ },
+ "optionalDependencies": {
+ "@rollup/rollup-android-arm-eabi": "4.9.5",
+ "@rollup/rollup-android-arm64": "4.9.5",
+ "@rollup/rollup-darwin-arm64": "4.9.5",
+ "@rollup/rollup-darwin-x64": "4.9.5",
+ "@rollup/rollup-linux-arm-gnueabihf": "4.9.5",
+ "@rollup/rollup-linux-arm64-gnu": "4.9.5",
+ "@rollup/rollup-linux-arm64-musl": "4.9.5",
+ "@rollup/rollup-linux-riscv64-gnu": "4.9.5",
+ "@rollup/rollup-linux-x64-gnu": "4.9.5",
+ "@rollup/rollup-linux-x64-musl": "4.9.5",
+ "@rollup/rollup-win32-arm64-msvc": "4.9.5",
+ "@rollup/rollup-win32-ia32-msvc": "4.9.5",
+ "@rollup/rollup-win32-x64-msvc": "4.9.5",
+ "fsevents": "~2.3.2"
+ }
+ },
+ "node_modules/search-insights": {
+ "version": "2.13.0",
+ "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.13.0.tgz",
+ "integrity": "sha512-Orrsjf9trHHxFRuo9/rzm0KIWmgzE8RMlZMzuhZOJ01Rnz3D0YBAe+V6473t6/H6c7irs6Lt48brULAiRWb3Vw==",
+ "dev": true,
+ "peer": true
+ },
+ "node_modules/shikiji": {
+ "version": "0.9.19",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shikiji-core": "0.9.19"
+ }
+ },
+ "node_modules/shikiji-core": {
+ "version": "0.9.19",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/shikiji-transformers": {
+ "version": "0.9.19",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "shikiji": "0.9.19"
+ }
+ },
+ "node_modules/source-map-js": {
+ "version": "1.0.2",
+ "dev": true,
+ "license": "BSD-3-Clause",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/tabbable": {
+ "version": "6.2.0",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/vite": {
+ "version": "5.0.11",
+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.0.11.tgz",
+ "integrity": "sha512-XBMnDjZcNAw/G1gEiskiM1v6yzM4GE5aMGvhWTlHAYYhxb7S3/V1s3m2LDHa8Vh6yIWYYB0iJwsEaS523c4oYA==",
+ "dev": true,
+ "dependencies": {
+ "esbuild": "^0.19.3",
+ "postcss": "^8.4.32",
+ "rollup": "^4.2.0"
+ },
+ "bin": {
+ "vite": "bin/vite.js"
+ },
+ "engines": {
+ "node": "^18.0.0 || >=20.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/vitejs/vite?sponsor=1"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ },
+ "peerDependencies": {
+ "@types/node": "^18.0.0 || >=20.0.0",
+ "less": "*",
+ "lightningcss": "^1.21.0",
+ "sass": "*",
+ "stylus": "*",
+ "sugarss": "*",
+ "terser": "^5.4.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/node": {
+ "optional": true
+ },
+ "less": {
+ "optional": true
+ },
+ "lightningcss": {
+ "optional": true
+ },
+ "sass": {
+ "optional": true
+ },
+ "stylus": {
+ "optional": true
+ },
+ "sugarss": {
+ "optional": true
+ },
+ "terser": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vitepress": {
+ "version": "1.0.0-rc.39",
+ "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-rc.39.tgz",
+ "integrity": "sha512-EcgoRlAAp37WOxUOYv45oxyhLrcy3Upey+mKpqW3ldsg6Ol4trPndRBk2GO0QiSvEKlb9BMerk49D/bFICN6kg==",
+ "dev": true,
+ "dependencies": {
+ "@docsearch/css": "^3.5.2",
+ "@docsearch/js": "^3.5.2",
+ "@types/markdown-it": "^13.0.7",
+ "@vitejs/plugin-vue": "^5.0.3",
+ "@vue/devtools-api": "^6.5.1",
+ "@vueuse/core": "^10.7.2",
+ "@vueuse/integrations": "^10.7.2",
+ "focus-trap": "^7.5.4",
+ "mark.js": "8.11.1",
+ "minisearch": "^6.3.0",
+ "shikiji": "^0.9.19",
+ "shikiji-core": "^0.9.19",
+ "shikiji-transformers": "^0.9.19",
+ "vite": "^5.0.11",
+ "vue": "^3.4.14"
+ },
+ "bin": {
+ "vitepress": "bin/vitepress.js"
+ },
+ "peerDependencies": {
+ "markdown-it-mathjax3": "^4.3.2",
+ "postcss": "^8.4.33"
+ },
+ "peerDependenciesMeta": {
+ "markdown-it-mathjax3": {
+ "optional": true
+ },
+ "postcss": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vue": {
+ "version": "3.4.15",
+ "resolved": "https://registry.npmjs.org/vue/-/vue-3.4.15.tgz",
+ "integrity": "sha512-jC0GH4KkWLWJOEQjOpkqU1bQsBwf4R1rsFtw5GQJbjHVKWDzO6P0nWWBTmjp1xSemAioDFj1jdaK1qa3DnMQoQ==",
+ "dev": true,
+ "dependencies": {
+ "@vue/compiler-dom": "3.4.15",
+ "@vue/compiler-sfc": "3.4.15",
+ "@vue/runtime-dom": "3.4.15",
+ "@vue/server-renderer": "3.4.15",
+ "@vue/shared": "3.4.15"
+ },
+ "peerDependencies": {
+ "typescript": "*"
+ },
+ "peerDependenciesMeta": {
+ "typescript": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/vue-demi": {
+ "version": "0.14.6",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "vue-demi-fix": "bin/vue-demi-fix.js",
+ "vue-demi-switch": "bin/vue-demi-switch.js"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/antfu"
+ },
+ "peerDependencies": {
+ "@vue/composition-api": "^1.0.0-rc.1",
+ "vue": "^3.0.0-0 || ^2.6.0"
+ },
+ "peerDependenciesMeta": {
+ "@vue/composition-api": {
+ "optional": true
+ }
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..cbbaa45f
--- /dev/null
+++ b/package.json
@@ -0,0 +1,11 @@
+{
+ "devDependencies": {
+ "vitepress": "^1.0.0-rc.39",
+ "vue": "^3.4.15"
+ },
+ "scripts": {
+ "docs:dev": "vitepress dev",
+ "docs:build": "vitepress build",
+ "docs:preview": "vitepress preview"
+ }
+}
diff --git a/poetry.lock b/poetry.lock
deleted file mode 100644
index 3f91b19a..00000000
--- a/poetry.lock
+++ /dev/null
@@ -1,693 +0,0 @@
-# This file is automatically @generated by Poetry 1.5.0 and should not be changed by hand.
-
-[[package]]
-name = "certifi"
-version = "2023.5.7"
-description = "Python package for providing Mozilla's CA Bundle."
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "certifi-2023.5.7-py3-none-any.whl", hash = "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"},
- {file = "certifi-2023.5.7.tar.gz", hash = "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"},
-]
-
-[[package]]
-name = "cfgv"
-version = "3.3.1"
-description = "Validate configuration and produce human readable error messages."
-optional = false
-python-versions = ">=3.6.1"
-files = [
- {file = "cfgv-3.3.1-py2.py3-none-any.whl", hash = "sha256:c6a0883f3917a037485059700b9e75da2464e6c27051014ad85ba6aaa5884426"},
- {file = "cfgv-3.3.1.tar.gz", hash = "sha256:f5a830efb9ce7a445376bb66ec94c638a9787422f96264c98edc6bdeed8ab736"},
-]
-
-[[package]]
-name = "charset-normalizer"
-version = "3.1.0"
-description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
-optional = false
-python-versions = ">=3.7.0"
-files = [
- {file = "charset-normalizer-3.1.0.tar.gz", hash = "sha256:34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e0ac8959c929593fee38da1c2b64ee9778733cdf03c482c9ff1d508b6b593b2b"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d7fc3fca01da18fbabe4625d64bb612b533533ed10045a2ac3dd194bfa656b60"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:04eefcee095f58eaabe6dc3cc2262f3bcd776d2c67005880894f447b3f2cb9c1"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20064ead0717cf9a73a6d1e779b23d149b53daf971169289ed2ed43a71e8d3b0"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1435ae15108b1cb6fffbcea2af3d468683b7afed0169ad718451f8db5d1aff6f"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c84132a54c750fda57729d1e2599bb598f5fa0344085dbde5003ba429a4798c0"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75f2568b4189dda1c567339b48cba4ac7384accb9c2a7ed655cd86b04055c795"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11d3bcb7be35e7b1bba2c23beedac81ee893ac9871d0ba79effc7fc01167db6c"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:891cf9b48776b5c61c700b55a598621fdb7b1e301a550365571e9624f270c203"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:5f008525e02908b20e04707a4f704cd286d94718f48bb33edddc7d7b584dddc1"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:b06f0d3bf045158d2fb8837c5785fe9ff9b8c93358be64461a1089f5da983137"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:49919f8400b5e49e961f320c735388ee686a62327e773fa5b3ce6721f7e785ce"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:22908891a380d50738e1f978667536f6c6b526a2064156203d418f4856d6e86a"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-win32.whl", hash = "sha256:12d1a39aa6b8c6f6248bb54550efcc1c38ce0d8096a146638fd4738e42284448"},
- {file = "charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:65ed923f84a6844de5fd29726b888e58c62820e0769b76565480e1fdc3d062f8"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9a3267620866c9d17b959a84dd0bd2d45719b817245e49371ead79ed4f710d19"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6734e606355834f13445b6adc38b53c0fd45f1a56a9ba06c2058f86893ae8017"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f8303414c7b03f794347ad062c0516cee0e15f7a612abd0ce1e25caf6ceb47df"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaf53a6cebad0eae578f062c7d462155eada9c172bd8c4d250b8c1d8eb7f916a"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3dc5b6a8ecfdc5748a7e429782598e4f17ef378e3e272eeb1340ea57c9109f41"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e1b25e3ad6c909f398df8921780d6a3d120d8c09466720226fc621605b6f92b1"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0ca564606d2caafb0abe6d1b5311c2649e8071eb241b2d64e75a0d0065107e62"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b82fab78e0b1329e183a65260581de4375f619167478dddab510c6c6fb04d9b6"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bd7163182133c0c7701b25e604cf1611c0d87712e56e88e7ee5d72deab3e76b5"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:11d117e6c63e8f495412d37e7dc2e2fff09c34b2d09dbe2bee3c6229577818be"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:cf6511efa4801b9b38dc5546d7547d5b5c6ef4b081c60b23e4d941d0eba9cbeb"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:abc1185d79f47c0a7aaf7e2412a0eb2c03b724581139193d2d82b3ad8cbb00ac"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cb7b2ab0188829593b9de646545175547a70d9a6e2b63bf2cd87a0a391599324"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-win32.whl", hash = "sha256:c36bcbc0d5174a80d6cccf43a0ecaca44e81d25be4b7f90f0ed7bcfbb5a00909"},
- {file = "charset_normalizer-3.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:cca4def576f47a09a943666b8f829606bcb17e2bc2d5911a46c8f8da45f56755"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0c95f12b74681e9ae127728f7e5409cbbef9cd914d5896ef238cc779b8152373"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fca62a8301b605b954ad2e9c3666f9d97f63872aa4efcae5492baca2056b74ab"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac0aa6cd53ab9a31d397f8303f92c42f534693528fafbdb997c82bae6e477ad9"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c3af8e0f07399d3176b179f2e2634c3ce9c1301379a6b8c9c9aeecd481da494f"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a5fc78f9e3f501a1614a98f7c54d3969f3ad9bba8ba3d9b438c3bc5d047dd28"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:628c985afb2c7d27a4800bfb609e03985aaecb42f955049957814e0491d4006d"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:74db0052d985cf37fa111828d0dd230776ac99c740e1a758ad99094be4f1803d"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1e8fcdd8f672a1c4fc8d0bd3a2b576b152d2a349782d1eb0f6b8e52e9954731d"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:04afa6387e2b282cf78ff3dbce20f0cc071c12dc8f685bd40960cc68644cfea6"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:dd5653e67b149503c68c4018bf07e42eeed6b4e956b24c00ccdf93ac79cdff84"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d2686f91611f9e17f4548dbf050e75b079bbc2a82be565832bc8ea9047b61c8c"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-win32.whl", hash = "sha256:4155b51ae05ed47199dc5b2a4e62abccb274cee6b01da5b895099b61b1982974"},
- {file = "charset_normalizer-3.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:322102cdf1ab682ecc7d9b1c5eed4ec59657a65e1c146a0da342b78f4112db23"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e633940f28c1e913615fd624fcdd72fdba807bf53ea6925d6a588e84e1151531"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3a06f32c9634a8705f4ca9946d667609f52cf130d5548881401f1eb2c39b1e2c"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7381c66e0561c5757ffe616af869b916c8b4e42b367ab29fedc98481d1e74e14"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3573d376454d956553c356df45bb824262c397c6e26ce43e8203c4c540ee0acb"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e89df2958e5159b811af9ff0f92614dabf4ff617c03a4c1c6ff53bf1c399e0e1"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:78cacd03e79d009d95635e7d6ff12c21eb89b894c354bd2b2ed0b4763373693b"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de5695a6f1d8340b12a5d6d4484290ee74d61e467c39ff03b39e30df62cf83a0"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1c60b9c202d00052183c9be85e5eaf18a4ada0a47d188a83c8f5c5b23252f649"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:f645caaf0008bacf349875a974220f1f1da349c5dbe7c4ec93048cdc785a3326"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ea9f9c6034ea2d93d9147818f17c2a0860d41b71c38b9ce4d55f21b6f9165a11"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:80d1543d58bd3d6c271b66abf454d437a438dff01c3e62fdbcd68f2a11310d4b"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:73dc03a6a7e30b7edc5b01b601e53e7fc924b04e1835e8e407c12c037e81adbd"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6f5c2e7bc8a4bf7c426599765b1bd33217ec84023033672c1e9a8b35eaeaaaf8"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-win32.whl", hash = "sha256:12a2b561af122e3d94cdb97fe6fb2bb2b82cef0cdca131646fdb940a1eda04f0"},
- {file = "charset_normalizer-3.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:3160a0fd9754aab7d47f95a6b63ab355388d890163eb03b2d2b87ab0a30cfa59"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:38e812a197bf8e71a59fe55b757a84c1f946d0ac114acafaafaf21667a7e169e"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6baf0baf0d5d265fa7944feb9f7451cc316bfe30e8df1a61b1bb08577c554f31"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8f25e17ab3039b05f762b0a55ae0b3632b2e073d9c8fc88e89aca31a6198e88f"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3747443b6a904001473370d7810aa19c3a180ccd52a7157aacc264a5ac79265e"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b116502087ce8a6b7a5f1814568ccbd0e9f6cfd99948aa59b0e241dc57cf739f"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d16fd5252f883eb074ca55cb622bc0bee49b979ae4e8639fff6ca3ff44f9f854"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21fa558996782fc226b529fdd2ed7866c2c6ec91cee82735c98a197fae39f706"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f6c7a8a57e9405cad7485f4c9d3172ae486cfef1344b5ddd8e5239582d7355e"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ac3775e3311661d4adace3697a52ac0bab17edd166087d493b52d4f4f553f9f0"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:10c93628d7497c81686e8e5e557aafa78f230cd9e77dd0c40032ef90c18f2230"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:6f4f4668e1831850ebcc2fd0b1cd11721947b6dc7c00bf1c6bd3c929ae14f2c7"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:0be65ccf618c1e7ac9b849c315cc2e8a8751d9cfdaa43027d4f6624bd587ab7e"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:53d0a3fa5f8af98a1e261de6a3943ca631c526635eb5817a87a59d9a57ebf48f"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-win32.whl", hash = "sha256:a04f86f41a8916fe45ac5024ec477f41f886b3c435da2d4e3d2709b22ab02af1"},
- {file = "charset_normalizer-3.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:830d2948a5ec37c386d3170c483063798d7879037492540f10a475e3fd6f244b"},
- {file = "charset_normalizer-3.1.0-py3-none-any.whl", hash = "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d"},
-]
-
-[[package]]
-name = "colorama"
-version = "0.4.6"
-description = "Cross-platform colored terminal text."
-optional = false
-python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
-files = [
- {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
- {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
-]
-
-[[package]]
-name = "coverage"
-version = "7.2.7"
-description = "Code coverage measurement for Python"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "coverage-7.2.7-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d39b5b4f2a66ccae8b7263ac3c8170994b65266797fb96cbbfd3fb5b23921db8"},
- {file = "coverage-7.2.7-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:6d040ef7c9859bb11dfeb056ff5b3872436e3b5e401817d87a31e1750b9ae2fb"},
- {file = "coverage-7.2.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ba90a9563ba44a72fda2e85302c3abc71c5589cea608ca16c22b9804262aaeb6"},
- {file = "coverage-7.2.7-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e7d9405291c6928619403db1d10bd07888888ec1abcbd9748fdaa971d7d661b2"},
- {file = "coverage-7.2.7-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:31563e97dae5598556600466ad9beea39fb04e0229e61c12eaa206e0aa202063"},
- {file = "coverage-7.2.7-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:ebba1cd308ef115925421d3e6a586e655ca5a77b5bf41e02eb0e4562a111f2d1"},
- {file = "coverage-7.2.7-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:cb017fd1b2603ef59e374ba2063f593abe0fc45f2ad9abdde5b4d83bd922a353"},
- {file = "coverage-7.2.7-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:d62a5c7dad11015c66fbb9d881bc4caa5b12f16292f857842d9d1871595f4495"},
- {file = "coverage-7.2.7-cp310-cp310-win32.whl", hash = "sha256:ee57190f24fba796e36bb6d3aa8a8783c643d8fa9760c89f7a98ab5455fbf818"},
- {file = "coverage-7.2.7-cp310-cp310-win_amd64.whl", hash = "sha256:f75f7168ab25dd93110c8a8117a22450c19976afbc44234cbf71481094c1b850"},
- {file = "coverage-7.2.7-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:06a9a2be0b5b576c3f18f1a241f0473575c4a26021b52b2a85263a00f034d51f"},
- {file = "coverage-7.2.7-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5baa06420f837184130752b7c5ea0808762083bf3487b5038d68b012e5937dbe"},
- {file = "coverage-7.2.7-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fdec9e8cbf13a5bf63290fc6013d216a4c7232efb51548594ca3631a7f13c3a3"},
- {file = "coverage-7.2.7-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:52edc1a60c0d34afa421c9c37078817b2e67a392cab17d97283b64c5833f427f"},
- {file = "coverage-7.2.7-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:63426706118b7f5cf6bb6c895dc215d8a418d5952544042c8a2d9fe87fcf09cb"},
- {file = "coverage-7.2.7-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:afb17f84d56068a7c29f5fa37bfd38d5aba69e3304af08ee94da8ed5b0865833"},
- {file = "coverage-7.2.7-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:48c19d2159d433ccc99e729ceae7d5293fbffa0bdb94952d3579983d1c8c9d97"},
- {file = "coverage-7.2.7-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0e1f928eaf5469c11e886fe0885ad2bf1ec606434e79842a879277895a50942a"},
- {file = "coverage-7.2.7-cp311-cp311-win32.whl", hash = "sha256:33d6d3ea29d5b3a1a632b3c4e4f4ecae24ef170b0b9ee493883f2df10039959a"},
- {file = "coverage-7.2.7-cp311-cp311-win_amd64.whl", hash = "sha256:5b7540161790b2f28143191f5f8ec02fb132660ff175b7747b95dcb77ac26562"},
- {file = "coverage-7.2.7-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f2f67fe12b22cd130d34d0ef79206061bfb5eda52feb6ce0dba0644e20a03cf4"},
- {file = "coverage-7.2.7-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a342242fe22407f3c17f4b499276a02b01e80f861f1682ad1d95b04018e0c0d4"},
- {file = "coverage-7.2.7-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:171717c7cb6b453aebac9a2ef603699da237f341b38eebfee9be75d27dc38e01"},
- {file = "coverage-7.2.7-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49969a9f7ffa086d973d91cec8d2e31080436ef0fb4a359cae927e742abfaaa6"},
- {file = "coverage-7.2.7-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:b46517c02ccd08092f4fa99f24c3b83d8f92f739b4657b0f146246a0ca6a831d"},
- {file = "coverage-7.2.7-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:a3d33a6b3eae87ceaefa91ffdc130b5e8536182cd6dfdbfc1aa56b46ff8c86de"},
- {file = "coverage-7.2.7-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:976b9c42fb2a43ebf304fa7d4a310e5f16cc99992f33eced91ef6f908bd8f33d"},
- {file = "coverage-7.2.7-cp312-cp312-win32.whl", hash = "sha256:8de8bb0e5ad103888d65abef8bca41ab93721647590a3f740100cd65c3b00511"},
- {file = "coverage-7.2.7-cp312-cp312-win_amd64.whl", hash = "sha256:9e31cb64d7de6b6f09702bb27c02d1904b3aebfca610c12772452c4e6c21a0d3"},
- {file = "coverage-7.2.7-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:58c2ccc2f00ecb51253cbe5d8d7122a34590fac9646a960d1430d5b15321d95f"},
- {file = "coverage-7.2.7-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d22656368f0e6189e24722214ed8d66b8022db19d182927b9a248a2a8a2f67eb"},
- {file = "coverage-7.2.7-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a895fcc7b15c3fc72beb43cdcbdf0ddb7d2ebc959edac9cef390b0d14f39f8a9"},
- {file = "coverage-7.2.7-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e84606b74eb7de6ff581a7915e2dab7a28a0517fbe1c9239eb227e1354064dcd"},
- {file = "coverage-7.2.7-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:0a5f9e1dbd7fbe30196578ca36f3fba75376fb99888c395c5880b355e2875f8a"},
- {file = "coverage-7.2.7-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:419bfd2caae268623dd469eff96d510a920c90928b60f2073d79f8fe2bbc5959"},
- {file = "coverage-7.2.7-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:2aee274c46590717f38ae5e4650988d1af340fe06167546cc32fe2f58ed05b02"},
- {file = "coverage-7.2.7-cp37-cp37m-win32.whl", hash = "sha256:61b9a528fb348373c433e8966535074b802c7a5d7f23c4f421e6c6e2f1697a6f"},
- {file = "coverage-7.2.7-cp37-cp37m-win_amd64.whl", hash = "sha256:b1c546aca0ca4d028901d825015dc8e4d56aac4b541877690eb76490f1dc8ed0"},
- {file = "coverage-7.2.7-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:54b896376ab563bd38453cecb813c295cf347cf5906e8b41d340b0321a5433e5"},
- {file = "coverage-7.2.7-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:3d376df58cc111dc8e21e3b6e24606b5bb5dee6024f46a5abca99124b2229ef5"},
- {file = "coverage-7.2.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5e330fc79bd7207e46c7d7fd2bb4af2963f5f635703925543a70b99574b0fea9"},
- {file = "coverage-7.2.7-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1e9d683426464e4a252bf70c3498756055016f99ddaec3774bf368e76bbe02b6"},
- {file = "coverage-7.2.7-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8d13c64ee2d33eccf7437961b6ea7ad8673e2be040b4f7fd4fd4d4d28d9ccb1e"},
- {file = "coverage-7.2.7-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:b7aa5f8a41217360e600da646004f878250a0d6738bcdc11a0a39928d7dc2050"},
- {file = "coverage-7.2.7-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:8fa03bce9bfbeeef9f3b160a8bed39a221d82308b4152b27d82d8daa7041fee5"},
- {file = "coverage-7.2.7-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:245167dd26180ab4c91d5e1496a30be4cd721a5cf2abf52974f965f10f11419f"},
- {file = "coverage-7.2.7-cp38-cp38-win32.whl", hash = "sha256:d2c2db7fd82e9b72937969bceac4d6ca89660db0a0967614ce2481e81a0b771e"},
- {file = "coverage-7.2.7-cp38-cp38-win_amd64.whl", hash = "sha256:2e07b54284e381531c87f785f613b833569c14ecacdcb85d56b25c4622c16c3c"},
- {file = "coverage-7.2.7-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:537891ae8ce59ef63d0123f7ac9e2ae0fc8b72c7ccbe5296fec45fd68967b6c9"},
- {file = "coverage-7.2.7-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:06fb182e69f33f6cd1d39a6c597294cff3143554b64b9825d1dc69d18cc2fff2"},
- {file = "coverage-7.2.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:201e7389591af40950a6480bd9edfa8ed04346ff80002cec1a66cac4549c1ad7"},
- {file = "coverage-7.2.7-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f6951407391b639504e3b3be51b7ba5f3528adbf1a8ac3302b687ecababf929e"},
- {file = "coverage-7.2.7-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6f48351d66575f535669306aa7d6d6f71bc43372473b54a832222803eb956fd1"},
- {file = "coverage-7.2.7-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b29019c76039dc3c0fd815c41392a044ce555d9bcdd38b0fb60fb4cd8e475ba9"},
- {file = "coverage-7.2.7-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:81c13a1fc7468c40f13420732805a4c38a105d89848b7c10af65a90beff25250"},
- {file = "coverage-7.2.7-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:975d70ab7e3c80a3fe86001d8751f6778905ec723f5b110aed1e450da9d4b7f2"},
- {file = "coverage-7.2.7-cp39-cp39-win32.whl", hash = "sha256:7ee7d9d4822c8acc74a5e26c50604dff824710bc8de424904c0982e25c39c6cb"},
- {file = "coverage-7.2.7-cp39-cp39-win_amd64.whl", hash = "sha256:eb393e5ebc85245347950143969b241d08b52b88a3dc39479822e073a1a8eb27"},
- {file = "coverage-7.2.7-pp37.pp38.pp39-none-any.whl", hash = "sha256:b7b4c971f05e6ae490fef852c218b0e79d4e52f79ef0c8475566584a8fb3e01d"},
- {file = "coverage-7.2.7.tar.gz", hash = "sha256:924d94291ca674905fe9481f12294eb11f2d3d3fd1adb20314ba89e94f44ed59"},
-]
-
-[package.dependencies]
-tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""}
-
-[package.extras]
-toml = ["tomli"]
-
-[[package]]
-name = "distlib"
-version = "0.3.6"
-description = "Distribution utilities"
-optional = false
-python-versions = "*"
-files = [
- {file = "distlib-0.3.6-py2.py3-none-any.whl", hash = "sha256:f35c4b692542ca110de7ef0bea44d73981caeb34ca0b9b6b2e6d7790dda8f80e"},
- {file = "distlib-0.3.6.tar.gz", hash = "sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"},
-]
-
-[[package]]
-name = "exceptiongroup"
-version = "1.1.1"
-description = "Backport of PEP 654 (exception groups)"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"},
- {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"},
-]
-
-[package.extras]
-test = ["pytest (>=6)"]
-
-[[package]]
-name = "execnet"
-version = "1.9.0"
-description = "execnet: rapid multi-Python deployment"
-optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
-files = [
- {file = "execnet-1.9.0-py2.py3-none-any.whl", hash = "sha256:a295f7cc774947aac58dde7fdc85f4aa00c42adf5d8f5468fc630c1acf30a142"},
- {file = "execnet-1.9.0.tar.gz", hash = "sha256:8f694f3ba9cc92cab508b152dcfe322153975c29bda272e2fd7f3f00f36e47c5"},
-]
-
-[package.extras]
-testing = ["pre-commit"]
-
-[[package]]
-name = "filelock"
-version = "3.12.0"
-description = "A platform independent file lock."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "filelock-3.12.0-py3-none-any.whl", hash = "sha256:ad98852315c2ab702aeb628412cbf7e95b7ce8c3bf9565670b4eaecf1db370a9"},
- {file = "filelock-3.12.0.tar.gz", hash = "sha256:fc03ae43288c013d2ea83c8597001b1129db351aad9c57fe2409327916b8e718"},
-]
-
-[package.extras]
-docs = ["furo (>=2023.3.27)", "sphinx (>=6.1.3)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-testing = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "diff-cover (>=7.5)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest-timeout (>=2.1)"]
-
-[[package]]
-name = "identify"
-version = "2.5.24"
-description = "File identification library for Python"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "identify-2.5.24-py2.py3-none-any.whl", hash = "sha256:986dbfb38b1140e763e413e6feb44cd731faf72d1909543178aa79b0e258265d"},
- {file = "identify-2.5.24.tar.gz", hash = "sha256:0aac67d5b4812498056d28a9a512a483f5085cc28640b02b258a59dac34301d4"},
-]
-
-[package.extras]
-license = ["ukkonen"]
-
-[[package]]
-name = "idna"
-version = "3.4"
-description = "Internationalized Domain Names in Applications (IDNA)"
-optional = false
-python-versions = ">=3.5"
-files = [
- {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"},
- {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"},
-]
-
-[[package]]
-name = "importlib-metadata"
-version = "6.6.0"
-description = "Read metadata from Python packages"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "importlib_metadata-6.6.0-py3-none-any.whl", hash = "sha256:43dd286a2cd8995d5eaef7fee2066340423b818ed3fd70adf0bad5f1fac53fed"},
- {file = "importlib_metadata-6.6.0.tar.gz", hash = "sha256:92501cdf9cc66ebd3e612f1b4f0c0765dfa42f0fa38ffb319b6bd84dd675d705"},
-]
-
-[package.dependencies]
-typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""}
-zipp = ">=0.5"
-
-[package.extras]
-docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
-perf = ["ipython"]
-testing = ["flake8 (<5)", "flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)"]
-
-[[package]]
-name = "iniconfig"
-version = "2.0.0"
-description = "brain-dead simple config-ini parsing"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"},
- {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"},
-]
-
-[[package]]
-name = "nodeenv"
-version = "1.8.0"
-description = "Node.js virtual environment builder"
-optional = false
-python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*"
-files = [
- {file = "nodeenv-1.8.0-py2.py3-none-any.whl", hash = "sha256:df865724bb3c3adc86b3876fa209771517b0cfe596beff01a92700e0e8be4cec"},
- {file = "nodeenv-1.8.0.tar.gz", hash = "sha256:d51e0c37e64fbf47d017feac3145cdbb58836d7eee8c6f6d3b6880c5456227d2"},
-]
-
-[package.dependencies]
-setuptools = "*"
-
-[[package]]
-name = "packaging"
-version = "23.1"
-description = "Core utilities for Python packages"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"},
- {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"},
-]
-
-[[package]]
-name = "platformdirs"
-version = "3.5.1"
-description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "platformdirs-3.5.1-py3-none-any.whl", hash = "sha256:e2378146f1964972c03c085bb5662ae80b2b8c06226c54b2ff4aa9483e8a13a5"},
- {file = "platformdirs-3.5.1.tar.gz", hash = "sha256:412dae91f52a6f84830f39a8078cecd0e866cb72294a5c66808e74d5e88d251f"},
-]
-
-[package.dependencies]
-typing-extensions = {version = ">=4.5", markers = "python_version < \"3.8\""}
-
-[package.extras]
-docs = ["furo (>=2023.3.27)", "proselint (>=0.13)", "sphinx (>=6.2.1)", "sphinx-autodoc-typehints (>=1.23,!=1.23.4)"]
-test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.3.1)", "pytest-cov (>=4)", "pytest-mock (>=3.10)"]
-
-[[package]]
-name = "pluggy"
-version = "1.0.0"
-description = "plugin and hook calling mechanisms for python"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"},
- {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"},
-]
-
-[package.dependencies]
-importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
-
-[package.extras]
-dev = ["pre-commit", "tox"]
-testing = ["pytest", "pytest-benchmark"]
-
-[[package]]
-name = "poetry-semver"
-version = "0.1.0"
-description = "A semantic versioning library for Python"
-optional = false
-python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*"
-files = [
- {file = "poetry-semver-0.1.0.tar.gz", hash = "sha256:d809b612aa27b39bf2d0fc9d31b4f4809b0e972646c5f19cfa46c725b7638810"},
- {file = "poetry_semver-0.1.0-py2.py3-none-any.whl", hash = "sha256:4e6349bd7231cc657f0e1930f7b204e87e33dfd63eef5cac869363969515083a"},
-]
-
-[[package]]
-name = "poetry2conda"
-version = "0.3.0"
-description = "Convert pyproject.toml to environment.yaml"
-optional = false
-python-versions = ">=3.6,<4.0"
-files = [
- {file = "poetry2conda-0.3.0-py3-none-any.whl", hash = "sha256:218618d37331bd6d3d3007edcf21d71802990a0ce9c27e8bb23f739cfa82ed03"},
- {file = "poetry2conda-0.3.0.tar.gz", hash = "sha256:574b6295ff877ff8fb56fe2034160ff9ee9db55a3f3c2faec65458e69125491b"},
-]
-
-[package.dependencies]
-poetry-semver = ">=0.1.0,<0.2.0"
-toml = ">=0.10.0,<0.11.0"
-
-[[package]]
-name = "pre-commit"
-version = "2.21.0"
-description = "A framework for managing and maintaining multi-language pre-commit hooks."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"},
- {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"},
-]
-
-[package.dependencies]
-cfgv = ">=2.0.0"
-identify = ">=1.0.0"
-importlib-metadata = {version = "*", markers = "python_version < \"3.8\""}
-nodeenv = ">=0.11.1"
-pyyaml = ">=5.1"
-virtualenv = ">=20.10.0"
-
-[[package]]
-name = "pytest"
-version = "7.3.1"
-description = "pytest: simple powerful testing with Python"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pytest-7.3.1-py3-none-any.whl", hash = "sha256:3799fa815351fea3a5e96ac7e503a96fa51cc9942c3753cda7651b93c1cfa362"},
- {file = "pytest-7.3.1.tar.gz", hash = "sha256:434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3"},
-]
-
-[package.dependencies]
-colorama = {version = "*", markers = "sys_platform == \"win32\""}
-exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
-importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""}
-iniconfig = "*"
-packaging = "*"
-pluggy = ">=0.12,<2.0"
-tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""}
-
-[package.extras]
-testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"]
-
-[[package]]
-name = "pytest-cov"
-version = "4.1.0"
-description = "Pytest plugin for measuring coverage."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pytest-cov-4.1.0.tar.gz", hash = "sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6"},
- {file = "pytest_cov-4.1.0-py3-none-any.whl", hash = "sha256:6ba70b9e97e69fcc3fb45bfeab2d0a138fb65c4d0d6a41ef33983ad114be8c3a"},
-]
-
-[package.dependencies]
-coverage = {version = ">=5.2.1", extras = ["toml"]}
-pytest = ">=4.6"
-
-[package.extras]
-testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"]
-
-[[package]]
-name = "pytest-xdist"
-version = "3.3.1"
-description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "pytest-xdist-3.3.1.tar.gz", hash = "sha256:d5ee0520eb1b7bcca50a60a518ab7a7707992812c578198f8b44fdfac78e8c93"},
- {file = "pytest_xdist-3.3.1-py3-none-any.whl", hash = "sha256:ff9daa7793569e6a68544850fd3927cd257cc03a7ef76c95e86915355e82b5f2"},
-]
-
-[package.dependencies]
-execnet = ">=1.1"
-pytest = ">=6.2.0"
-
-[package.extras]
-psutil = ["psutil (>=3.0)"]
-setproctitle = ["setproctitle"]
-testing = ["filelock"]
-
-[[package]]
-name = "pyyaml"
-version = "6.0"
-description = "YAML parser and emitter for Python"
-optional = false
-python-versions = ">=3.6"
-files = [
- {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"},
- {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"},
- {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"},
- {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"},
- {file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"},
- {file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"},
- {file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"},
- {file = "PyYAML-6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d4b0ba9512519522b118090257be113b9468d804b19d63c71dbcf4a48fa32358"},
- {file = "PyYAML-6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81957921f441d50af23654aa6c5e5eaf9b06aba7f0a19c18a538dc7ef291c5a1"},
- {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afa17f5bc4d1b10afd4466fd3a44dc0e245382deca5b3c353d8b757f9e3ecb8d"},
- {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dbad0e9d368bb989f4515da330b88a057617d16b6a8245084f1b05400f24609f"},
- {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:432557aa2c09802be39460360ddffd48156e30721f5e8d917f01d31694216782"},
- {file = "PyYAML-6.0-cp311-cp311-win32.whl", hash = "sha256:bfaef573a63ba8923503d27530362590ff4f576c626d86a9fed95822a8255fd7"},
- {file = "PyYAML-6.0-cp311-cp311-win_amd64.whl", hash = "sha256:01b45c0191e6d66c470b6cf1b9531a771a83c1c4208272ead47a3ae4f2f603bf"},
- {file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"},
- {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"},
- {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"},
- {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"},
- {file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"},
- {file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"},
- {file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"},
- {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"},
- {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"},
- {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"},
- {file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"},
- {file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"},
- {file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"},
- {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"},
- {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"},
- {file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"},
- {file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"},
- {file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"},
- {file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"},
- {file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"},
- {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"},
- {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"},
- {file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"},
- {file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"},
- {file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"},
- {file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"},
-]
-
-[[package]]
-name = "requests"
-version = "2.31.0"
-description = "Python HTTP for Humans."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"},
- {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"},
-]
-
-[package.dependencies]
-certifi = ">=2017.4.17"
-charset-normalizer = ">=2,<4"
-idna = ">=2.5,<4"
-urllib3 = ">=1.21.1,<3"
-
-[package.extras]
-socks = ["PySocks (>=1.5.6,!=1.5.7)"]
-use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"]
-
-[[package]]
-name = "responses"
-version = "0.23.1"
-description = "A utility library for mocking out the `requests` Python library."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "responses-0.23.1-py3-none-any.whl", hash = "sha256:8a3a5915713483bf353b6f4079ba8b2a29029d1d1090a503c70b0dc5d9d0c7bd"},
- {file = "responses-0.23.1.tar.gz", hash = "sha256:c4d9aa9fc888188f0c673eff79a8dadbe2e75b7fe879dc80a221a06e0a68138f"},
-]
-
-[package.dependencies]
-pyyaml = "*"
-requests = ">=2.22.0,<3.0"
-types-PyYAML = "*"
-typing-extensions = {version = "*", markers = "python_version < \"3.8\""}
-urllib3 = ">=1.25.10"
-
-[package.extras]
-tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asyncio", "pytest-cov", "pytest-httpserver", "tomli", "tomli-w", "types-requests"]
-
-[[package]]
-name = "setuptools"
-version = "67.8.0"
-description = "Easily download, build, install, upgrade, and uninstall Python packages"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "setuptools-67.8.0-py3-none-any.whl", hash = "sha256:5df61bf30bb10c6f756eb19e7c9f3b473051f48db77fddbe06ff2ca307df9a6f"},
- {file = "setuptools-67.8.0.tar.gz", hash = "sha256:62642358adc77ffa87233bc4d2354c4b2682d214048f500964dbe760ccedf102"},
-]
-
-[package.extras]
-docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "pygments-github-lexers (==0.0.5)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-favicon", "sphinx-hoverxref (<2)", "sphinx-inline-tabs", "sphinx-lint", "sphinx-notfound-page (==0.8.3)", "sphinx-reredirects", "sphinxcontrib-towncrier"]
-testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8-2020", "ini2toml[lite] (>=0.9)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pip (>=19.1)", "pip-run (>=8.8)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-mypy (>=0.9.1)", "pytest-perf", "pytest-ruff", "pytest-timeout", "pytest-xdist", "tomli-w (>=1.0.0)", "virtualenv (>=13.0.0)", "wheel"]
-testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"]
-
-[[package]]
-name = "toml"
-version = "0.10.2"
-description = "Python Library for Tom's Obvious, Minimal Language"
-optional = false
-python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*"
-files = [
- {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"},
- {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"},
-]
-
-[[package]]
-name = "tomli"
-version = "2.0.1"
-description = "A lil' TOML parser"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
- {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
-]
-
-[[package]]
-name = "types-pyyaml"
-version = "6.0.12.10"
-description = "Typing stubs for PyYAML"
-optional = false
-python-versions = "*"
-files = [
- {file = "types-PyYAML-6.0.12.10.tar.gz", hash = "sha256:ebab3d0700b946553724ae6ca636ea932c1b0868701d4af121630e78d695fc97"},
- {file = "types_PyYAML-6.0.12.10-py3-none-any.whl", hash = "sha256:662fa444963eff9b68120d70cda1af5a5f2aa57900003c2006d7626450eaae5f"},
-]
-
-[[package]]
-name = "typing-extensions"
-version = "4.6.2"
-description = "Backported and Experimental Type Hints for Python 3.7+"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "typing_extensions-4.6.2-py3-none-any.whl", hash = "sha256:3a8b36f13dd5fdc5d1b16fe317f5668545de77fa0b8e02006381fd49d731ab98"},
- {file = "typing_extensions-4.6.2.tar.gz", hash = "sha256:06006244c70ac8ee83fa8282cb188f697b8db25bc8b4df07be1873c43897060c"},
-]
-
-[[package]]
-name = "urllib3"
-version = "2.0.2"
-description = "HTTP library with thread-safe connection pooling, file post, and more."
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "urllib3-2.0.2-py3-none-any.whl", hash = "sha256:d055c2f9d38dc53c808f6fdc8eab7360b6fdbbde02340ed25cfbcd817c62469e"},
- {file = "urllib3-2.0.2.tar.gz", hash = "sha256:61717a1095d7e155cdb737ac7bb2f4324a858a1e2e6466f6d03ff630ca68d3cc"},
-]
-
-[package.extras]
-brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
-secure = ["certifi", "cryptography (>=1.9)", "idna (>=2.0.0)", "pyopenssl (>=17.1.0)", "urllib3-secure-extra"]
-socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
-zstd = ["zstandard (>=0.18.0)"]
-
-[[package]]
-name = "virtualenv"
-version = "20.23.0"
-description = "Virtual Python Environment builder"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "virtualenv-20.23.0-py3-none-any.whl", hash = "sha256:6abec7670e5802a528357fdc75b26b9f57d5d92f29c5462ba0fbe45feacc685e"},
- {file = "virtualenv-20.23.0.tar.gz", hash = "sha256:a85caa554ced0c0afbd0d638e7e2d7b5f92d23478d05d17a76daeac8f279f924"},
-]
-
-[package.dependencies]
-distlib = ">=0.3.6,<1"
-filelock = ">=3.11,<4"
-importlib-metadata = {version = ">=6.4.1", markers = "python_version < \"3.8\""}
-platformdirs = ">=3.2,<4"
-
-[package.extras]
-docs = ["furo (>=2023.3.27)", "proselint (>=0.13)", "sphinx (>=6.1.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=22.12)"]
-test = ["covdefaults (>=2.3)", "coverage (>=7.2.3)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.3.1)", "pytest-env (>=0.8.1)", "pytest-freezegun (>=0.4.2)", "pytest-mock (>=3.10)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=67.7.1)", "time-machine (>=2.9)"]
-
-[[package]]
-name = "yapf"
-version = "0.33.0"
-description = "A formatter for Python code."
-optional = false
-python-versions = "*"
-files = [
- {file = "yapf-0.33.0-py2.py3-none-any.whl", hash = "sha256:4c2b59bd5ffe46f3a7da48df87596877189148226ce267c16e8b44240e51578d"},
- {file = "yapf-0.33.0.tar.gz", hash = "sha256:da62bdfea3df3673553351e6246abed26d9fe6780e548a5af9e70f6d2b4f5b9a"},
-]
-
-[package.dependencies]
-tomli = ">=2.0.1"
-
-[[package]]
-name = "zipp"
-version = "3.15.0"
-description = "Backport of pathlib-compatible object wrapper for zip files"
-optional = false
-python-versions = ">=3.7"
-files = [
- {file = "zipp-3.15.0-py3-none-any.whl", hash = "sha256:48904fc76a60e542af151aded95726c1a5c34ed43ab4134b597665c86d7ad556"},
- {file = "zipp-3.15.0.tar.gz", hash = "sha256:112929ad649da941c23de50f356a2b5570c954b65150642bccdd66bf194d224b"},
-]
-
-[package.extras]
-docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"]
-testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"]
-
-[metadata]
-lock-version = "2.0"
-python-versions = ">=3.7, <4.0"
-content-hash = "b6ff1c016cffbcd76fb5a342e2beadce57e4a3ec3895cf33f2cad26348c25dfc"
diff --git a/pyproject.toml b/pyproject.toml
index 1be49abf..a2084913 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,31 +1,32 @@
-[tool.poetry]
-name = "openrouteservice"
-version = "2.3.3"
-description = "Python client for requests to openrouteservice API services."
-authors = ["Julian Psotta "]
-readme = 'README.rst'
-license = "Apache2"
-
-[tool.poetry.dependencies]
-python = ">=3.7, <4.0"
-requests = ">=2.31.0"
-responses = ">=0.23.1"
-poetry2conda = "^0.3.0"
-
-
-[tool.poetry.dev-dependencies]
-pytest = ">=7.3.1"
-pytest-cov = ">=4.1.0"
-yapf = ">=0.33.0"
-importlib-metadata = ">=6.6.0"
-virtualenv = { version = ">=20.23.0", python = ">=3.6, <4.0" }
-pre-commit = { version = ">=2.21.0", python = ">=3.6, <4.0" }
-coverage = "^7.2.7"
-pytest-xdist = "^3.3.1"
+[build-system]
+requires = ["setuptools", "setuptools-scm"]
+build-backend = "setuptools.build_meta"
-[tool.pytest.ini_options]
-addopts = "--cov=openrouteservice --cov-report xml --cov-report term-missing --cov-fail-under 96 -n auto"
+[project]
+name = "orspytest"
+version = "7.1.0.post13"
+authors = [
+ {name = "HeiGIT gGmbH", email = "support@smartmobility.heigit.org"},
+]
+description = "Python client for requests to openrouteservice API services"
+readme = "README.md"
+requires-python = ">=3.7"
+keywords = ["routing","accessibility","router","OSM","ORS","openrouteservice","openstreetmap","isochrone","POI","elevation","DEM","swagger"]
+license = {text = "Apache 2.0"}
+classifiers = [
+ "Programming Language :: Python :: 3",
+ "License :: OSI Approved :: Apache Software License",
+ "Operating System :: OS Independent",
+]
+dependencies = [
+ "urllib3 >= 1.15",
+ "six >= 1.10",
+ "certifi",
+ "python-dateutil"
+]
-[build-system]
-requires = ["poetry-core>=1.0.0"]
-build-backend = "poetry.core.masonry.api"
+[project.urls]
+"Homepage" = "https://openrouteservice.org/"
+"Forum" = "https://ask.openrouteservice.org/c/sdks"
+"API Documentation" = "https://openrouteservice.org/documentation/"
+"API Terms of service" = "https://openrouteservice.org/terms-of-service/"
\ No newline at end of file
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000..bafdc075
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
+certifi >= 14.05.14
+six >= 1.10
+python_dateutil >= 2.5.3
+setuptools >= 21.0.0
+urllib3 >= 1.15.1
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000..cf729d55
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from setuptools import setup, find_packages # noqa: H301
+
+NAME = "openrouteservice"
+VERSION = "7.1.0.post6"
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
+
+setup(
+ name=NAME,
+ version=VERSION,
+ description="Openrouteservice",
+ author_email="support@smartmobility.heigit.org",
+ url="https://openrouteservice.org",
+ keywords=["routing","accessibility","router","OSM","ORS","openrouteservice","openstreetmap","isochrone","POI","elevation","DEM","swagger"],
+ install_requires=REQUIRES,
+ packages=find_packages(),
+ include_package_data=True,
+ long_description="""\
+ Python client for requests to openrouteservice API services
+ """
+)
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 00000000..d88e2832
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,5 @@
+coverage>=4.0.3
+nose-py3>=1.6.2
+pluggy>=0.3.1
+py>=1.4.31
+randomize>=0.13
diff --git a/test/__init__.py b/test/__init__.py
index 18f68289..576f56f8 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -1,51 +1 @@
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-
-import unittest
-import openrouteservice
-
-from urllib.parse import urlparse, parse_qsl
-
-# For relative imports to work in Python 3.6
-import os
-import sys
-
-sys.path.append(os.path.dirname(os.path.realpath(__file__)))
-
-
-class TestCase(unittest.TestCase):
- def setUp(self):
- self.key = "sample_key"
- self.client = openrouteservice.Client(self.key)
-
- def assertURLEqual(self, first, second, msg=None):
- """Check that two arguments are equivalent URLs. Ignores the order of
- query arguments.
- """
- first_parsed = urlparse(first)
- second_parsed = urlparse(second)
- self.assertEqual(first_parsed[:3], second_parsed[:3], msg)
-
- first_qsl = sorted(parse_qsl(first_parsed.query))
- second_qsl = sorted(parse_qsl(second_parsed.query))
- self.assertEqual(first_qsl, second_qsl, msg)
-
- def assertDictContainsSubset(self, a, b, **kwargs):
- """Replaces deprecated unittest.TestCase.assertDictContainsSubset"""
- c = dict([(k, b[k]) for k in a.keys() if k in b.keys()])
- self.assertEqual(a, c)
+# coding: utf-8
\ No newline at end of file
diff --git a/test/test_alternative_routes.py b/test/test_alternative_routes.py
new file mode 100644
index 00000000..512ddc5a
--- /dev/null
+++ b/test/test_alternative_routes.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.alternative_routes import AlternativeRoutes # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestAlternativeRoutes(unittest.TestCase):
+ """AlternativeRoutes unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testAlternativeRoutes(self):
+ """Test AlternativeRoutes"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.alternative_routes.AlternativeRoutes() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_client.py b/test/test_client.py
deleted file mode 100644
index f1673db1..00000000
--- a/test/test_client.py
+++ /dev/null
@@ -1,182 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for client module."""
-
-import responses
-import time
-
-import openrouteservice
-from test.test_helper import *
-import test as _test
-
-
-class ClientTest(_test.TestCase):
- def test_no_api_key(self):
- with self.assertRaises(ValueError):
- client = openrouteservice.Client()
- client.directions(PARAM_LINE)
-
- def test_invalid_api_key(self):
- with self.assertRaises(openrouteservice.exceptions.ApiError):
- client = openrouteservice.Client(key="Invalid key.")
- client.directions(PARAM_LINE)
-
- def test_urlencode(self):
- encoded_params = openrouteservice.client._urlencode_params(
- [("address", "=Sydney ~")]
- )
- self.assertEqual("address=%3DSydney+~", encoded_params)
-
- @responses.activate
- def test_raise_over_query_limit(self):
- valid_query = ENDPOINT_DICT["directions"]
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- valid_query["profile"]
- ),
- json=valid_query,
- status=429,
- content_type="application/json",
- )
-
- with self.assertRaises(openrouteservice.exceptions._OverQueryLimit):
- client = openrouteservice.Client(
- key=self.key, retry_over_query_limit=False
- )
- client.directions(**valid_query)
-
- with self.assertRaises(openrouteservice.exceptions.Timeout):
- client = openrouteservice.Client(
- key=self.key, retry_over_query_limit=True, retry_timeout=3
- )
- client.directions(**valid_query)
-
- @responses.activate
- def test_raise_timeout_retriable_requests(self):
- # Mock query gives 503 as HTTP status, code should try a few times to
- # request the same and then fail on Timout() error.
- retry_timeout = 3
- valid_query = ENDPOINT_DICT["directions"]
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- valid_query["profile"]
- ),
- json=valid_query,
- status=503,
- content_type="application/json",
- )
-
- client = openrouteservice.Client(
- key=self.key, retry_timeout=retry_timeout
- )
-
- start = time.time()
- with self.assertRaises(openrouteservice.exceptions.Timeout):
- client.directions(**valid_query)
- end = time.time()
- self.assertTrue(retry_timeout < end - start < 3 * retry_timeout)
-
- @responses.activate
- def test_host_override_with_parameters(self):
- # Test if it's possible to override host for individual hosting.
- responses.add(
- responses.GET,
- "https://foo.com/bar",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- client = openrouteservice.Client(base_url="https://foo.com")
- client.request("/bar", {"bunny": "pretty", "fox": "prettier"})
-
- request = client.req
-
- self.assertEqual(
- "https://foo.com/bar?bunny=pretty&fox=prettier", request.url
- )
- self.assertEqual("GET", request.method)
- self.assertEqual({"bunny": "pretty", "fox": "prettier"}, request.params)
-
- self.assertURLEqual(
- "https://foo.com/bar?bunny=pretty&fox=prettier",
- responses.calls[0].request.url,
- )
- self.assertEqual(1, len(responses.calls))
-
- @responses.activate
- def test_dry_run(self):
- # Test that nothing is requested when dry_run is 'true'
-
- responses.add(
- responses.GET,
- "https://api.openrouteservice.org/directions",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- req = self.client.request(
- get_params={"format_out": "geojson"},
- url="directions/",
- dry_run="true",
- )
-
- self.assertEqual(0, len(responses.calls))
-
- @responses.activate
- def test_no_get_parameter(self):
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/directions",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- req = self.client.request(
- post_json={}, url="v2/directions/driving-car/json", dry_run="true"
- )
-
- self.assertEqual(0, len(responses.calls))
-
- # Test if the client works with a post request without a get parameter
-
- @responses.activate
- def test_key_in_header(self):
- # Test that API key is being put in the Authorization header
- query = ENDPOINT_DICT["directions"]
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=ENDPOINT_DICT["directions"],
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.directions(**query)
-
- self.assertDictContainsSubset(
- {"Authorization": self.key}, responses.calls[0].request.headers
- )
diff --git a/test/test_convert.py b/test/test_convert.py
deleted file mode 100644
index e0cea774..00000000
--- a/test/test_convert.py
+++ /dev/null
@@ -1,113 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the convert module."""
-
-import unittest
-
-from openrouteservice import convert
-
-
-class ConvertTest(unittest.TestCase):
- def test_build_single_coord_tuple(self):
- expected = "1,2"
- ll = (1, 2)
- self.assertEqual(expected, convert._build_coords(ll))
-
- ll = [1, 2]
- self.assertEqual(expected, convert._build_coords(ll))
-
- with self.assertRaises(TypeError):
- convert._build_coords(1)
-
- with self.assertRaises(TypeError):
- convert._build_coords({"lat": 1, "lon": 2})
-
- with self.assertRaises(TypeError):
- convert._build_coords("1,2")
-
- def test_build_multi_coord_tuple(self):
- expected = "1,2|3,4"
-
- ll = ((1, 2), (3, 4))
- self.assertEqual(expected, convert._build_coords(ll))
-
- ll = [(1, 2), (3, 4)]
- self.assertEqual(expected, convert._build_coords(ll))
-
- ll = ([1, 2], [3, 4])
- self.assertEqual(expected, convert._build_coords(ll))
-
- ll = [[1, 2], [3, 4]]
- self.assertEqual(expected, convert._build_coords(ll))
-
- with self.assertRaises(TypeError):
- convert._build_coords({{"lat": 1, "lon": 2}, {"lat": 3, "lon": 4}})
-
- with self.assertRaises(TypeError):
- convert._build_coords("[1,2],[3,4]")
-
- def test_convert_bool(self):
- self.assertEqual("true", convert._convert_bool("True"))
- self.assertEqual("true", convert._convert_bool("true"))
- self.assertEqual("true", convert._convert_bool(True))
-
- def test_polyline_decode_3d(self):
- syd_mel_route = (
- r"mlqlHat`t@OiACMvAs@HCPGJ?JAJBRFTRLJPNHDNDJ"
- "@D?fACRAZCPAb@AF?HAfBQJEDAn@QFC@QD_@@QFe@Bg"
- "@@KBy@?M@a@@q@?iE?C?OGgAkEwUQ{@c@gBQeAYeCIe"
- "AWmDAIImACUOyBIeAC}@Ey@?QLC@_@@KBiAVmDF]Ni@"
- "Zu@RYBA^_@~A{A`Ai@JCPGf@Qf@]X_@BMAMIKuBTI?G"
- "E?A?ADOnCsB\c@DGDIl@sAJUFMBGJUP[DCD@DP@l@?R"
- "?h@Bx@PnAAl@?BAFc@rAAB?@BRHBFEN[FQFQRg@Rw@J"
- "g@Ny@DUDOJe@N_ADm@BkBGcC@s@Du@l@eEZgBP_AHe@"
- "He@Fc@RuATaA?SCWAGIOQS[Qu@Ym@C}@R{@`@m@p@Wj"
- "@]nAGBE?KGAE?E?KVcB`@eB^mAn@uALUJSj@y@fA}@f"
- "@k@BGHM^k@r@qAHSLU^i@bA_Af@q@PYFKHIHCJ?RLFN"
- "XjAj@tDj@rERzBLzCHp@xAdKLf@RXTDNEBCFGDEDE@G"
- "@GDKBGRc@Xi@N[JUf@u@l@o@f@c@h@]XMfQ}D|EcAlA"
- "ORIJQ?C?CAUKOSGwAMa@M_EsBcBqA_A{@k@q@sCcEi@"
- "gAWo@[gAYyAMy@y@aNMyAc@uDS_As@uBMc@Ig@SeBKc"
- "@Uy@AI@A]GGCMIiCmAGCWMqAk@"
- )
-
- points = convert.decode_polyline(syd_mel_route, True)["coordinates"]
- self.assertEqual(len(points[0]), 3)
- self.assertAlmostEqual(8.69201, points[0][0], places=5)
- self.assertAlmostEqual(49.410151, points[0][1], places=5)
- self.assertAlmostEqual(0.1, points[0][2], places=2)
- self.assertAlmostEqual(8.69917, points[-1][0], places=5)
- self.assertAlmostEqual(49.41868, points[-1][1], places=5)
- self.assertAlmostEqual(12.5, points[-1][2], places=2)
-
- def test_polyline_decode_2d(self):
- syd_mel_route = r"u`rgFswjpAKD"
-
- points = convert.decode_polyline(syd_mel_route, False)["coordinates"]
- self.assertEqual(len(points[0]), 2)
- self.assertAlmostEqual([13.3313, 38.10843], points[0], places=5)
- self.assertAlmostEqual([13.33127, 38.10849], points[1], places=5)
-
- def test_pipe_list_bad_argument(self):
- with self.assertRaises(TypeError):
- convert._pipe_list(5)
-
- def test_comma_list_bad_argument(self):
- with self.assertRaises(TypeError):
- convert._comma_list(5)
diff --git a/test/test_deprecation_warning.py b/test/test_deprecation_warning.py
deleted file mode 100644
index 0377f861..00000000
--- a/test/test_deprecation_warning.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import warnings
-
-from openrouteservice import deprecation
-
-with warnings.catch_warnings(record=True) as w:
- # Cause all warnings to always be triggered.
- warnings.simplefilter("always")
- # Trigger a warning.
- deprecation.warning("foo", "bar")
- # Verify some things
- assert len(w) == 1
- assert issubclass(w[-1].category, DeprecationWarning)
- assert "deprecated" in str(w[-1].message)
diff --git a/test/test_directions.py b/test/test_directions.py
deleted file mode 100644
index 6fb3b664..00000000
--- a/test/test_directions.py
+++ /dev/null
@@ -1,230 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the directions module."""
-
-import responses
-import warnings
-
-import test as _test
-from copy import deepcopy
-
-from openrouteservice import exceptions
-from test.test_helper import ENDPOINT_DICT, GPX_RESPONSE
-
-
-class DirectionsTest(_test.TestCase):
- valid_query = ENDPOINT_DICT["directions"]
-
- @responses.activate
- def test_directions(self):
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- self.valid_query["profile"]
- ),
- json=self.valid_query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.directions(**self.valid_query)
-
- self.assertEqual(resp, self.valid_query)
- self.assertIn("sample_key", responses.calls[0].request.headers.values())
-
- @responses.activate
- def test_directions_gpx(self):
- query = deepcopy(self.valid_query)
- query["format"] = "gpx"
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/gpx".format(
- self.valid_query["profile"]
- ),
- body=GPX_RESPONSE,
- status=200,
- content_type="application/gpx+xml;charset=UTF-8",
- )
-
- resp = self.client.directions(**query)
-
- self.assertEqual(resp, GPX_RESPONSE)
- self.assertIn("sample_key", responses.calls[0].request.headers.values())
-
- @responses.activate
- def test_directions_incompatible_parameters(self):
- self.valid_query["optimized"] = True
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- self.valid_query["profile"]
- ),
- json=self.valid_query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.directions(**self.valid_query)
-
- self.assertEqual(resp, self.valid_query)
- self.assertIn("sample_key", responses.calls[0].request.headers.values())
-
- def test_format_out_deprecation(self):
- bad_query = deepcopy(self.valid_query)
- bad_query["format_out"] = "json"
- bad_query["dry_run"] = True
-
- with warnings.catch_warnings(record=True) as w:
- # Cause all warnings to always be triggered.
- warnings.simplefilter("always")
- # Trigger a warning.
- _ = self.client.directions(**bad_query)
-
- assert len(w) == 1
- assert issubclass(w[-1].category, DeprecationWarning)
- assert "deprecated" in str(w[-1].message)
-
- def test_optimized_waypoints(self):
- query = deepcopy(self.valid_query)
- query["coordinates"] = [
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- ]
- query["optimize_waypoints"] = True
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- # Too exhausting to really test this
- with self.assertRaises(exceptions.ApiError):
- resp = self.client.directions(**query)
-
- def test_optimized_waypoints_shuffle(self):
- query = deepcopy(self.valid_query)
- query["coordinates"] = [
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- ]
- query["optimize_waypoints"] = True
- query.pop("options")
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
- with self.assertRaises(exceptions.ApiError):
- resp = self.client.directions(**query)
-
- @responses.activate
- def test_optimize_warnings(self):
- query = deepcopy(self.valid_query)
- query["optimize_waypoints"] = True
-
- # Test Coordinates
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- with warnings.catch_warnings(record=True) as w:
- # Cause all warnings to always be triggered.
- warnings.simplefilter("always")
-
- resp = self.client.directions(**query)
-
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
- assert "4 coordinates" in str(w[-1].message)
-
- # Test Options
-
- query["coordinates"] = [
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- [8.688641, 49.420577],
- [8.680916, 49.415776],
- ]
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- with warnings.catch_warnings(record=True) as w:
- # Cause all warnings to always be triggered.
- warnings.simplefilter("always")
-
- resp = self.client.directions(**query)
-
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
- assert "Options" in str(w[-1].message)
-
- # Test Preference
-
- query["options"] = None
- query["preference"] = "shortest"
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/directions/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- with warnings.catch_warnings(record=True) as w:
- # Cause all warnings to always be triggered.
- warnings.simplefilter("always")
-
- resp = self.client.directions(**query)
-
- assert len(w) == 1
- assert issubclass(w[-1].category, UserWarning)
- assert "Shortest" in str(w[-1].message)
diff --git a/test/test_directions_service.py b/test/test_directions_service.py
new file mode 100644
index 00000000..3c00a3c6
--- /dev/null
+++ b/test/test_directions_service.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.directions_service import DirectionsService # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestDirectionsService(unittest.TestCase):
+ """DirectionsService unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testDirectionsService(self):
+ """Test DirectionsService"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.directions_service.DirectionsService() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_directions_service1.py b/test/test_directions_service1.py
new file mode 100644
index 00000000..7898a730
--- /dev/null
+++ b/test/test_directions_service1.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.directions_service1 import DirectionsService1 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestDirectionsService1(unittest.TestCase):
+ """DirectionsService1 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testDirectionsService1(self):
+ """Test DirectionsService1"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.directions_service1.DirectionsService1() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_directions_service_api.py b/test/test_directions_service_api.py
new file mode 100644
index 00000000..50043dad
--- /dev/null
+++ b/test/test_directions_service_api.py
@@ -0,0 +1,75 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.directions_service_api import DirectionsServiceApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestDirectionsServiceApi(unittest.TestCase):
+ """DirectionsServiceApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = DirectionsServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_get_geo_json_route(self):
+ """Test case for get_geo_json_route
+
+ Directions Service GeoJSON # noqa: E501
+ """
+ body = openrouteservice.DirectionsService(
+ coordinates=[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]]
+ )
+ profile = 'driving-car'
+ response = self.api.get_geo_json_route(body, profile)
+ self.assertEqual(response.bbox, [8.681423, 49.414599, 8.690123, 49.420514])
+
+ #def test_get_gpx_route(self):
+ # """Test case for get_gpx_route
+ #
+ # Directions Service GPX # noqa: E501
+ # """
+ # coordinates = [[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]]
+ # body = openrouteservice.DirectionsService1(
+ # coordinates=coordinates
+ # )
+ # profile = 'driving-car'
+ # response = self.api.get_gpx_route(body, profile)
+ # self.assertIsNotNone(response)
+
+ def test_get_json_route(self):
+ """Test case for get_json_route
+
+ Directions Service JSON # noqa: E501
+ """
+ body = openrouteservice.DirectionsService1(
+ coordinates=[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]]
+ )
+ profile = 'driving-car'
+ response = self.api.get_json_route(body, profile)
+ self.assertIsNotNone(response)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_distance_matrix.py b/test/test_distance_matrix.py
deleted file mode 100644
index 6047af6c..00000000
--- a/test/test_distance_matrix.py
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the distance matrix module."""
-import responses
-import test as _test
-
-from test.test_helper import ENDPOINT_DICT, PARAM_LINE
-
-
-class DistanceMatrixTest(_test.TestCase):
- valid_query = ENDPOINT_DICT["distance_matrix"]
-
- @responses.activate
- def test_matrix(self):
- query = self.valid_query.copy()
- query["locations"] = tuple([tuple(x) for x in PARAM_LINE])
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/matrix/{}/json".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.distance_matrix(**query)
- self.assertEqual(resp, self.valid_query)
diff --git a/test/test_elevation.py b/test/test_elevation.py
deleted file mode 100644
index f44bc523..00000000
--- a/test/test_elevation.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-"""Tests for the distance matrix module."""
-import responses
-import test as _test
-
-from test.test_helper import ENDPOINT_DICT
-
-
-class ElevationTest(_test.TestCase):
- valid_query = ENDPOINT_DICT["elevation_line"]
-
- @responses.activate
- def test_elevation_line(self):
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/elevation/line",
- json=self.valid_query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.elevation_line(**self.valid_query)
-
- self.assertEqual(len(responses.calls), 1)
- self.assertEqual(resp, self.valid_query)
-
- @responses.activate
- def test_elevation_point(self):
- query = ENDPOINT_DICT["elevation_point"]
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/elevation/point",
- json=self.valid_query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.elevation_point(**query)
-
- self.assertEqual(len(responses.calls), 1)
- self.assertEqual(resp, self.valid_query)
diff --git a/test/test_elevation_api.py b/test/test_elevation_api.py
new file mode 100644
index 00000000..8aa84390
--- /dev/null
+++ b/test/test_elevation_api.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.elevation_api import ElevationApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestElevationApi(unittest.TestCase):
+ """ElevationApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = ElevationApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_elevation_line_post(self):
+ """Test case for elevation_line_post
+
+ Elevation Line Service # noqa: E501
+ """
+ body = openrouteservice.ElevationLineBody(
+ format_in="encodedpolyline5",
+ geometry="u`rgFswjpAKD"
+ )
+ response = self.api.elevation_line_post(body)
+ self.assertEqual(response.geometry.coordinates[0], [13.3313, 38.10843, 72.0])
+
+ def test_elevation_point_get(self):
+ """Test case for elevation_point_get
+
+ Elevation Point Service # noqa: E501
+ """
+ response = self.api.elevation_point_get(geometry=[13.331273, 38.10849])
+ self.assertEqual(response.geometry.coordinates, [13.331273,38.10849,72])
+
+ def test_elevation_point_post(self):
+ """Test case for elevation_point_post
+
+ Elevation Point Service # noqa: E501
+ """
+ body = openrouteservice.ElevationPointBody(
+ format_in='point',
+ geometry=[13.331273, 38.10849]
+ )
+
+ response = self.api.elevation_point_post(body)
+ self.assertEqual(response.geometry.coordinates, [13.331273,38.10849,72])
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_elevation_line_body.py b/test/test_elevation_line_body.py
new file mode 100644
index 00000000..833195af
--- /dev/null
+++ b/test/test_elevation_line_body.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.elevation_line_body import ElevationLineBody # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestElevationLineBody(unittest.TestCase):
+ """ElevationLineBody unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testElevationLineBody(self):
+ """Test ElevationLineBody"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.elevation_line_body.ElevationLineBody() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_elevation_point_body.py b/test/test_elevation_point_body.py
new file mode 100644
index 00000000..1e5e4c96
--- /dev/null
+++ b/test/test_elevation_point_body.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.elevation_point_body import ElevationPointBody # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestElevationPointBody(unittest.TestCase):
+ """ElevationPointBody unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testElevationPointBody(self):
+ """Test ElevationPointBody"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.elevation_point_body.ElevationPointBody() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_engine_info.py b/test/test_engine_info.py
new file mode 100644
index 00000000..b9fdfebd
--- /dev/null
+++ b/test/test_engine_info.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.engine_info import EngineInfo # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestEngineInfo(unittest.TestCase):
+ """EngineInfo unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testEngineInfo(self):
+ """Test EngineInfo"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.engine_info.EngineInfo() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_exceptions.py b/test/test_exceptions.py
deleted file mode 100644
index c617b4b9..00000000
--- a/test/test_exceptions.py
+++ /dev/null
@@ -1,60 +0,0 @@
-from openrouteservice.exceptions import (
- ValidationError,
- ApiError,
- HTTPError,
- Timeout,
- _RetriableRequest,
- _OverQueryLimit,
-)
-
-import test as _test
-
-from pprint import pprint
-
-
-class ExceptionTest(_test.TestCase):
- def test_ValidationError(self):
- exception = ValidationError("hamspam")
-
- pprint(exception.__dict__)
- self.assertIsInstance(exception, Exception)
-
- def test_ApIError(self):
- exception = ApiError(500, "hamspam")
-
- pprint(exception.__dict__)
-
- self.assertEqual(exception.status, 500)
- self.assertEqual(exception.message, "hamspam")
-
- self.assertEqual(str(exception), "500 (hamspam)")
-
- exception = ApiError(500)
-
- self.assertEqual(str(exception), "500")
-
- def test_HTTPError(self):
- exception = HTTPError(500)
-
- self.assertEqual(exception.status_code, 500)
-
- self.assertEqual(str(exception), "HTTP Error: 500")
-
- def test_Timeout(self):
- exception = Timeout()
-
- self.assertIsInstance(exception, Exception)
-
- def test_RetriableRequest(self):
- exception = _RetriableRequest()
-
- self.assertIsInstance(exception, Exception)
-
- def test_OverQueryLimit(self):
- exception = _OverQueryLimit(500, "hamspam")
-
- self.assertIsInstance(exception, Exception)
- self.assertIsInstance(exception, ApiError)
- self.assertIsInstance(exception, _RetriableRequest)
-
- self.assertEqual(str(exception), "500 (hamspam)")
diff --git a/test/test_geo_json_features_object.py b/test/test_geo_json_features_object.py
new file mode 100644
index 00000000..88c4d69a
--- /dev/null
+++ b/test/test_geo_json_features_object.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONFeaturesObject(unittest.TestCase):
+ """GeoJSONFeaturesObject unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONFeaturesObject(self):
+ """Test GeoJSONFeaturesObject"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_features_object.GeoJSONFeaturesObject() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_geometry_object.py b/test/test_geo_json_geometry_object.py
new file mode 100644
index 00000000..9e75de83
--- /dev/null
+++ b/test/test_geo_json_geometry_object.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONGeometryObject(unittest.TestCase):
+ """GeoJSONGeometryObject unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONGeometryObject(self):
+ """Test GeoJSONGeometryObject"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_geometry_object.GeoJSONGeometryObject() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrone_base.py b/test/test_geo_json_isochrone_base.py
new file mode 100644
index 00000000..361cf33b
--- /dev/null
+++ b/test/test_geo_json_isochrone_base.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochroneBase(unittest.TestCase):
+ """GeoJSONIsochroneBase unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochroneBase(self):
+ """Test GeoJSONIsochroneBase"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrone_base.GeoJSONIsochroneBase() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrone_base_geometry.py b/test/test_geo_json_isochrone_base_geometry.py
new file mode 100644
index 00000000..d5806f8a
--- /dev/null
+++ b/test/test_geo_json_isochrone_base_geometry.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochroneBaseGeometry(unittest.TestCase):
+ """GeoJSONIsochroneBaseGeometry unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochroneBaseGeometry(self):
+ """Test GeoJSONIsochroneBaseGeometry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrone_base_geometry.GeoJSONIsochroneBaseGeometry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrones_response.py b/test/test_geo_json_isochrones_response.py
new file mode 100644
index 00000000..7b520f95
--- /dev/null
+++ b/test/test_geo_json_isochrones_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochronesResponse(unittest.TestCase):
+ """GeoJSONIsochronesResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochronesResponse(self):
+ """Test GeoJSONIsochronesResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrones_response.GeoJSONIsochronesResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrones_response_features.py b/test/test_geo_json_isochrones_response_features.py
new file mode 100644
index 00000000..800dc49e
--- /dev/null
+++ b/test/test_geo_json_isochrones_response_features.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochronesResponseFeatures(unittest.TestCase):
+ """GeoJSONIsochronesResponseFeatures unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochronesResponseFeatures(self):
+ """Test GeoJSONIsochronesResponseFeatures"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrones_response_features.GeoJSONIsochronesResponseFeatures() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrones_response_metadata.py b/test/test_geo_json_isochrones_response_metadata.py
new file mode 100644
index 00000000..bc0a00ed
--- /dev/null
+++ b/test/test_geo_json_isochrones_response_metadata.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochronesResponseMetadata(unittest.TestCase):
+ """GeoJSONIsochronesResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochronesResponseMetadata(self):
+ """Test GeoJSONIsochronesResponseMetadata"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrones_response_metadata.GeoJSONIsochronesResponseMetadata() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_isochrones_response_metadata_engine.py b/test/test_geo_json_isochrones_response_metadata_engine.py
new file mode 100644
index 00000000..0f9ed6a6
--- /dev/null
+++ b/test/test_geo_json_isochrones_response_metadata_engine.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONIsochronesResponseMetadataEngine(unittest.TestCase):
+ """GeoJSONIsochronesResponseMetadataEngine unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONIsochronesResponseMetadataEngine(self):
+ """Test GeoJSONIsochronesResponseMetadataEngine"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_isochrones_response_metadata_engine.GeoJSONIsochronesResponseMetadataEngine() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_properties_object.py b/test/test_geo_json_properties_object.py
new file mode 100644
index 00000000..cfa857ac
--- /dev/null
+++ b/test/test_geo_json_properties_object.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONPropertiesObject(unittest.TestCase):
+ """GeoJSONPropertiesObject unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONPropertiesObject(self):
+ """Test GeoJSONPropertiesObject"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_properties_object.GeoJSONPropertiesObject() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_properties_object_category_ids.py b/test/test_geo_json_properties_object_category_ids.py
new file mode 100644
index 00000000..c878675f
--- /dev/null
+++ b/test/test_geo_json_properties_object_category_ids.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONPropertiesObjectCategoryIds(unittest.TestCase):
+ """GeoJSONPropertiesObjectCategoryIds unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONPropertiesObjectCategoryIds(self):
+ """Test GeoJSONPropertiesObjectCategoryIds"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_properties_object_category_ids.GeoJSONPropertiesObjectCategoryIds() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_properties_object_category_ids_category_id.py b/test/test_geo_json_properties_object_category_ids_category_id.py
new file mode 100644
index 00000000..3189aeaf
--- /dev/null
+++ b/test/test_geo_json_properties_object_category_ids_category_id.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONPropertiesObjectCategoryIdsCategoryId(unittest.TestCase):
+ """GeoJSONPropertiesObjectCategoryIdsCategoryId unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONPropertiesObjectCategoryIdsCategoryId(self):
+ """Test GeoJSONPropertiesObjectCategoryIdsCategoryId"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_properties_object_category_ids_category_id.GeoJSONPropertiesObjectCategoryIdsCategoryId() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_properties_object_osm_tags.py b/test/test_geo_json_properties_object_osm_tags.py
new file mode 100644
index 00000000..b8aa4e4e
--- /dev/null
+++ b/test/test_geo_json_properties_object_osm_tags.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONPropertiesObjectOsmTags(unittest.TestCase):
+ """GeoJSONPropertiesObjectOsmTags unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONPropertiesObjectOsmTags(self):
+ """Test GeoJSONPropertiesObjectOsmTags"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_properties_object_osm_tags.GeoJSONPropertiesObjectOsmTags() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_route_response.py b/test/test_geo_json_route_response.py
new file mode 100644
index 00000000..0d2a515a
--- /dev/null
+++ b/test/test_geo_json_route_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONRouteResponse(unittest.TestCase):
+ """GeoJSONRouteResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONRouteResponse(self):
+ """Test GeoJSONRouteResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_route_response.GeoJSONRouteResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geo_json_route_response_metadata.py b/test/test_geo_json_route_response_metadata.py
new file mode 100644
index 00000000..4aa10914
--- /dev/null
+++ b/test/test_geo_json_route_response_metadata.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeoJSONRouteResponseMetadata(unittest.TestCase):
+ """GeoJSONRouteResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeoJSONRouteResponseMetadata(self):
+ """Test GeoJSONRouteResponseMetadata"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geo_json_route_response_metadata.GeoJSONRouteResponseMetadata() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geocode.py b/test/test_geocode.py
deleted file mode 100644
index 18106a2d..00000000
--- a/test/test_geocode.py
+++ /dev/null
@@ -1,102 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-"""Tests for the Pelias geocoding module."""
-
-import responses
-
-import test as _test
-from test.test_helper import ENDPOINT_DICT
-
-
-class GeocodingPeliasTest(_test.TestCase):
- search = ENDPOINT_DICT["pelias_search"]
- autocomplete = ENDPOINT_DICT["pelias_autocomplete"]
- structured = ENDPOINT_DICT["pelias_structured"]
- reverse = ENDPOINT_DICT["pelias_reverse"]
-
- @responses.activate
- def test_pelias_search(self):
- responses.add(
- responses.GET,
- "https://api.openrouteservice.org/geocode/search",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- results = self.client.pelias_search(**self.search)
-
- self.assertEqual(1, len(responses.calls))
- self.assertURLEqual(
- "https://api.openrouteservice.org/geocode/search?boundary.circle.lat=48.23424&boundary.circle.lon=8.34234&boundary.circle.radius=50&boundary.country=de&boundary.rect.max_lat=501&boundary.rect.max_lon=501&boundary.rect.min_lat=500&boundary.rect.min_lon=500&focus.point.lat=48.23424&focus.point.lon=8.34234&layers=locality%2Ccounty%2Cregion&size=50&sources=osm%2Cwof%2Cgn&text=Heidelberg",
- responses.calls[0].request.url,
- )
-
- @responses.activate
- def test_pelias_autocomplete(self):
- responses.add(
- responses.GET,
- "https://api.openrouteservice.org/geocode/autocomplete",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- results = self.client.pelias_autocomplete(**self.autocomplete)
-
- self.assertEqual(1, len(responses.calls))
- self.assertURLEqual(
- "https://api.openrouteservice.org/geocode/autocomplete?boundary.country=de&boundary.rect.max_lon%09=500&boundary.rect.min_lat%09=500&boundary.rect.min_lon%09=500&focus.point.lat=48.23424&focus.point.lon=8.34234&layers=locality%2Ccounty%2Cregion&sources=osm%2Cwof%2Cgn&text=Heidelberg",
- responses.calls[0].request.url,
- )
-
- @responses.activate
- def test_pelias_structured(self):
- responses.add(
- responses.GET,
- "https://api.openrouteservice.org/geocode/search/structured",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- results = self.client.pelias_structured(**self.structured)
-
- self.assertEqual(1, len(responses.calls))
- self.assertURLEqual(
- "https://api.openrouteservice.org/geocode/search/structured?address=Berliner+Stra%C3%9Fe+45&borough=Heidelberg&country=de&county=Rhein-Neckar-Kreis&locality=Heidelberg&neighbourhood=Neuenheimer+Feld&postalcode=69120®ion=Baden-W%C3%BCrttemberg",
- responses.calls[0].request.url,
- )
-
- @responses.activate
- def test_pelias_reverse(self):
- responses.add(
- responses.GET,
- "https://api.openrouteservice.org/geocode/reverse",
- body='{"status":"OK","results":[]}',
- status=200,
- content_type="application/json",
- )
-
- results = self.client.pelias_reverse(**self.reverse)
-
- self.assertEqual(1, len(responses.calls))
- self.assertURLEqual(
- "https://api.openrouteservice.org/geocode/reverse?boundary.circle.radius=50&boundary.country=de&layers=locality%2Ccounty%2Cregion&point.lat=48.23424&point.lon=8.34234&size=50&sources=osm%2Cwof%2Cgn",
- responses.calls[0].request.url,
- )
diff --git a/test/test_geocode_api.py b/test/test_geocode_api.py
new file mode 100644
index 00000000..c67602a7
--- /dev/null
+++ b/test/test_geocode_api.py
@@ -0,0 +1,77 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.geocode_api import GeocodeApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeocodeApi(unittest.TestCase):
+ """GeocodeApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = GeocodeApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_geocode_autocomplete_get(self):
+ """Test case for geocode_autocomplete_get
+
+ Geocode Autocomplete Service # noqa: E501
+ """
+ text = "Toky"
+ response = self.api.geocode_autocomplete_get(text)
+ self.assertIsNotNone(response)
+ self.assertEqual(len(response.features), 10)
+
+ def test_geocode_reverse_get(self):
+ """Test case for geocode_reverse_get
+
+ Reverse Geocode Service # noqa: E501
+ """
+ lon = 2.294471
+ lat = 48.858268
+ response = self.api.geocode_reverse_get(lon, lat)
+ self.assertIsNotNone(response)
+ self.assertEqual(len(response.features), 10)
+
+ def test_geocode_search_get(self):
+ """Test case for geocode_search_get
+
+ Forward Geocode Service # noqa: E501
+ """
+ text = "Namibian Brewery"
+ response = self.api.geocode_search_get(text)
+ self.assertIsNotNone(response)
+ self.assertEqual(len(response.features), 10)
+
+ def test_geocode_search_structured_get(self):
+ """Test case for geocode_search_structured_get
+
+ Structured Forward Geocode Service (beta) # noqa: E501
+ """
+ response = self.api.geocode_search_structured_get(locality='Tokyo')
+ self.assertIsNotNone(response)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_geocode_response.py b/test/test_geocode_response.py
new file mode 100644
index 00000000..8ed19268
--- /dev/null
+++ b/test/test_geocode_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.geocode_response import GeocodeResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGeocodeResponse(unittest.TestCase):
+ """GeocodeResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGeocodeResponse(self):
+ """Test GeocodeResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.geocode_response.GeocodeResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_gpx.py b/test/test_gpx.py
new file mode 100644
index 00000000..3977fb42
--- /dev/null
+++ b/test/test_gpx.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.gpx import Gpx # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGpx(unittest.TestCase):
+ """Gpx unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGpx(self):
+ """Test Gpx"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.gpx.Gpx() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_graph_export_service.py b/test/test_graph_export_service.py
new file mode 100644
index 00000000..14359931
--- /dev/null
+++ b/test/test_graph_export_service.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.graph_export_service import GraphExportService # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestGraphExportService(unittest.TestCase):
+ """GraphExportService unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testGraphExportService(self):
+ """Test GraphExportService"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.graph_export_service.GraphExportService() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_helper.py b/test/test_helper.py
deleted file mode 100644
index 338c3697..00000000
--- a/test/test_helper.py
+++ /dev/null
@@ -1,256 +0,0 @@
-# -*- coding: utf-8 -*-
-
-PARAM_POINT = [8.34234, 48.23424]
-PARAM_LINE = [[8.688641, 49.420577], [8.680916, 49.415776]]
-PARAM_POLY = [[[8.688641, 49.420577], [8.680916, 49.415776]]]
-
-PARAM_INT_BIG = 500
-PARAM_INT_SMALL = 50
-PARAM_LIST_ONE = [PARAM_INT_SMALL, PARAM_INT_SMALL]
-PARAM_LIST_TWO = [PARAM_LIST_ONE, PARAM_LIST_ONE]
-
-PARAM_GEOJSON_POINT = {"type": "Point", "coordinates": PARAM_POINT}
-PARAM_GEOJSON_LINE = {"type": "LineString", "coordinates": PARAM_LINE}
-PARAM_GEOJSON_POLY = {"type": "Polygon", "coordinates": PARAM_POLY}
-
-ENDPOINT_DICT = {
- "directions": {
- "coordinates": PARAM_LINE,
- "profile": "driving-car",
- "preference": "fastest",
- "format": "geojson",
- "units": "mi",
- "language": "en",
- "geometry": "true",
- "geometry_simplify": "false",
- "maneuvers": True,
- "suppress_warnings": False,
- "instructions": "false",
- "instructions_format": "html",
- "alternative_routes": {
- "share_factor": 0.6,
- "target_count": 2,
- "weight_factor": 1.4,
- },
- "roundabout_exits": "true",
- "attributes": ["avgspeed"],
- "radiuses": PARAM_LIST_ONE,
- "bearings": PARAM_LIST_TWO,
- "skip_segments": [0, 1],
- "elevation": "true",
- "maximum_speed": 95,
- "extra_info": ["roadaccessrestrictions"],
- "optimized": "false",
- "continue_straight": True,
- "options": {"avoid_features": ["highways", "tollways"]},
- },
- "isochrones": {
- "locations": PARAM_LINE,
- "profile": "cycling-regular",
- "range_type": "distance",
- "range": [PARAM_INT_BIG],
- "units": "m",
- "location_type": "destination",
- "attributes": ["area", "reachfactor"],
- "interval": [PARAM_INT_SMALL],
- "intersections": "true",
- "options": {"avoid_features": ["highways", "tollways"]},
- },
- "distance_matrix": {
- "locations": PARAM_LINE,
- "sources": [1],
- "destinations": [0],
- "profile": "driving-car",
- "metrics": ["duration", "distance"],
- "resolve_locations": "true",
- "units": "mi",
- "optimized": "false",
- },
- "elevation_point": {
- "format_in": "geojson",
- "format_out": "point",
- "geometry": PARAM_GEOJSON_POINT,
- "dataset": "srtm",
- },
- "elevation_line": {
- "format_in": "geojson",
- "format_out": "polyline",
- "geometry": PARAM_GEOJSON_LINE,
- "dataset": "srtm",
- },
- "pelias_search": {
- "text": "Heidelberg",
- "focus_point": PARAM_POINT,
- "rect_min_x": PARAM_INT_BIG,
- "rect_min_y": PARAM_INT_BIG,
- "rect_max_x": PARAM_INT_BIG + 1,
- "rect_max_y": PARAM_INT_BIG + 1,
- "circle_point": PARAM_POINT,
- "circle_radius": PARAM_INT_SMALL,
- "sources": ["osm", "wof", "gn"],
- "layers": ["locality", "county", "region"],
- "country": "de",
- "size": PARAM_INT_SMALL,
- },
- "pelias_autocomplete": {
- "text": "Heidelberg",
- "focus_point": PARAM_POINT,
- "rect_min_x": PARAM_INT_BIG,
- "rect_min_y": PARAM_INT_BIG,
- "rect_max_x": PARAM_INT_BIG,
- "rect_max_y": PARAM_INT_BIG,
- "sources": ["osm", "wof", "gn"],
- "layers": ["locality", "county", "region"],
- "country": "de",
- },
- "pelias_structured": {
- "address": "Berliner Straße 45",
- "neighbourhood": "Neuenheimer Feld",
- "borough": "Heidelberg",
- "locality": "Heidelberg",
- "county": "Rhein-Neckar-Kreis",
- "region": "Baden-Württemberg",
- "postalcode": 69120,
- "country": "de",
- },
- "pelias_reverse": {
- "point": PARAM_POINT,
- "circle_radius": PARAM_INT_SMALL,
- "sources": ["osm", "wof", "gn"],
- "layers": ["locality", "county", "region"],
- "country": "de",
- "size": PARAM_INT_SMALL,
- },
- "pois": {
- "request": "pois",
- "geojson": PARAM_GEOJSON_POINT,
- "bbox": PARAM_LINE,
- "buffer": PARAM_INT_SMALL,
- "filter_category_ids": [PARAM_INT_SMALL],
- "filter_category_group_ids": [PARAM_INT_BIG],
- "filters_custom": {
- "name": "Deli",
- "wheelchair": ["yes", "limited"],
- "smoking": ["dedicated", "separated"],
- "fee": ["yes", "no"],
- },
- "limit": PARAM_INT_SMALL,
- "sortby": "distance",
- },
- "optimization": {
- "shipments": [
- {
- "pickup": {
- "id": 0,
- "location": [8.688641, 49.420577],
- "location_index": 0,
- "service": 500,
- "time_windows": [[50, 50]],
- },
- "delivery": {
- "id": 0,
- "location": [8.688641, 49.420577],
- "location_index": 0,
- "service": 500,
- "time_windows": [[50, 50]],
- },
- "amount": [50],
- "skills": [50, 50],
- "priority": 50,
- },
- {
- "pickup": {
- "id": 1,
- "location": [8.680916, 49.415776],
- "location_index": 1,
- "service": 500,
- "time_windows": [[50, 50]],
- },
- "delivery": {
- "id": 1,
- "location": [8.680916, 49.415776],
- "location_index": 1,
- "service": 500,
- "time_windows": [[50, 50]],
- },
- "amount": [50],
- "skills": [50, 50],
- "priority": 50,
- },
- ],
- "jobs": [
- {
- "id": 0,
- "location": PARAM_LINE[0],
- "location_index": 0,
- "service": PARAM_INT_BIG,
- "amount": [PARAM_INT_SMALL],
- "skills": PARAM_LIST_ONE,
- "priority": PARAM_INT_SMALL,
- "time_windows": [PARAM_LIST_ONE],
- },
- {
- "id": 1,
- "location": PARAM_LINE[1],
- "location_index": 1,
- "service": PARAM_INT_BIG,
- "amount": [PARAM_INT_SMALL],
- "skills": PARAM_LIST_ONE,
- "priority": PARAM_INT_SMALL,
- "time_windows": [PARAM_LIST_ONE],
- },
- ],
- "vehicles": [
- {
- "id": 0,
- "profile": "driving-car",
- "start": PARAM_LINE[0],
- "start_index": 0,
- "end_index": 0,
- "end": PARAM_LINE[0],
- "capacity": [PARAM_INT_SMALL],
- "skills": PARAM_LIST_ONE,
- "time_window": PARAM_LIST_ONE,
- },
- {
- "id": 1,
- "profile": "driving-car",
- "start": PARAM_LINE[1],
- "start_index": 1,
- "end_index": 1,
- "end": PARAM_LINE[1],
- "capacity": [PARAM_INT_SMALL],
- "skills": PARAM_LIST_ONE,
- "time_window": PARAM_LIST_ONE,
- },
- ],
- "options": {"g": False},
- "matrix": PARAM_LIST_TWO,
- },
-}
-
-GPX_RESPONSE = """
-
-
-
- openrouteservice directions
- This is a directions instructions file as GPX, generated from openrouteservice
- openrouteservice
-
-
- https://openrouteservice.org/
- text/html
-
-
-
- 2021
- LGPL 3.0
-
-
-
-
-
-
-
-
-"""
diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py
new file mode 100644
index 00000000..ce65fa61
--- /dev/null
+++ b/test/test_inline_response200.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response200 import InlineResponse200 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse200(unittest.TestCase):
+ """InlineResponse200 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse200(self):
+ """Test InlineResponse200"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response200.InlineResponse200() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2001.py b/test/test_inline_response2001.py
new file mode 100644
index 00000000..585ab55b
--- /dev/null
+++ b/test/test_inline_response2001.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2001 import InlineResponse2001 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2001(unittest.TestCase):
+ """InlineResponse2001 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2001(self):
+ """Test InlineResponse2001"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2001.InlineResponse2001() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2001_geometry.py b/test/test_inline_response2001_geometry.py
new file mode 100644
index 00000000..940f6b1f
--- /dev/null
+++ b/test/test_inline_response2001_geometry.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2001Geometry(unittest.TestCase):
+ """InlineResponse2001Geometry unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2001Geometry(self):
+ """Test InlineResponse2001Geometry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2001_geometry.InlineResponse2001Geometry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2002.py b/test/test_inline_response2002.py
new file mode 100644
index 00000000..f4de0437
--- /dev/null
+++ b/test/test_inline_response2002.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2002 import InlineResponse2002 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2002(unittest.TestCase):
+ """InlineResponse2002 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2002(self):
+ """Test InlineResponse2002"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2002.InlineResponse2002() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2002_routes.py b/test/test_inline_response2002_routes.py
new file mode 100644
index 00000000..cb6849aa
--- /dev/null
+++ b/test/test_inline_response2002_routes.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2002Routes(unittest.TestCase):
+ """InlineResponse2002Routes unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2002Routes(self):
+ """Test InlineResponse2002Routes"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2002_routes.InlineResponse2002Routes() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2002_steps.py b/test/test_inline_response2002_steps.py
new file mode 100644
index 00000000..a741ed71
--- /dev/null
+++ b/test/test_inline_response2002_steps.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2002Steps(unittest.TestCase):
+ """InlineResponse2002Steps unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2002Steps(self):
+ """Test InlineResponse2002Steps"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2002_steps.InlineResponse2002Steps() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2002_summary.py b/test/test_inline_response2002_summary.py
new file mode 100644
index 00000000..70922c75
--- /dev/null
+++ b/test/test_inline_response2002_summary.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2002Summary(unittest.TestCase):
+ """InlineResponse2002Summary unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2002Summary(self):
+ """Test InlineResponse2002Summary"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2002_summary.InlineResponse2002Summary() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2002_unassigned.py b/test/test_inline_response2002_unassigned.py
new file mode 100644
index 00000000..2796e840
--- /dev/null
+++ b/test/test_inline_response2002_unassigned.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2002Unassigned(unittest.TestCase):
+ """InlineResponse2002Unassigned unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2002Unassigned(self):
+ """Test InlineResponse2002Unassigned"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2002_unassigned.InlineResponse2002Unassigned() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2003.py b/test/test_inline_response2003.py
new file mode 100644
index 00000000..f934b5a3
--- /dev/null
+++ b/test/test_inline_response2003.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2003 import InlineResponse2003 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2003(unittest.TestCase):
+ """InlineResponse2003 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2003(self):
+ """Test InlineResponse2003"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2003.InlineResponse2003() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2004.py b/test/test_inline_response2004.py
new file mode 100644
index 00000000..82e731c4
--- /dev/null
+++ b/test/test_inline_response2004.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2004 import InlineResponse2004 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2004(unittest.TestCase):
+ """InlineResponse2004 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2004(self):
+ """Test InlineResponse2004"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2004.InlineResponse2004() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2005.py b/test/test_inline_response2005.py
new file mode 100644
index 00000000..2ab3a672
--- /dev/null
+++ b/test/test_inline_response2005.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2005 import InlineResponse2005 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2005(unittest.TestCase):
+ """InlineResponse2005 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2005(self):
+ """Test InlineResponse2005"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2005.InlineResponse2005() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response2006.py b/test/test_inline_response2006.py
new file mode 100644
index 00000000..798313c3
--- /dev/null
+++ b/test/test_inline_response2006.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response2006 import InlineResponse2006 # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse2006(unittest.TestCase):
+ """InlineResponse2006 unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse2006(self):
+ """Test InlineResponse2006"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response2006.InlineResponse2006() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_inline_response200_geometry.py b/test/test_inline_response200_geometry.py
new file mode 100644
index 00000000..0b8ef879
--- /dev/null
+++ b/test/test_inline_response200_geometry.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestInlineResponse200Geometry(unittest.TestCase):
+ """InlineResponse200Geometry unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testInlineResponse200Geometry(self):
+ """Test InlineResponse200Geometry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.inline_response200_geometry.InlineResponse200Geometry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrones.py b/test/test_isochrones.py
deleted file mode 100644
index ee3ab55b..00000000
--- a/test/test_isochrones.py
+++ /dev/null
@@ -1,47 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the distance matrix module."""
-import responses
-import test as _test
-from test.test_helper import ENDPOINT_DICT
-import pytest
-
-
-class IsochronesTest(_test.TestCase):
- @responses.activate
- def test_isochrones(self):
- query = ENDPOINT_DICT["isochrones"]
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/v2/isochrones/{}/geojson".format(
- query["profile"]
- ),
- json=query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.isochrones(**query)
-
- self.assertEqual(1, len(responses.calls))
- self.assertEqual(resp, query)
-
- def test_isochrones_must_fail(self):
- query = ENDPOINT_DICT["isochrones"]
- query.update({"foo": {"bar": "baz"}})
- self.assertRaises(TypeError, self.client.isochrones, **query)
diff --git a/test/test_isochrones_profile_body.py b/test/test_isochrones_profile_body.py
new file mode 100644
index 00000000..00f17f96
--- /dev/null
+++ b/test/test_isochrones_profile_body.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestIsochronesProfileBody(unittest.TestCase):
+ """IsochronesProfileBody unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testIsochronesProfileBody(self):
+ """Test IsochronesProfileBody"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.isochrones_profile_body.IsochronesProfileBody() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrones_request.py b/test/test_isochrones_request.py
new file mode 100644
index 00000000..6408f4c3
--- /dev/null
+++ b/test/test_isochrones_request.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.isochrones_request import IsochronesRequest # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestIsochronesRequest(unittest.TestCase):
+ """IsochronesRequest unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testIsochronesRequest(self):
+ """Test IsochronesRequest"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.isochrones_request.IsochronesRequest() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrones_response_info.py b/test/test_isochrones_response_info.py
new file mode 100644
index 00000000..12b77881
--- /dev/null
+++ b/test/test_isochrones_response_info.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestIsochronesResponseInfo(unittest.TestCase):
+ """IsochronesResponseInfo unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testIsochronesResponseInfo(self):
+ """Test IsochronesResponseInfo"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.isochrones_response_info.IsochronesResponseInfo() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrones_service_api.py b/test/test_isochrones_service_api.py
new file mode 100644
index 00000000..966524c6
--- /dev/null
+++ b/test/test_isochrones_service_api.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.isochrones_service_api import IsochronesServiceApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestIsochronesServiceApi(unittest.TestCase):
+ """IsochronesServiceApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = IsochronesServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_get_default_isochrones(self):
+ """Test case for get_default_isochrones
+
+ Isochrones Service # noqa: E501
+ """
+ body = openrouteservice.IsochronesProfileBody(
+ locations=[[8.681495,49.41461],[8.686507,49.41943]],
+ range=[300,200]
+ )
+ profile = 'driving-car'
+ response = self.api.get_default_isochrones(body, profile)
+ self.assertEqual(len(response.features), 4)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json2_d_destinations.py b/test/test_json2_d_destinations.py
new file mode 100644
index 00000000..5205572c
--- /dev/null
+++ b/test/test_json2_d_destinations.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json2_d_destinations import JSON2DDestinations # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSON2DDestinations(unittest.TestCase):
+ """JSON2DDestinations unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSON2DDestinations(self):
+ """Test JSON2DDestinations"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json2_d_destinations.JSON2DDestinations() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json2_d_sources.py b/test/test_json2_d_sources.py
new file mode 100644
index 00000000..d99999a6
--- /dev/null
+++ b/test/test_json2_d_sources.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json2_d_sources import JSON2DSources # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSON2DSources(unittest.TestCase):
+ """JSON2DSources unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSON2DSources(self):
+ """Test JSON2DSources"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json2_d_sources.JSON2DSources() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_edge.py b/test/test_json_edge.py
new file mode 100644
index 00000000..eb630b2b
--- /dev/null
+++ b/test/test_json_edge.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_edge import JsonEdge # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonEdge(unittest.TestCase):
+ """JsonEdge unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonEdge(self):
+ """Test JsonEdge"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_edge.JsonEdge() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_edge_extra.py b/test/test_json_edge_extra.py
new file mode 100644
index 00000000..c88480a1
--- /dev/null
+++ b/test/test_json_edge_extra.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_edge_extra import JsonEdgeExtra # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonEdgeExtra(unittest.TestCase):
+ """JsonEdgeExtra unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonEdgeExtra(self):
+ """Test JsonEdgeExtra"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_edge_extra.JsonEdgeExtra() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_export_response.py b/test/test_json_export_response.py
new file mode 100644
index 00000000..e2ba6a2f
--- /dev/null
+++ b/test/test_json_export_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_export_response import JsonExportResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonExportResponse(unittest.TestCase):
+ """JsonExportResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonExportResponse(self):
+ """Test JsonExportResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_export_response.JsonExportResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_export_response_edges.py b/test/test_json_export_response_edges.py
new file mode 100644
index 00000000..ef91aadc
--- /dev/null
+++ b/test/test_json_export_response_edges.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonExportResponseEdges(unittest.TestCase):
+ """JsonExportResponseEdges unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonExportResponseEdges(self):
+ """Test JsonExportResponseEdges"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_export_response_edges.JsonExportResponseEdges() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_export_response_edges_extra.py b/test/test_json_export_response_edges_extra.py
new file mode 100644
index 00000000..840f340f
--- /dev/null
+++ b/test/test_json_export_response_edges_extra.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonExportResponseEdgesExtra(unittest.TestCase):
+ """JsonExportResponseEdgesExtra unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonExportResponseEdgesExtra(self):
+ """Test JsonExportResponseEdgesExtra"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_export_response_edges_extra.JsonExportResponseEdgesExtra() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_export_response_nodes.py b/test/test_json_export_response_nodes.py
new file mode 100644
index 00000000..aae371c0
--- /dev/null
+++ b/test/test_json_export_response_nodes.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonExportResponseNodes(unittest.TestCase):
+ """JsonExportResponseNodes unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonExportResponseNodes(self):
+ """Test JsonExportResponseNodes"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_export_response_nodes.JsonExportResponseNodes() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_extra.py b/test/test_json_extra.py
new file mode 100644
index 00000000..809ce8ef
--- /dev/null
+++ b/test/test_json_extra.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_extra import JSONExtra # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONExtra(unittest.TestCase):
+ """JSONExtra unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONExtra(self):
+ """Test JSONExtra"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_extra.JSONExtra() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_extra_summary.py b/test/test_json_extra_summary.py
new file mode 100644
index 00000000..fec9247d
--- /dev/null
+++ b/test/test_json_extra_summary.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_extra_summary import JSONExtraSummary # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONExtraSummary(unittest.TestCase):
+ """JSONExtraSummary unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONExtraSummary(self):
+ """Test JSONExtraSummary"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_extra_summary.JSONExtraSummary() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response.py b/test/test_json_individual_route_response.py
new file mode 100644
index 00000000..8f723ca1
--- /dev/null
+++ b/test/test_json_individual_route_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponse(unittest.TestCase):
+ """JSONIndividualRouteResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponse(self):
+ """Test JSONIndividualRouteResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response.JSONIndividualRouteResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_extras.py b/test/test_json_individual_route_response_extras.py
new file mode 100644
index 00000000..3e79df70
--- /dev/null
+++ b/test/test_json_individual_route_response_extras.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseExtras(unittest.TestCase):
+ """JSONIndividualRouteResponseExtras unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseExtras(self):
+ """Test JSONIndividualRouteResponseExtras"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_extras.JSONIndividualRouteResponseExtras() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_instructions.py b/test/test_json_individual_route_response_instructions.py
new file mode 100644
index 00000000..df7c7e59
--- /dev/null
+++ b/test/test_json_individual_route_response_instructions.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseInstructions(unittest.TestCase):
+ """JSONIndividualRouteResponseInstructions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseInstructions(self):
+ """Test JSONIndividualRouteResponseInstructions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_instructions.JSONIndividualRouteResponseInstructions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_legs.py b/test/test_json_individual_route_response_legs.py
new file mode 100644
index 00000000..4ea298a5
--- /dev/null
+++ b/test/test_json_individual_route_response_legs.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseLegs(unittest.TestCase):
+ """JSONIndividualRouteResponseLegs unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseLegs(self):
+ """Test JSONIndividualRouteResponseLegs"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_legs.JSONIndividualRouteResponseLegs() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_maneuver.py b/test/test_json_individual_route_response_maneuver.py
new file mode 100644
index 00000000..8a1c16e4
--- /dev/null
+++ b/test/test_json_individual_route_response_maneuver.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseManeuver(unittest.TestCase):
+ """JSONIndividualRouteResponseManeuver unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseManeuver(self):
+ """Test JSONIndividualRouteResponseManeuver"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_maneuver.JSONIndividualRouteResponseManeuver() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_segments.py b/test/test_json_individual_route_response_segments.py
new file mode 100644
index 00000000..51d02f99
--- /dev/null
+++ b/test/test_json_individual_route_response_segments.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseSegments(unittest.TestCase):
+ """JSONIndividualRouteResponseSegments unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseSegments(self):
+ """Test JSONIndividualRouteResponseSegments"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_segments.JSONIndividualRouteResponseSegments() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_stops.py b/test/test_json_individual_route_response_stops.py
new file mode 100644
index 00000000..8bb11575
--- /dev/null
+++ b/test/test_json_individual_route_response_stops.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseStops(unittest.TestCase):
+ """JSONIndividualRouteResponseStops unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseStops(self):
+ """Test JSONIndividualRouteResponseStops"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_stops.JSONIndividualRouteResponseStops() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_summary.py b/test/test_json_individual_route_response_summary.py
new file mode 100644
index 00000000..b4410553
--- /dev/null
+++ b/test/test_json_individual_route_response_summary.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseSummary(unittest.TestCase):
+ """JSONIndividualRouteResponseSummary unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseSummary(self):
+ """Test JSONIndividualRouteResponseSummary"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_summary.JSONIndividualRouteResponseSummary() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_individual_route_response_warnings.py b/test/test_json_individual_route_response_warnings.py
new file mode 100644
index 00000000..addd1520
--- /dev/null
+++ b/test/test_json_individual_route_response_warnings.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONIndividualRouteResponseWarnings(unittest.TestCase):
+ """JSONIndividualRouteResponseWarnings unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONIndividualRouteResponseWarnings(self):
+ """Test JSONIndividualRouteResponseWarnings"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_individual_route_response_warnings.JSONIndividualRouteResponseWarnings() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_leg.py b/test/test_json_leg.py
new file mode 100644
index 00000000..3baf8f28
--- /dev/null
+++ b/test/test_json_leg.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_leg import JSONLeg # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONLeg(unittest.TestCase):
+ """JSONLeg unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONLeg(self):
+ """Test JSONLeg"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_leg.JSONLeg() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_node.py b/test/test_json_node.py
new file mode 100644
index 00000000..bd1dd9d0
--- /dev/null
+++ b/test/test_json_node.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_node import JsonNode # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJsonNode(unittest.TestCase):
+ """JsonNode unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJsonNode(self):
+ """Test JsonNode"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_node.JsonNode() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_object.py b/test/test_json_object.py
new file mode 100644
index 00000000..b33229fd
--- /dev/null
+++ b/test/test_json_object.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_object import JSONObject # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONObject(unittest.TestCase):
+ """JSONObject unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONObject(self):
+ """Test JSONObject"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_object.JSONObject() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_route_response.py b/test/test_json_route_response.py
new file mode 100644
index 00000000..b4241b06
--- /dev/null
+++ b/test/test_json_route_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_route_response import JSONRouteResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONRouteResponse(unittest.TestCase):
+ """JSONRouteResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONRouteResponse(self):
+ """Test JSONRouteResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_route_response.JSONRouteResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_route_response_routes.py b/test/test_json_route_response_routes.py
new file mode 100644
index 00000000..a1115e39
--- /dev/null
+++ b/test/test_json_route_response_routes.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONRouteResponseRoutes(unittest.TestCase):
+ """JSONRouteResponseRoutes unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONRouteResponseRoutes(self):
+ """Test JSONRouteResponseRoutes"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_route_response_routes.JSONRouteResponseRoutes() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_segment.py b/test/test_json_segment.py
new file mode 100644
index 00000000..80ec9588
--- /dev/null
+++ b/test/test_json_segment.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_segment import JSONSegment # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONSegment(unittest.TestCase):
+ """JSONSegment unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONSegment(self):
+ """Test JSONSegment"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_segment.JSONSegment() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_step.py b/test/test_json_step.py
new file mode 100644
index 00000000..2d3aea37
--- /dev/null
+++ b/test/test_json_step.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_step import JSONStep # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONStep(unittest.TestCase):
+ """JSONStep unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONStep(self):
+ """Test JSONStep"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_step.JSONStep() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_step_maneuver.py b/test/test_json_step_maneuver.py
new file mode 100644
index 00000000..825a2d77
--- /dev/null
+++ b/test/test_json_step_maneuver.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_step_maneuver import JSONStepManeuver # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONStepManeuver(unittest.TestCase):
+ """JSONStepManeuver unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONStepManeuver(self):
+ """Test JSONStepManeuver"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_step_maneuver.JSONStepManeuver() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_summary.py b/test/test_json_summary.py
new file mode 100644
index 00000000..f4aaeb57
--- /dev/null
+++ b/test/test_json_summary.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_summary import JSONSummary # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONSummary(unittest.TestCase):
+ """JSONSummary unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONSummary(self):
+ """Test JSONSummary"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_summary.JSONSummary() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_json_warning.py b/test/test_json_warning.py
new file mode 100644
index 00000000..bbc3532d
--- /dev/null
+++ b/test/test_json_warning.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.json_warning import JSONWarning # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONWarning(unittest.TestCase):
+ """JSONWarning unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONWarning(self):
+ """Test JSONWarning"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.json_warning.JSONWarning() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_jsonpt_stop.py b/test/test_jsonpt_stop.py
new file mode 100644
index 00000000..4f24186d
--- /dev/null
+++ b/test/test_jsonpt_stop.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.jsonpt_stop import JSONPtStop # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestJSONPtStop(unittest.TestCase):
+ """JSONPtStop unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testJSONPtStop(self):
+ """Test JSONPtStop"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.jsonpt_stop.JSONPtStop() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_profile_body.py b/test/test_matrix_profile_body.py
new file mode 100644
index 00000000..0abb4a05
--- /dev/null
+++ b/test/test_matrix_profile_body.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_profile_body import MatrixProfileBody # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixProfileBody(unittest.TestCase):
+ """MatrixProfileBody unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixProfileBody(self):
+ """Test MatrixProfileBody"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_profile_body.MatrixProfileBody() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_request.py b/test/test_matrix_request.py
new file mode 100644
index 00000000..4d3a9da9
--- /dev/null
+++ b/test/test_matrix_request.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_request import MatrixRequest # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixRequest(unittest.TestCase):
+ """MatrixRequest unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixRequest(self):
+ """Test MatrixRequest"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_request.MatrixRequest() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_response.py b/test/test_matrix_response.py
new file mode 100644
index 00000000..97527f39
--- /dev/null
+++ b/test/test_matrix_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_response import MatrixResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixResponse(unittest.TestCase):
+ """MatrixResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixResponse(self):
+ """Test MatrixResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_response.MatrixResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_response_destinations.py b/test/test_matrix_response_destinations.py
new file mode 100644
index 00000000..bf321d8a
--- /dev/null
+++ b/test/test_matrix_response_destinations.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixResponseDestinations(unittest.TestCase):
+ """MatrixResponseDestinations unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixResponseDestinations(self):
+ """Test MatrixResponseDestinations"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_response_destinations.MatrixResponseDestinations() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_response_info.py b/test/test_matrix_response_info.py
new file mode 100644
index 00000000..3ab4bc02
--- /dev/null
+++ b/test/test_matrix_response_info.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_response_info import MatrixResponseInfo # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixResponseInfo(unittest.TestCase):
+ """MatrixResponseInfo unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixResponseInfo(self):
+ """Test MatrixResponseInfo"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_response_info.MatrixResponseInfo() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_response_metadata.py b/test/test_matrix_response_metadata.py
new file mode 100644
index 00000000..e3ee51d7
--- /dev/null
+++ b/test/test_matrix_response_metadata.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixResponseMetadata(unittest.TestCase):
+ """MatrixResponseMetadata unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixResponseMetadata(self):
+ """Test MatrixResponseMetadata"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_response_metadata.MatrixResponseMetadata() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_response_sources.py b/test/test_matrix_response_sources.py
new file mode 100644
index 00000000..472f9433
--- /dev/null
+++ b/test/test_matrix_response_sources.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.matrix_response_sources import MatrixResponseSources # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixResponseSources(unittest.TestCase):
+ """MatrixResponseSources unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testMatrixResponseSources(self):
+ """Test MatrixResponseSources"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.matrix_response_sources.MatrixResponseSources() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_matrix_service_api.py b/test/test_matrix_service_api.py
new file mode 100644
index 00000000..097744ae
--- /dev/null
+++ b/test/test_matrix_service_api.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.matrix_service_api import MatrixServiceApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestMatrixServiceApi(unittest.TestCase):
+ """MatrixServiceApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = MatrixServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_get_default(self):
+ """Test case for get_default
+
+ Matrix Service # noqa: E501
+ """
+ body = openrouteservice.MatrixProfileBody(
+ locations=[[9.70093,48.477473],[9.207916,49.153868],[37.573242,55.801281],[115.663757,38.106467]]
+ )
+ profile = 'driving-car' # str | Specifies the matrix profile.
+
+ response = self.api.get_default(body, profile)
+ self.assertEqual(len(response.destinations), 4)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_openpoiservice_poi_request.py b/test/test_openpoiservice_poi_request.py
new file mode 100644
index 00000000..eddc2433
--- /dev/null
+++ b/test/test_openpoiservice_poi_request.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOpenpoiservicePoiRequest(unittest.TestCase):
+ """OpenpoiservicePoiRequest unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOpenpoiservicePoiRequest(self):
+ """Test OpenpoiservicePoiRequest"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.openpoiservice_poi_request.OpenpoiservicePoiRequest() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_openpoiservice_poi_response.py b/test/test_openpoiservice_poi_response.py
new file mode 100644
index 00000000..f636b9bd
--- /dev/null
+++ b/test/test_openpoiservice_poi_response.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOpenpoiservicePoiResponse(unittest.TestCase):
+ """OpenpoiservicePoiResponse unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOpenpoiservicePoiResponse(self):
+ """Test OpenpoiservicePoiResponse"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.openpoiservice_poi_response.OpenpoiservicePoiResponse() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_optimization.py b/test/test_optimization.py
deleted file mode 100644
index 6db710e7..00000000
--- a/test/test_optimization.py
+++ /dev/null
@@ -1,116 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the distance matrix module."""
-import responses
-import test as _test
-from copy import deepcopy
-import json
-
-from test.test_helper import *
-from openrouteservice.optimization import Job, Vehicle, ShipmentStep, Shipment
-
-
-class OptimizationTest(_test.TestCase):
- def _get_params(self):
- jobs, vehicles, shipments = list(), list(), list()
-
- for idx, coord in enumerate(PARAM_LINE):
- jobs.append(
- Job(
- idx,
- location=coord,
- service=PARAM_INT_BIG,
- location_index=idx,
- amount=[PARAM_INT_SMALL],
- skills=PARAM_LIST_ONE,
- priority=PARAM_INT_SMALL,
- time_windows=[PARAM_LIST_ONE],
- )
- )
-
- vehicles.append(
- Vehicle(
- idx,
- profile="driving-car",
- start=coord,
- start_index=idx,
- end=coord,
- end_index=idx,
- capacity=[PARAM_INT_SMALL],
- skills=PARAM_LIST_ONE,
- time_window=PARAM_LIST_ONE,
- )
- )
-
- shipments.append(
- Shipment(
- pickup=ShipmentStep(
- idx,
- location=coord,
- location_index=idx,
- service=PARAM_INT_BIG,
- time_windows=[PARAM_LIST_ONE],
- ),
- delivery=ShipmentStep(
- idx,
- location=coord,
- location_index=idx,
- service=PARAM_INT_BIG,
- time_windows=[PARAM_LIST_ONE],
- ),
- amount=[PARAM_INT_SMALL],
- skills=PARAM_LIST_ONE,
- priority=PARAM_INT_SMALL,
- )
- )
-
- return jobs, vehicles, shipments
-
- def test_jobs_vehicles_classes(self):
- jobs, vehicles, shipments = self._get_params()
-
- self.assertEqual(
- ENDPOINT_DICT["optimization"]["jobs"], [j.__dict__ for j in jobs]
- )
- self.assertEqual(
- ENDPOINT_DICT["optimization"]["vehicles"],
- [v.__dict__ for v in vehicles],
- )
-
- @responses.activate
- def test_full_optimization(self):
- query = deepcopy(ENDPOINT_DICT["optimization"])
-
- jobs, vehicles, shipments = self._get_params()
-
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/optimization",
- json={},
- status=200,
- content_type="application/json",
- )
-
- self.client.optimization(
- jobs, vehicles, shipments, geometry=False, matrix=PARAM_LIST_TWO
- )
-
- self.assertEqual(
- query, json.loads(responses.calls[0].request.body.decode("utf-8"))
- )
diff --git a/test/test_optimization_api.py b/test/test_optimization_api.py
new file mode 100644
index 00000000..f88c92cc
--- /dev/null
+++ b/test/test_optimization_api.py
@@ -0,0 +1,50 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.optimization_api import OptimizationApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOptimizationApi(unittest.TestCase):
+ """OptimizationApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = OptimizationApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_optimization_post(self):
+ """Test case for optimization_post
+
+ Optimization Service # noqa: E501
+ """
+ body = openrouteservice.OptimizationBody(
+ jobs=[{"id":1,"service":300,"amount":[1],"location":[1.98465,48.70329],"skills":[1],"time_windows":[[32400,36000]]},{"id":2,"service":300,"amount":[1],"location":[2.03655,48.61128],"skills":[1]},{"id":3,"service":300,"amount":[1],"location":[2.39719,49.07611],"skills":[2]},{"id":4,"service":300,"amount":[1],"location":[2.41808,49.22619],"skills":[2]},{"id":5,"service":300,"amount":[1],"location":[2.28325,48.5958],"skills":[14]},{"id":6,"service":300,"amount":[1],"location":[2.89357,48.90736],"skills":[14]}],
+ vehicles=[{"id":1,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[1,14],"time_window":[28800,43200]},{"id":2,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[2,14],"time_window":[28800,43200]}]
+ )
+ response = self.api.optimization_post(body)
+ self.assertEqual(response.code, 0)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_optimization_body.py b/test/test_optimization_body.py
new file mode 100644
index 00000000..3f57aa04
--- /dev/null
+++ b/test/test_optimization_body.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.optimization_body import OptimizationBody # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOptimizationBody(unittest.TestCase):
+ """OptimizationBody unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOptimizationBody(self):
+ """Test OptimizationBody"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.optimization_body.OptimizationBody() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_optimization_jobs.py b/test/test_optimization_jobs.py
new file mode 100644
index 00000000..6863e1dd
--- /dev/null
+++ b/test/test_optimization_jobs.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.optimization_jobs import OptimizationJobs # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOptimizationJobs(unittest.TestCase):
+ """OptimizationJobs unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOptimizationJobs(self):
+ """Test OptimizationJobs"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.optimization_jobs.OptimizationJobs() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_optimization_options.py b/test/test_optimization_options.py
new file mode 100644
index 00000000..e6cdd798
--- /dev/null
+++ b/test/test_optimization_options.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.optimization_options import OptimizationOptions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOptimizationOptions(unittest.TestCase):
+ """OptimizationOptions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOptimizationOptions(self):
+ """Test OptimizationOptions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.optimization_options.OptimizationOptions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_optimization_vehicles.py b/test/test_optimization_vehicles.py
new file mode 100644
index 00000000..446e441f
--- /dev/null
+++ b/test/test_optimization_vehicles.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.optimization_vehicles import OptimizationVehicles # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestOptimizationVehicles(unittest.TestCase):
+ """OptimizationVehicles unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testOptimizationVehicles(self):
+ """Test OptimizationVehicles"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.optimization_vehicles.OptimizationVehicles() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_places.py b/test/test_places.py
deleted file mode 100644
index 20164f3d..00000000
--- a/test/test_places.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# -*- coding: utf-8 -*-
-# Copyright 2014 Google Inc. All rights reserved.
-#
-# Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
-#
-#
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-#
-"""Tests for the distance matrix module."""
-import responses
-import test as _test
-
-from test.test_helper import ENDPOINT_DICT
-
-
-class PlacesTest(_test.TestCase):
- @responses.activate
- def test_pois(self):
- query = ENDPOINT_DICT["pois"]
- responses.add(
- responses.POST,
- "https://api.openrouteservice.org/pois",
- json=query,
- status=200,
- content_type="application/json",
- )
-
- resp = self.client.places(**query)
-
- self.assertEqual(len(responses.calls), 1)
- self.assertEqual(resp, query)
diff --git a/test/test_pois_api.py b/test/test_pois_api.py
new file mode 100644
index 00000000..d8cf61dd
--- /dev/null
+++ b/test/test_pois_api.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 8.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: v2
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice as ors
+from openrouteservice.api.pois_api import PoisApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestPoisApi(unittest.TestCase):
+ """PoisApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = ors.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = PoisApi(ors.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_pois_post(self):
+ """Test case for pois_post
+
+ Pois Service # noqa: E501
+ """
+
+ body = ors.OpenpoiservicePoiRequest(
+ request='pois',
+ geometry=ors.PoisGeometry(
+ bbox=[[8.8034,53.0756],[8.7834,53.0456]],
+ geojson={"type":"Point","coordinates":[8.8034,53.0756]},
+ buffer=200
+ ),
+ sortby='distance'
+ )
+
+ response = self.api.pois_post(body)
+ self.assertIsNotNone(response)
+ self.assertEqual(response.type, "FeatureCollection")
+
+ body.filters = ors.PoisFilters(
+ smoking=['yes']
+ )
+
+ response2 = self.api.pois_post(body)
+ self.assertIsNotNone(response2)
+ self.assertGreaterEqual(len(response.features), len(response2.features))
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pois_filters.py b/test/test_pois_filters.py
new file mode 100644
index 00000000..53b299d5
--- /dev/null
+++ b/test/test_pois_filters.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.pois_filters import PoisFilters # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestPoisFilters(unittest.TestCase):
+ """PoisFilters unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testPoisFilters(self):
+ """Test PoisFilters"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.pois_filters.PoisFilters() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_pois_geometry.py b/test/test_pois_geometry.py
new file mode 100644
index 00000000..70039a6a
--- /dev/null
+++ b/test/test_pois_geometry.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.pois_geometry import PoisGeometry # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestPoisGeometry(unittest.TestCase):
+ """PoisGeometry unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testPoisGeometry(self):
+ """Test PoisGeometry"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.pois_geometry.PoisGeometry() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_profile_parameters.py b/test/test_profile_parameters.py
new file mode 100644
index 00000000..a354ba7a
--- /dev/null
+++ b/test/test_profile_parameters.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.profile_parameters import ProfileParameters # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestProfileParameters(unittest.TestCase):
+ """ProfileParameters unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testProfileParameters(self):
+ """Test ProfileParameters"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.profile_parameters.ProfileParameters() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_profile_parameters_restrictions.py b/test/test_profile_parameters_restrictions.py
new file mode 100644
index 00000000..914f3289
--- /dev/null
+++ b/test/test_profile_parameters_restrictions.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestProfileParametersRestrictions(unittest.TestCase):
+ """ProfileParametersRestrictions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testProfileParametersRestrictions(self):
+ """Test ProfileParametersRestrictions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.profile_parameters_restrictions.ProfileParametersRestrictions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_profile_weightings.py b/test/test_profile_weightings.py
new file mode 100644
index 00000000..6279e661
--- /dev/null
+++ b/test/test_profile_weightings.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.profile_weightings import ProfileWeightings # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestProfileWeightings(unittest.TestCase):
+ """ProfileWeightings unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testProfileWeightings(self):
+ """Test ProfileWeightings"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.profile_weightings.ProfileWeightings() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_restrictions.py b/test/test_restrictions.py
new file mode 100644
index 00000000..fb72ca97
--- /dev/null
+++ b/test/test_restrictions.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.restrictions import Restrictions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRestrictions(unittest.TestCase):
+ """Restrictions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRestrictions(self):
+ """Test Restrictions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.restrictions.Restrictions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_round_trip_route_options.py b/test/test_round_trip_route_options.py
new file mode 100644
index 00000000..618d3dc4
--- /dev/null
+++ b/test/test_round_trip_route_options.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRoundTripRouteOptions(unittest.TestCase):
+ """RoundTripRouteOptions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRoundTripRouteOptions(self):
+ """Test RoundTripRouteOptions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.round_trip_route_options.RoundTripRouteOptions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_route_options.py b/test/test_route_options.py
new file mode 100644
index 00000000..25087275
--- /dev/null
+++ b/test/test_route_options.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.route_options import RouteOptions # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRouteOptions(unittest.TestCase):
+ """RouteOptions unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRouteOptions(self):
+ """Test RouteOptions"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.route_options.RouteOptions() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_route_options_avoid_polygons.py b/test/test_route_options_avoid_polygons.py
new file mode 100644
index 00000000..4851552d
--- /dev/null
+++ b/test/test_route_options_avoid_polygons.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRouteOptionsAvoidPolygons(unittest.TestCase):
+ """RouteOptionsAvoidPolygons unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRouteOptionsAvoidPolygons(self):
+ """Test RouteOptionsAvoidPolygons"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.route_options_avoid_polygons.RouteOptionsAvoidPolygons() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_route_response_info.py b/test/test_route_response_info.py
new file mode 100644
index 00000000..3fb91557
--- /dev/null
+++ b/test/test_route_response_info.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.route_response_info import RouteResponseInfo # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRouteResponseInfo(unittest.TestCase):
+ """RouteResponseInfo unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRouteResponseInfo(self):
+ """Test RouteResponseInfo"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.route_response_info.RouteResponseInfo() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_rte.py b/test/test_rte.py
new file mode 100644
index 00000000..97df7afe
--- /dev/null
+++ b/test/test_rte.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.rte import Rte # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestRte(unittest.TestCase):
+ """Rte unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testRte(self):
+ """Test Rte"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.rte.Rte() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration.py b/test/test_v2directionsprofilegeojson_schedule_duration.py
new file mode 100644
index 00000000..e4c5bd1a
--- /dev/null
+++ b/test/test_v2directionsprofilegeojson_schedule_duration.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestV2directionsprofilegeojsonScheduleDuration(unittest.TestCase):
+ """V2directionsprofilegeojsonScheduleDuration unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testV2directionsprofilegeojsonScheduleDuration(self):
+ """Test V2directionsprofilegeojsonScheduleDuration"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration.V2directionsprofilegeojsonScheduleDuration() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration_duration.py b/test/test_v2directionsprofilegeojson_schedule_duration_duration.py
new file mode 100644
index 00000000..621b936f
--- /dev/null
+++ b/test/test_v2directionsprofilegeojson_schedule_duration_duration.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestV2directionsprofilegeojsonScheduleDurationDuration(unittest.TestCase):
+ """V2directionsprofilegeojsonScheduleDurationDuration unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testV2directionsprofilegeojsonScheduleDurationDuration(self):
+ """Test V2directionsprofilegeojsonScheduleDurationDuration"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration.V2directionsprofilegeojsonScheduleDurationDuration() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration_units.py b/test/test_v2directionsprofilegeojson_schedule_duration_units.py
new file mode 100644
index 00000000..21548dbd
--- /dev/null
+++ b/test/test_v2directionsprofilegeojson_schedule_duration_units.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestV2directionsprofilegeojsonScheduleDurationUnits(unittest.TestCase):
+ """V2directionsprofilegeojsonScheduleDurationUnits unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testV2directionsprofilegeojsonScheduleDurationUnits(self):
+ """Test V2directionsprofilegeojsonScheduleDurationUnits"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units.V2directionsprofilegeojsonScheduleDurationUnits() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_walking_time.py b/test/test_v2directionsprofilegeojson_walking_time.py
new file mode 100644
index 00000000..b139a8ac
--- /dev/null
+++ b/test/test_v2directionsprofilegeojson_walking_time.py
@@ -0,0 +1,43 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.0
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestV2directionsprofilegeojsonWalkingTime(unittest.TestCase):
+ """V2directionsprofilegeojsonWalkingTime unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+
+ def tearDown(self):
+ pass
+
+ def testV2directionsprofilegeojsonWalkingTime(self):
+ """Test V2directionsprofilegeojsonWalkingTime"""
+ # FIXME: construct object with mandatory attributes with example values
+ # model = openrouteservice.models.v2directionsprofilegeojson_walking_time.V2directionsprofilegeojsonWalkingTime() # noqa: E501
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/tests-config.sample.ini b/tests-config.sample.ini
new file mode 100644
index 00000000..5bedef82
--- /dev/null
+++ b/tests-config.sample.ini
@@ -0,0 +1,2 @@
+[ORS]
+apiKey = YOUR_API_KEY
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
new file mode 100644
index 00000000..a310bec9
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,10 @@
+[tox]
+envlist = py3
+
+[testenv]
+deps=-r{toxinidir}/requirements.txt
+ -r{toxinidir}/test-requirements.txt
+
+commands=
+ nosetests \
+ []
From 959bcb0b333f0a324f76c074ca695789981d7628 Mon Sep 17 00:00:00 2001
From: jarinox <45308098+jarinox@users.noreply.github.com>
Date: Mon, 19 Feb 2024 17:20:33 +0100
Subject: [PATCH 03/38] feat: adapt test workflow for generated client
- ORS_API_KEY secret must be set in settings for workflow to work
---
.github/workflows/ci-tests.yml | 62 +++++++---------------------------
1 file changed, 12 insertions(+), 50 deletions(-)
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index 68419347..d107e74e 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -1,25 +1,11 @@
name: tests
on:
- pull_request:
- branches: '**'
+ push:
+ branches: ['**']
jobs:
- lint:
- runs-on: ubuntu-20.04
- steps:
- - name: checkout
- uses: actions/checkout@v2
- - name: Install Python
- uses: actions/setup-python@v2
- with:
- python-version: 3.9
- - uses: pre-commit/action@v3.0.0
- with:
- extra_args: --all-files --show-diff-on-failure
pytest:
- needs:
- - lint
strategy:
fail-fast: false
matrix:
@@ -40,39 +26,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- - name: Select the cache folder
- id: cache-folder
- run: |
- if [ ${{ matrix.os }} == 'ubuntu-20.04' ]; then
- CACHE_FOLDER="/home/runner/.cache/pypoetry"
- elif [ ${{ matrix.os }} == 'macos-latest' ]; then
- CACHE_FOLDER="/Users/runner/Library/Caches/pypoetry"
- elif [ ${{ matrix.os }} == 'windows-latest' ]; then
- CACHE_FOLDER="C:\Users\runneradmin\AppData\Local\pypoetry\Cache"
- fi
- echo "Cache folder is $CACHE_FOLDER"
- echo "folder=$CACHE_FOLDER" >> "$GITHUB_OUTPUT"
- - name: Cache Poetry cache
- uses: actions/cache@v3
- with:
- path: ${{ steps.cache-folder.outputs.folder }}
- key: poetry-cache-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.poetry-version }}
- - name: Run Poetry action
- uses: abatilo/actions-poetry@v2
- with:
- poetry-version: ${{ matrix.poetry-version }}
- - name: View poetry --version
- run: poetry --version
- name: Install dependencies
- run: poetry install
+ run: pip install -r requirements.txt
+ - name: Install test dependencies
+ run: pip install -r test-requirements.txt
+ - name: Install tox
+ run: pip install tox
+ - name: Setup API Key
+ env:
+ ORS_API_KEY: ${{ secrets.ORS_API_KEY }}
+ run: printf "[ORS]\napiKey = $ORS_API_KEY\n" > tests-config.ini
- name: Run tests
- run: poetry run pytest
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@v3
- with:
- token: ${{ secrets.CODECOV_TOKEN }}
- flags: unittests
- env_vars: OS,PYTHON
- name: codecov-umbrella
- fail_ci_if_error: true
- verbose: true
+ run: python -m tox
From 7827c1550fd9f03394773661a3e3ed18c31faeb3 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Mon, 11 Mar 2024 13:28:32 +0100
Subject: [PATCH 04/38] feat: regenerate using latest v7.1.1 docs
- Add snapping service
- Adapt MatrixServiceApi test to new client
- Remove unimplemented test templates
---
.swagger-codegen-ignore | 23 ++
.swagger-codegen/VERSION | 1 +
.travis.yml | 13 +
README.md | 42 ++-
docs/DirectionsService.md | 4 +-
docs/DirectionsService1.md | 4 +-
docs/ElevationApi.md | 8 +-
docs/GeoJSONFeature.md | 11 +
docs/GeoJSONFeatureGeometry.md | 10 +
docs/GeoJSONFeatureProperties.md | 11 +
docs/GeoJSONPointGeometry.md | 10 +
docs/GeoJSONSnappingResponse.md | 12 +
docs/GeoJSONSnappingResponseFeatures.md | 11 +
docs/GeoJSONSnappingResponseMetadata.md | 15 +
docs/InlineResponse2002Routes.md | 4 +-
docs/InlineResponse2002Steps.md | 10 +-
docs/InlineResponse2002Summary.md | 7 +-
docs/InlineResponse2002Violations.md | 10 +
docs/InlineResponse2007.md | 10 +
docs/InlineResponse2008.md | 12 +
docs/JSON2DDestinations.md | 2 +-
docs/JSON2DSources.md | 2 +-
docs/JSONLocation.md | 11 +
docs/MatrixResponseDestinations.md | 2 +-
docs/MatrixResponseSources.md | 2 +-
docs/MatrixServiceApi.md | 10 +-
docs/OptimizationApi.md | 2 +-
docs/OptimizationBody.md | 2 +-
docs/OptimizationBreaks.md | 13 +
docs/OptimizationCosts.md | 11 +
docs/OptimizationJobs.md | 6 +-
docs/OptimizationMatrices.md | 17 +
docs/OptimizationMatricesCyclingelectric.md | 11 +
docs/OptimizationSteps.md | 13 +
docs/OptimizationVehicles.md | 8 +
docs/PoisApi.md | 2 +-
docs/ProfileGeojsonBody.md | 11 +
docs/ProfileJsonBody.md | 11 +
docs/SnapProfileBody.md | 11 +
docs/SnappingRequest.md | 11 +
docs/SnappingResponse.md | 10 +
docs/SnappingResponseInfo.md | 15 +
docs/SnappingResponseLocations.md | 11 +
docs/SnappingServiceApi.md | 178 +++++++++
openrouteservice/__init__.py | 41 +-
openrouteservice/api/__init__.py | 1 +
.../api/directions_service_api.py | 4 +-
openrouteservice/api/elevation_api.py | 10 +-
openrouteservice/api/geocode_api.py | 4 +-
.../api/isochrones_service_api.py | 4 +-
openrouteservice/api/matrix_service_api.py | 22 +-
openrouteservice/api/optimization_api.py | 6 +-
openrouteservice/api/pois_api.py | 6 +-
openrouteservice/api/snapping_service_api.py | 354 ++++++++++++++++++
openrouteservice/api_client.py | 6 +-
openrouteservice/configuration.py | 8 +-
openrouteservice/models/__init__.py | 31 +-
openrouteservice/models/alternative_routes.py | 4 +-
openrouteservice/models/directions_service.py | 24 +-
.../models/directions_service1.py | 24 +-
.../models/elevation_line_body.py | 4 +-
.../models/elevation_point_body.py | 4 +-
openrouteservice/models/engine_info.py | 4 +-
openrouteservice/models/geo_json_feature.py | 164 ++++++++
.../models/geo_json_feature_geometry.py | 140 +++++++
.../models/geo_json_feature_properties.py | 168 +++++++++
.../models/geo_json_features_object.py | 4 +-
.../models/geo_json_geometry_object.py | 4 +-
.../models/geo_json_isochrone_base.py | 4 +-
.../geo_json_isochrone_base_geometry.py | 4 +-
.../models/geo_json_isochrones_response.py | 4 +-
.../geo_json_isochrones_response_features.py | 4 +-
.../geo_json_isochrones_response_metadata.py | 4 +-
...son_isochrones_response_metadata_engine.py | 4 +-
.../models/geo_json_point_geometry.py | 140 +++++++
.../models/geo_json_properties_object.py | 4 +-
...geo_json_properties_object_category_ids.py | 4 +-
...perties_object_category_ids_category_id.py | 4 +-
.../geo_json_properties_object_osm_tags.py | 4 +-
.../models/geo_json_route_response.py | 4 +-
.../geo_json_route_response_metadata.py | 4 +-
.../models/geo_json_snapping_response.py | 194 ++++++++++
.../geo_json_snapping_response_features.py | 164 ++++++++
.../geo_json_snapping_response_metadata.py | 276 ++++++++++++++
openrouteservice/models/geocode_response.py | 4 +-
openrouteservice/models/gpx.py | 4 +-
.../models/graph_export_service.py | 4 +-
openrouteservice/models/inline_response200.py | 4 +-
.../models/inline_response2001.py | 4 +-
.../models/inline_response2001_geometry.py | 4 +-
.../models/inline_response2002.py | 4 +-
.../models/inline_response2002_routes.py | 118 ++++--
.../models/inline_response2002_steps.py | 158 ++++++--
.../models/inline_response2002_summary.py | 202 ++++++++--
.../models/inline_response2002_unassigned.py | 4 +-
.../models/inline_response2002_violations.py | 140 +++++++
.../models/inline_response2003.py | 4 +-
.../models/inline_response2004.py | 4 +-
.../models/inline_response2005.py | 4 +-
.../models/inline_response2006.py | 4 +-
.../models/inline_response2007.py | 138 +++++++
.../models/inline_response2008.py | 194 ++++++++++
.../models/inline_response200_geometry.py | 4 +-
.../models/isochrones_profile_body.py | 4 +-
openrouteservice/models/isochrones_request.py | 4 +-
.../models/isochrones_response_info.py | 4 +-
.../models/json2_d_destinations.py | 8 +-
openrouteservice/models/json2_d_sources.py | 8 +-
openrouteservice/models/json_edge.py | 4 +-
openrouteservice/models/json_edge_extra.py | 4 +-
.../models/json_export_response.py | 4 +-
.../models/json_export_response_edges.py | 4 +-
.../json_export_response_edges_extra.py | 4 +-
.../models/json_export_response_nodes.py | 4 +-
openrouteservice/models/json_extra.py | 4 +-
openrouteservice/models/json_extra_summary.py | 4 +-
.../models/json_individual_route_response.py | 4 +-
.../json_individual_route_response_extras.py | 4 +-
..._individual_route_response_instructions.py | 4 +-
.../json_individual_route_response_legs.py | 4 +-
...json_individual_route_response_maneuver.py | 4 +-
...json_individual_route_response_segments.py | 4 +-
.../json_individual_route_response_stops.py | 4 +-
.../json_individual_route_response_summary.py | 4 +-
...json_individual_route_response_warnings.py | 4 +-
openrouteservice/models/json_leg.py | 4 +-
openrouteservice/models/json_location.py | 168 +++++++++
openrouteservice/models/json_node.py | 4 +-
openrouteservice/models/json_object.py | 4 +-
.../models/json_route_response.py | 4 +-
.../models/json_route_response_routes.py | 4 +-
openrouteservice/models/json_segment.py | 4 +-
openrouteservice/models/json_step.py | 4 +-
openrouteservice/models/json_step_maneuver.py | 4 +-
openrouteservice/models/json_summary.py | 4 +-
openrouteservice/models/json_warning.py | 4 +-
openrouteservice/models/jsonpt_stop.py | 4 +-
.../models/matrix_profile_body.py | 4 +-
openrouteservice/models/matrix_request.py | 4 +-
openrouteservice/models/matrix_response.py | 4 +-
.../models/matrix_response_destinations.py | 8 +-
.../models/matrix_response_info.py | 4 +-
.../models/matrix_response_metadata.py | 4 +-
.../models/matrix_response_sources.py | 8 +-
.../models/openpoiservice_poi_request.py | 4 +-
.../models/openpoiservice_poi_response.py | 4 +-
openrouteservice/models/optimization_body.py | 40 +-
.../models/optimization_breaks.py | 224 +++++++++++
openrouteservice/models/optimization_costs.py | 168 +++++++++
openrouteservice/models/optimization_jobs.py | 154 ++++++--
.../models/optimization_matrices.py | 318 ++++++++++++++++
.../optimization_matrices_cyclingelectric.py | 168 +++++++++
.../models/optimization_options.py | 4 +-
openrouteservice/models/optimization_steps.py | 230 ++++++++++++
.../models/optimization_vehicles.py | 226 ++++++++++-
openrouteservice/models/pois_filters.py | 4 +-
openrouteservice/models/pois_geometry.py | 4 +-
.../models/profile_geojson_body.py | 170 +++++++++
openrouteservice/models/profile_json_body.py | 170 +++++++++
openrouteservice/models/profile_parameters.py | 4 +-
.../models/profile_parameters_restrictions.py | 4 +-
openrouteservice/models/profile_weightings.py | 4 +-
openrouteservice/models/restrictions.py | 4 +-
.../models/round_trip_route_options.py | 4 +-
openrouteservice/models/route_options.py | 4 +-
.../models/route_options_avoid_polygons.py | 4 +-
.../models/route_response_info.py | 4 +-
openrouteservice/models/rte.py | 4 +-
openrouteservice/models/snap_profile_body.py | 170 +++++++++
openrouteservice/models/snapping_request.py | 170 +++++++++
openrouteservice/models/snapping_response.py | 138 +++++++
.../models/snapping_response_info.py | 276 ++++++++++++++
.../models/snapping_response_locations.py | 168 +++++++++
openrouteservice/rest.py | 4 +-
pyproject.toml | 2 +-
setup.py | 6 +-
test/test_alternative_routes.py | 43 ---
test/test_directions_service.py | 43 ---
test/test_directions_service1.py | 43 ---
test/test_elevation_line_body.py | 43 ---
test/test_elevation_point_body.py | 43 ---
test/test_engine_info.py | 43 ---
test/test_geo_json_features_object.py | 43 ---
test/test_geo_json_geometry_object.py | 43 ---
test/test_geo_json_isochrone_base.py | 43 ---
test/test_geo_json_isochrone_base_geometry.py | 43 ---
test/test_geo_json_isochrones_response.py | 43 ---
...t_geo_json_isochrones_response_features.py | 43 ---
...t_geo_json_isochrones_response_metadata.py | 43 ---
...son_isochrones_response_metadata_engine.py | 43 ---
test/test_geo_json_properties_object.py | 43 ---
...geo_json_properties_object_category_ids.py | 43 ---
...perties_object_category_ids_category_id.py | 43 ---
...est_geo_json_properties_object_osm_tags.py | 43 ---
test/test_geo_json_route_response.py | 43 ---
test/test_geo_json_route_response_metadata.py | 43 ---
test/test_geocode_response.py | 43 ---
test/test_gpx.py | 43 ---
test/test_graph_export_service.py | 43 ---
test/test_inline_response200.py | 43 ---
test/test_inline_response2001.py | 43 ---
test/test_inline_response2001_geometry.py | 43 ---
test/test_inline_response2002.py | 43 ---
test/test_inline_response2002_routes.py | 43 ---
test/test_inline_response2002_steps.py | 43 ---
test/test_inline_response2002_summary.py | 43 ---
test/test_inline_response2002_unassigned.py | 43 ---
test/test_inline_response2003.py | 43 ---
test/test_inline_response2004.py | 43 ---
test/test_inline_response2005.py | 43 ---
test/test_inline_response2006.py | 43 ---
test/test_inline_response200_geometry.py | 43 ---
test/test_isochrones_profile_body.py | 43 ---
test/test_isochrones_request.py | 43 ---
test/test_isochrones_response_info.py | 43 ---
test/test_json2_d_destinations.py | 43 ---
test/test_json2_d_sources.py | 43 ---
test/test_json_edge.py | 43 ---
test/test_json_edge_extra.py | 43 ---
test/test_json_export_response.py | 43 ---
test/test_json_export_response_edges.py | 43 ---
test/test_json_export_response_edges_extra.py | 43 ---
test/test_json_export_response_nodes.py | 43 ---
test/test_json_extra.py | 43 ---
test/test_json_extra_summary.py | 43 ---
test/test_json_individual_route_response.py | 43 ---
...t_json_individual_route_response_extras.py | 43 ---
..._individual_route_response_instructions.py | 43 ---
...est_json_individual_route_response_legs.py | 43 ---
...json_individual_route_response_maneuver.py | 43 ---
...json_individual_route_response_segments.py | 43 ---
...st_json_individual_route_response_stops.py | 43 ---
..._json_individual_route_response_summary.py | 43 ---
...json_individual_route_response_warnings.py | 43 ---
test/test_json_leg.py | 43 ---
test/test_json_node.py | 43 ---
test/test_json_object.py | 43 ---
test/test_json_route_response.py | 43 ---
test/test_json_route_response_routes.py | 43 ---
test/test_json_segment.py | 43 ---
test/test_json_step.py | 43 ---
test/test_json_step_maneuver.py | 43 ---
test/test_json_summary.py | 43 ---
test/test_json_warning.py | 43 ---
test/test_jsonpt_stop.py | 43 ---
test/test_matrix_profile_body.py | 43 ---
test/test_matrix_request.py | 43 ---
test/test_matrix_response.py | 43 ---
test/test_matrix_response_destinations.py | 43 ---
test/test_matrix_response_info.py | 43 ---
test/test_matrix_response_metadata.py | 43 ---
test/test_matrix_response_sources.py | 43 ---
test/test_matrix_service_api.py | 2 +-
test/test_openpoiservice_poi_request.py | 43 ---
test/test_openpoiservice_poi_response.py | 43 ---
test/test_optimization_body.py | 43 ---
test/test_optimization_jobs.py | 43 ---
test/test_optimization_options.py | 43 ---
test/test_optimization_vehicles.py | 43 ---
test/test_pois_filters.py | 43 ---
test/test_pois_geometry.py | 43 ---
test/test_profile_parameters.py | 43 ---
test/test_profile_parameters_restrictions.py | 43 ---
test/test_profile_weightings.py | 43 ---
test/test_restrictions.py | 43 ---
test/test_round_trip_route_options.py | 43 ---
test/test_route_options.py | 43 ---
test/test_route_options_avoid_polygons.py | 43 ---
test/test_route_response_info.py | 43 ---
test/test_rte.py | 43 ---
test/test_snapping_service_api.py | 62 +++
...ectionsprofilegeojson_schedule_duration.py | 43 ---
...ofilegeojson_schedule_duration_duration.py | 43 ---
...sprofilegeojson_schedule_duration_units.py | 43 ---
...v2directionsprofilegeojson_walking_time.py | 43 ---
275 files changed, 6305 insertions(+), 4597 deletions(-)
create mode 100644 .swagger-codegen-ignore
create mode 100644 .swagger-codegen/VERSION
create mode 100644 .travis.yml
create mode 100644 docs/GeoJSONFeature.md
create mode 100644 docs/GeoJSONFeatureGeometry.md
create mode 100644 docs/GeoJSONFeatureProperties.md
create mode 100644 docs/GeoJSONPointGeometry.md
create mode 100644 docs/GeoJSONSnappingResponse.md
create mode 100644 docs/GeoJSONSnappingResponseFeatures.md
create mode 100644 docs/GeoJSONSnappingResponseMetadata.md
create mode 100644 docs/InlineResponse2002Violations.md
create mode 100644 docs/InlineResponse2007.md
create mode 100644 docs/InlineResponse2008.md
create mode 100644 docs/JSONLocation.md
create mode 100644 docs/OptimizationBreaks.md
create mode 100644 docs/OptimizationCosts.md
create mode 100644 docs/OptimizationMatrices.md
create mode 100644 docs/OptimizationMatricesCyclingelectric.md
create mode 100644 docs/OptimizationSteps.md
create mode 100644 docs/ProfileGeojsonBody.md
create mode 100644 docs/ProfileJsonBody.md
create mode 100644 docs/SnapProfileBody.md
create mode 100644 docs/SnappingRequest.md
create mode 100644 docs/SnappingResponse.md
create mode 100644 docs/SnappingResponseInfo.md
create mode 100644 docs/SnappingResponseLocations.md
create mode 100644 docs/SnappingServiceApi.md
create mode 100644 openrouteservice/api/snapping_service_api.py
create mode 100644 openrouteservice/models/geo_json_feature.py
create mode 100644 openrouteservice/models/geo_json_feature_geometry.py
create mode 100644 openrouteservice/models/geo_json_feature_properties.py
create mode 100644 openrouteservice/models/geo_json_point_geometry.py
create mode 100644 openrouteservice/models/geo_json_snapping_response.py
create mode 100644 openrouteservice/models/geo_json_snapping_response_features.py
create mode 100644 openrouteservice/models/geo_json_snapping_response_metadata.py
create mode 100644 openrouteservice/models/inline_response2002_violations.py
create mode 100644 openrouteservice/models/inline_response2007.py
create mode 100644 openrouteservice/models/inline_response2008.py
create mode 100644 openrouteservice/models/json_location.py
create mode 100644 openrouteservice/models/optimization_breaks.py
create mode 100644 openrouteservice/models/optimization_costs.py
create mode 100644 openrouteservice/models/optimization_matrices.py
create mode 100644 openrouteservice/models/optimization_matrices_cyclingelectric.py
create mode 100644 openrouteservice/models/optimization_steps.py
create mode 100644 openrouteservice/models/profile_geojson_body.py
create mode 100644 openrouteservice/models/profile_json_body.py
create mode 100644 openrouteservice/models/snap_profile_body.py
create mode 100644 openrouteservice/models/snapping_request.py
create mode 100644 openrouteservice/models/snapping_response.py
create mode 100644 openrouteservice/models/snapping_response_info.py
create mode 100644 openrouteservice/models/snapping_response_locations.py
delete mode 100644 test/test_alternative_routes.py
delete mode 100644 test/test_directions_service.py
delete mode 100644 test/test_directions_service1.py
delete mode 100644 test/test_elevation_line_body.py
delete mode 100644 test/test_elevation_point_body.py
delete mode 100644 test/test_engine_info.py
delete mode 100644 test/test_geo_json_features_object.py
delete mode 100644 test/test_geo_json_geometry_object.py
delete mode 100644 test/test_geo_json_isochrone_base.py
delete mode 100644 test/test_geo_json_isochrone_base_geometry.py
delete mode 100644 test/test_geo_json_isochrones_response.py
delete mode 100644 test/test_geo_json_isochrones_response_features.py
delete mode 100644 test/test_geo_json_isochrones_response_metadata.py
delete mode 100644 test/test_geo_json_isochrones_response_metadata_engine.py
delete mode 100644 test/test_geo_json_properties_object.py
delete mode 100644 test/test_geo_json_properties_object_category_ids.py
delete mode 100644 test/test_geo_json_properties_object_category_ids_category_id.py
delete mode 100644 test/test_geo_json_properties_object_osm_tags.py
delete mode 100644 test/test_geo_json_route_response.py
delete mode 100644 test/test_geo_json_route_response_metadata.py
delete mode 100644 test/test_geocode_response.py
delete mode 100644 test/test_gpx.py
delete mode 100644 test/test_graph_export_service.py
delete mode 100644 test/test_inline_response200.py
delete mode 100644 test/test_inline_response2001.py
delete mode 100644 test/test_inline_response2001_geometry.py
delete mode 100644 test/test_inline_response2002.py
delete mode 100644 test/test_inline_response2002_routes.py
delete mode 100644 test/test_inline_response2002_steps.py
delete mode 100644 test/test_inline_response2002_summary.py
delete mode 100644 test/test_inline_response2002_unassigned.py
delete mode 100644 test/test_inline_response2003.py
delete mode 100644 test/test_inline_response2004.py
delete mode 100644 test/test_inline_response2005.py
delete mode 100644 test/test_inline_response2006.py
delete mode 100644 test/test_inline_response200_geometry.py
delete mode 100644 test/test_isochrones_profile_body.py
delete mode 100644 test/test_isochrones_request.py
delete mode 100644 test/test_isochrones_response_info.py
delete mode 100644 test/test_json2_d_destinations.py
delete mode 100644 test/test_json2_d_sources.py
delete mode 100644 test/test_json_edge.py
delete mode 100644 test/test_json_edge_extra.py
delete mode 100644 test/test_json_export_response.py
delete mode 100644 test/test_json_export_response_edges.py
delete mode 100644 test/test_json_export_response_edges_extra.py
delete mode 100644 test/test_json_export_response_nodes.py
delete mode 100644 test/test_json_extra.py
delete mode 100644 test/test_json_extra_summary.py
delete mode 100644 test/test_json_individual_route_response.py
delete mode 100644 test/test_json_individual_route_response_extras.py
delete mode 100644 test/test_json_individual_route_response_instructions.py
delete mode 100644 test/test_json_individual_route_response_legs.py
delete mode 100644 test/test_json_individual_route_response_maneuver.py
delete mode 100644 test/test_json_individual_route_response_segments.py
delete mode 100644 test/test_json_individual_route_response_stops.py
delete mode 100644 test/test_json_individual_route_response_summary.py
delete mode 100644 test/test_json_individual_route_response_warnings.py
delete mode 100644 test/test_json_leg.py
delete mode 100644 test/test_json_node.py
delete mode 100644 test/test_json_object.py
delete mode 100644 test/test_json_route_response.py
delete mode 100644 test/test_json_route_response_routes.py
delete mode 100644 test/test_json_segment.py
delete mode 100644 test/test_json_step.py
delete mode 100644 test/test_json_step_maneuver.py
delete mode 100644 test/test_json_summary.py
delete mode 100644 test/test_json_warning.py
delete mode 100644 test/test_jsonpt_stop.py
delete mode 100644 test/test_matrix_profile_body.py
delete mode 100644 test/test_matrix_request.py
delete mode 100644 test/test_matrix_response.py
delete mode 100644 test/test_matrix_response_destinations.py
delete mode 100644 test/test_matrix_response_info.py
delete mode 100644 test/test_matrix_response_metadata.py
delete mode 100644 test/test_matrix_response_sources.py
delete mode 100644 test/test_openpoiservice_poi_request.py
delete mode 100644 test/test_openpoiservice_poi_response.py
delete mode 100644 test/test_optimization_body.py
delete mode 100644 test/test_optimization_jobs.py
delete mode 100644 test/test_optimization_options.py
delete mode 100644 test/test_optimization_vehicles.py
delete mode 100644 test/test_pois_filters.py
delete mode 100644 test/test_pois_geometry.py
delete mode 100644 test/test_profile_parameters.py
delete mode 100644 test/test_profile_parameters_restrictions.py
delete mode 100644 test/test_profile_weightings.py
delete mode 100644 test/test_restrictions.py
delete mode 100644 test/test_round_trip_route_options.py
delete mode 100644 test/test_route_options.py
delete mode 100644 test/test_route_options_avoid_polygons.py
delete mode 100644 test/test_route_response_info.py
delete mode 100644 test/test_rte.py
create mode 100644 test/test_snapping_service_api.py
delete mode 100644 test/test_v2directionsprofilegeojson_schedule_duration.py
delete mode 100644 test/test_v2directionsprofilegeojson_schedule_duration_duration.py
delete mode 100644 test/test_v2directionsprofilegeojson_schedule_duration_units.py
delete mode 100644 test/test_v2directionsprofilegeojson_walking_time.py
diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore
new file mode 100644
index 00000000..c5fa491b
--- /dev/null
+++ b/.swagger-codegen-ignore
@@ -0,0 +1,23 @@
+# Swagger Codegen Ignore
+# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
+
+# Use this file to prevent files from being overwritten by the generator.
+# The patterns follow closely to .gitignore or .dockerignore.
+
+# As an example, the C# client generator defines ApiClient.cs.
+# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
+#ApiClient.cs
+
+# You can match any string of characters against a directory, file or extension with a single asterisk (*):
+#foo/*/qux
+# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
+
+# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
+#foo/**/qux
+# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
+
+# You can also negate patterns with an exclamation (!).
+# For example, you can ignore all files in a docs folder with the file extension .md:
+#docs/*.md
+# Then explicitly reverse the ignore rule for a single file:
+#!docs/README.md
diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION
new file mode 100644
index 00000000..248908e6
--- /dev/null
+++ b/.swagger-codegen/VERSION
@@ -0,0 +1 @@
+3.0.54
\ No newline at end of file
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..dd6c4450
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+# ref: https://docs.travis-ci.com/user/languages/python
+language: python
+python:
+ - "3.2"
+ - "3.3"
+ - "3.4"
+ - "3.5"
+ #- "3.5-dev" # 3.5 development branch
+ #- "nightly" # points to the latest development branch e.g. 3.6-dev
+# command to install dependencies
+install: "pip install -r requirements.txt"
+# command to run tests
+script: nosetests
diff --git a/README.md b/README.md
index 035a98f0..e58947f5 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]
| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
-| 7.1.0 | 7.1.0.post6 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 7.1.1 | 7.1.1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
@@ -49,10 +49,10 @@ Please follow the [installation procedure](#installation--usage) before running
### Examples
These examples show common usages of this library.
-- [Avoid construction sites dynamically](docs/examples/Avoid_ConstructionSites)
-- [Dieselgate Routing](docs/examples/Dieselgate_Routing)
-- [Route optimization of pub crawl](docs/examples/ortools_pubcrawl)
-- [Routing optimization in humanitarian context](docs/examples/Routing_Optimization_Idai)
+- [Avoid construction sites dynamically](examples/Avoid_ConstructionSites.ipynb)
+- [Dieselgate Routing](examples/Dieselgate_Routing.ipynb)
+- [Route optimization of pub crawl](examples/ortools_pubcrawl.ipynb)
+- [Routing optimization in humanitarian context](examples/Routing_Optimization_Idai.ipynb)
### Basic example
```python
@@ -119,9 +119,12 @@ Class | Method | HTTP request | Description
*GeocodeApi* | [**geocode_search_get**](docs/GeocodeApi.md#geocode_search_get) | **GET** /geocode/search | Forward Geocode Service
*GeocodeApi* | [**geocode_search_structured_get**](docs/GeocodeApi.md#geocode_search_structured_get) | **GET** /geocode/search/structured | Structured Forward Geocode Service (beta)
*IsochronesServiceApi* | [**get_default_isochrones**](docs/IsochronesServiceApi.md#get_default_isochrones) | **POST** /v2/isochrones/{profile} | Isochrones Service
-*MatrixServiceApi* | [**get_default**](docs/MatrixServiceApi.md#get_default) | **POST** /v2/matrix/{profile} | Matrix Service
+*MatrixServiceApi* | [**get_default1**](docs/MatrixServiceApi.md#get_default1) | **POST** /v2/matrix/{profile} | Matrix Service
*OptimizationApi* | [**optimization_post**](docs/OptimizationApi.md#optimization_post) | **POST** /optimization | Optimization Service
*PoisApi* | [**pois_post**](docs/PoisApi.md#pois_post) | **POST** /pois | Pois Service
+*SnappingServiceApi* | [**get_default**](docs/SnappingServiceApi.md#get_default) | **POST** /v2/snap/{profile} | Snapping Service
+*SnappingServiceApi* | [**get_geo_json_snapping**](docs/SnappingServiceApi.md#get_geo_json_snapping) | **POST** /v2/snap/{profile}/geojson | Snapping Service GeoJSON
+*SnappingServiceApi* | [**get_json_snapping**](docs/SnappingServiceApi.md#get_json_snapping) | **POST** /v2/snap/{profile}/json | Snapping Service JSON
## Documentation For Models
@@ -131,6 +134,9 @@ Class | Method | HTTP request | Description
- [ElevationLineBody](docs/ElevationLineBody.md)
- [ElevationPointBody](docs/ElevationPointBody.md)
- [EngineInfo](docs/EngineInfo.md)
+ - [GeoJSONFeature](docs/GeoJSONFeature.md)
+ - [GeoJSONFeatureGeometry](docs/GeoJSONFeatureGeometry.md)
+ - [GeoJSONFeatureProperties](docs/GeoJSONFeatureProperties.md)
- [GeoJSONFeaturesObject](docs/GeoJSONFeaturesObject.md)
- [GeoJSONGeometryObject](docs/GeoJSONGeometryObject.md)
- [GeoJSONIsochroneBase](docs/GeoJSONIsochroneBase.md)
@@ -139,12 +145,16 @@ Class | Method | HTTP request | Description
- [GeoJSONIsochronesResponseFeatures](docs/GeoJSONIsochronesResponseFeatures.md)
- [GeoJSONIsochronesResponseMetadata](docs/GeoJSONIsochronesResponseMetadata.md)
- [GeoJSONIsochronesResponseMetadataEngine](docs/GeoJSONIsochronesResponseMetadataEngine.md)
+ - [GeoJSONPointGeometry](docs/GeoJSONPointGeometry.md)
- [GeoJSONPropertiesObject](docs/GeoJSONPropertiesObject.md)
- [GeoJSONPropertiesObjectCategoryIds](docs/GeoJSONPropertiesObjectCategoryIds.md)
- [GeoJSONPropertiesObjectCategoryIdsCategoryId](docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md)
- [GeoJSONPropertiesObjectOsmTags](docs/GeoJSONPropertiesObjectOsmTags.md)
- [GeoJSONRouteResponse](docs/GeoJSONRouteResponse.md)
- [GeoJSONRouteResponseMetadata](docs/GeoJSONRouteResponseMetadata.md)
+ - [GeoJSONSnappingResponse](docs/GeoJSONSnappingResponse.md)
+ - [GeoJSONSnappingResponseFeatures](docs/GeoJSONSnappingResponseFeatures.md)
+ - [GeoJSONSnappingResponseMetadata](docs/GeoJSONSnappingResponseMetadata.md)
- [GeocodeResponse](docs/GeocodeResponse.md)
- [Gpx](docs/Gpx.md)
- [GraphExportService](docs/GraphExportService.md)
@@ -156,10 +166,13 @@ Class | Method | HTTP request | Description
- [InlineResponse2002Steps](docs/InlineResponse2002Steps.md)
- [InlineResponse2002Summary](docs/InlineResponse2002Summary.md)
- [InlineResponse2002Unassigned](docs/InlineResponse2002Unassigned.md)
+ - [InlineResponse2002Violations](docs/InlineResponse2002Violations.md)
- [InlineResponse2003](docs/InlineResponse2003.md)
- [InlineResponse2004](docs/InlineResponse2004.md)
- [InlineResponse2005](docs/InlineResponse2005.md)
- [InlineResponse2006](docs/InlineResponse2006.md)
+ - [InlineResponse2007](docs/InlineResponse2007.md)
+ - [InlineResponse2008](docs/InlineResponse2008.md)
- [InlineResponse200Geometry](docs/InlineResponse200Geometry.md)
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
- [IsochronesRequest](docs/IsochronesRequest.md)
@@ -178,6 +191,7 @@ Class | Method | HTTP request | Description
- [JSONIndividualRouteResponseSummary](docs/JSONIndividualRouteResponseSummary.md)
- [JSONIndividualRouteResponseWarnings](docs/JSONIndividualRouteResponseWarnings.md)
- [JSONLeg](docs/JSONLeg.md)
+ - [JSONLocation](docs/JSONLocation.md)
- [JSONObject](docs/JSONObject.md)
- [JSONPtStop](docs/JSONPtStop.md)
- [JSONRouteResponse](docs/JSONRouteResponse.md)
@@ -204,11 +218,18 @@ Class | Method | HTTP request | Description
- [OpenpoiservicePoiRequest](docs/OpenpoiservicePoiRequest.md)
- [OpenpoiservicePoiResponse](docs/OpenpoiservicePoiResponse.md)
- [OptimizationBody](docs/OptimizationBody.md)
+ - [OptimizationBreaks](docs/OptimizationBreaks.md)
+ - [OptimizationCosts](docs/OptimizationCosts.md)
- [OptimizationJobs](docs/OptimizationJobs.md)
+ - [OptimizationMatrices](docs/OptimizationMatrices.md)
+ - [OptimizationMatricesCyclingelectric](docs/OptimizationMatricesCyclingelectric.md)
- [OptimizationOptions](docs/OptimizationOptions.md)
+ - [OptimizationSteps](docs/OptimizationSteps.md)
- [OptimizationVehicles](docs/OptimizationVehicles.md)
- [PoisFilters](docs/PoisFilters.md)
- [PoisGeometry](docs/PoisGeometry.md)
+ - [ProfileGeojsonBody](docs/ProfileGeojsonBody.md)
+ - [ProfileJsonBody](docs/ProfileJsonBody.md)
- [ProfileParameters](docs/ProfileParameters.md)
- [ProfileParametersRestrictions](docs/ProfileParametersRestrictions.md)
- [ProfileWeightings](docs/ProfileWeightings.md)
@@ -218,10 +239,11 @@ Class | Method | HTTP request | Description
- [RouteOptionsAvoidPolygons](docs/RouteOptionsAvoidPolygons.md)
- [RouteResponseInfo](docs/RouteResponseInfo.md)
- [Rte](docs/Rte.md)
- - [V2directionsprofilegeojsonScheduleDuration](docs/V2directionsprofilegeojsonScheduleDuration.md)
- - [V2directionsprofilegeojsonScheduleDurationDuration](docs/V2directionsprofilegeojsonScheduleDurationDuration.md)
- - [V2directionsprofilegeojsonScheduleDurationUnits](docs/V2directionsprofilegeojsonScheduleDurationUnits.md)
- - [V2directionsprofilegeojsonWalkingTime](docs/V2directionsprofilegeojsonWalkingTime.md)
+ - [SnapProfileBody](docs/SnapProfileBody.md)
+ - [SnappingRequest](docs/SnappingRequest.md)
+ - [SnappingResponse](docs/SnappingResponse.md)
+ - [SnappingResponseInfo](docs/SnappingResponseInfo.md)
+ - [SnappingResponseLocations](docs/SnappingResponseLocations.md)
## Author
diff --git a/docs/DirectionsService.md b/docs/DirectionsService.md
index f7fc7e23..2980e80b 100644
--- a/docs/DirectionsService.md
+++ b/docs/DirectionsService.md
@@ -24,12 +24,12 @@ Name | Type | Description | Notes
**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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [optional]
+**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** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
+**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)
diff --git a/docs/DirectionsService1.md b/docs/DirectionsService1.md
index 31421449..675ee163 100644
--- a/docs/DirectionsService1.md
+++ b/docs/DirectionsService1.md
@@ -24,12 +24,12 @@ Name | Type | Description | Notes
**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** | [**V2directionsprofilegeojsonScheduleDuration**](V2directionsprofilegeojsonScheduleDuration.md) | | [optional]
+**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** | [**V2directionsprofilegeojsonWalkingTime**](V2directionsprofilegeojsonWalkingTime.md) | | [optional]
+**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)
diff --git a/docs/ElevationApi.md b/docs/ElevationApi.md
index ac895d8f..b3d6ccb2 100644
--- a/docs/ElevationApi.md
+++ b/docs/ElevationApi.md
@@ -13,7 +13,7 @@ Method | HTTP request | Description
Elevation Line Service
-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 * Google's Encoded polyline 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]] }' ```
+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 * Google's Encoded polyline 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]] }' ```
### Example
```python
@@ -58,7 +58,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: application/json
+ - **Accept**: application/json, */*
[[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)
@@ -116,7 +116,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: Not defined
- - **Accept**: application/json
+ - **Accept**: application/json, */*
[[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)
@@ -170,7 +170,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: application/json
+ - **Accept**: application/json, */*
[[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)
diff --git a/docs/GeoJSONFeature.md b/docs/GeoJSONFeature.md
new file mode 100644
index 00000000..a8960275
--- /dev/null
+++ b/docs/GeoJSONFeature.md
@@ -0,0 +1,11 @@
+# GeoJSONFeature
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | [**GeoJSONFeatureGeometry**](GeoJSONFeatureGeometry.md) | | [optional]
+**properties** | [**GeoJSONFeatureProperties**](GeoJSONFeatureProperties.md) | | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'Feature']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONFeatureGeometry.md b/docs/GeoJSONFeatureGeometry.md
new file mode 100644
index 00000000..cbe20895
--- /dev/null
+++ b/docs/GeoJSONFeatureGeometry.md
@@ -0,0 +1,10 @@
+# GeoJSONFeatureGeometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**coordinates** | **list[float]** | Lon/Lat coordinates of the snapped location | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'Point']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONFeatureProperties.md b/docs/GeoJSONFeatureProperties.md
new file mode 100644
index 00000000..df691fac
--- /dev/null
+++ b/docs/GeoJSONFeatureProperties.md
@@ -0,0 +1,11 @@
+# GeoJSONFeatureProperties
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
+**source_id** | **int** | Index of the requested location | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONPointGeometry.md b/docs/GeoJSONPointGeometry.md
new file mode 100644
index 00000000..7811958d
--- /dev/null
+++ b/docs/GeoJSONPointGeometry.md
@@ -0,0 +1,10 @@
+# GeoJSONPointGeometry
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**coordinates** | **list[float]** | Lon/Lat coordinates of the snapped location | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'Point']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONSnappingResponse.md b/docs/GeoJSONSnappingResponse.md
new file mode 100644
index 00000000..e46de064
--- /dev/null
+++ b/docs/GeoJSONSnappingResponse.md
@@ -0,0 +1,12 @@
+# GeoJSONSnappingResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned snapping points | [optional]
+**features** | [**list[GeoJSONSnappingResponseFeatures]**](GeoJSONSnappingResponseFeatures.md) | Information about the service and request | [optional]
+**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'FeatureCollection']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONSnappingResponseFeatures.md b/docs/GeoJSONSnappingResponseFeatures.md
new file mode 100644
index 00000000..9a2213b1
--- /dev/null
+++ b/docs/GeoJSONSnappingResponseFeatures.md
@@ -0,0 +1,11 @@
+# GeoJSONSnappingResponseFeatures
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | [**GeoJSONFeatureGeometry**](GeoJSONFeatureGeometry.md) | | [optional]
+**properties** | [**GeoJSONFeatureProperties**](GeoJSONFeatureProperties.md) | | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'Feature']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/GeoJSONSnappingResponseMetadata.md b/docs/GeoJSONSnappingResponseMetadata.md
new file mode 100644
index 00000000..50f2a31c
--- /dev/null
+++ b/docs/GeoJSONSnappingResponseMetadata.md
@@ -0,0 +1,15 @@
+# GeoJSONSnappingResponseMetadata
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**ProfileJsonBody**](ProfileJsonBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2002Routes.md b/docs/InlineResponse2002Routes.md
index ab357ece..d1421151 100644
--- a/docs/InlineResponse2002Routes.md
+++ b/docs/InlineResponse2002Routes.md
@@ -3,11 +3,13 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**amount** | **list[int]** | total amount for jobs in this route | [optional]
**cost** | **float** | cost for this route | [optional]
+**delivery** | **list[int]** | Total delivery for tasks in this route | [optional]
+**description** | **str** | vehicle description, if provided in input | [optional]
**distance** | **float** | total route distance. Only provided when using the `-g` flag | [optional]
**duration** | **float** | total travel time for this route | [optional]
**geometry** | **str** | polyline encoded route geometry. Only provided when using the `-g` flag | [optional]
+**pickup** | **list[int]** | total pickup for tasks in this route | [optional]
**service** | **float** | total service time for this route | [optional]
**steps** | [**list[InlineResponse2002Steps]**](InlineResponse2002Steps.md) | array of `step` objects | [optional]
**vehicle** | **int** | id of the vehicle assigned to this route | [optional]
diff --git a/docs/InlineResponse2002Steps.md b/docs/InlineResponse2002Steps.md
index 3130367c..8ee61c15 100644
--- a/docs/InlineResponse2002Steps.md
+++ b/docs/InlineResponse2002Steps.md
@@ -4,12 +4,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**arrival** | **float** | estimated time of arrival at this step in seconds | [optional]
-**distance** | **float** | traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` | [optional]
+**description** | **str** | step description, if provided in input | [optional]
+**distance** | **float** | traveled distance upon arrival at this step. Only provided when using the `-g` flag | [optional]
**duration** | **float** | cumulated travel time upon arrival at this step in seconds | [optional]
-**job** | **int** | id of the job performed at this step, only provided if `type` value is `job` | [optional]
+**id** | **int** | id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` | [optional]
+**load** | **int** | vehicle load after step completion (with capacity constraints) | [optional]
**location** | **list[float]** | coordinates array for this step (if provided in input) | [optional]
-**service** | **float** | service time at this step, only provided if `type` value is `job` | [optional]
+**service** | **float** | service time at this step | [optional]
+**setup** | **float** | setup time at this step | [optional]
**type** | **str** | string that is either `start`, `job` or `end` | [optional]
+**violations** | [**list[InlineResponse2002Violations]**](InlineResponse2002Violations.md) | array of violation objects for this step | [optional]
**waiting_time** | **float** | waiting time upon arrival at this step, only provided if `type` value is `job` | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2002Summary.md b/docs/InlineResponse2002Summary.md
index 4d619346..b14c542e 100644
--- a/docs/InlineResponse2002Summary.md
+++ b/docs/InlineResponse2002Summary.md
@@ -3,12 +3,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**amount** | **list[int]** | total amount for all routes | [optional]
**cost** | **float** | total cost for all routes | [optional]
+**delivery** | **float** | Total delivery for all routes | [optional]
**distance** | **float** | total distance for all routes. Only provided when using the `-g` flag with `OSRM` | [optional]
**duration** | **float** | total travel time for all routes | [optional]
+**pickup** | **float** | Total pickup for all routes | [optional]
+**priority** | **float** | total priority sum for all assigned tasks | [optional]
+**routes** | **float** | Number of routes in the solution | [optional]
**service** | **float** | total service time for all routes | [optional]
+**setup** | **float** | Total setup time for all routes | [optional]
**unassigned** | **int** | number of jobs that could not be served | [optional]
+**violations** | [**list[InlineResponse2002Violations]**](InlineResponse2002Violations.md) | array of violation objects for all routes | [optional]
**waiting_time** | **float** | total waiting time for all routes | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2002Violations.md b/docs/InlineResponse2002Violations.md
new file mode 100644
index 00000000..8a828f55
--- /dev/null
+++ b/docs/InlineResponse2002Violations.md
@@ -0,0 +1,10 @@
+# InlineResponse2002Violations
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cause** | **str** | string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value | [optional]
+**duration** | **float** | Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md
new file mode 100644
index 00000000..c59ab88d
--- /dev/null
+++ b/docs/InlineResponse2007.md
@@ -0,0 +1,10 @@
+# InlineResponse2007
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
+**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md
new file mode 100644
index 00000000..680b7b90
--- /dev/null
+++ b/docs/InlineResponse2008.md
@@ -0,0 +1,12 @@
+# InlineResponse2008
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**bbox** | **list[float]** | Bounding box that covers all returned snapping points | [optional]
+**features** | [**list[GeoJSONSnappingResponseFeatures]**](GeoJSONSnappingResponseFeatures.md) | Information about the service and request | [optional]
+**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+**type** | **str** | GeoJSON type | [optional] [default to 'FeatureCollection']
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/JSON2DDestinations.md b/docs/JSON2DDestinations.md
index dfac3c49..f63008a5 100644
--- a/docs/JSON2DDestinations.md
+++ b/docs/JSON2DDestinations.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/JSON2DSources.md b/docs/JSON2DSources.md
index fc85767b..9b9345f6 100644
--- a/docs/JSON2DSources.md
+++ b/docs/JSON2DSources.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/JSONLocation.md b/docs/JSONLocation.md
new file mode 100644
index 00000000..cf11ea8e
--- /dev/null
+++ b/docs/JSONLocation.md
@@ -0,0 +1,11 @@
+# JSONLocation
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/MatrixResponseDestinations.md b/docs/MatrixResponseDestinations.md
index db53d863..26caf9b5 100644
--- a/docs/MatrixResponseDestinations.md
+++ b/docs/MatrixResponseDestinations.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/MatrixResponseSources.md b/docs/MatrixResponseSources.md
index 72a58b74..818dc08d 100644
--- a/docs/MatrixResponseSources.md
+++ b/docs/MatrixResponseSources.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/MatrixServiceApi.md b/docs/MatrixServiceApi.md
index 37872091..f2699615 100644
--- a/docs/MatrixServiceApi.md
+++ b/docs/MatrixServiceApi.md
@@ -4,10 +4,10 @@ All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_default**](MatrixServiceApi.md#get_default) | **POST** /v2/matrix/{profile} | Matrix Service
+[**get_default1**](MatrixServiceApi.md#get_default1) | **POST** /v2/matrix/{profile} | Matrix Service
-# **get_default**
-> InlineResponse2006 get_default(body, profile)
+# **get_default1**
+> InlineResponse2006 get_default1(body, profile)
Matrix Service
@@ -34,10 +34,10 @@ profile = 'profile_example' # str | Specifies the matrix profile.
try:
# Matrix Service
- api_response = api_instance.get_default(body, profile)
+ api_response = api_instance.get_default1(body, profile)
pprint(api_response)
except ApiException as e:
- print("Exception when calling MatrixServiceApi->get_default: %s\n" % e)
+ print("Exception when calling MatrixServiceApi->get_default1: %s\n" % e)
```
### Parameters
diff --git a/docs/OptimizationApi.md b/docs/OptimizationApi.md
index c7884241..4dab79f7 100644
--- a/docs/OptimizationApi.md
+++ b/docs/OptimizationApi.md
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: application/json
+ - **Accept**: application/json, */*
[[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)
diff --git a/docs/OptimizationBody.md b/docs/OptimizationBody.md
index fec9938f..0ae161e5 100644
--- a/docs/OptimizationBody.md
+++ b/docs/OptimizationBody.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**jobs** | [**list[OptimizationJobs]**](OptimizationJobs.md) | Array of `job` objects describing the places to visit. For a detailed object description visit the [VROOM api description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#jobs) |
-**matrix** | **list[list]** | Optional two-dimensional array describing a custom matrix | [optional]
+**matrices** | [**OptimizationMatrices**](OptimizationMatrices.md) | | [optional]
**options** | [**OptimizationOptions**](OptimizationOptions.md) | | [optional]
**vehicles** | [**list[OptimizationVehicles]**](OptimizationVehicles.md) | Array of `vehicle` objects describing the available vehicles. For a detailed object description visit the [VROOM API description](https://github.com/VROOM-Project/vroom/blob/master/docs/API.md#vehicles) |
diff --git a/docs/OptimizationBreaks.md b/docs/OptimizationBreaks.md
new file mode 100644
index 00000000..a0c28f57
--- /dev/null
+++ b/docs/OptimizationBreaks.md
@@ -0,0 +1,13 @@
+# OptimizationBreaks
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**description** | **str** | a string describing this break | [optional]
+**id** | **int** | Integer used as unique identifier | [optional]
+**max_load** | **list[float]** | Array of integers describing the maximum vehicle load for which this break can happen. An error is reported if two break objects have the same id for the same vehicle. | [optional]
+**service** | **float** | break duration in seconds (defaults to 0) | [optional] [default to 0]
+**time_windows** | **list[list[int]]** | Array of time_window objects describing valid slots for break start and end, in week seconds, i.e. 28800 = Mon, 8 AM. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationCosts.md b/docs/OptimizationCosts.md
new file mode 100644
index 00000000..0e68055b
--- /dev/null
+++ b/docs/OptimizationCosts.md
@@ -0,0 +1,11 @@
+# OptimizationCosts
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**fixed** | **float** | integer defining the cost of using this vehicle in the solution (defaults to 0) | [optional] [default to 0]
+**per_hour** | **float** | integer defining the cost for one hour of travel time with this vehicle (defaults to 3600) | [optional] [default to 3600]
+**per_km** | **float** | integer defining the cost for one km of travel time with this vehicle (defaults to 0) | [optional] [default to 0]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationJobs.md b/docs/OptimizationJobs.md
index f623220c..8b7b8bb0 100644
--- a/docs/OptimizationJobs.md
+++ b/docs/OptimizationJobs.md
@@ -3,11 +3,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**amount** | **list[int]** | Array describing multidimensional quantities | [optional]
+**delivery** | **list[float]** | an array of integers describing multidimensional quantities for delivery | [optional]
+**description** | **str** | a string describing this job | [optional]
**id** | **int** | an integer used as unique identifier | [optional]
**location** | **list[list[float]]** | coordinates array in `[lon, lat]` | [optional]
**location_index** | **object** | index of relevant row and column in custom matrix | [optional]
+**pickup** | **list[float]** | an array of integers describing multidimensional quantities for pickup | [optional]
+**priority** | **float** | an integer in the range [0, 100] describing priority level (defaults to 0) | [optional] [default to 0]
**service** | **object** | job service duration (defaults to 0), in seconds | [optional]
+**setup** | **float** | job setup duration (defaults to 0), in seconds | [optional]
**skills** | **list[int]** | Array of integers defining mandatory skills for this job | [optional]
**time_windows** | **list[list[int]]** | Array of `time_window` arrays describing valid slots for job service start and end, in week seconds, i.e. 28800 = Mon, 8 AM. | [optional]
diff --git a/docs/OptimizationMatrices.md b/docs/OptimizationMatrices.md
new file mode 100644
index 00000000..ccdb6241
--- /dev/null
+++ b/docs/OptimizationMatrices.md
@@ -0,0 +1,17 @@
+# OptimizationMatrices
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cycling_electric** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**cycling_mountain** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**cycling_regular** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**cycling_road** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**driving_car** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**driving_hgv** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**foot_hiking** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**foot_walking** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+**wheelchair** | [**OptimizationMatricesCyclingelectric**](OptimizationMatricesCyclingelectric.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationMatricesCyclingelectric.md b/docs/OptimizationMatricesCyclingelectric.md
new file mode 100644
index 00000000..dd9101a4
--- /dev/null
+++ b/docs/OptimizationMatricesCyclingelectric.md
@@ -0,0 +1,11 @@
+# OptimizationMatricesCyclingelectric
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**costs** | **list[list[int]]** | costs for a custom cost matrix that will be used within all route cost evaluations | [optional]
+**distances** | **list[list[int]]** | distances for a custom distance matrix | [optional]
+**durations** | **list[list[int]]** | Durations for a custom travel-time matrix that will be used for all checks against timing constraints | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationSteps.md b/docs/OptimizationSteps.md
new file mode 100644
index 00000000..9726f8b3
--- /dev/null
+++ b/docs/OptimizationSteps.md
@@ -0,0 +1,13 @@
+# OptimizationSteps
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **float** | id of the task to be performed at this step if `type` value is not `start` or `end` | [optional]
+**service_after** | **float** | hard constraint on service time lower bound (as absolute or relative timestamp) | [optional]
+**service_at** | **float** | hard constraint on service time (as absolute or relative timestamp) | [optional]
+**service_before** | **float** | hard constraint on service time upper bound (as absolute or relative timestamp) | [optional]
+**type** | **str** | step type (either start, job, pickup, delivery, break or end)] | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/OptimizationVehicles.md b/docs/OptimizationVehicles.md
index 255e3407..e2fcd2bb 100644
--- a/docs/OptimizationVehicles.md
+++ b/docs/OptimizationVehicles.md
@@ -3,14 +3,22 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**breaks** | [**list[OptimizationBreaks]**](OptimizationBreaks.md) | An array of `break` objects | [optional]
**capacity** | **list[int]** | Array of integers describing multidimensional quantities. | [optional]
+**costs** | [**OptimizationCosts**](OptimizationCosts.md) | | [optional]
+**description** | **str** | a string describing this vehicle | [optional]
**end** | **list[float]** | End coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal end point. | [optional]
**end_index** | **object** | Index of relevant row and column in custom matrix. | [optional]
**id** | **int** | Integer used as unique identifier | [optional]
+**max_distance** | **float** | an integer defining the maximum distance for this vehicle | [optional]
+**max_tasks** | **float** | an integer defining the maximum number of tasks in a route for this vehicle | [optional]
+**max_travel_time** | **float** | an integer defining the maximum travel time for this vehicle | [optional]
**profile** | **str** | The ORS routing profile for the vehicle. | [optional]
**skills** | **list[int]** | Array of integers defining skills for this vehicle | [optional]
+**speed_factor** | **float** | A double value in the range (0, 5] used to scale all vehicle travel times (defaults to 1.). The respected precision is limited to two digits after the decimal point. | [optional]
**start** | **list[float]** | Start coordinates array in `[lon, lat]` format. If left blank, the optimization engine will identify the optimal start point. | [optional]
**start_index** | **object** | Index of relevant row and column in custom matrix. | [optional]
+**steps** | [**list[OptimizationSteps]**](OptimizationSteps.md) | | [optional]
**time_window** | **list[int]** | A `time_window` array describing working hours for this vehicle, in week seconds, i.e. 28800 = Mon, 8 AM. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/PoisApi.md b/docs/PoisApi.md
index 368875a3..47280d3e 100644
--- a/docs/PoisApi.md
+++ b/docs/PoisApi.md
@@ -56,7 +56,7 @@ Name | Type | Description | Notes
### HTTP request headers
- **Content-Type**: application/json
- - **Accept**: application/json
+ - **Accept**: application/json, */*
[[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)
diff --git a/docs/ProfileGeojsonBody.md b/docs/ProfileGeojsonBody.md
new file mode 100644
index 00000000..35cceb03
--- /dev/null
+++ b/docs/ProfileGeojsonBody.md
@@ -0,0 +1,11 @@
+# ProfileGeojsonBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | The locations to be snapped as array of `longitude/latitude` pairs. |
+**radius** | **float** | Maximum radius in meters around given coordinates to search for graph edges. |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/ProfileJsonBody.md b/docs/ProfileJsonBody.md
new file mode 100644
index 00000000..bd40758b
--- /dev/null
+++ b/docs/ProfileJsonBody.md
@@ -0,0 +1,11 @@
+# ProfileJsonBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | The locations to be snapped as array of `longitude/latitude` pairs. |
+**radius** | **float** | Maximum radius in meters around given coordinates to search for graph edges. |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnapProfileBody.md b/docs/SnapProfileBody.md
new file mode 100644
index 00000000..8b6a8120
--- /dev/null
+++ b/docs/SnapProfileBody.md
@@ -0,0 +1,11 @@
+# SnapProfileBody
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | The locations to be snapped as array of `longitude/latitude` pairs. |
+**radius** | **float** | Maximum radius in meters around given coordinates to search for graph edges. |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnappingRequest.md b/docs/SnappingRequest.md
new file mode 100644
index 00000000..1c6a92d9
--- /dev/null
+++ b/docs/SnappingRequest.md
@@ -0,0 +1,11 @@
+# SnappingRequest
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
+**locations** | **list[list[float]]** | The locations to be snapped as array of `longitude/latitude` pairs. |
+**radius** | **float** | Maximum radius in meters around given coordinates to search for graph edges. |
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnappingResponse.md b/docs/SnappingResponse.md
new file mode 100644
index 00000000..a8333ce9
--- /dev/null
+++ b/docs/SnappingResponse.md
@@ -0,0 +1,10 @@
+# SnappingResponse
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
+**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnappingResponseInfo.md b/docs/SnappingResponseInfo.md
new file mode 100644
index 00000000..12699deb
--- /dev/null
+++ b/docs/SnappingResponseInfo.md
@@ -0,0 +1,15 @@
+# SnappingResponseInfo
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attribution** | **str** | Copyright and attribution information | [optional]
+**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
+**query** | [**ProfileJsonBody**](ProfileJsonBody.md) | | [optional]
+**service** | **str** | The service that was requested | [optional]
+**system_message** | **str** | System message | [optional]
+**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnappingResponseLocations.md b/docs/SnappingResponseLocations.md
new file mode 100644
index 00000000..05073e1e
--- /dev/null
+++ b/docs/SnappingResponseLocations.md
@@ -0,0 +1,11 @@
+# SnappingResponseLocations
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
+**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
+**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
+
+[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
+
diff --git a/docs/SnappingServiceApi.md b/docs/SnappingServiceApi.md
new file mode 100644
index 00000000..dcfa19d7
--- /dev/null
+++ b/docs/SnappingServiceApi.md
@@ -0,0 +1,178 @@
+# openrouteservice.SnappingServiceApi
+
+All URIs are relative to *https://api.openrouteservice.org*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_default**](SnappingServiceApi.md#get_default) | **POST** /v2/snap/{profile} | Snapping Service
+[**get_geo_json_snapping**](SnappingServiceApi.md#get_geo_json_snapping) | **POST** /v2/snap/{profile}/geojson | Snapping Service GeoJSON
+[**get_json_snapping**](SnappingServiceApi.md#get_json_snapping) | **POST** /v2/snap/{profile}/json | Snapping Service JSON
+
+# **get_default**
+> InlineResponse2007 get_default(body, profile)
+
+Snapping Service
+
+Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.SnapProfileBody() # SnapProfileBody |
+profile = 'profile_example' # str | Specifies the route profile.
+
+try:
+ # Snapping Service
+ api_response = api_instance.get_default(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SnappingServiceApi->get_default: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**SnapProfileBody**](SnapProfileBody.md)| |
+ **profile** | **str**| Specifies the route profile. |
+
+### Return type
+
+[**InlineResponse2007**](InlineResponse2007.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, */*
+
+[[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)
+
+# **get_geo_json_snapping**
+> InlineResponse2008 get_geo_json_snapping(body, profile)
+
+Snapping Service GeoJSON
+
+Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0).
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.ProfileGeojsonBody() # ProfileGeojsonBody |
+profile = 'profile_example' # str | Specifies the profile.
+
+try:
+ # Snapping Service GeoJSON
+ api_response = api_instance.get_geo_json_snapping(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SnappingServiceApi->get_geo_json_snapping: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ProfileGeojsonBody**](ProfileGeojsonBody.md)| |
+ **profile** | **str**| Specifies the profile. |
+
+### Return type
+
+[**InlineResponse2008**](InlineResponse2008.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, */*
+
+[[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)
+
+# **get_json_snapping**
+> InlineResponse2007 get_json_snapping(body, profile)
+
+Snapping Service JSON
+
+Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
+
+### Example
+```python
+from __future__ import print_function
+import time
+import openrouteservice
+from openrouteservice.rest import ApiException
+from pprint import pprint
+
+# Configure API key authorization: ApiKeyAuth
+configuration = openrouteservice.Configuration()
+configuration.api_key['Authorization'] = 'YOUR_API_KEY'
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['Authorization'] = 'Bearer'
+
+# create an instance of the API class
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+body = openrouteservice.ProfileJsonBody() # ProfileJsonBody |
+profile = 'profile_example' # str | Specifies the profile.
+
+try:
+ # Snapping Service JSON
+ api_response = api_instance.get_json_snapping(body, profile)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling SnappingServiceApi->get_json_snapping: %s\n" % e)
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**ProfileJsonBody**](ProfileJsonBody.md)| |
+ **profile** | **str**| Specifies the profile. |
+
+### Return type
+
+[**InlineResponse2007**](InlineResponse2007.md)
+
+### Authorization
+
+[ApiKeyAuth](../README.md#ApiKeyAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json, */*
+
+[[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)
+
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index acdb3de1..c6e1729a 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -5,18 +5,15 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
-import warnings
-warnings.simplefilter('always', DeprecationWarning)
-
# import apis into sdk package
from openrouteservice.api.directions_service_api import DirectionsServiceApi
from openrouteservice.api.elevation_api import ElevationApi
@@ -25,6 +22,7 @@
from openrouteservice.api.matrix_service_api import MatrixServiceApi
from openrouteservice.api.optimization_api import OptimizationApi
from openrouteservice.api.pois_api import PoisApi
+from openrouteservice.api.snapping_service_api import SnappingServiceApi
# import ApiClient
from openrouteservice.api_client import ApiClient
from openrouteservice.configuration import Configuration
@@ -35,6 +33,9 @@
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.engine_info import EngineInfo
+from openrouteservice.models.geo_json_feature import GeoJSONFeature
+from openrouteservice.models.geo_json_feature_geometry import GeoJSONFeatureGeometry
+from openrouteservice.models.geo_json_feature_properties import GeoJSONFeatureProperties
from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
@@ -43,12 +44,16 @@
from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
+from openrouteservice.models.geo_json_point_geometry import GeoJSONPointGeometry
from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
+from openrouteservice.models.geo_json_snapping_response import GeoJSONSnappingResponse
+from openrouteservice.models.geo_json_snapping_response_features import GeoJSONSnappingResponseFeatures
+from openrouteservice.models.geo_json_snapping_response_metadata import GeoJSONSnappingResponseMetadata
from openrouteservice.models.geocode_response import GeocodeResponse
from openrouteservice.models.gpx import Gpx
from openrouteservice.models.graph_export_service import GraphExportService
@@ -60,10 +65,13 @@
from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
+from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
from openrouteservice.models.inline_response2003 import InlineResponse2003
from openrouteservice.models.inline_response2004 import InlineResponse2004
from openrouteservice.models.inline_response2005 import InlineResponse2005
from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response2007 import InlineResponse2007
+from openrouteservice.models.inline_response2008 import InlineResponse2008
from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
from openrouteservice.models.isochrones_request import IsochronesRequest
@@ -82,6 +90,7 @@
from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
from openrouteservice.models.json_leg import JSONLeg
+from openrouteservice.models.json_location import JSONLocation
from openrouteservice.models.json_object import JSONObject
from openrouteservice.models.jsonpt_stop import JSONPtStop
from openrouteservice.models.json_route_response import JSONRouteResponse
@@ -108,11 +117,18 @@
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
+from openrouteservice.models.optimization_breaks import OptimizationBreaks
+from openrouteservice.models.optimization_costs import OptimizationCosts
from openrouteservice.models.optimization_jobs import OptimizationJobs
+from openrouteservice.models.optimization_matrices import OptimizationMatrices
+from openrouteservice.models.optimization_matrices_cyclingelectric import OptimizationMatricesCyclingelectric
from openrouteservice.models.optimization_options import OptimizationOptions
+from openrouteservice.models.optimization_steps import OptimizationSteps
from openrouteservice.models.optimization_vehicles import OptimizationVehicles
from openrouteservice.models.pois_filters import PoisFilters
from openrouteservice.models.pois_geometry import PoisGeometry
+from openrouteservice.models.profile_geojson_body import ProfileGeojsonBody
+from openrouteservice.models.profile_json_body import ProfileJsonBody
from openrouteservice.models.profile_parameters import ProfileParameters
from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
from openrouteservice.models.profile_weightings import ProfileWeightings
@@ -122,12 +138,9 @@
from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
from openrouteservice.models.route_response_info import RouteResponseInfo
from openrouteservice.models.rte import Rte
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits
-from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime
-from openrouteservice.utility import todict
-
-from openrouteservice.legacy.client import Client
-from openrouteservice.legacy import *
-import openrouteservice.legacy.convert as convert
\ No newline at end of file
+from openrouteservice.models.snap_profile_body import SnapProfileBody
+from openrouteservice.models.snapping_request import SnappingRequest
+from openrouteservice.models.snapping_response import SnappingResponse
+from openrouteservice.models.snapping_response_info import SnappingResponseInfo
+from openrouteservice.models.snapping_response_locations import SnappingResponseLocations
+from openrouteservice.utility import *
diff --git a/openrouteservice/api/__init__.py b/openrouteservice/api/__init__.py
index 8f6da872..4f699522 100644
--- a/openrouteservice/api/__init__.py
+++ b/openrouteservice/api/__init__.py
@@ -10,3 +10,4 @@
from openrouteservice.api.matrix_service_api import MatrixServiceApi
from openrouteservice.api.optimization_api import OptimizationApi
from openrouteservice.api.pois_api import PoisApi
+from openrouteservice.api.snapping_service_api import SnappingServiceApi
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index f1aaa396..21ce063e 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index 63c4cc64..d73aabc8 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -106,7 +106,7 @@ def elevation_line_post_with_http_info(self, body, **kwargs): # noqa: E501
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
+ ['application/json', '*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
@@ -214,7 +214,7 @@ def elevation_point_get_with_http_info(self, geometry, **kwargs): # noqa: E501
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
+ ['application/json', '*/*']) # noqa: E501
# Authentication setting
auth_settings = ['ApiKeyAuth'] # noqa: E501
@@ -309,7 +309,7 @@ def elevation_point_post_with_http_info(self, body, **kwargs): # noqa: E501
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
+ ['application/json', '*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index f3d7c5e8..9cb19afc 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index 54a94287..4526e634 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index cf142e32..5e3d1b69 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -32,13 +32,13 @@ def __init__(self, api_client=None):
api_client = ApiClient()
self.api_client = api_client
- def get_default(self, body, profile, **kwargs): # noqa: E501
+ def get_default1(self, body, profile, **kwargs): # noqa: E501
"""Matrix Service # noqa: E501
Returns duration or distance matrix for multiple source and destination points. By default a square duration matrix is returned where every point in locations is paired with each other. The result is null if a value can’t be determined. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_default(body, profile, async_req=True)
+ >>> thread = api.get_default1(body, profile, async_req=True)
>>> result = thread.get()
:param async_req bool
@@ -50,18 +50,18 @@ def get_default(self, body, profile, **kwargs): # noqa: E501
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ return self.get_default1_with_http_info(body, profile, **kwargs) # noqa: E501
else:
- (data) = self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ (data) = self.get_default1_with_http_info(body, profile, **kwargs) # noqa: E501
return data
- def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ def get_default1_with_http_info(self, body, profile, **kwargs): # noqa: E501
"""Matrix Service # noqa: E501
Returns duration or distance matrix for multiple source and destination points. By default a square duration matrix is returned where every point in locations is paired with each other. The result is null if a value can’t be determined. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.get_default_with_http_info(body, profile, async_req=True)
+ >>> thread = api.get_default1_with_http_info(body, profile, async_req=True)
>>> result = thread.get()
:param async_req bool
@@ -83,18 +83,18 @@ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
- " to method get_default" % key
+ " to method get_default1" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'body' is set
if ('body' not in params or
params['body'] is None):
- raise ValueError("Missing the required parameter `body` when calling `get_default`") # noqa: E501
+ raise ValueError("Missing the required parameter `body` when calling `get_default1`") # noqa: E501
# verify the required parameter 'profile' is set
if ('profile' not in params or
params['profile'] is None):
- raise ValueError("Missing the required parameter `profile` when calling `get_default`") # noqa: E501
+ raise ValueError("Missing the required parameter `profile` when calling `get_default1`") # noqa: E501
collection_formats = {}
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index b88e8c67..c82581ed 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -106,7 +106,7 @@ def optimization_post_with_http_info(self, body, **kwargs): # noqa: E501
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
+ ['application/json', '*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index 7fe42419..e69f847e 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -106,7 +106,7 @@ def pois_post_with_http_info(self, body, **kwargs): # noqa: E501
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json']) # noqa: E501
+ ['application/json', '*/*']) # noqa: E501
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
new file mode 100644
index 00000000..3a2b683c
--- /dev/null
+++ b/openrouteservice/api/snapping_service_api.py
@@ -0,0 +1,354 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from openrouteservice.api_client import ApiClient
+
+
+class SnappingServiceApi(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ Ref: https://github.com/swagger-api/swagger-codegen
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def get_default(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service # noqa: E501
+
+ Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SnapProfileBody body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2007
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_default_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service # noqa: E501
+
+ Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_default_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param SnapProfileBody body: (required)
+ :param str profile: Specifies the route profile. (required)
+ :return: InlineResponse2007
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_default" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_default`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_default`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/snap/{profile}', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2007', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_geo_json_snapping(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service GeoJSON # noqa: E501
+
+ Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_geo_json_snapping(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ProfileGeojsonBody body: (required)
+ :param str profile: Specifies the profile. (required)
+ :return: InlineResponse2008
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_geo_json_snapping_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_geo_json_snapping_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_geo_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service GeoJSON # noqa: E501
+
+ Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_geo_json_snapping_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ProfileGeojsonBody body: (required)
+ :param str profile: Specifies the profile. (required)
+ :return: InlineResponse2008
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_geo_json_snapping" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_geo_json_snapping`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_geo_json_snapping`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/snap/{profile}/geojson', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2008', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_json_snapping(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service JSON # noqa: E501
+
+ Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_json_snapping(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ProfileJsonBody body: (required)
+ :param str profile: Specifies the profile. (required)
+ :return: InlineResponse2007
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ if kwargs.get('async_req'):
+ return self.get_json_snapping_with_http_info(body, profile, **kwargs) # noqa: E501
+ else:
+ (data) = self.get_json_snapping_with_http_info(body, profile, **kwargs) # noqa: E501
+ return data
+
+ def get_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E501
+ """Snapping Service JSON # noqa: E501
+
+ Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_json_snapping_with_http_info(body, profile, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool
+ :param ProfileJsonBody body: (required)
+ :param str profile: Specifies the profile. (required)
+ :return: InlineResponse2007
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ all_params = ['body', 'profile'] # noqa: E501
+ all_params.append('async_req')
+ all_params.append('_return_http_data_only')
+ all_params.append('_preload_content')
+ all_params.append('_request_timeout')
+
+ params = locals()
+ for key, val in six.iteritems(params['kwargs']):
+ if key not in all_params:
+ raise TypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_json_snapping" % key
+ )
+ params[key] = val
+ del params['kwargs']
+ # verify the required parameter 'body' is set
+ if ('body' not in params or
+ params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `get_json_snapping`") # noqa: E501
+ # verify the required parameter 'profile' is set
+ if ('profile' not in params or
+ params['profile'] is None):
+ raise ValueError("Missing the required parameter `profile` when calling `get_json_snapping`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'profile' in params:
+ path_params['profile'] = params['profile'] # noqa: E501
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in params:
+ body_params = params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', '*/*']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['ApiKeyAuth'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/v2/snap/{profile}/json', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='InlineResponse2007', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=params.get('async_req'),
+ _return_http_data_only=params.get('_return_http_data_only'),
+ _preload_content=params.get('_preload_content', True),
+ _request_timeout=params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 716b0d9a..1af6d6fa 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -2,9 +2,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -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.0.post6/python'
+ self.user_agent = 'Swagger-Codegen/7.1.1/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index 0c5de8b3..4ff470ea 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -246,6 +246,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 7.1.0\n"\
- "SDK Package Version: 7.1.0.post6".\
+ "Version of the API: 7.1.1\n"\
+ "SDK Package Version: 7.1.1".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index a0b5d8de..f678dd09 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -4,9 +4,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -20,6 +20,9 @@
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
from openrouteservice.models.engine_info import EngineInfo
+from openrouteservice.models.geo_json_feature import GeoJSONFeature
+from openrouteservice.models.geo_json_feature_geometry import GeoJSONFeatureGeometry
+from openrouteservice.models.geo_json_feature_properties import GeoJSONFeatureProperties
from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
@@ -28,12 +31,16 @@
from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
+from openrouteservice.models.geo_json_point_geometry import GeoJSONPointGeometry
from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
+from openrouteservice.models.geo_json_snapping_response import GeoJSONSnappingResponse
+from openrouteservice.models.geo_json_snapping_response_features import GeoJSONSnappingResponseFeatures
+from openrouteservice.models.geo_json_snapping_response_metadata import GeoJSONSnappingResponseMetadata
from openrouteservice.models.geocode_response import GeocodeResponse
from openrouteservice.models.gpx import Gpx
from openrouteservice.models.graph_export_service import GraphExportService
@@ -45,10 +52,13 @@
from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
+from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
from openrouteservice.models.inline_response2003 import InlineResponse2003
from openrouteservice.models.inline_response2004 import InlineResponse2004
from openrouteservice.models.inline_response2005 import InlineResponse2005
from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response2007 import InlineResponse2007
+from openrouteservice.models.inline_response2008 import InlineResponse2008
from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
from openrouteservice.models.isochrones_request import IsochronesRequest
@@ -67,6 +77,7 @@
from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
from openrouteservice.models.json_leg import JSONLeg
+from openrouteservice.models.json_location import JSONLocation
from openrouteservice.models.json_object import JSONObject
from openrouteservice.models.jsonpt_stop import JSONPtStop
from openrouteservice.models.json_route_response import JSONRouteResponse
@@ -93,11 +104,18 @@
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
+from openrouteservice.models.optimization_breaks import OptimizationBreaks
+from openrouteservice.models.optimization_costs import OptimizationCosts
from openrouteservice.models.optimization_jobs import OptimizationJobs
+from openrouteservice.models.optimization_matrices import OptimizationMatrices
+from openrouteservice.models.optimization_matrices_cyclingelectric import OptimizationMatricesCyclingelectric
from openrouteservice.models.optimization_options import OptimizationOptions
+from openrouteservice.models.optimization_steps import OptimizationSteps
from openrouteservice.models.optimization_vehicles import OptimizationVehicles
from openrouteservice.models.pois_filters import PoisFilters
from openrouteservice.models.pois_geometry import PoisGeometry
+from openrouteservice.models.profile_geojson_body import ProfileGeojsonBody
+from openrouteservice.models.profile_json_body import ProfileJsonBody
from openrouteservice.models.profile_parameters import ProfileParameters
from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
from openrouteservice.models.profile_weightings import ProfileWeightings
@@ -107,7 +125,8 @@
from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
from openrouteservice.models.route_response_info import RouteResponseInfo
from openrouteservice.models.rte import Rte
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits
-from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime
+from openrouteservice.models.snap_profile_body import SnapProfileBody
+from openrouteservice.models.snapping_request import SnappingRequest
+from openrouteservice.models.snapping_response import SnappingResponse
+from openrouteservice.models.snapping_response_info import SnappingResponseInfo
+from openrouteservice.models.snapping_response_locations import SnappingResponseLocations
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
index 5274d6ac..f25e7eb8 100644
--- a/openrouteservice/models/alternative_routes.py
+++ b/openrouteservice/models/alternative_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/directions_service.py b/openrouteservice/models/directions_service.py
index 174866f2..28488572 100644
--- a/openrouteservice/models/directions_service.py
+++ b/openrouteservice/models/directions_service.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -49,12 +49,12 @@ class DirectionsService(object):
'radiuses': 'list[float]',
'roundabout_exits': 'bool',
'schedule': 'bool',
- 'schedule_duration': 'V2directionsprofilegeojsonScheduleDuration',
+ 'schedule_duration': 'str',
'schedule_rows': 'int',
'skip_segments': 'list[int]',
'suppress_warnings': 'bool',
'units': 'str',
- 'walking_time': 'V2directionsprofilegeojsonWalkingTime'
+ 'walking_time': 'str'
}
attribute_map = {
@@ -87,7 +87,7 @@ class DirectionsService(object):
'walking_time': 'walking_time'
}
- def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time=None): # noqa: E501
+ def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time='PT15M'): # noqa: E501
"""DirectionsService - a model defined in Swagger""" # noqa: E501
self._alternative_routes = None
self._attributes = None
@@ -510,7 +510,7 @@ def language(self, language):
:param language: The language of this DirectionsService. # noqa: E501
:type: str
"""
- allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
+ allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
if language not in allowed_values:
raise ValueError(
"Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
@@ -688,9 +688,10 @@ def schedule(self, schedule):
def schedule_duration(self):
"""Gets the schedule_duration of this DirectionsService. # noqa: E501
+ 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 # noqa: E501
:return: The schedule_duration of this DirectionsService. # noqa: E501
- :rtype: V2directionsprofilegeojsonScheduleDuration
+ :rtype: str
"""
return self._schedule_duration
@@ -698,9 +699,10 @@ def schedule_duration(self):
def schedule_duration(self, schedule_duration):
"""Sets the schedule_duration of this DirectionsService.
+ 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 # noqa: E501
:param schedule_duration: The schedule_duration of this DirectionsService. # noqa: E501
- :type: V2directionsprofilegeojsonScheduleDuration
+ :type: str
"""
self._schedule_duration = schedule_duration
@@ -807,9 +809,10 @@ def units(self, units):
def walking_time(self):
"""Gets the walking_time of this DirectionsService. # noqa: E501
+ 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 # noqa: E501
:return: The walking_time of this DirectionsService. # noqa: E501
- :rtype: V2directionsprofilegeojsonWalkingTime
+ :rtype: str
"""
return self._walking_time
@@ -817,9 +820,10 @@ def walking_time(self):
def walking_time(self, walking_time):
"""Sets the walking_time of this DirectionsService.
+ 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 # noqa: E501
:param walking_time: The walking_time of this DirectionsService. # noqa: E501
- :type: V2directionsprofilegeojsonWalkingTime
+ :type: str
"""
self._walking_time = walking_time
diff --git a/openrouteservice/models/directions_service1.py b/openrouteservice/models/directions_service1.py
index 1f5754c8..328c2998 100644
--- a/openrouteservice/models/directions_service1.py
+++ b/openrouteservice/models/directions_service1.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -49,12 +49,12 @@ class DirectionsService1(object):
'radiuses': 'list[float]',
'roundabout_exits': 'bool',
'schedule': 'bool',
- 'schedule_duration': 'V2directionsprofilegeojsonScheduleDuration',
+ 'schedule_duration': 'str',
'schedule_rows': 'int',
'skip_segments': 'list[int]',
'suppress_warnings': 'bool',
'units': 'str',
- 'walking_time': 'V2directionsprofilegeojsonWalkingTime'
+ 'walking_time': 'str'
}
attribute_map = {
@@ -87,7 +87,7 @@ class DirectionsService1(object):
'walking_time': 'walking_time'
}
- def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time=None): # noqa: E501
+ def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time='PT15M'): # noqa: E501
"""DirectionsService1 - a model defined in Swagger""" # noqa: E501
self._alternative_routes = None
self._attributes = None
@@ -510,7 +510,7 @@ def language(self, language):
:param language: The language of this DirectionsService1. # noqa: E501
:type: str
"""
- allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
+ allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
if language not in allowed_values:
raise ValueError(
"Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
@@ -688,9 +688,10 @@ def schedule(self, schedule):
def schedule_duration(self):
"""Gets the schedule_duration of this DirectionsService1. # noqa: E501
+ 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 # noqa: E501
:return: The schedule_duration of this DirectionsService1. # noqa: E501
- :rtype: V2directionsprofilegeojsonScheduleDuration
+ :rtype: str
"""
return self._schedule_duration
@@ -698,9 +699,10 @@ def schedule_duration(self):
def schedule_duration(self, schedule_duration):
"""Sets the schedule_duration of this DirectionsService1.
+ 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 # noqa: E501
:param schedule_duration: The schedule_duration of this DirectionsService1. # noqa: E501
- :type: V2directionsprofilegeojsonScheduleDuration
+ :type: str
"""
self._schedule_duration = schedule_duration
@@ -807,9 +809,10 @@ def units(self, units):
def walking_time(self):
"""Gets the walking_time of this DirectionsService1. # noqa: E501
+ 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 # noqa: E501
:return: The walking_time of this DirectionsService1. # noqa: E501
- :rtype: V2directionsprofilegeojsonWalkingTime
+ :rtype: str
"""
return self._walking_time
@@ -817,9 +820,10 @@ def walking_time(self):
def walking_time(self, walking_time):
"""Sets the walking_time of this DirectionsService1.
+ 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 # noqa: E501
:param walking_time: The walking_time of this DirectionsService1. # noqa: E501
- :type: V2directionsprofilegeojsonWalkingTime
+ :type: str
"""
self._walking_time = walking_time
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
index 934343f8..eca62ebd 100644
--- a/openrouteservice/models/elevation_line_body.py
+++ b/openrouteservice/models/elevation_line_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
index e1d71d4c..933d13d6 100644
--- a/openrouteservice/models/elevation_point_body.py
+++ b/openrouteservice/models/elevation_point_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/engine_info.py b/openrouteservice/models/engine_info.py
index d08e012e..b472eff2 100644
--- a/openrouteservice/models/engine_info.py
+++ b/openrouteservice/models/engine_info.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_feature.py b/openrouteservice/models/geo_json_feature.py
new file mode 100644
index 00000000..e5c4e1b8
--- /dev/null
+++ b/openrouteservice/models/geo_json_feature.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONFeature(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'geometry': 'GeoJSONFeatureGeometry',
+ 'properties': 'GeoJSONFeatureProperties',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'geometry': 'geometry',
+ 'properties': 'properties',
+ 'type': 'type'
+ }
+
+ def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E501
+ """GeoJSONFeature - a model defined in Swagger""" # noqa: E501
+ self._geometry = None
+ self._properties = None
+ self._type = None
+ self.discriminator = None
+ if geometry is not None:
+ self.geometry = geometry
+ if properties is not None:
+ self.properties = properties
+ if type is not None:
+ self.type = type
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this GeoJSONFeature. # noqa: E501
+
+
+ :return: The geometry of this GeoJSONFeature. # noqa: E501
+ :rtype: GeoJSONFeatureGeometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this GeoJSONFeature.
+
+
+ :param geometry: The geometry of this GeoJSONFeature. # noqa: E501
+ :type: GeoJSONFeatureGeometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def properties(self):
+ """Gets the properties of this GeoJSONFeature. # noqa: E501
+
+
+ :return: The properties of this GeoJSONFeature. # noqa: E501
+ :rtype: GeoJSONFeatureProperties
+ """
+ return self._properties
+
+ @properties.setter
+ def properties(self, properties):
+ """Sets the properties of this GeoJSONFeature.
+
+
+ :param properties: The properties of this GeoJSONFeature. # noqa: E501
+ :type: GeoJSONFeatureProperties
+ """
+
+ self._properties = properties
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONFeature. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this GeoJSONFeature. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONFeature.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this GeoJSONFeature. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONFeature, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONFeature):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_feature_geometry.py b/openrouteservice/models/geo_json_feature_geometry.py
new file mode 100644
index 00000000..45009fb4
--- /dev/null
+++ b/openrouteservice/models/geo_json_feature_geometry.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONFeatureGeometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coordinates': 'list[float]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'coordinates': 'coordinates',
+ 'type': 'type'
+ }
+
+ def __init__(self, coordinates=None, type='Point'): # noqa: E501
+ """GeoJSONFeatureGeometry - a model defined in Swagger""" # noqa: E501
+ self._coordinates = None
+ self._type = None
+ self.discriminator = None
+ if coordinates is not None:
+ self.coordinates = coordinates
+ if type is not None:
+ self.type = type
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this GeoJSONFeatureGeometry. # noqa: E501
+
+ Lon/Lat coordinates of the snapped location # noqa: E501
+
+ :return: The coordinates of this GeoJSONFeatureGeometry. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this GeoJSONFeatureGeometry.
+
+ Lon/Lat coordinates of the snapped location # noqa: E501
+
+ :param coordinates: The coordinates of this GeoJSONFeatureGeometry. # noqa: E501
+ :type: list[float]
+ """
+
+ self._coordinates = coordinates
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONFeatureGeometry. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this GeoJSONFeatureGeometry. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONFeatureGeometry.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this GeoJSONFeatureGeometry. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONFeatureGeometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONFeatureGeometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_feature_properties.py b/openrouteservice/models/geo_json_feature_properties.py
new file mode 100644
index 00000000..6c1c2d27
--- /dev/null
+++ b/openrouteservice/models/geo_json_feature_properties.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONFeatureProperties(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'name': 'str',
+ 'snapped_distance': 'float',
+ 'source_id': 'int'
+ }
+
+ attribute_map = {
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance',
+ 'source_id': 'source_id'
+ }
+
+ def __init__(self, name=None, snapped_distance=None, source_id=None): # noqa: E501
+ """GeoJSONFeatureProperties - a model defined in Swagger""" # noqa: E501
+ self._name = None
+ self._snapped_distance = None
+ self._source_id = None
+ self.discriminator = None
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+ if source_id is not None:
+ self.source_id = source_id
+
+ @property
+ def name(self):
+ """Gets the name of this GeoJSONFeatureProperties. # noqa: E501
+
+ \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this GeoJSONFeatureProperties. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this GeoJSONFeatureProperties.
+
+ \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this GeoJSONFeatureProperties. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :return: The snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this GeoJSONFeatureProperties.
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ @property
+ def source_id(self):
+ """Gets the source_id of this GeoJSONFeatureProperties. # noqa: E501
+
+ Index of the requested location # noqa: E501
+
+ :return: The source_id of this GeoJSONFeatureProperties. # noqa: E501
+ :rtype: int
+ """
+ return self._source_id
+
+ @source_id.setter
+ def source_id(self, source_id):
+ """Sets the source_id of this GeoJSONFeatureProperties.
+
+ Index of the requested location # noqa: E501
+
+ :param source_id: The source_id of this GeoJSONFeatureProperties. # noqa: E501
+ :type: int
+ """
+
+ self._source_id = source_id
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONFeatureProperties, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONFeatureProperties):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_features_object.py b/openrouteservice/models/geo_json_features_object.py
index 220f476d..5d603134 100644
--- a/openrouteservice/models/geo_json_features_object.py
+++ b/openrouteservice/models/geo_json_features_object.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_geometry_object.py b/openrouteservice/models/geo_json_geometry_object.py
index 8bb14208..61db4fbd 100644
--- a/openrouteservice/models/geo_json_geometry_object.py
+++ b/openrouteservice/models/geo_json_geometry_object.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrone_base.py b/openrouteservice/models/geo_json_isochrone_base.py
index b45658a6..3ba0e3f1 100644
--- a/openrouteservice/models/geo_json_isochrone_base.py
+++ b/openrouteservice/models/geo_json_isochrone_base.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrone_base_geometry.py b/openrouteservice/models/geo_json_isochrone_base_geometry.py
index d1750a8b..bf95a1e7 100644
--- a/openrouteservice/models/geo_json_isochrone_base_geometry.py
+++ b/openrouteservice/models/geo_json_isochrone_base_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrones_response.py b/openrouteservice/models/geo_json_isochrones_response.py
index 14f8791b..9ed9c6eb 100644
--- a/openrouteservice/models/geo_json_isochrones_response.py
+++ b/openrouteservice/models/geo_json_isochrones_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrones_response_features.py b/openrouteservice/models/geo_json_isochrones_response_features.py
index c3a38a1d..e0acd011 100644
--- a/openrouteservice/models/geo_json_isochrones_response_features.py
+++ b/openrouteservice/models/geo_json_isochrones_response_features.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata.py b/openrouteservice/models/geo_json_isochrones_response_metadata.py
index d4cb19eb..69ec6644 100644
--- a/openrouteservice/models/geo_json_isochrones_response_metadata.py
+++ b/openrouteservice/models/geo_json_isochrones_response_metadata.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py b/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
index b631afaf..a672418f 100644
--- a/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
+++ b/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_point_geometry.py b/openrouteservice/models/geo_json_point_geometry.py
new file mode 100644
index 00000000..4b50df42
--- /dev/null
+++ b/openrouteservice/models/geo_json_point_geometry.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONPointGeometry(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'coordinates': 'list[float]',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'coordinates': 'coordinates',
+ 'type': 'type'
+ }
+
+ def __init__(self, coordinates=None, type='Point'): # noqa: E501
+ """GeoJSONPointGeometry - a model defined in Swagger""" # noqa: E501
+ self._coordinates = None
+ self._type = None
+ self.discriminator = None
+ if coordinates is not None:
+ self.coordinates = coordinates
+ if type is not None:
+ self.type = type
+
+ @property
+ def coordinates(self):
+ """Gets the coordinates of this GeoJSONPointGeometry. # noqa: E501
+
+ Lon/Lat coordinates of the snapped location # noqa: E501
+
+ :return: The coordinates of this GeoJSONPointGeometry. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._coordinates
+
+ @coordinates.setter
+ def coordinates(self, coordinates):
+ """Sets the coordinates of this GeoJSONPointGeometry.
+
+ Lon/Lat coordinates of the snapped location # noqa: E501
+
+ :param coordinates: The coordinates of this GeoJSONPointGeometry. # noqa: E501
+ :type: list[float]
+ """
+
+ self._coordinates = coordinates
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONPointGeometry. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this GeoJSONPointGeometry. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONPointGeometry.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this GeoJSONPointGeometry. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONPointGeometry, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONPointGeometry):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object.py b/openrouteservice/models/geo_json_properties_object.py
index d73b98ce..d8b357ff 100644
--- a/openrouteservice/models/geo_json_properties_object.py
+++ b/openrouteservice/models/geo_json_properties_object.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids.py b/openrouteservice/models/geo_json_properties_object_category_ids.py
index 0459a52d..407e8461 100644
--- a/openrouteservice/models/geo_json_properties_object_category_ids.py
+++ b/openrouteservice/models/geo_json_properties_object_category_ids.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py b/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
index 19cbdc3a..027219d1 100644
--- a/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
+++ b/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_properties_object_osm_tags.py b/openrouteservice/models/geo_json_properties_object_osm_tags.py
index 0c441430..bce8a2b6 100644
--- a/openrouteservice/models/geo_json_properties_object_osm_tags.py
+++ b/openrouteservice/models/geo_json_properties_object_osm_tags.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_route_response.py b/openrouteservice/models/geo_json_route_response.py
index 3dbc9c06..941325ab 100644
--- a/openrouteservice/models/geo_json_route_response.py
+++ b/openrouteservice/models/geo_json_route_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_route_response_metadata.py b/openrouteservice/models/geo_json_route_response_metadata.py
index f1723c7b..4059c54d 100644
--- a/openrouteservice/models/geo_json_route_response_metadata.py
+++ b/openrouteservice/models/geo_json_route_response_metadata.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/geo_json_snapping_response.py b/openrouteservice/models/geo_json_snapping_response.py
new file mode 100644
index 00000000..babeca31
--- /dev/null
+++ b/openrouteservice/models/geo_json_snapping_response.py
@@ -0,0 +1,194 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONSnappingResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[GeoJSONSnappingResponseFeatures]',
+ 'metadata': 'GeoJSONSnappingResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type='FeatureCollection'): # noqa: E501
+ """GeoJSONSnappingResponse - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this GeoJSONSnappingResponse. # noqa: E501
+
+ Bounding box that covers all returned snapping points # noqa: E501
+
+ :return: The bbox of this GeoJSONSnappingResponse. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this GeoJSONSnappingResponse.
+
+ Bounding box that covers all returned snapping points # noqa: E501
+
+ :param bbox: The bbox of this GeoJSONSnappingResponse. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this GeoJSONSnappingResponse. # noqa: E501
+
+ Information about the service and request # noqa: E501
+
+ :return: The features of this GeoJSONSnappingResponse. # noqa: E501
+ :rtype: list[GeoJSONSnappingResponseFeatures]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this GeoJSONSnappingResponse.
+
+ Information about the service and request # noqa: E501
+
+ :param features: The features of this GeoJSONSnappingResponse. # noqa: E501
+ :type: list[GeoJSONSnappingResponseFeatures]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this GeoJSONSnappingResponse. # noqa: E501
+
+
+ :return: The metadata of this GeoJSONSnappingResponse. # noqa: E501
+ :rtype: GeoJSONSnappingResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this GeoJSONSnappingResponse.
+
+
+ :param metadata: The metadata of this GeoJSONSnappingResponse. # noqa: E501
+ :type: GeoJSONSnappingResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONSnappingResponse. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this GeoJSONSnappingResponse. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONSnappingResponse.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this GeoJSONSnappingResponse. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONSnappingResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONSnappingResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_snapping_response_features.py b/openrouteservice/models/geo_json_snapping_response_features.py
new file mode 100644
index 00000000..9365b332
--- /dev/null
+++ b/openrouteservice/models/geo_json_snapping_response_features.py
@@ -0,0 +1,164 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONSnappingResponseFeatures(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'geometry': 'GeoJSONFeatureGeometry',
+ 'properties': 'GeoJSONFeatureProperties',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'geometry': 'geometry',
+ 'properties': 'properties',
+ 'type': 'type'
+ }
+
+ def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E501
+ """GeoJSONSnappingResponseFeatures - a model defined in Swagger""" # noqa: E501
+ self._geometry = None
+ self._properties = None
+ self._type = None
+ self.discriminator = None
+ if geometry is not None:
+ self.geometry = geometry
+ if properties is not None:
+ self.properties = properties
+ if type is not None:
+ self.type = type
+
+ @property
+ def geometry(self):
+ """Gets the geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
+
+
+ :return: The geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :rtype: GeoJSONFeatureGeometry
+ """
+ return self._geometry
+
+ @geometry.setter
+ def geometry(self, geometry):
+ """Sets the geometry of this GeoJSONSnappingResponseFeatures.
+
+
+ :param geometry: The geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :type: GeoJSONFeatureGeometry
+ """
+
+ self._geometry = geometry
+
+ @property
+ def properties(self):
+ """Gets the properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
+
+
+ :return: The properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :rtype: GeoJSONFeatureProperties
+ """
+ return self._properties
+
+ @properties.setter
+ def properties(self, properties):
+ """Sets the properties of this GeoJSONSnappingResponseFeatures.
+
+
+ :param properties: The properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :type: GeoJSONFeatureProperties
+ """
+
+ self._properties = properties
+
+ @property
+ def type(self):
+ """Gets the type of this GeoJSONSnappingResponseFeatures. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this GeoJSONSnappingResponseFeatures.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this GeoJSONSnappingResponseFeatures. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONSnappingResponseFeatures, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONSnappingResponseFeatures):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geo_json_snapping_response_metadata.py b/openrouteservice/models/geo_json_snapping_response_metadata.py
new file mode 100644
index 00000000..95fc49d8
--- /dev/null
+++ b/openrouteservice/models/geo_json_snapping_response_metadata.py
@@ -0,0 +1,276 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class GeoJSONSnappingResponseMetadata(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'ProfileJsonBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """GeoJSONSnappingResponseMetadata - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this GeoJSONSnappingResponseMetadata.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+
+ :return: The engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this GeoJSONSnappingResponseMetadata.
+
+
+ :param engine: The engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this GeoJSONSnappingResponseMetadata.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+
+ :return: The query of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: ProfileJsonBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this GeoJSONSnappingResponseMetadata.
+
+
+ :param query: The query of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: ProfileJsonBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this GeoJSONSnappingResponseMetadata.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this GeoJSONSnappingResponseMetadata.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this GeoJSONSnappingResponseMetadata.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(GeoJSONSnappingResponseMetadata, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, GeoJSONSnappingResponseMetadata):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/geocode_response.py b/openrouteservice/models/geocode_response.py
index 1e2cd00c..0960a166 100644
--- a/openrouteservice/models/geocode_response.py
+++ b/openrouteservice/models/geocode_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/gpx.py b/openrouteservice/models/gpx.py
index d059994e..8e1083a6 100644
--- a/openrouteservice/models/gpx.py
+++ b/openrouteservice/models/gpx.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/graph_export_service.py b/openrouteservice/models/graph_export_service.py
index fe9e2a83..fdd5915e 100644
--- a/openrouteservice/models/graph_export_service.py
+++ b/openrouteservice/models/graph_export_service.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response200.py b/openrouteservice/models/inline_response200.py
index 2d32ea90..e0eaa441 100644
--- a/openrouteservice/models/inline_response200.py
+++ b/openrouteservice/models/inline_response200.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2001.py b/openrouteservice/models/inline_response2001.py
index 195da092..95673a1e 100644
--- a/openrouteservice/models/inline_response2001.py
+++ b/openrouteservice/models/inline_response2001.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2001_geometry.py b/openrouteservice/models/inline_response2001_geometry.py
index bd5b2c91..865b972b 100644
--- a/openrouteservice/models/inline_response2001_geometry.py
+++ b/openrouteservice/models/inline_response2001_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2002.py b/openrouteservice/models/inline_response2002.py
index 31fa9d0e..720859eb 100644
--- a/openrouteservice/models/inline_response2002.py
+++ b/openrouteservice/models/inline_response2002.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2002_routes.py b/openrouteservice/models/inline_response2002_routes.py
index e512fb0b..03688fe7 100644
--- a/openrouteservice/models/inline_response2002_routes.py
+++ b/openrouteservice/models/inline_response2002_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -28,11 +28,13 @@ class InlineResponse2002Routes(object):
and the value is json key in definition.
"""
swagger_types = {
- 'amount': 'list[int]',
'cost': 'float',
+ 'delivery': 'list[int]',
+ 'description': 'str',
'distance': 'float',
'duration': 'float',
'geometry': 'str',
+ 'pickup': 'list[int]',
'service': 'float',
'steps': 'list[InlineResponse2002Steps]',
'vehicle': 'int',
@@ -40,39 +42,47 @@ class InlineResponse2002Routes(object):
}
attribute_map = {
- 'amount': 'amount',
'cost': 'cost',
+ 'delivery': 'delivery',
+ 'description': 'description',
'distance': 'distance',
'duration': 'duration',
'geometry': 'geometry',
+ 'pickup': 'pickup',
'service': 'service',
'steps': 'steps',
'vehicle': 'vehicle',
'waiting_time': 'waiting_time'
}
- def __init__(self, amount=None, cost=None, distance=None, duration=None, geometry=None, service=None, steps=None, vehicle=None, waiting_time=None): # noqa: E501
+ def __init__(self, cost=None, delivery=None, description=None, distance=None, duration=None, geometry=None, pickup=None, service=None, steps=None, vehicle=None, waiting_time=None): # noqa: E501
"""InlineResponse2002Routes - a model defined in Swagger""" # noqa: E501
- self._amount = None
self._cost = None
+ self._delivery = None
+ self._description = None
self._distance = None
self._duration = None
self._geometry = None
+ self._pickup = None
self._service = None
self._steps = None
self._vehicle = None
self._waiting_time = None
self.discriminator = None
- if amount is not None:
- self.amount = amount
if cost is not None:
self.cost = cost
+ if delivery is not None:
+ self.delivery = delivery
+ if description is not None:
+ self.description = description
if distance is not None:
self.distance = distance
if duration is not None:
self.duration = duration
if geometry is not None:
self.geometry = geometry
+ if pickup is not None:
+ self.pickup = pickup
if service is not None:
self.service = service
if steps is not None:
@@ -82,29 +92,6 @@ def __init__(self, amount=None, cost=None, distance=None, duration=None, geometr
if waiting_time is not None:
self.waiting_time = waiting_time
- @property
- def amount(self):
- """Gets the amount of this InlineResponse2002Routes. # noqa: E501
-
- total amount for jobs in this route # noqa: E501
-
- :return: The amount of this InlineResponse2002Routes. # noqa: E501
- :rtype: list[int]
- """
- return self._amount
-
- @amount.setter
- def amount(self, amount):
- """Sets the amount of this InlineResponse2002Routes.
-
- total amount for jobs in this route # noqa: E501
-
- :param amount: The amount of this InlineResponse2002Routes. # noqa: E501
- :type: list[int]
- """
-
- self._amount = amount
-
@property
def cost(self):
"""Gets the cost of this InlineResponse2002Routes. # noqa: E501
@@ -128,6 +115,52 @@ def cost(self, cost):
self._cost = cost
+ @property
+ def delivery(self):
+ """Gets the delivery of this InlineResponse2002Routes. # noqa: E501
+
+ Total delivery for tasks in this route # noqa: E501
+
+ :return: The delivery of this InlineResponse2002Routes. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._delivery
+
+ @delivery.setter
+ def delivery(self, delivery):
+ """Sets the delivery of this InlineResponse2002Routes.
+
+ Total delivery for tasks in this route # noqa: E501
+
+ :param delivery: The delivery of this InlineResponse2002Routes. # noqa: E501
+ :type: list[int]
+ """
+
+ self._delivery = delivery
+
+ @property
+ def description(self):
+ """Gets the description of this InlineResponse2002Routes. # noqa: E501
+
+ vehicle description, if provided in input # noqa: E501
+
+ :return: The description of this InlineResponse2002Routes. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this InlineResponse2002Routes.
+
+ vehicle description, if provided in input # noqa: E501
+
+ :param description: The description of this InlineResponse2002Routes. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
@property
def distance(self):
"""Gets the distance of this InlineResponse2002Routes. # noqa: E501
@@ -197,6 +230,29 @@ def geometry(self, geometry):
self._geometry = geometry
+ @property
+ def pickup(self):
+ """Gets the pickup of this InlineResponse2002Routes. # noqa: E501
+
+ total pickup for tasks in this route # noqa: E501
+
+ :return: The pickup of this InlineResponse2002Routes. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._pickup
+
+ @pickup.setter
+ def pickup(self, pickup):
+ """Sets the pickup of this InlineResponse2002Routes.
+
+ total pickup for tasks in this route # noqa: E501
+
+ :param pickup: The pickup of this InlineResponse2002Routes. # noqa: E501
+ :type: list[int]
+ """
+
+ self._pickup = pickup
+
@property
def service(self):
"""Gets the service of this InlineResponse2002Routes. # noqa: E501
diff --git a/openrouteservice/models/inline_response2002_steps.py b/openrouteservice/models/inline_response2002_steps.py
index 562692c7..0e2ed5b2 100644
--- a/openrouteservice/models/inline_response2002_steps.py
+++ b/openrouteservice/models/inline_response2002_steps.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -29,51 +29,71 @@ class InlineResponse2002Steps(object):
"""
swagger_types = {
'arrival': 'float',
+ 'description': 'str',
'distance': 'float',
'duration': 'float',
- 'job': 'int',
+ 'id': 'int',
+ 'load': 'int',
'location': 'list[float]',
'service': 'float',
+ 'setup': 'float',
'type': 'str',
+ 'violations': 'list[InlineResponse2002Violations]',
'waiting_time': 'float'
}
attribute_map = {
'arrival': 'arrival',
+ 'description': 'description',
'distance': 'distance',
'duration': 'duration',
- 'job': 'job',
+ 'id': 'id',
+ 'load': 'load',
'location': 'location',
'service': 'service',
+ 'setup': 'setup',
'type': 'type',
+ 'violations': 'violations',
'waiting_time': 'waiting_time'
}
- def __init__(self, arrival=None, distance=None, duration=None, job=None, location=None, service=None, type=None, waiting_time=None): # noqa: E501
+ def __init__(self, arrival=None, description=None, distance=None, duration=None, id=None, load=None, location=None, service=None, setup=None, type=None, violations=None, waiting_time=None): # noqa: E501
"""InlineResponse2002Steps - a model defined in Swagger""" # noqa: E501
self._arrival = None
+ self._description = None
self._distance = None
self._duration = None
- self._job = None
+ self._id = None
+ self._load = None
self._location = None
self._service = None
+ self._setup = None
self._type = None
+ self._violations = None
self._waiting_time = None
self.discriminator = None
if arrival is not None:
self.arrival = arrival
+ if description is not None:
+ self.description = description
if distance is not None:
self.distance = distance
if duration is not None:
self.duration = duration
- if job is not None:
- self.job = job
+ if id is not None:
+ self.id = id
+ if load is not None:
+ self.load = load
if location is not None:
self.location = location
if service is not None:
self.service = service
+ if setup is not None:
+ self.setup = setup
if type is not None:
self.type = type
+ if violations is not None:
+ self.violations = violations
if waiting_time is not None:
self.waiting_time = waiting_time
@@ -100,11 +120,34 @@ def arrival(self, arrival):
self._arrival = arrival
+ @property
+ def description(self):
+ """Gets the description of this InlineResponse2002Steps. # noqa: E501
+
+ step description, if provided in input # noqa: E501
+
+ :return: The description of this InlineResponse2002Steps. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this InlineResponse2002Steps.
+
+ step description, if provided in input # noqa: E501
+
+ :param description: The description of this InlineResponse2002Steps. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
@property
def distance(self):
"""Gets the distance of this InlineResponse2002Steps. # noqa: E501
- traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+ traveled distance upon arrival at this step. Only provided when using the `-g` flag # noqa: E501
:return: The distance of this InlineResponse2002Steps. # noqa: E501
:rtype: float
@@ -115,7 +158,7 @@ def distance(self):
def distance(self, distance):
"""Sets the distance of this InlineResponse2002Steps.
- traveled distance upon arrival at this step. Only provided when using the `-g` flag with `OSRM` # noqa: E501
+ traveled distance upon arrival at this step. Only provided when using the `-g` flag # noqa: E501
:param distance: The distance of this InlineResponse2002Steps. # noqa: E501
:type: float
@@ -147,27 +190,50 @@ def duration(self, duration):
self._duration = duration
@property
- def job(self):
- """Gets the job of this InlineResponse2002Steps. # noqa: E501
+ def id(self):
+ """Gets the id of this InlineResponse2002Steps. # noqa: E501
+
+ id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` # noqa: E501
+
+ :return: The id of this InlineResponse2002Steps. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this InlineResponse2002Steps.
+
+ id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` # noqa: E501
+
+ :param id: The id of this InlineResponse2002Steps. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def load(self):
+ """Gets the load of this InlineResponse2002Steps. # noqa: E501
- id of the job performed at this step, only provided if `type` value is `job` # noqa: E501
+ vehicle load after step completion (with capacity constraints) # noqa: E501
- :return: The job of this InlineResponse2002Steps. # noqa: E501
+ :return: The load of this InlineResponse2002Steps. # noqa: E501
:rtype: int
"""
- return self._job
+ return self._load
- @job.setter
- def job(self, job):
- """Sets the job of this InlineResponse2002Steps.
+ @load.setter
+ def load(self, load):
+ """Sets the load of this InlineResponse2002Steps.
- id of the job performed at this step, only provided if `type` value is `job` # noqa: E501
+ vehicle load after step completion (with capacity constraints) # noqa: E501
- :param job: The job of this InlineResponse2002Steps. # noqa: E501
+ :param load: The load of this InlineResponse2002Steps. # noqa: E501
:type: int
"""
- self._job = job
+ self._load = load
@property
def location(self):
@@ -196,7 +262,7 @@ def location(self, location):
def service(self):
"""Gets the service of this InlineResponse2002Steps. # noqa: E501
- service time at this step, only provided if `type` value is `job` # noqa: E501
+ service time at this step # noqa: E501
:return: The service of this InlineResponse2002Steps. # noqa: E501
:rtype: float
@@ -207,7 +273,7 @@ def service(self):
def service(self, service):
"""Sets the service of this InlineResponse2002Steps.
- service time at this step, only provided if `type` value is `job` # noqa: E501
+ service time at this step # noqa: E501
:param service: The service of this InlineResponse2002Steps. # noqa: E501
:type: float
@@ -215,6 +281,29 @@ def service(self, service):
self._service = service
+ @property
+ def setup(self):
+ """Gets the setup of this InlineResponse2002Steps. # noqa: E501
+
+ setup time at this step # noqa: E501
+
+ :return: The setup of this InlineResponse2002Steps. # noqa: E501
+ :rtype: float
+ """
+ return self._setup
+
+ @setup.setter
+ def setup(self, setup):
+ """Sets the setup of this InlineResponse2002Steps.
+
+ setup time at this step # noqa: E501
+
+ :param setup: The setup of this InlineResponse2002Steps. # noqa: E501
+ :type: float
+ """
+
+ self._setup = setup
+
@property
def type(self):
"""Gets the type of this InlineResponse2002Steps. # noqa: E501
@@ -238,6 +327,29 @@ def type(self, type):
self._type = type
+ @property
+ def violations(self):
+ """Gets the violations of this InlineResponse2002Steps. # noqa: E501
+
+ array of violation objects for this step # noqa: E501
+
+ :return: The violations of this InlineResponse2002Steps. # noqa: E501
+ :rtype: list[InlineResponse2002Violations]
+ """
+ return self._violations
+
+ @violations.setter
+ def violations(self, violations):
+ """Sets the violations of this InlineResponse2002Steps.
+
+ array of violation objects for this step # noqa: E501
+
+ :param violations: The violations of this InlineResponse2002Steps. # noqa: E501
+ :type: list[InlineResponse2002Violations]
+ """
+
+ self._violations = violations
+
@property
def waiting_time(self):
"""Gets the waiting_time of this InlineResponse2002Steps. # noqa: E501
diff --git a/openrouteservice/models/inline_response2002_summary.py b/openrouteservice/models/inline_response2002_summary.py
index 00e516b9..f936282c 100644
--- a/openrouteservice/models/inline_response2002_summary.py
+++ b/openrouteservice/models/inline_response2002_summary.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -28,73 +28,75 @@ class InlineResponse2002Summary(object):
and the value is json key in definition.
"""
swagger_types = {
- 'amount': 'list[int]',
'cost': 'float',
+ 'delivery': 'float',
'distance': 'float',
'duration': 'float',
+ 'pickup': 'float',
+ 'priority': 'float',
+ 'routes': 'float',
'service': 'float',
+ 'setup': 'float',
'unassigned': 'int',
+ 'violations': 'list[InlineResponse2002Violations]',
'waiting_time': 'float'
}
attribute_map = {
- 'amount': 'amount',
'cost': 'cost',
+ 'delivery': 'delivery',
'distance': 'distance',
'duration': 'duration',
+ 'pickup': 'pickup',
+ 'priority': 'priority',
+ 'routes': 'routes',
'service': 'service',
+ 'setup': 'setup',
'unassigned': 'unassigned',
+ 'violations': 'violations',
'waiting_time': 'waiting_time'
}
- def __init__(self, amount=None, cost=None, distance=None, duration=None, service=None, unassigned=None, waiting_time=None): # noqa: E501
+ def __init__(self, cost=None, delivery=None, distance=None, duration=None, pickup=None, priority=None, routes=None, service=None, setup=None, unassigned=None, violations=None, waiting_time=None): # noqa: E501
"""InlineResponse2002Summary - a model defined in Swagger""" # noqa: E501
- self._amount = None
self._cost = None
+ self._delivery = None
self._distance = None
self._duration = None
+ self._pickup = None
+ self._priority = None
+ self._routes = None
self._service = None
+ self._setup = None
self._unassigned = None
+ self._violations = None
self._waiting_time = None
self.discriminator = None
- if amount is not None:
- self.amount = amount
if cost is not None:
self.cost = cost
+ if delivery is not None:
+ self.delivery = delivery
if distance is not None:
self.distance = distance
if duration is not None:
self.duration = duration
+ if pickup is not None:
+ self.pickup = pickup
+ if priority is not None:
+ self.priority = priority
+ if routes is not None:
+ self.routes = routes
if service is not None:
self.service = service
+ if setup is not None:
+ self.setup = setup
if unassigned is not None:
self.unassigned = unassigned
+ if violations is not None:
+ self.violations = violations
if waiting_time is not None:
self.waiting_time = waiting_time
- @property
- def amount(self):
- """Gets the amount of this InlineResponse2002Summary. # noqa: E501
-
- total amount for all routes # noqa: E501
-
- :return: The amount of this InlineResponse2002Summary. # noqa: E501
- :rtype: list[int]
- """
- return self._amount
-
- @amount.setter
- def amount(self, amount):
- """Sets the amount of this InlineResponse2002Summary.
-
- total amount for all routes # noqa: E501
-
- :param amount: The amount of this InlineResponse2002Summary. # noqa: E501
- :type: list[int]
- """
-
- self._amount = amount
-
@property
def cost(self):
"""Gets the cost of this InlineResponse2002Summary. # noqa: E501
@@ -118,6 +120,29 @@ def cost(self, cost):
self._cost = cost
+ @property
+ def delivery(self):
+ """Gets the delivery of this InlineResponse2002Summary. # noqa: E501
+
+ Total delivery for all routes # noqa: E501
+
+ :return: The delivery of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._delivery
+
+ @delivery.setter
+ def delivery(self, delivery):
+ """Sets the delivery of this InlineResponse2002Summary.
+
+ Total delivery for all routes # noqa: E501
+
+ :param delivery: The delivery of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._delivery = delivery
+
@property
def distance(self):
"""Gets the distance of this InlineResponse2002Summary. # noqa: E501
@@ -164,6 +189,75 @@ def duration(self, duration):
self._duration = duration
+ @property
+ def pickup(self):
+ """Gets the pickup of this InlineResponse2002Summary. # noqa: E501
+
+ Total pickup for all routes # noqa: E501
+
+ :return: The pickup of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._pickup
+
+ @pickup.setter
+ def pickup(self, pickup):
+ """Sets the pickup of this InlineResponse2002Summary.
+
+ Total pickup for all routes # noqa: E501
+
+ :param pickup: The pickup of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._pickup = pickup
+
+ @property
+ def priority(self):
+ """Gets the priority of this InlineResponse2002Summary. # noqa: E501
+
+ total priority sum for all assigned tasks # noqa: E501
+
+ :return: The priority of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._priority
+
+ @priority.setter
+ def priority(self, priority):
+ """Sets the priority of this InlineResponse2002Summary.
+
+ total priority sum for all assigned tasks # noqa: E501
+
+ :param priority: The priority of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._priority = priority
+
+ @property
+ def routes(self):
+ """Gets the routes of this InlineResponse2002Summary. # noqa: E501
+
+ Number of routes in the solution # noqa: E501
+
+ :return: The routes of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._routes
+
+ @routes.setter
+ def routes(self, routes):
+ """Sets the routes of this InlineResponse2002Summary.
+
+ Number of routes in the solution # noqa: E501
+
+ :param routes: The routes of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._routes = routes
+
@property
def service(self):
"""Gets the service of this InlineResponse2002Summary. # noqa: E501
@@ -187,6 +281,29 @@ def service(self, service):
self._service = service
+ @property
+ def setup(self):
+ """Gets the setup of this InlineResponse2002Summary. # noqa: E501
+
+ Total setup time for all routes # noqa: E501
+
+ :return: The setup of this InlineResponse2002Summary. # noqa: E501
+ :rtype: float
+ """
+ return self._setup
+
+ @setup.setter
+ def setup(self, setup):
+ """Sets the setup of this InlineResponse2002Summary.
+
+ Total setup time for all routes # noqa: E501
+
+ :param setup: The setup of this InlineResponse2002Summary. # noqa: E501
+ :type: float
+ """
+
+ self._setup = setup
+
@property
def unassigned(self):
"""Gets the unassigned of this InlineResponse2002Summary. # noqa: E501
@@ -210,6 +327,29 @@ def unassigned(self, unassigned):
self._unassigned = unassigned
+ @property
+ def violations(self):
+ """Gets the violations of this InlineResponse2002Summary. # noqa: E501
+
+ array of violation objects for all routes # noqa: E501
+
+ :return: The violations of this InlineResponse2002Summary. # noqa: E501
+ :rtype: list[InlineResponse2002Violations]
+ """
+ return self._violations
+
+ @violations.setter
+ def violations(self, violations):
+ """Sets the violations of this InlineResponse2002Summary.
+
+ array of violation objects for all routes # noqa: E501
+
+ :param violations: The violations of this InlineResponse2002Summary. # noqa: E501
+ :type: list[InlineResponse2002Violations]
+ """
+
+ self._violations = violations
+
@property
def waiting_time(self):
"""Gets the waiting_time of this InlineResponse2002Summary. # noqa: E501
diff --git a/openrouteservice/models/inline_response2002_unassigned.py b/openrouteservice/models/inline_response2002_unassigned.py
index 4e4063bb..a0ca920d 100644
--- a/openrouteservice/models/inline_response2002_unassigned.py
+++ b/openrouteservice/models/inline_response2002_unassigned.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2002_violations.py b/openrouteservice/models/inline_response2002_violations.py
new file mode 100644
index 00000000..cff17577
--- /dev/null
+++ b/openrouteservice/models/inline_response2002_violations.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2002Violations(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'cause': 'str',
+ 'duration': 'float'
+ }
+
+ attribute_map = {
+ 'cause': 'cause',
+ 'duration': 'duration'
+ }
+
+ def __init__(self, cause=None, duration=None): # noqa: E501
+ """InlineResponse2002Violations - a model defined in Swagger""" # noqa: E501
+ self._cause = None
+ self._duration = None
+ self.discriminator = None
+ if cause is not None:
+ self.cause = cause
+ if duration is not None:
+ self.duration = duration
+
+ @property
+ def cause(self):
+ """Gets the cause of this InlineResponse2002Violations. # noqa: E501
+
+ string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value # noqa: E501
+
+ :return: The cause of this InlineResponse2002Violations. # noqa: E501
+ :rtype: str
+ """
+ return self._cause
+
+ @cause.setter
+ def cause(self, cause):
+ """Sets the cause of this InlineResponse2002Violations.
+
+ string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value # noqa: E501
+
+ :param cause: The cause of this InlineResponse2002Violations. # noqa: E501
+ :type: str
+ """
+
+ self._cause = cause
+
+ @property
+ def duration(self):
+ """Gets the duration of this InlineResponse2002Violations. # noqa: E501
+
+ Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") # noqa: E501
+
+ :return: The duration of this InlineResponse2002Violations. # noqa: E501
+ :rtype: float
+ """
+ return self._duration
+
+ @duration.setter
+ def duration(self, duration):
+ """Sets the duration of this InlineResponse2002Violations.
+
+ Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") # noqa: E501
+
+ :param duration: The duration of this InlineResponse2002Violations. # noqa: E501
+ :type: float
+ """
+
+ self._duration = duration
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2002Violations, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2002Violations):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2003.py b/openrouteservice/models/inline_response2003.py
index 0d5eeb3c..4a62703b 100644
--- a/openrouteservice/models/inline_response2003.py
+++ b/openrouteservice/models/inline_response2003.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2004.py b/openrouteservice/models/inline_response2004.py
index 72d2cc00..b7afce4e 100644
--- a/openrouteservice/models/inline_response2004.py
+++ b/openrouteservice/models/inline_response2004.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2005.py b/openrouteservice/models/inline_response2005.py
index cedd06aa..381e330e 100644
--- a/openrouteservice/models/inline_response2005.py
+++ b/openrouteservice/models/inline_response2005.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2006.py b/openrouteservice/models/inline_response2006.py
index 55fdf938..92b3f18d 100644
--- a/openrouteservice/models/inline_response2006.py
+++ b/openrouteservice/models/inline_response2006.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/inline_response2007.py b/openrouteservice/models/inline_response2007.py
new file mode 100644
index 00000000..a6fdc92e
--- /dev/null
+++ b/openrouteservice/models/inline_response2007.py
@@ -0,0 +1,138 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2007(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'locations': 'list[SnappingResponseLocations]',
+ 'metadata': 'GeoJSONSnappingResponseMetadata'
+ }
+
+ attribute_map = {
+ 'locations': 'locations',
+ 'metadata': 'metadata'
+ }
+
+ def __init__(self, locations=None, metadata=None): # noqa: E501
+ """InlineResponse2007 - a model defined in Swagger""" # noqa: E501
+ self._locations = None
+ self._metadata = None
+ self.discriminator = None
+ if locations is not None:
+ self.locations = locations
+ if metadata is not None:
+ self.metadata = metadata
+
+ @property
+ def locations(self):
+ """Gets the locations of this InlineResponse2007. # noqa: E501
+
+ The snapped locations as coordinates and snapping distance. # noqa: E501
+
+ :return: The locations of this InlineResponse2007. # noqa: E501
+ :rtype: list[SnappingResponseLocations]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this InlineResponse2007.
+
+ The snapped locations as coordinates and snapping distance. # noqa: E501
+
+ :param locations: The locations of this InlineResponse2007. # noqa: E501
+ :type: list[SnappingResponseLocations]
+ """
+
+ self._locations = locations
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2007. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2007. # noqa: E501
+ :rtype: GeoJSONSnappingResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2007.
+
+
+ :param metadata: The metadata of this InlineResponse2007. # noqa: E501
+ :type: GeoJSONSnappingResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2007, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2007):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response2008.py b/openrouteservice/models/inline_response2008.py
new file mode 100644
index 00000000..cb315b72
--- /dev/null
+++ b/openrouteservice/models/inline_response2008.py
@@ -0,0 +1,194 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class InlineResponse2008(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'bbox': 'list[float]',
+ 'features': 'list[GeoJSONSnappingResponseFeatures]',
+ 'metadata': 'GeoJSONSnappingResponseMetadata',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'bbox': 'bbox',
+ 'features': 'features',
+ 'metadata': 'metadata',
+ 'type': 'type'
+ }
+
+ def __init__(self, bbox=None, features=None, metadata=None, type='FeatureCollection'): # noqa: E501
+ """InlineResponse2008 - a model defined in Swagger""" # noqa: E501
+ self._bbox = None
+ self._features = None
+ self._metadata = None
+ self._type = None
+ self.discriminator = None
+ if bbox is not None:
+ self.bbox = bbox
+ if features is not None:
+ self.features = features
+ if metadata is not None:
+ self.metadata = metadata
+ if type is not None:
+ self.type = type
+
+ @property
+ def bbox(self):
+ """Gets the bbox of this InlineResponse2008. # noqa: E501
+
+ Bounding box that covers all returned snapping points # noqa: E501
+
+ :return: The bbox of this InlineResponse2008. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._bbox
+
+ @bbox.setter
+ def bbox(self, bbox):
+ """Sets the bbox of this InlineResponse2008.
+
+ Bounding box that covers all returned snapping points # noqa: E501
+
+ :param bbox: The bbox of this InlineResponse2008. # noqa: E501
+ :type: list[float]
+ """
+
+ self._bbox = bbox
+
+ @property
+ def features(self):
+ """Gets the features of this InlineResponse2008. # noqa: E501
+
+ Information about the service and request # noqa: E501
+
+ :return: The features of this InlineResponse2008. # noqa: E501
+ :rtype: list[GeoJSONSnappingResponseFeatures]
+ """
+ return self._features
+
+ @features.setter
+ def features(self, features):
+ """Sets the features of this InlineResponse2008.
+
+ Information about the service and request # noqa: E501
+
+ :param features: The features of this InlineResponse2008. # noqa: E501
+ :type: list[GeoJSONSnappingResponseFeatures]
+ """
+
+ self._features = features
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this InlineResponse2008. # noqa: E501
+
+
+ :return: The metadata of this InlineResponse2008. # noqa: E501
+ :rtype: GeoJSONSnappingResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this InlineResponse2008.
+
+
+ :param metadata: The metadata of this InlineResponse2008. # noqa: E501
+ :type: GeoJSONSnappingResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ @property
+ def type(self):
+ """Gets the type of this InlineResponse2008. # noqa: E501
+
+ GeoJSON type # noqa: E501
+
+ :return: The type of this InlineResponse2008. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this InlineResponse2008.
+
+ GeoJSON type # noqa: E501
+
+ :param type: The type of this InlineResponse2008. # noqa: E501
+ :type: str
+ """
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(InlineResponse2008, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, InlineResponse2008):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/inline_response200_geometry.py b/openrouteservice/models/inline_response200_geometry.py
index 58f6aacb..7f8561e1 100644
--- a/openrouteservice/models/inline_response200_geometry.py
+++ b/openrouteservice/models/inline_response200_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
index 225636db..d15b22e4 100644
--- a/openrouteservice/models/isochrones_profile_body.py
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_request.py b/openrouteservice/models/isochrones_request.py
index 4ba4047e..05e921db 100644
--- a/openrouteservice/models/isochrones_request.py
+++ b/openrouteservice/models/isochrones_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_response_info.py b/openrouteservice/models/isochrones_response_info.py
index b8120bd5..a8649e3c 100644
--- a/openrouteservice/models/isochrones_response_info.py
+++ b/openrouteservice/models/isochrones_response_info.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json2_d_destinations.py b/openrouteservice/models/json2_d_destinations.py
index 95795042..3fbed49a 100644
--- a/openrouteservice/models/json2_d_destinations.py
+++ b/openrouteservice/models/json2_d_destinations.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -102,7 +102,7 @@ def name(self, name):
def snapped_distance(self):
"""Gets the snapped_distance of this JSON2DDestinations. # noqa: E501
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:return: The snapped_distance of this JSON2DDestinations. # noqa: E501
:rtype: float
@@ -113,7 +113,7 @@ def snapped_distance(self):
def snapped_distance(self, snapped_distance):
"""Sets the snapped_distance of this JSON2DDestinations.
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:param snapped_distance: The snapped_distance of this JSON2DDestinations. # noqa: E501
:type: float
diff --git a/openrouteservice/models/json2_d_sources.py b/openrouteservice/models/json2_d_sources.py
index 070e3067..cfd4b7a6 100644
--- a/openrouteservice/models/json2_d_sources.py
+++ b/openrouteservice/models/json2_d_sources.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -102,7 +102,7 @@ def name(self, name):
def snapped_distance(self):
"""Gets the snapped_distance of this JSON2DSources. # noqa: E501
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:return: The snapped_distance of this JSON2DSources. # noqa: E501
:rtype: float
@@ -113,7 +113,7 @@ def snapped_distance(self):
def snapped_distance(self, snapped_distance):
"""Sets the snapped_distance of this JSON2DSources.
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:param snapped_distance: The snapped_distance of this JSON2DSources. # noqa: E501
:type: float
diff --git a/openrouteservice/models/json_edge.py b/openrouteservice/models/json_edge.py
index b326a6c6..0dec9bc8 100644
--- a/openrouteservice/models/json_edge.py
+++ b/openrouteservice/models/json_edge.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_edge_extra.py b/openrouteservice/models/json_edge_extra.py
index b04bfa0e..fa493ed9 100644
--- a/openrouteservice/models/json_edge_extra.py
+++ b/openrouteservice/models/json_edge_extra.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_export_response.py b/openrouteservice/models/json_export_response.py
index 0c42c0ae..e533e54d 100644
--- a/openrouteservice/models/json_export_response.py
+++ b/openrouteservice/models/json_export_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_export_response_edges.py b/openrouteservice/models/json_export_response_edges.py
index ac763475..a56a3e02 100644
--- a/openrouteservice/models/json_export_response_edges.py
+++ b/openrouteservice/models/json_export_response_edges.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_export_response_edges_extra.py b/openrouteservice/models/json_export_response_edges_extra.py
index ae667373..8aa35be1 100644
--- a/openrouteservice/models/json_export_response_edges_extra.py
+++ b/openrouteservice/models/json_export_response_edges_extra.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_export_response_nodes.py b/openrouteservice/models/json_export_response_nodes.py
index d19474e7..d5bda9d4 100644
--- a/openrouteservice/models/json_export_response_nodes.py
+++ b/openrouteservice/models/json_export_response_nodes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_extra.py b/openrouteservice/models/json_extra.py
index aa3fe123..1a6c8549 100644
--- a/openrouteservice/models/json_extra.py
+++ b/openrouteservice/models/json_extra.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_extra_summary.py b/openrouteservice/models/json_extra_summary.py
index cfff3690..4253e8bd 100644
--- a/openrouteservice/models/json_extra_summary.py
+++ b/openrouteservice/models/json_extra_summary.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response.py b/openrouteservice/models/json_individual_route_response.py
index 3e569cc9..e705b6ed 100644
--- a/openrouteservice/models/json_individual_route_response.py
+++ b/openrouteservice/models/json_individual_route_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_extras.py b/openrouteservice/models/json_individual_route_response_extras.py
index 3de07567..38a2b7df 100644
--- a/openrouteservice/models/json_individual_route_response_extras.py
+++ b/openrouteservice/models/json_individual_route_response_extras.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_instructions.py b/openrouteservice/models/json_individual_route_response_instructions.py
index df3e8082..2ff93d0f 100644
--- a/openrouteservice/models/json_individual_route_response_instructions.py
+++ b/openrouteservice/models/json_individual_route_response_instructions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_legs.py b/openrouteservice/models/json_individual_route_response_legs.py
index b0103732..7f115a60 100644
--- a/openrouteservice/models/json_individual_route_response_legs.py
+++ b/openrouteservice/models/json_individual_route_response_legs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_maneuver.py b/openrouteservice/models/json_individual_route_response_maneuver.py
index 5462f3ab..318ced9d 100644
--- a/openrouteservice/models/json_individual_route_response_maneuver.py
+++ b/openrouteservice/models/json_individual_route_response_maneuver.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_segments.py b/openrouteservice/models/json_individual_route_response_segments.py
index 2f856054..77a9c1a2 100644
--- a/openrouteservice/models/json_individual_route_response_segments.py
+++ b/openrouteservice/models/json_individual_route_response_segments.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_stops.py b/openrouteservice/models/json_individual_route_response_stops.py
index d7f49a14..1c3457b0 100644
--- a/openrouteservice/models/json_individual_route_response_stops.py
+++ b/openrouteservice/models/json_individual_route_response_stops.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_summary.py b/openrouteservice/models/json_individual_route_response_summary.py
index 323597c3..136b6553 100644
--- a/openrouteservice/models/json_individual_route_response_summary.py
+++ b/openrouteservice/models/json_individual_route_response_summary.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_individual_route_response_warnings.py b/openrouteservice/models/json_individual_route_response_warnings.py
index 6a3cfc9c..fe591ade 100644
--- a/openrouteservice/models/json_individual_route_response_warnings.py
+++ b/openrouteservice/models/json_individual_route_response_warnings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_leg.py b/openrouteservice/models/json_leg.py
index 1e11ab7a..b3fc3f88 100644
--- a/openrouteservice/models/json_leg.py
+++ b/openrouteservice/models/json_leg.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_location.py b/openrouteservice/models/json_location.py
new file mode 100644
index 00000000..73f38809
--- /dev/null
+++ b/openrouteservice/models/json_location.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class JSONLocation(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """JSONLocation - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this JSONLocation. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this JSONLocation. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this JSONLocation.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this JSONLocation. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this JSONLocation. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this JSONLocation. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this JSONLocation.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this JSONLocation. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this JSONLocation. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :return: The snapped_distance of this JSONLocation. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this JSONLocation.
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this JSONLocation. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(JSONLocation, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, JSONLocation):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/json_node.py b/openrouteservice/models/json_node.py
index 44bc1667..30e490ca 100644
--- a/openrouteservice/models/json_node.py
+++ b/openrouteservice/models/json_node.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_object.py b/openrouteservice/models/json_object.py
index 3b0b62fd..fe8beb10 100644
--- a/openrouteservice/models/json_object.py
+++ b/openrouteservice/models/json_object.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_route_response.py b/openrouteservice/models/json_route_response.py
index b0af4e20..123a1636 100644
--- a/openrouteservice/models/json_route_response.py
+++ b/openrouteservice/models/json_route_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_route_response_routes.py b/openrouteservice/models/json_route_response_routes.py
index 0e74728a..d8c62104 100644
--- a/openrouteservice/models/json_route_response_routes.py
+++ b/openrouteservice/models/json_route_response_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_segment.py b/openrouteservice/models/json_segment.py
index 65038051..55704ffc 100644
--- a/openrouteservice/models/json_segment.py
+++ b/openrouteservice/models/json_segment.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_step.py b/openrouteservice/models/json_step.py
index 03403c94..219c5323 100644
--- a/openrouteservice/models/json_step.py
+++ b/openrouteservice/models/json_step.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_step_maneuver.py b/openrouteservice/models/json_step_maneuver.py
index bea0488f..be41dcae 100644
--- a/openrouteservice/models/json_step_maneuver.py
+++ b/openrouteservice/models/json_step_maneuver.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_summary.py b/openrouteservice/models/json_summary.py
index ea63bd17..a1d9de65 100644
--- a/openrouteservice/models/json_summary.py
+++ b/openrouteservice/models/json_summary.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_warning.py b/openrouteservice/models/json_warning.py
index 6e1c28b1..5d61f0a4 100644
--- a/openrouteservice/models/json_warning.py
+++ b/openrouteservice/models/json_warning.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/jsonpt_stop.py b/openrouteservice/models/jsonpt_stop.py
index 3357cdfb..0b856bf7 100644
--- a/openrouteservice/models/jsonpt_stop.py
+++ b/openrouteservice/models/jsonpt_stop.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
index 0c7e9ce1..b5719f8f 100644
--- a/openrouteservice/models/matrix_profile_body.py
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_request.py b/openrouteservice/models/matrix_request.py
index 675968d1..1b60f1e1 100644
--- a/openrouteservice/models/matrix_request.py
+++ b/openrouteservice/models/matrix_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_response.py b/openrouteservice/models/matrix_response.py
index f8957713..bb40c6ad 100644
--- a/openrouteservice/models/matrix_response.py
+++ b/openrouteservice/models/matrix_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_response_destinations.py b/openrouteservice/models/matrix_response_destinations.py
index 7dfbf664..ee6f4115 100644
--- a/openrouteservice/models/matrix_response_destinations.py
+++ b/openrouteservice/models/matrix_response_destinations.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -102,7 +102,7 @@ def name(self, name):
def snapped_distance(self):
"""Gets the snapped_distance of this MatrixResponseDestinations. # noqa: E501
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:return: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
:rtype: float
@@ -113,7 +113,7 @@ def snapped_distance(self):
def snapped_distance(self, snapped_distance):
"""Sets the snapped_distance of this MatrixResponseDestinations.
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:param snapped_distance: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
:type: float
diff --git a/openrouteservice/models/matrix_response_info.py b/openrouteservice/models/matrix_response_info.py
index 8799d320..0d2963dd 100644
--- a/openrouteservice/models/matrix_response_info.py
+++ b/openrouteservice/models/matrix_response_info.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_response_metadata.py b/openrouteservice/models/matrix_response_metadata.py
index 75cc7590..f2503eb9 100644
--- a/openrouteservice/models/matrix_response_metadata.py
+++ b/openrouteservice/models/matrix_response_metadata.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_response_sources.py b/openrouteservice/models/matrix_response_sources.py
index 320dfe83..174a1b85 100644
--- a/openrouteservice/models/matrix_response_sources.py
+++ b/openrouteservice/models/matrix_response_sources.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -102,7 +102,7 @@ def name(self, name):
def snapped_distance(self):
"""Gets the snapped_distance of this MatrixResponseSources. # noqa: E501
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:return: The snapped_distance of this MatrixResponseSources. # noqa: E501
:rtype: float
@@ -113,7 +113,7 @@ def snapped_distance(self):
def snapped_distance(self, snapped_distance):
"""Sets the snapped_distance of this MatrixResponseSources.
- Distance between the `source/destination` Location and the used point on the routing graph. # noqa: E501
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
:param snapped_distance: The snapped_distance of this MatrixResponseSources. # noqa: E501
:type: float
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
index 33b73d2d..cd65d1b5 100644
--- a/openrouteservice/models/openpoiservice_poi_request.py
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/openpoiservice_poi_response.py b/openrouteservice/models/openpoiservice_poi_response.py
index 934e51ee..3a11919b 100644
--- a/openrouteservice/models/openpoiservice_poi_response.py
+++ b/openrouteservice/models/openpoiservice_poi_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
index fe19b957..6501fd1e 100644
--- a/openrouteservice/models/optimization_body.py
+++ b/openrouteservice/models/optimization_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -29,28 +29,28 @@ class OptimizationBody(object):
"""
swagger_types = {
'jobs': 'list[OptimizationJobs]',
- 'matrix': 'list[list]',
+ 'matrices': 'OptimizationMatrices',
'options': 'OptimizationOptions',
'vehicles': 'list[OptimizationVehicles]'
}
attribute_map = {
'jobs': 'jobs',
- 'matrix': 'matrix',
+ 'matrices': 'matrices',
'options': 'options',
'vehicles': 'vehicles'
}
- def __init__(self, jobs=None, matrix=None, options=None, vehicles=None): # noqa: E501
+ def __init__(self, jobs=None, matrices=None, options=None, vehicles=None): # noqa: E501
"""OptimizationBody - a model defined in Swagger""" # noqa: E501
self._jobs = None
- self._matrix = None
+ self._matrices = None
self._options = None
self._vehicles = None
self.discriminator = None
self.jobs = jobs
- if matrix is not None:
- self.matrix = matrix
+ if matrices is not None:
+ self.matrices = matrices
if options is not None:
self.options = options
self.vehicles = vehicles
@@ -81,27 +81,25 @@ def jobs(self, jobs):
self._jobs = jobs
@property
- def matrix(self):
- """Gets the matrix of this OptimizationBody. # noqa: E501
+ def matrices(self):
+ """Gets the matrices of this OptimizationBody. # noqa: E501
- Optional two-dimensional array describing a custom matrix # noqa: E501
- :return: The matrix of this OptimizationBody. # noqa: E501
- :rtype: list[list]
+ :return: The matrices of this OptimizationBody. # noqa: E501
+ :rtype: OptimizationMatrices
"""
- return self._matrix
+ return self._matrices
- @matrix.setter
- def matrix(self, matrix):
- """Sets the matrix of this OptimizationBody.
+ @matrices.setter
+ def matrices(self, matrices):
+ """Sets the matrices of this OptimizationBody.
- Optional two-dimensional array describing a custom matrix # noqa: E501
- :param matrix: The matrix of this OptimizationBody. # noqa: E501
- :type: list[list]
+ :param matrices: The matrices of this OptimizationBody. # noqa: E501
+ :type: OptimizationMatrices
"""
- self._matrix = matrix
+ self._matrices = matrices
@property
def options(self):
diff --git a/openrouteservice/models/optimization_breaks.py b/openrouteservice/models/optimization_breaks.py
new file mode 100644
index 00000000..07a3b031
--- /dev/null
+++ b/openrouteservice/models/optimization_breaks.py
@@ -0,0 +1,224 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationBreaks(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'description': 'str',
+ 'id': 'int',
+ 'max_load': 'list[float]',
+ 'service': 'float',
+ 'time_windows': 'list[list[int]]'
+ }
+
+ attribute_map = {
+ 'description': 'description',
+ 'id': 'id',
+ 'max_load': 'max_load',
+ 'service': 'service',
+ 'time_windows': 'time_windows'
+ }
+
+ def __init__(self, description=None, id=None, max_load=None, service=0, time_windows=None): # noqa: E501
+ """OptimizationBreaks - a model defined in Swagger""" # noqa: E501
+ self._description = None
+ self._id = None
+ self._max_load = None
+ self._service = None
+ self._time_windows = None
+ self.discriminator = None
+ if description is not None:
+ self.description = description
+ if id is not None:
+ self.id = id
+ if max_load is not None:
+ self.max_load = max_load
+ if service is not None:
+ self.service = service
+ if time_windows is not None:
+ self.time_windows = time_windows
+
+ @property
+ def description(self):
+ """Gets the description of this OptimizationBreaks. # noqa: E501
+
+ a string describing this break # noqa: E501
+
+ :return: The description of this OptimizationBreaks. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this OptimizationBreaks.
+
+ a string describing this break # noqa: E501
+
+ :param description: The description of this OptimizationBreaks. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
+ @property
+ def id(self):
+ """Gets the id of this OptimizationBreaks. # noqa: E501
+
+ Integer used as unique identifier # noqa: E501
+
+ :return: The id of this OptimizationBreaks. # noqa: E501
+ :rtype: int
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this OptimizationBreaks.
+
+ Integer used as unique identifier # noqa: E501
+
+ :param id: The id of this OptimizationBreaks. # noqa: E501
+ :type: int
+ """
+
+ self._id = id
+
+ @property
+ def max_load(self):
+ """Gets the max_load of this OptimizationBreaks. # noqa: E501
+
+ Array of integers describing the maximum vehicle load for which this break can happen. An error is reported if two break objects have the same id for the same vehicle. # noqa: E501
+
+ :return: The max_load of this OptimizationBreaks. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._max_load
+
+ @max_load.setter
+ def max_load(self, max_load):
+ """Sets the max_load of this OptimizationBreaks.
+
+ Array of integers describing the maximum vehicle load for which this break can happen. An error is reported if two break objects have the same id for the same vehicle. # noqa: E501
+
+ :param max_load: The max_load of this OptimizationBreaks. # noqa: E501
+ :type: list[float]
+ """
+
+ self._max_load = max_load
+
+ @property
+ def service(self):
+ """Gets the service of this OptimizationBreaks. # noqa: E501
+
+ break duration in seconds (defaults to 0) # noqa: E501
+
+ :return: The service of this OptimizationBreaks. # noqa: E501
+ :rtype: float
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this OptimizationBreaks.
+
+ break duration in seconds (defaults to 0) # noqa: E501
+
+ :param service: The service of this OptimizationBreaks. # noqa: E501
+ :type: float
+ """
+
+ self._service = service
+
+ @property
+ def time_windows(self):
+ """Gets the time_windows of this OptimizationBreaks. # noqa: E501
+
+ Array of time_window objects describing valid slots for break start and end, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :return: The time_windows of this OptimizationBreaks. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._time_windows
+
+ @time_windows.setter
+ def time_windows(self, time_windows):
+ """Sets the time_windows of this OptimizationBreaks.
+
+ Array of time_window objects describing valid slots for break start and end, in week seconds, i.e. 28800 = Mon, 8 AM. # noqa: E501
+
+ :param time_windows: The time_windows of this OptimizationBreaks. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._time_windows = time_windows
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationBreaks, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationBreaks):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_costs.py b/openrouteservice/models/optimization_costs.py
new file mode 100644
index 00000000..55ed5e42
--- /dev/null
+++ b/openrouteservice/models/optimization_costs.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationCosts(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'fixed': 'float',
+ 'per_hour': 'float',
+ 'per_km': 'float'
+ }
+
+ attribute_map = {
+ 'fixed': 'fixed',
+ 'per_hour': 'per_hour',
+ 'per_km': 'per_km'
+ }
+
+ def __init__(self, fixed=0, per_hour=3600, per_km=0): # noqa: E501
+ """OptimizationCosts - a model defined in Swagger""" # noqa: E501
+ self._fixed = None
+ self._per_hour = None
+ self._per_km = None
+ self.discriminator = None
+ if fixed is not None:
+ self.fixed = fixed
+ if per_hour is not None:
+ self.per_hour = per_hour
+ if per_km is not None:
+ self.per_km = per_km
+
+ @property
+ def fixed(self):
+ """Gets the fixed of this OptimizationCosts. # noqa: E501
+
+ integer defining the cost of using this vehicle in the solution (defaults to 0) # noqa: E501
+
+ :return: The fixed of this OptimizationCosts. # noqa: E501
+ :rtype: float
+ """
+ return self._fixed
+
+ @fixed.setter
+ def fixed(self, fixed):
+ """Sets the fixed of this OptimizationCosts.
+
+ integer defining the cost of using this vehicle in the solution (defaults to 0) # noqa: E501
+
+ :param fixed: The fixed of this OptimizationCosts. # noqa: E501
+ :type: float
+ """
+
+ self._fixed = fixed
+
+ @property
+ def per_hour(self):
+ """Gets the per_hour of this OptimizationCosts. # noqa: E501
+
+ integer defining the cost for one hour of travel time with this vehicle (defaults to 3600) # noqa: E501
+
+ :return: The per_hour of this OptimizationCosts. # noqa: E501
+ :rtype: float
+ """
+ return self._per_hour
+
+ @per_hour.setter
+ def per_hour(self, per_hour):
+ """Sets the per_hour of this OptimizationCosts.
+
+ integer defining the cost for one hour of travel time with this vehicle (defaults to 3600) # noqa: E501
+
+ :param per_hour: The per_hour of this OptimizationCosts. # noqa: E501
+ :type: float
+ """
+
+ self._per_hour = per_hour
+
+ @property
+ def per_km(self):
+ """Gets the per_km of this OptimizationCosts. # noqa: E501
+
+ integer defining the cost for one km of travel time with this vehicle (defaults to 0) # noqa: E501
+
+ :return: The per_km of this OptimizationCosts. # noqa: E501
+ :rtype: float
+ """
+ return self._per_km
+
+ @per_km.setter
+ def per_km(self, per_km):
+ """Sets the per_km of this OptimizationCosts.
+
+ integer defining the cost for one km of travel time with this vehicle (defaults to 0) # noqa: E501
+
+ :param per_km: The per_km of this OptimizationCosts. # noqa: E501
+ :type: float
+ """
+
+ self._per_km = per_km
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationCosts, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationCosts):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
index 6aeb86cb..9ecf56dd 100644
--- a/openrouteservice/models/optimization_jobs.py
+++ b/openrouteservice/models/optimization_jobs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -28,72 +28,115 @@ class OptimizationJobs(object):
and the value is json key in definition.
"""
swagger_types = {
- 'amount': 'list[int]',
+ 'delivery': 'list[float]',
+ 'description': 'str',
'id': 'int',
'location': 'list[list[float]]',
'location_index': 'object',
+ 'pickup': 'list[float]',
+ 'priority': 'float',
'service': 'object',
+ 'setup': 'float',
'skills': 'list[int]',
'time_windows': 'list[list[int]]'
}
attribute_map = {
- 'amount': 'amount',
+ 'delivery': 'delivery',
+ 'description': 'description',
'id': 'id',
'location': 'location',
'location_index': 'location_index',
+ 'pickup': 'pickup',
+ 'priority': 'priority',
'service': 'service',
+ 'setup': 'setup',
'skills': 'skills',
'time_windows': 'time_windows'
}
- def __init__(self, amount=None, id=None, location=None, location_index=None, service=None, skills=None, time_windows=None): # noqa: E501
+ def __init__(self, delivery=None, description=None, id=None, location=None, location_index=None, pickup=None, priority=0, service=None, setup=None, skills=None, time_windows=None): # noqa: E501
"""OptimizationJobs - a model defined in Swagger""" # noqa: E501
- self._amount = None
+ self._delivery = None
+ self._description = None
self._id = None
self._location = None
self._location_index = None
+ self._pickup = None
+ self._priority = None
self._service = None
+ self._setup = None
self._skills = None
self._time_windows = None
self.discriminator = None
- if amount is not None:
- self.amount = amount
+ if delivery is not None:
+ self.delivery = delivery
+ if description is not None:
+ self.description = description
if id is not None:
self.id = id
if location is not None:
self.location = location
if location_index is not None:
self.location_index = location_index
+ if pickup is not None:
+ self.pickup = pickup
+ if priority is not None:
+ self.priority = priority
if service is not None:
self.service = service
+ if setup is not None:
+ self.setup = setup
if skills is not None:
self.skills = skills
if time_windows is not None:
self.time_windows = time_windows
@property
- def amount(self):
- """Gets the amount of this OptimizationJobs. # noqa: E501
+ def delivery(self):
+ """Gets the delivery of this OptimizationJobs. # noqa: E501
- Array describing multidimensional quantities # noqa: E501
+ an array of integers describing multidimensional quantities for delivery # noqa: E501
- :return: The amount of this OptimizationJobs. # noqa: E501
- :rtype: list[int]
+ :return: The delivery of this OptimizationJobs. # noqa: E501
+ :rtype: list[float]
"""
- return self._amount
+ return self._delivery
- @amount.setter
- def amount(self, amount):
- """Sets the amount of this OptimizationJobs.
+ @delivery.setter
+ def delivery(self, delivery):
+ """Sets the delivery of this OptimizationJobs.
- Array describing multidimensional quantities # noqa: E501
+ an array of integers describing multidimensional quantities for delivery # noqa: E501
- :param amount: The amount of this OptimizationJobs. # noqa: E501
- :type: list[int]
+ :param delivery: The delivery of this OptimizationJobs. # noqa: E501
+ :type: list[float]
"""
- self._amount = amount
+ self._delivery = delivery
+
+ @property
+ def description(self):
+ """Gets the description of this OptimizationJobs. # noqa: E501
+
+ a string describing this job # noqa: E501
+
+ :return: The description of this OptimizationJobs. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this OptimizationJobs.
+
+ a string describing this job # noqa: E501
+
+ :param description: The description of this OptimizationJobs. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
@property
def id(self):
@@ -164,6 +207,52 @@ def location_index(self, location_index):
self._location_index = location_index
+ @property
+ def pickup(self):
+ """Gets the pickup of this OptimizationJobs. # noqa: E501
+
+ an array of integers describing multidimensional quantities for pickup # noqa: E501
+
+ :return: The pickup of this OptimizationJobs. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._pickup
+
+ @pickup.setter
+ def pickup(self, pickup):
+ """Sets the pickup of this OptimizationJobs.
+
+ an array of integers describing multidimensional quantities for pickup # noqa: E501
+
+ :param pickup: The pickup of this OptimizationJobs. # noqa: E501
+ :type: list[float]
+ """
+
+ self._pickup = pickup
+
+ @property
+ def priority(self):
+ """Gets the priority of this OptimizationJobs. # noqa: E501
+
+ an integer in the range [0, 100] describing priority level (defaults to 0) # noqa: E501
+
+ :return: The priority of this OptimizationJobs. # noqa: E501
+ :rtype: float
+ """
+ return self._priority
+
+ @priority.setter
+ def priority(self, priority):
+ """Sets the priority of this OptimizationJobs.
+
+ an integer in the range [0, 100] describing priority level (defaults to 0) # noqa: E501
+
+ :param priority: The priority of this OptimizationJobs. # noqa: E501
+ :type: float
+ """
+
+ self._priority = priority
+
@property
def service(self):
"""Gets the service of this OptimizationJobs. # noqa: E501
@@ -187,6 +276,29 @@ def service(self, service):
self._service = service
+ @property
+ def setup(self):
+ """Gets the setup of this OptimizationJobs. # noqa: E501
+
+ job setup duration (defaults to 0), in seconds # noqa: E501
+
+ :return: The setup of this OptimizationJobs. # noqa: E501
+ :rtype: float
+ """
+ return self._setup
+
+ @setup.setter
+ def setup(self, setup):
+ """Sets the setup of this OptimizationJobs.
+
+ job setup duration (defaults to 0), in seconds # noqa: E501
+
+ :param setup: The setup of this OptimizationJobs. # noqa: E501
+ :type: float
+ """
+
+ self._setup = setup
+
@property
def skills(self):
"""Gets the skills of this OptimizationJobs. # noqa: E501
diff --git a/openrouteservice/models/optimization_matrices.py b/openrouteservice/models/optimization_matrices.py
new file mode 100644
index 00000000..d7255e64
--- /dev/null
+++ b/openrouteservice/models/optimization_matrices.py
@@ -0,0 +1,318 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationMatrices(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'cycling_electric': 'OptimizationMatricesCyclingelectric',
+ 'cycling_mountain': 'OptimizationMatricesCyclingelectric',
+ 'cycling_regular': 'OptimizationMatricesCyclingelectric',
+ 'cycling_road': 'OptimizationMatricesCyclingelectric',
+ 'driving_car': 'OptimizationMatricesCyclingelectric',
+ 'driving_hgv': 'OptimizationMatricesCyclingelectric',
+ 'foot_hiking': 'OptimizationMatricesCyclingelectric',
+ 'foot_walking': 'OptimizationMatricesCyclingelectric',
+ 'wheelchair': 'OptimizationMatricesCyclingelectric'
+ }
+
+ attribute_map = {
+ 'cycling_electric': 'cycling-electric',
+ 'cycling_mountain': 'cycling-mountain',
+ 'cycling_regular': 'cycling-regular',
+ 'cycling_road': 'cycling-road',
+ 'driving_car': 'driving-car',
+ 'driving_hgv': 'driving-hgv',
+ 'foot_hiking': 'foot-hiking',
+ 'foot_walking': 'foot-walking',
+ 'wheelchair': 'wheelchair'
+ }
+
+ def __init__(self, cycling_electric=None, cycling_mountain=None, cycling_regular=None, cycling_road=None, driving_car=None, driving_hgv=None, foot_hiking=None, foot_walking=None, wheelchair=None): # noqa: E501
+ """OptimizationMatrices - a model defined in Swagger""" # noqa: E501
+ self._cycling_electric = None
+ self._cycling_mountain = None
+ self._cycling_regular = None
+ self._cycling_road = None
+ self._driving_car = None
+ self._driving_hgv = None
+ self._foot_hiking = None
+ self._foot_walking = None
+ self._wheelchair = None
+ self.discriminator = None
+ if cycling_electric is not None:
+ self.cycling_electric = cycling_electric
+ if cycling_mountain is not None:
+ self.cycling_mountain = cycling_mountain
+ if cycling_regular is not None:
+ self.cycling_regular = cycling_regular
+ if cycling_road is not None:
+ self.cycling_road = cycling_road
+ if driving_car is not None:
+ self.driving_car = driving_car
+ if driving_hgv is not None:
+ self.driving_hgv = driving_hgv
+ if foot_hiking is not None:
+ self.foot_hiking = foot_hiking
+ if foot_walking is not None:
+ self.foot_walking = foot_walking
+ if wheelchair is not None:
+ self.wheelchair = wheelchair
+
+ @property
+ def cycling_electric(self):
+ """Gets the cycling_electric of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The cycling_electric of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._cycling_electric
+
+ @cycling_electric.setter
+ def cycling_electric(self, cycling_electric):
+ """Sets the cycling_electric of this OptimizationMatrices.
+
+
+ :param cycling_electric: The cycling_electric of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._cycling_electric = cycling_electric
+
+ @property
+ def cycling_mountain(self):
+ """Gets the cycling_mountain of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The cycling_mountain of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._cycling_mountain
+
+ @cycling_mountain.setter
+ def cycling_mountain(self, cycling_mountain):
+ """Sets the cycling_mountain of this OptimizationMatrices.
+
+
+ :param cycling_mountain: The cycling_mountain of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._cycling_mountain = cycling_mountain
+
+ @property
+ def cycling_regular(self):
+ """Gets the cycling_regular of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The cycling_regular of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._cycling_regular
+
+ @cycling_regular.setter
+ def cycling_regular(self, cycling_regular):
+ """Sets the cycling_regular of this OptimizationMatrices.
+
+
+ :param cycling_regular: The cycling_regular of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._cycling_regular = cycling_regular
+
+ @property
+ def cycling_road(self):
+ """Gets the cycling_road of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The cycling_road of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._cycling_road
+
+ @cycling_road.setter
+ def cycling_road(self, cycling_road):
+ """Sets the cycling_road of this OptimizationMatrices.
+
+
+ :param cycling_road: The cycling_road of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._cycling_road = cycling_road
+
+ @property
+ def driving_car(self):
+ """Gets the driving_car of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The driving_car of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._driving_car
+
+ @driving_car.setter
+ def driving_car(self, driving_car):
+ """Sets the driving_car of this OptimizationMatrices.
+
+
+ :param driving_car: The driving_car of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._driving_car = driving_car
+
+ @property
+ def driving_hgv(self):
+ """Gets the driving_hgv of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The driving_hgv of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._driving_hgv
+
+ @driving_hgv.setter
+ def driving_hgv(self, driving_hgv):
+ """Sets the driving_hgv of this OptimizationMatrices.
+
+
+ :param driving_hgv: The driving_hgv of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._driving_hgv = driving_hgv
+
+ @property
+ def foot_hiking(self):
+ """Gets the foot_hiking of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The foot_hiking of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._foot_hiking
+
+ @foot_hiking.setter
+ def foot_hiking(self, foot_hiking):
+ """Sets the foot_hiking of this OptimizationMatrices.
+
+
+ :param foot_hiking: The foot_hiking of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._foot_hiking = foot_hiking
+
+ @property
+ def foot_walking(self):
+ """Gets the foot_walking of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The foot_walking of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._foot_walking
+
+ @foot_walking.setter
+ def foot_walking(self, foot_walking):
+ """Sets the foot_walking of this OptimizationMatrices.
+
+
+ :param foot_walking: The foot_walking of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._foot_walking = foot_walking
+
+ @property
+ def wheelchair(self):
+ """Gets the wheelchair of this OptimizationMatrices. # noqa: E501
+
+
+ :return: The wheelchair of this OptimizationMatrices. # noqa: E501
+ :rtype: OptimizationMatricesCyclingelectric
+ """
+ return self._wheelchair
+
+ @wheelchair.setter
+ def wheelchair(self, wheelchair):
+ """Sets the wheelchair of this OptimizationMatrices.
+
+
+ :param wheelchair: The wheelchair of this OptimizationMatrices. # noqa: E501
+ :type: OptimizationMatricesCyclingelectric
+ """
+
+ self._wheelchair = wheelchair
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationMatrices, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationMatrices):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_matrices_cyclingelectric.py b/openrouteservice/models/optimization_matrices_cyclingelectric.py
new file mode 100644
index 00000000..69eb0088
--- /dev/null
+++ b/openrouteservice/models/optimization_matrices_cyclingelectric.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationMatricesCyclingelectric(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'costs': 'list[list[int]]',
+ 'distances': 'list[list[int]]',
+ 'durations': 'list[list[int]]'
+ }
+
+ attribute_map = {
+ 'costs': 'costs',
+ 'distances': 'distances',
+ 'durations': 'durations'
+ }
+
+ def __init__(self, costs=None, distances=None, durations=None): # noqa: E501
+ """OptimizationMatricesCyclingelectric - a model defined in Swagger""" # noqa: E501
+ self._costs = None
+ self._distances = None
+ self._durations = None
+ self.discriminator = None
+ if costs is not None:
+ self.costs = costs
+ if distances is not None:
+ self.distances = distances
+ if durations is not None:
+ self.durations = durations
+
+ @property
+ def costs(self):
+ """Gets the costs of this OptimizationMatricesCyclingelectric. # noqa: E501
+
+ costs for a custom cost matrix that will be used within all route cost evaluations # noqa: E501
+
+ :return: The costs of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._costs
+
+ @costs.setter
+ def costs(self, costs):
+ """Sets the costs of this OptimizationMatricesCyclingelectric.
+
+ costs for a custom cost matrix that will be used within all route cost evaluations # noqa: E501
+
+ :param costs: The costs of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._costs = costs
+
+ @property
+ def distances(self):
+ """Gets the distances of this OptimizationMatricesCyclingelectric. # noqa: E501
+
+ distances for a custom distance matrix # noqa: E501
+
+ :return: The distances of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._distances
+
+ @distances.setter
+ def distances(self, distances):
+ """Sets the distances of this OptimizationMatricesCyclingelectric.
+
+ distances for a custom distance matrix # noqa: E501
+
+ :param distances: The distances of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._distances = distances
+
+ @property
+ def durations(self):
+ """Gets the durations of this OptimizationMatricesCyclingelectric. # noqa: E501
+
+ Durations for a custom travel-time matrix that will be used for all checks against timing constraints # noqa: E501
+
+ :return: The durations of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :rtype: list[list[int]]
+ """
+ return self._durations
+
+ @durations.setter
+ def durations(self, durations):
+ """Sets the durations of this OptimizationMatricesCyclingelectric.
+
+ Durations for a custom travel-time matrix that will be used for all checks against timing constraints # noqa: E501
+
+ :param durations: The durations of this OptimizationMatricesCyclingelectric. # noqa: E501
+ :type: list[list[int]]
+ """
+
+ self._durations = durations
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationMatricesCyclingelectric, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationMatricesCyclingelectric):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
index 7b4bc462..4154f264 100644
--- a/openrouteservice/models/optimization_options.py
+++ b/openrouteservice/models/optimization_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_steps.py b/openrouteservice/models/optimization_steps.py
new file mode 100644
index 00000000..9da3d7fa
--- /dev/null
+++ b/openrouteservice/models/optimization_steps.py
@@ -0,0 +1,230 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class OptimizationSteps(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'float',
+ 'service_after': 'float',
+ 'service_at': 'float',
+ 'service_before': 'float',
+ 'type': 'str'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'service_after': 'service_after',
+ 'service_at': 'service_at',
+ 'service_before': 'service_before',
+ 'type': 'type'
+ }
+
+ def __init__(self, id=None, service_after=None, service_at=None, service_before=None, type=None): # noqa: E501
+ """OptimizationSteps - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._service_after = None
+ self._service_at = None
+ self._service_before = None
+ self._type = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ if service_after is not None:
+ self.service_after = service_after
+ if service_at is not None:
+ self.service_at = service_at
+ if service_before is not None:
+ self.service_before = service_before
+ if type is not None:
+ self.type = type
+
+ @property
+ def id(self):
+ """Gets the id of this OptimizationSteps. # noqa: E501
+
+ id of the task to be performed at this step if `type` value is not `start` or `end` # noqa: E501
+
+ :return: The id of this OptimizationSteps. # noqa: E501
+ :rtype: float
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this OptimizationSteps.
+
+ id of the task to be performed at this step if `type` value is not `start` or `end` # noqa: E501
+
+ :param id: The id of this OptimizationSteps. # noqa: E501
+ :type: float
+ """
+
+ self._id = id
+
+ @property
+ def service_after(self):
+ """Gets the service_after of this OptimizationSteps. # noqa: E501
+
+ hard constraint on service time lower bound (as absolute or relative timestamp) # noqa: E501
+
+ :return: The service_after of this OptimizationSteps. # noqa: E501
+ :rtype: float
+ """
+ return self._service_after
+
+ @service_after.setter
+ def service_after(self, service_after):
+ """Sets the service_after of this OptimizationSteps.
+
+ hard constraint on service time lower bound (as absolute or relative timestamp) # noqa: E501
+
+ :param service_after: The service_after of this OptimizationSteps. # noqa: E501
+ :type: float
+ """
+
+ self._service_after = service_after
+
+ @property
+ def service_at(self):
+ """Gets the service_at of this OptimizationSteps. # noqa: E501
+
+ hard constraint on service time (as absolute or relative timestamp) # noqa: E501
+
+ :return: The service_at of this OptimizationSteps. # noqa: E501
+ :rtype: float
+ """
+ return self._service_at
+
+ @service_at.setter
+ def service_at(self, service_at):
+ """Sets the service_at of this OptimizationSteps.
+
+ hard constraint on service time (as absolute or relative timestamp) # noqa: E501
+
+ :param service_at: The service_at of this OptimizationSteps. # noqa: E501
+ :type: float
+ """
+
+ self._service_at = service_at
+
+ @property
+ def service_before(self):
+ """Gets the service_before of this OptimizationSteps. # noqa: E501
+
+ hard constraint on service time upper bound (as absolute or relative timestamp) # noqa: E501
+
+ :return: The service_before of this OptimizationSteps. # noqa: E501
+ :rtype: float
+ """
+ return self._service_before
+
+ @service_before.setter
+ def service_before(self, service_before):
+ """Sets the service_before of this OptimizationSteps.
+
+ hard constraint on service time upper bound (as absolute or relative timestamp) # noqa: E501
+
+ :param service_before: The service_before of this OptimizationSteps. # noqa: E501
+ :type: float
+ """
+
+ self._service_before = service_before
+
+ @property
+ def type(self):
+ """Gets the type of this OptimizationSteps. # noqa: E501
+
+ step type (either start, job, pickup, delivery, break or end)] # noqa: E501
+
+ :return: The type of this OptimizationSteps. # noqa: E501
+ :rtype: str
+ """
+ return self._type
+
+ @type.setter
+ def type(self, type):
+ """Sets the type of this OptimizationSteps.
+
+ step type (either start, job, pickup, delivery, break or end)] # noqa: E501
+
+ :param type: The type of this OptimizationSteps. # noqa: E501
+ :type: str
+ """
+ allowed_values = ["start", "job", "pickup", "delivery", "break", "end"] # noqa: E501
+ if type not in allowed_values:
+ raise ValueError(
+ "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
+ .format(type, allowed_values)
+ )
+
+ self._type = type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(OptimizationSteps, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, OptimizationSteps):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
index 15ac3e8f..4da86f10 100644
--- a/openrouteservice/models/optimization_vehicles.py
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -28,60 +28,123 @@ class OptimizationVehicles(object):
and the value is json key in definition.
"""
swagger_types = {
+ 'breaks': 'list[OptimizationBreaks]',
'capacity': 'list[int]',
+ 'costs': 'OptimizationCosts',
+ 'description': 'str',
'end': 'list[float]',
'end_index': 'object',
'id': 'int',
+ 'max_distance': 'float',
+ 'max_tasks': 'float',
+ 'max_travel_time': 'float',
'profile': 'str',
'skills': 'list[int]',
+ 'speed_factor': 'float',
'start': 'list[float]',
'start_index': 'object',
+ 'steps': 'list[OptimizationSteps]',
'time_window': 'list[int]'
}
attribute_map = {
+ 'breaks': 'breaks',
'capacity': 'capacity',
+ 'costs': 'costs',
+ 'description': 'description',
'end': 'end',
'end_index': 'end_index',
'id': 'id',
+ 'max_distance': 'max_distance',
+ 'max_tasks': 'max_tasks',
+ 'max_travel_time': 'max_travel_time',
'profile': 'profile',
'skills': 'skills',
+ 'speed_factor': 'speed_factor',
'start': 'start',
'start_index': 'start_index',
+ 'steps': 'steps',
'time_window': 'time_window'
}
- def __init__(self, capacity=None, end=None, end_index=None, id=None, profile=None, skills=None, start=None, start_index=None, time_window=None): # noqa: E501
+ def __init__(self, breaks=None, capacity=None, costs=None, description=None, end=None, end_index=None, id=None, max_distance=None, max_tasks=None, max_travel_time=None, profile=None, skills=None, speed_factor=None, start=None, start_index=None, steps=None, time_window=None): # noqa: E501
"""OptimizationVehicles - a model defined in Swagger""" # noqa: E501
+ self._breaks = None
self._capacity = None
+ self._costs = None
+ self._description = None
self._end = None
self._end_index = None
self._id = None
+ self._max_distance = None
+ self._max_tasks = None
+ self._max_travel_time = None
self._profile = None
self._skills = None
+ self._speed_factor = None
self._start = None
self._start_index = None
+ self._steps = None
self._time_window = None
self.discriminator = None
+ if breaks is not None:
+ self.breaks = breaks
if capacity is not None:
self.capacity = capacity
+ if costs is not None:
+ self.costs = costs
+ if description is not None:
+ self.description = description
if end is not None:
self.end = end
if end_index is not None:
self.end_index = end_index
if id is not None:
self.id = id
+ if max_distance is not None:
+ self.max_distance = max_distance
+ if max_tasks is not None:
+ self.max_tasks = max_tasks
+ if max_travel_time is not None:
+ self.max_travel_time = max_travel_time
if profile is not None:
self.profile = profile
if skills is not None:
self.skills = skills
+ if speed_factor is not None:
+ self.speed_factor = speed_factor
if start is not None:
self.start = start
if start_index is not None:
self.start_index = start_index
+ if steps is not None:
+ self.steps = steps
if time_window is not None:
self.time_window = time_window
+ @property
+ def breaks(self):
+ """Gets the breaks of this OptimizationVehicles. # noqa: E501
+
+ An array of `break` objects # noqa: E501
+
+ :return: The breaks of this OptimizationVehicles. # noqa: E501
+ :rtype: list[OptimizationBreaks]
+ """
+ return self._breaks
+
+ @breaks.setter
+ def breaks(self, breaks):
+ """Sets the breaks of this OptimizationVehicles.
+
+ An array of `break` objects # noqa: E501
+
+ :param breaks: The breaks of this OptimizationVehicles. # noqa: E501
+ :type: list[OptimizationBreaks]
+ """
+
+ self._breaks = breaks
+
@property
def capacity(self):
"""Gets the capacity of this OptimizationVehicles. # noqa: E501
@@ -105,6 +168,50 @@ def capacity(self, capacity):
self._capacity = capacity
+ @property
+ def costs(self):
+ """Gets the costs of this OptimizationVehicles. # noqa: E501
+
+
+ :return: The costs of this OptimizationVehicles. # noqa: E501
+ :rtype: OptimizationCosts
+ """
+ return self._costs
+
+ @costs.setter
+ def costs(self, costs):
+ """Sets the costs of this OptimizationVehicles.
+
+
+ :param costs: The costs of this OptimizationVehicles. # noqa: E501
+ :type: OptimizationCosts
+ """
+
+ self._costs = costs
+
+ @property
+ def description(self):
+ """Gets the description of this OptimizationVehicles. # noqa: E501
+
+ a string describing this vehicle # noqa: E501
+
+ :return: The description of this OptimizationVehicles. # noqa: E501
+ :rtype: str
+ """
+ return self._description
+
+ @description.setter
+ def description(self, description):
+ """Sets the description of this OptimizationVehicles.
+
+ a string describing this vehicle # noqa: E501
+
+ :param description: The description of this OptimizationVehicles. # noqa: E501
+ :type: str
+ """
+
+ self._description = description
+
@property
def end(self):
"""Gets the end of this OptimizationVehicles. # noqa: E501
@@ -174,6 +281,75 @@ def id(self, id):
self._id = id
+ @property
+ def max_distance(self):
+ """Gets the max_distance of this OptimizationVehicles. # noqa: E501
+
+ an integer defining the maximum distance for this vehicle # noqa: E501
+
+ :return: The max_distance of this OptimizationVehicles. # noqa: E501
+ :rtype: float
+ """
+ return self._max_distance
+
+ @max_distance.setter
+ def max_distance(self, max_distance):
+ """Sets the max_distance of this OptimizationVehicles.
+
+ an integer defining the maximum distance for this vehicle # noqa: E501
+
+ :param max_distance: The max_distance of this OptimizationVehicles. # noqa: E501
+ :type: float
+ """
+
+ self._max_distance = max_distance
+
+ @property
+ def max_tasks(self):
+ """Gets the max_tasks of this OptimizationVehicles. # noqa: E501
+
+ an integer defining the maximum number of tasks in a route for this vehicle # noqa: E501
+
+ :return: The max_tasks of this OptimizationVehicles. # noqa: E501
+ :rtype: float
+ """
+ return self._max_tasks
+
+ @max_tasks.setter
+ def max_tasks(self, max_tasks):
+ """Sets the max_tasks of this OptimizationVehicles.
+
+ an integer defining the maximum number of tasks in a route for this vehicle # noqa: E501
+
+ :param max_tasks: The max_tasks of this OptimizationVehicles. # noqa: E501
+ :type: float
+ """
+
+ self._max_tasks = max_tasks
+
+ @property
+ def max_travel_time(self):
+ """Gets the max_travel_time of this OptimizationVehicles. # noqa: E501
+
+ an integer defining the maximum travel time for this vehicle # noqa: E501
+
+ :return: The max_travel_time of this OptimizationVehicles. # noqa: E501
+ :rtype: float
+ """
+ return self._max_travel_time
+
+ @max_travel_time.setter
+ def max_travel_time(self, max_travel_time):
+ """Sets the max_travel_time of this OptimizationVehicles.
+
+ an integer defining the maximum travel time for this vehicle # noqa: E501
+
+ :param max_travel_time: The max_travel_time of this OptimizationVehicles. # noqa: E501
+ :type: float
+ """
+
+ self._max_travel_time = max_travel_time
+
@property
def profile(self):
"""Gets the profile of this OptimizationVehicles. # noqa: E501
@@ -226,6 +402,29 @@ def skills(self, skills):
self._skills = skills
+ @property
+ def speed_factor(self):
+ """Gets the speed_factor of this OptimizationVehicles. # noqa: E501
+
+ A double value in the range (0, 5] used to scale all vehicle travel times (defaults to 1.). The respected precision is limited to two digits after the decimal point. # noqa: E501
+
+ :return: The speed_factor of this OptimizationVehicles. # noqa: E501
+ :rtype: float
+ """
+ return self._speed_factor
+
+ @speed_factor.setter
+ def speed_factor(self, speed_factor):
+ """Sets the speed_factor of this OptimizationVehicles.
+
+ A double value in the range (0, 5] used to scale all vehicle travel times (defaults to 1.). The respected precision is limited to two digits after the decimal point. # noqa: E501
+
+ :param speed_factor: The speed_factor of this OptimizationVehicles. # noqa: E501
+ :type: float
+ """
+
+ self._speed_factor = speed_factor
+
@property
def start(self):
"""Gets the start of this OptimizationVehicles. # noqa: E501
@@ -272,6 +471,27 @@ def start_index(self, start_index):
self._start_index = start_index
+ @property
+ def steps(self):
+ """Gets the steps of this OptimizationVehicles. # noqa: E501
+
+
+ :return: The steps of this OptimizationVehicles. # noqa: E501
+ :rtype: list[OptimizationSteps]
+ """
+ return self._steps
+
+ @steps.setter
+ def steps(self, steps):
+ """Sets the steps of this OptimizationVehicles.
+
+
+ :param steps: The steps of this OptimizationVehicles. # noqa: E501
+ :type: list[OptimizationSteps]
+ """
+
+ self._steps = steps
+
@property
def time_window(self):
"""Gets the time_window of this OptimizationVehicles. # noqa: E501
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
index a086af4c..9d0d6cd1 100644
--- a/openrouteservice/models/pois_filters.py
+++ b/openrouteservice/models/pois_filters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
index 5f1a8296..71f01f4b 100644
--- a/openrouteservice/models/pois_geometry.py
+++ b/openrouteservice/models/pois_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_geojson_body.py b/openrouteservice/models/profile_geojson_body.py
new file mode 100644
index 00000000..c056540f
--- /dev/null
+++ b/openrouteservice/models/profile_geojson_body.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ProfileGeojsonBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'radius': 'float'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'locations': 'locations',
+ 'radius': 'radius'
+ }
+
+ def __init__(self, id=None, locations=None, radius=None): # noqa: E501
+ """ProfileGeojsonBody - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._locations = None
+ self._radius = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ self.radius = radius
+
+ @property
+ def id(self):
+ """Gets the id of this ProfileGeojsonBody. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this ProfileGeojsonBody. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this ProfileGeojsonBody.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this ProfileGeojsonBody. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this ProfileGeojsonBody. # noqa: E501
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :return: The locations of this ProfileGeojsonBody. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this ProfileGeojsonBody.
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :param locations: The locations of this ProfileGeojsonBody. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def radius(self):
+ """Gets the radius of this ProfileGeojsonBody. # noqa: E501
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :return: The radius of this ProfileGeojsonBody. # noqa: E501
+ :rtype: float
+ """
+ return self._radius
+
+ @radius.setter
+ def radius(self, radius):
+ """Sets the radius of this ProfileGeojsonBody.
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :param radius: The radius of this ProfileGeojsonBody. # noqa: E501
+ :type: float
+ """
+ if radius is None:
+ raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501
+
+ self._radius = radius
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ProfileGeojsonBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ProfileGeojsonBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/profile_json_body.py b/openrouteservice/models/profile_json_body.py
new file mode 100644
index 00000000..605c42a8
--- /dev/null
+++ b/openrouteservice/models/profile_json_body.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class ProfileJsonBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'radius': 'float'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'locations': 'locations',
+ 'radius': 'radius'
+ }
+
+ def __init__(self, id=None, locations=None, radius=None): # noqa: E501
+ """ProfileJsonBody - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._locations = None
+ self._radius = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ self.radius = radius
+
+ @property
+ def id(self):
+ """Gets the id of this ProfileJsonBody. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this ProfileJsonBody. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this ProfileJsonBody.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this ProfileJsonBody. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this ProfileJsonBody. # noqa: E501
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :return: The locations of this ProfileJsonBody. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this ProfileJsonBody.
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :param locations: The locations of this ProfileJsonBody. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def radius(self):
+ """Gets the radius of this ProfileJsonBody. # noqa: E501
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :return: The radius of this ProfileJsonBody. # noqa: E501
+ :rtype: float
+ """
+ return self._radius
+
+ @radius.setter
+ def radius(self, radius):
+ """Sets the radius of this ProfileJsonBody.
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :param radius: The radius of this ProfileJsonBody. # noqa: E501
+ :type: float
+ """
+ if radius is None:
+ raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501
+
+ self._radius = radius
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(ProfileJsonBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, ProfileJsonBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
index bec97fd5..642a0729 100644
--- a/openrouteservice/models/profile_parameters.py
+++ b/openrouteservice/models/profile_parameters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
index a08c7ae6..a7c0a1dc 100644
--- a/openrouteservice/models/profile_parameters_restrictions.py
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
index 96ef1525..b64fd509 100644
--- a/openrouteservice/models/profile_weightings.py
+++ b/openrouteservice/models/profile_weightings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/restrictions.py b/openrouteservice/models/restrictions.py
index 5fdc1572..0a3f4158 100644
--- a/openrouteservice/models/restrictions.py
+++ b/openrouteservice/models/restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
index 7060e181..5b344ef5 100644
--- a/openrouteservice/models/round_trip_route_options.py
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
index baa39b86..0db18af6 100644
--- a/openrouteservice/models/route_options.py
+++ b/openrouteservice/models/route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
index b8b7feff..63f5bb9f 100644
--- a/openrouteservice/models/route_options_avoid_polygons.py
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_response_info.py b/openrouteservice/models/route_response_info.py
index 3f762774..33603a81 100644
--- a/openrouteservice/models/route_response_info.py
+++ b/openrouteservice/models/route_response_info.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/rte.py b/openrouteservice/models/rte.py
index 7180ad72..40d8d5cc 100644
--- a/openrouteservice/models/rte.py
+++ b/openrouteservice/models/rte.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/snap_profile_body.py b/openrouteservice/models/snap_profile_body.py
new file mode 100644
index 00000000..ee0f3d4f
--- /dev/null
+++ b/openrouteservice/models/snap_profile_body.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class SnapProfileBody(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'radius': 'float'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'locations': 'locations',
+ 'radius': 'radius'
+ }
+
+ def __init__(self, id=None, locations=None, radius=None): # noqa: E501
+ """SnapProfileBody - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._locations = None
+ self._radius = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ self.radius = radius
+
+ @property
+ def id(self):
+ """Gets the id of this SnapProfileBody. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this SnapProfileBody. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this SnapProfileBody.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this SnapProfileBody. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this SnapProfileBody. # noqa: E501
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :return: The locations of this SnapProfileBody. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this SnapProfileBody.
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :param locations: The locations of this SnapProfileBody. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def radius(self):
+ """Gets the radius of this SnapProfileBody. # noqa: E501
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :return: The radius of this SnapProfileBody. # noqa: E501
+ :rtype: float
+ """
+ return self._radius
+
+ @radius.setter
+ def radius(self, radius):
+ """Sets the radius of this SnapProfileBody.
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :param radius: The radius of this SnapProfileBody. # noqa: E501
+ :type: float
+ """
+ if radius is None:
+ raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501
+
+ self._radius = radius
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(SnapProfileBody, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, SnapProfileBody):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/snapping_request.py b/openrouteservice/models/snapping_request.py
new file mode 100644
index 00000000..9fc9e494
--- /dev/null
+++ b/openrouteservice/models/snapping_request.py
@@ -0,0 +1,170 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class SnappingRequest(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'id': 'str',
+ 'locations': 'list[list[float]]',
+ 'radius': 'float'
+ }
+
+ attribute_map = {
+ 'id': 'id',
+ 'locations': 'locations',
+ 'radius': 'radius'
+ }
+
+ def __init__(self, id=None, locations=None, radius=None): # noqa: E501
+ """SnappingRequest - a model defined in Swagger""" # noqa: E501
+ self._id = None
+ self._locations = None
+ self._radius = None
+ self.discriminator = None
+ if id is not None:
+ self.id = id
+ self.locations = locations
+ self.radius = radius
+
+ @property
+ def id(self):
+ """Gets the id of this SnappingRequest. # noqa: E501
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :return: The id of this SnappingRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._id
+
+ @id.setter
+ def id(self, id):
+ """Sets the id of this SnappingRequest.
+
+ Arbitrary identification string of the request reflected in the meta information. # noqa: E501
+
+ :param id: The id of this SnappingRequest. # noqa: E501
+ :type: str
+ """
+
+ self._id = id
+
+ @property
+ def locations(self):
+ """Gets the locations of this SnappingRequest. # noqa: E501
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :return: The locations of this SnappingRequest. # noqa: E501
+ :rtype: list[list[float]]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this SnappingRequest.
+
+ The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
+
+ :param locations: The locations of this SnappingRequest. # noqa: E501
+ :type: list[list[float]]
+ """
+ if locations is None:
+ raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
+
+ self._locations = locations
+
+ @property
+ def radius(self):
+ """Gets the radius of this SnappingRequest. # noqa: E501
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :return: The radius of this SnappingRequest. # noqa: E501
+ :rtype: float
+ """
+ return self._radius
+
+ @radius.setter
+ def radius(self, radius):
+ """Sets the radius of this SnappingRequest.
+
+ Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
+
+ :param radius: The radius of this SnappingRequest. # noqa: E501
+ :type: float
+ """
+ if radius is None:
+ raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501
+
+ self._radius = radius
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(SnappingRequest, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, SnappingRequest):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/snapping_response.py b/openrouteservice/models/snapping_response.py
new file mode 100644
index 00000000..c78d100a
--- /dev/null
+++ b/openrouteservice/models/snapping_response.py
@@ -0,0 +1,138 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class SnappingResponse(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'locations': 'list[SnappingResponseLocations]',
+ 'metadata': 'GeoJSONSnappingResponseMetadata'
+ }
+
+ attribute_map = {
+ 'locations': 'locations',
+ 'metadata': 'metadata'
+ }
+
+ def __init__(self, locations=None, metadata=None): # noqa: E501
+ """SnappingResponse - a model defined in Swagger""" # noqa: E501
+ self._locations = None
+ self._metadata = None
+ self.discriminator = None
+ if locations is not None:
+ self.locations = locations
+ if metadata is not None:
+ self.metadata = metadata
+
+ @property
+ def locations(self):
+ """Gets the locations of this SnappingResponse. # noqa: E501
+
+ The snapped locations as coordinates and snapping distance. # noqa: E501
+
+ :return: The locations of this SnappingResponse. # noqa: E501
+ :rtype: list[SnappingResponseLocations]
+ """
+ return self._locations
+
+ @locations.setter
+ def locations(self, locations):
+ """Sets the locations of this SnappingResponse.
+
+ The snapped locations as coordinates and snapping distance. # noqa: E501
+
+ :param locations: The locations of this SnappingResponse. # noqa: E501
+ :type: list[SnappingResponseLocations]
+ """
+
+ self._locations = locations
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this SnappingResponse. # noqa: E501
+
+
+ :return: The metadata of this SnappingResponse. # noqa: E501
+ :rtype: GeoJSONSnappingResponseMetadata
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this SnappingResponse.
+
+
+ :param metadata: The metadata of this SnappingResponse. # noqa: E501
+ :type: GeoJSONSnappingResponseMetadata
+ """
+
+ self._metadata = metadata
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(SnappingResponse, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, SnappingResponse):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/snapping_response_info.py b/openrouteservice/models/snapping_response_info.py
new file mode 100644
index 00000000..cdc45a44
--- /dev/null
+++ b/openrouteservice/models/snapping_response_info.py
@@ -0,0 +1,276 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class SnappingResponseInfo(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'attribution': 'str',
+ 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'osm_file_md5_hash': 'str',
+ 'query': 'ProfileJsonBody',
+ 'service': 'str',
+ 'system_message': 'str',
+ 'timestamp': 'int'
+ }
+
+ attribute_map = {
+ 'attribution': 'attribution',
+ 'engine': 'engine',
+ 'osm_file_md5_hash': 'osm_file_md5_hash',
+ 'query': 'query',
+ 'service': 'service',
+ 'system_message': 'system_message',
+ 'timestamp': 'timestamp'
+ }
+
+ def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
+ """SnappingResponseInfo - a model defined in Swagger""" # noqa: E501
+ self._attribution = None
+ self._engine = None
+ self._osm_file_md5_hash = None
+ self._query = None
+ self._service = None
+ self._system_message = None
+ self._timestamp = None
+ self.discriminator = None
+ if attribution is not None:
+ self.attribution = attribution
+ if engine is not None:
+ self.engine = engine
+ if osm_file_md5_hash is not None:
+ self.osm_file_md5_hash = osm_file_md5_hash
+ if query is not None:
+ self.query = query
+ if service is not None:
+ self.service = service
+ if system_message is not None:
+ self.system_message = system_message
+ if timestamp is not None:
+ self.timestamp = timestamp
+
+ @property
+ def attribution(self):
+ """Gets the attribution of this SnappingResponseInfo. # noqa: E501
+
+ Copyright and attribution information # noqa: E501
+
+ :return: The attribution of this SnappingResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._attribution
+
+ @attribution.setter
+ def attribution(self, attribution):
+ """Sets the attribution of this SnappingResponseInfo.
+
+ Copyright and attribution information # noqa: E501
+
+ :param attribution: The attribution of this SnappingResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._attribution = attribution
+
+ @property
+ def engine(self):
+ """Gets the engine of this SnappingResponseInfo. # noqa: E501
+
+
+ :return: The engine of this SnappingResponseInfo. # noqa: E501
+ :rtype: GeoJSONIsochronesResponseMetadataEngine
+ """
+ return self._engine
+
+ @engine.setter
+ def engine(self, engine):
+ """Sets the engine of this SnappingResponseInfo.
+
+
+ :param engine: The engine of this SnappingResponseInfo. # noqa: E501
+ :type: GeoJSONIsochronesResponseMetadataEngine
+ """
+
+ self._engine = engine
+
+ @property
+ def osm_file_md5_hash(self):
+ """Gets the osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :return: The osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._osm_file_md5_hash
+
+ @osm_file_md5_hash.setter
+ def osm_file_md5_hash(self, osm_file_md5_hash):
+ """Sets the osm_file_md5_hash of this SnappingResponseInfo.
+
+ The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
+
+ :param osm_file_md5_hash: The osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._osm_file_md5_hash = osm_file_md5_hash
+
+ @property
+ def query(self):
+ """Gets the query of this SnappingResponseInfo. # noqa: E501
+
+
+ :return: The query of this SnappingResponseInfo. # noqa: E501
+ :rtype: ProfileJsonBody
+ """
+ return self._query
+
+ @query.setter
+ def query(self, query):
+ """Sets the query of this SnappingResponseInfo.
+
+
+ :param query: The query of this SnappingResponseInfo. # noqa: E501
+ :type: ProfileJsonBody
+ """
+
+ self._query = query
+
+ @property
+ def service(self):
+ """Gets the service of this SnappingResponseInfo. # noqa: E501
+
+ The service that was requested # noqa: E501
+
+ :return: The service of this SnappingResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._service
+
+ @service.setter
+ def service(self, service):
+ """Sets the service of this SnappingResponseInfo.
+
+ The service that was requested # noqa: E501
+
+ :param service: The service of this SnappingResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._service = service
+
+ @property
+ def system_message(self):
+ """Gets the system_message of this SnappingResponseInfo. # noqa: E501
+
+ System message # noqa: E501
+
+ :return: The system_message of this SnappingResponseInfo. # noqa: E501
+ :rtype: str
+ """
+ return self._system_message
+
+ @system_message.setter
+ def system_message(self, system_message):
+ """Sets the system_message of this SnappingResponseInfo.
+
+ System message # noqa: E501
+
+ :param system_message: The system_message of this SnappingResponseInfo. # noqa: E501
+ :type: str
+ """
+
+ self._system_message = system_message
+
+ @property
+ def timestamp(self):
+ """Gets the timestamp of this SnappingResponseInfo. # noqa: E501
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :return: The timestamp of this SnappingResponseInfo. # noqa: E501
+ :rtype: int
+ """
+ return self._timestamp
+
+ @timestamp.setter
+ def timestamp(self, timestamp):
+ """Sets the timestamp of this SnappingResponseInfo.
+
+ Time that the request was made (UNIX Epoch time) # noqa: E501
+
+ :param timestamp: The timestamp of this SnappingResponseInfo. # noqa: E501
+ :type: int
+ """
+
+ self._timestamp = timestamp
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(SnappingResponseInfo, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, SnappingResponseInfo):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/models/snapping_response_locations.py b/openrouteservice/models/snapping_response_locations.py
new file mode 100644
index 00000000..cb7ecdeb
--- /dev/null
+++ b/openrouteservice/models/snapping_response_locations.py
@@ -0,0 +1,168 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+import pprint
+import re # noqa: F401
+
+import six
+
+class SnappingResponseLocations(object):
+ """NOTE: This class is auto generated by the swagger code generator program.
+
+ Do not edit the class manually.
+ """
+ """
+ Attributes:
+ swagger_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ swagger_types = {
+ 'location': 'list[float]',
+ 'name': 'str',
+ 'snapped_distance': 'float'
+ }
+
+ attribute_map = {
+ 'location': 'location',
+ 'name': 'name',
+ 'snapped_distance': 'snapped_distance'
+ }
+
+ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
+ """SnappingResponseLocations - a model defined in Swagger""" # noqa: E501
+ self._location = None
+ self._name = None
+ self._snapped_distance = None
+ self.discriminator = None
+ if location is not None:
+ self.location = location
+ if name is not None:
+ self.name = name
+ if snapped_distance is not None:
+ self.snapped_distance = snapped_distance
+
+ @property
+ def location(self):
+ """Gets the location of this SnappingResponseLocations. # noqa: E501
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :return: The location of this SnappingResponseLocations. # noqa: E501
+ :rtype: list[float]
+ """
+ return self._location
+
+ @location.setter
+ def location(self, location):
+ """Sets the location of this SnappingResponseLocations.
+
+ {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
+
+ :param location: The location of this SnappingResponseLocations. # noqa: E501
+ :type: list[float]
+ """
+
+ self._location = location
+
+ @property
+ def name(self):
+ """Gets the name of this SnappingResponseLocations. # noqa: E501
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :return: The name of this SnappingResponseLocations. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this SnappingResponseLocations.
+
+ Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
+
+ :param name: The name of this SnappingResponseLocations. # noqa: E501
+ :type: str
+ """
+
+ self._name = name
+
+ @property
+ def snapped_distance(self):
+ """Gets the snapped_distance of this SnappingResponseLocations. # noqa: E501
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :return: The snapped_distance of this SnappingResponseLocations. # noqa: E501
+ :rtype: float
+ """
+ return self._snapped_distance
+
+ @snapped_distance.setter
+ def snapped_distance(self, snapped_distance):
+ """Sets the snapped_distance of this SnappingResponseLocations.
+
+ Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
+
+ :param snapped_distance: The snapped_distance of this SnappingResponseLocations. # noqa: E501
+ :type: float
+ """
+
+ self._snapped_distance = snapped_distance
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.swagger_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+ if issubclass(SnappingResponseLocations, dict):
+ for key, value in self.items():
+ result[key] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, SnappingResponseLocations):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
index 6409cf3b..29aa8d6e 100644
--- a/openrouteservice/rest.py
+++ b/openrouteservice/rest.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/pyproject.toml b/pyproject.toml
index a2084913..0128dfa4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "orspytest"
-version = "7.1.0.post13"
+version = "7.1.1"
authors = [
{name = "HeiGIT gGmbH", email = "support@smartmobility.heigit.org"},
]
diff --git a/setup.py b/setup.py
index cf729d55..e07bf922 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.0
+ OpenAPI spec version: 7.1.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "7.1.0.post6"
+VERSION = "7.1.1"
# To install the library, run the following
#
# python setup.py install
diff --git a/test/test_alternative_routes.py b/test/test_alternative_routes.py
deleted file mode 100644
index 512ddc5a..00000000
--- a/test/test_alternative_routes.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.alternative_routes import AlternativeRoutes # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestAlternativeRoutes(unittest.TestCase):
- """AlternativeRoutes unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testAlternativeRoutes(self):
- """Test AlternativeRoutes"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.alternative_routes.AlternativeRoutes() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_directions_service.py b/test/test_directions_service.py
deleted file mode 100644
index 3c00a3c6..00000000
--- a/test/test_directions_service.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.directions_service import DirectionsService # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestDirectionsService(unittest.TestCase):
- """DirectionsService unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testDirectionsService(self):
- """Test DirectionsService"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.directions_service.DirectionsService() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_directions_service1.py b/test/test_directions_service1.py
deleted file mode 100644
index 7898a730..00000000
--- a/test/test_directions_service1.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.directions_service1 import DirectionsService1 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestDirectionsService1(unittest.TestCase):
- """DirectionsService1 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testDirectionsService1(self):
- """Test DirectionsService1"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.directions_service1.DirectionsService1() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_elevation_line_body.py b/test/test_elevation_line_body.py
deleted file mode 100644
index 833195af..00000000
--- a/test/test_elevation_line_body.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.elevation_line_body import ElevationLineBody # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestElevationLineBody(unittest.TestCase):
- """ElevationLineBody unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testElevationLineBody(self):
- """Test ElevationLineBody"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.elevation_line_body.ElevationLineBody() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_elevation_point_body.py b/test/test_elevation_point_body.py
deleted file mode 100644
index 1e5e4c96..00000000
--- a/test/test_elevation_point_body.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.elevation_point_body import ElevationPointBody # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestElevationPointBody(unittest.TestCase):
- """ElevationPointBody unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testElevationPointBody(self):
- """Test ElevationPointBody"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.elevation_point_body.ElevationPointBody() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_engine_info.py b/test/test_engine_info.py
deleted file mode 100644
index b9fdfebd..00000000
--- a/test/test_engine_info.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.engine_info import EngineInfo # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestEngineInfo(unittest.TestCase):
- """EngineInfo unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testEngineInfo(self):
- """Test EngineInfo"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.engine_info.EngineInfo() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_features_object.py b/test/test_geo_json_features_object.py
deleted file mode 100644
index 88c4d69a..00000000
--- a/test/test_geo_json_features_object.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONFeaturesObject(unittest.TestCase):
- """GeoJSONFeaturesObject unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONFeaturesObject(self):
- """Test GeoJSONFeaturesObject"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_features_object.GeoJSONFeaturesObject() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_geometry_object.py b/test/test_geo_json_geometry_object.py
deleted file mode 100644
index 9e75de83..00000000
--- a/test/test_geo_json_geometry_object.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONGeometryObject(unittest.TestCase):
- """GeoJSONGeometryObject unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONGeometryObject(self):
- """Test GeoJSONGeometryObject"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_geometry_object.GeoJSONGeometryObject() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrone_base.py b/test/test_geo_json_isochrone_base.py
deleted file mode 100644
index 361cf33b..00000000
--- a/test/test_geo_json_isochrone_base.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochroneBase(unittest.TestCase):
- """GeoJSONIsochroneBase unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochroneBase(self):
- """Test GeoJSONIsochroneBase"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrone_base.GeoJSONIsochroneBase() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrone_base_geometry.py b/test/test_geo_json_isochrone_base_geometry.py
deleted file mode 100644
index d5806f8a..00000000
--- a/test/test_geo_json_isochrone_base_geometry.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochroneBaseGeometry(unittest.TestCase):
- """GeoJSONIsochroneBaseGeometry unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochroneBaseGeometry(self):
- """Test GeoJSONIsochroneBaseGeometry"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrone_base_geometry.GeoJSONIsochroneBaseGeometry() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrones_response.py b/test/test_geo_json_isochrones_response.py
deleted file mode 100644
index 7b520f95..00000000
--- a/test/test_geo_json_isochrones_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochronesResponse(unittest.TestCase):
- """GeoJSONIsochronesResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochronesResponse(self):
- """Test GeoJSONIsochronesResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrones_response.GeoJSONIsochronesResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrones_response_features.py b/test/test_geo_json_isochrones_response_features.py
deleted file mode 100644
index 800dc49e..00000000
--- a/test/test_geo_json_isochrones_response_features.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochronesResponseFeatures(unittest.TestCase):
- """GeoJSONIsochronesResponseFeatures unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochronesResponseFeatures(self):
- """Test GeoJSONIsochronesResponseFeatures"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrones_response_features.GeoJSONIsochronesResponseFeatures() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrones_response_metadata.py b/test/test_geo_json_isochrones_response_metadata.py
deleted file mode 100644
index bc0a00ed..00000000
--- a/test/test_geo_json_isochrones_response_metadata.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochronesResponseMetadata(unittest.TestCase):
- """GeoJSONIsochronesResponseMetadata unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochronesResponseMetadata(self):
- """Test GeoJSONIsochronesResponseMetadata"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrones_response_metadata.GeoJSONIsochronesResponseMetadata() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_isochrones_response_metadata_engine.py b/test/test_geo_json_isochrones_response_metadata_engine.py
deleted file mode 100644
index 0f9ed6a6..00000000
--- a/test/test_geo_json_isochrones_response_metadata_engine.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONIsochronesResponseMetadataEngine(unittest.TestCase):
- """GeoJSONIsochronesResponseMetadataEngine unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONIsochronesResponseMetadataEngine(self):
- """Test GeoJSONIsochronesResponseMetadataEngine"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_isochrones_response_metadata_engine.GeoJSONIsochronesResponseMetadataEngine() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_properties_object.py b/test/test_geo_json_properties_object.py
deleted file mode 100644
index cfa857ac..00000000
--- a/test/test_geo_json_properties_object.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONPropertiesObject(unittest.TestCase):
- """GeoJSONPropertiesObject unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONPropertiesObject(self):
- """Test GeoJSONPropertiesObject"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_properties_object.GeoJSONPropertiesObject() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_properties_object_category_ids.py b/test/test_geo_json_properties_object_category_ids.py
deleted file mode 100644
index c878675f..00000000
--- a/test/test_geo_json_properties_object_category_ids.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONPropertiesObjectCategoryIds(unittest.TestCase):
- """GeoJSONPropertiesObjectCategoryIds unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONPropertiesObjectCategoryIds(self):
- """Test GeoJSONPropertiesObjectCategoryIds"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_properties_object_category_ids.GeoJSONPropertiesObjectCategoryIds() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_properties_object_category_ids_category_id.py b/test/test_geo_json_properties_object_category_ids_category_id.py
deleted file mode 100644
index 3189aeaf..00000000
--- a/test/test_geo_json_properties_object_category_ids_category_id.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONPropertiesObjectCategoryIdsCategoryId(unittest.TestCase):
- """GeoJSONPropertiesObjectCategoryIdsCategoryId unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONPropertiesObjectCategoryIdsCategoryId(self):
- """Test GeoJSONPropertiesObjectCategoryIdsCategoryId"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_properties_object_category_ids_category_id.GeoJSONPropertiesObjectCategoryIdsCategoryId() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_properties_object_osm_tags.py b/test/test_geo_json_properties_object_osm_tags.py
deleted file mode 100644
index b8aa4e4e..00000000
--- a/test/test_geo_json_properties_object_osm_tags.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONPropertiesObjectOsmTags(unittest.TestCase):
- """GeoJSONPropertiesObjectOsmTags unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONPropertiesObjectOsmTags(self):
- """Test GeoJSONPropertiesObjectOsmTags"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_properties_object_osm_tags.GeoJSONPropertiesObjectOsmTags() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_route_response.py b/test/test_geo_json_route_response.py
deleted file mode 100644
index 0d2a515a..00000000
--- a/test/test_geo_json_route_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONRouteResponse(unittest.TestCase):
- """GeoJSONRouteResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONRouteResponse(self):
- """Test GeoJSONRouteResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_route_response.GeoJSONRouteResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geo_json_route_response_metadata.py b/test/test_geo_json_route_response_metadata.py
deleted file mode 100644
index 4aa10914..00000000
--- a/test/test_geo_json_route_response_metadata.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeoJSONRouteResponseMetadata(unittest.TestCase):
- """GeoJSONRouteResponseMetadata unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeoJSONRouteResponseMetadata(self):
- """Test GeoJSONRouteResponseMetadata"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geo_json_route_response_metadata.GeoJSONRouteResponseMetadata() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_geocode_response.py b/test/test_geocode_response.py
deleted file mode 100644
index 8ed19268..00000000
--- a/test/test_geocode_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.geocode_response import GeocodeResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGeocodeResponse(unittest.TestCase):
- """GeocodeResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGeocodeResponse(self):
- """Test GeocodeResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.geocode_response.GeocodeResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_gpx.py b/test/test_gpx.py
deleted file mode 100644
index 3977fb42..00000000
--- a/test/test_gpx.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.gpx import Gpx # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGpx(unittest.TestCase):
- """Gpx unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGpx(self):
- """Test Gpx"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.gpx.Gpx() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_graph_export_service.py b/test/test_graph_export_service.py
deleted file mode 100644
index 14359931..00000000
--- a/test/test_graph_export_service.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.graph_export_service import GraphExportService # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestGraphExportService(unittest.TestCase):
- """GraphExportService unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testGraphExportService(self):
- """Test GraphExportService"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.graph_export_service.GraphExportService() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py
deleted file mode 100644
index ce65fa61..00000000
--- a/test/test_inline_response200.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response200 import InlineResponse200 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse200(unittest.TestCase):
- """InlineResponse200 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse200(self):
- """Test InlineResponse200"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response200.InlineResponse200() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2001.py b/test/test_inline_response2001.py
deleted file mode 100644
index 585ab55b..00000000
--- a/test/test_inline_response2001.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2001 import InlineResponse2001 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2001(unittest.TestCase):
- """InlineResponse2001 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2001(self):
- """Test InlineResponse2001"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2001.InlineResponse2001() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2001_geometry.py b/test/test_inline_response2001_geometry.py
deleted file mode 100644
index 940f6b1f..00000000
--- a/test/test_inline_response2001_geometry.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2001Geometry(unittest.TestCase):
- """InlineResponse2001Geometry unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2001Geometry(self):
- """Test InlineResponse2001Geometry"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2001_geometry.InlineResponse2001Geometry() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2002.py b/test/test_inline_response2002.py
deleted file mode 100644
index f4de0437..00000000
--- a/test/test_inline_response2002.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2002 import InlineResponse2002 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2002(unittest.TestCase):
- """InlineResponse2002 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2002(self):
- """Test InlineResponse2002"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2002.InlineResponse2002() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2002_routes.py b/test/test_inline_response2002_routes.py
deleted file mode 100644
index cb6849aa..00000000
--- a/test/test_inline_response2002_routes.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2002Routes(unittest.TestCase):
- """InlineResponse2002Routes unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2002Routes(self):
- """Test InlineResponse2002Routes"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2002_routes.InlineResponse2002Routes() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2002_steps.py b/test/test_inline_response2002_steps.py
deleted file mode 100644
index a741ed71..00000000
--- a/test/test_inline_response2002_steps.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2002Steps(unittest.TestCase):
- """InlineResponse2002Steps unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2002Steps(self):
- """Test InlineResponse2002Steps"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2002_steps.InlineResponse2002Steps() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2002_summary.py b/test/test_inline_response2002_summary.py
deleted file mode 100644
index 70922c75..00000000
--- a/test/test_inline_response2002_summary.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2002Summary(unittest.TestCase):
- """InlineResponse2002Summary unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2002Summary(self):
- """Test InlineResponse2002Summary"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2002_summary.InlineResponse2002Summary() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2002_unassigned.py b/test/test_inline_response2002_unassigned.py
deleted file mode 100644
index 2796e840..00000000
--- a/test/test_inline_response2002_unassigned.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2002Unassigned(unittest.TestCase):
- """InlineResponse2002Unassigned unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2002Unassigned(self):
- """Test InlineResponse2002Unassigned"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2002_unassigned.InlineResponse2002Unassigned() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2003.py b/test/test_inline_response2003.py
deleted file mode 100644
index f934b5a3..00000000
--- a/test/test_inline_response2003.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2003 import InlineResponse2003 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2003(unittest.TestCase):
- """InlineResponse2003 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2003(self):
- """Test InlineResponse2003"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2003.InlineResponse2003() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2004.py b/test/test_inline_response2004.py
deleted file mode 100644
index 82e731c4..00000000
--- a/test/test_inline_response2004.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2004 import InlineResponse2004 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2004(unittest.TestCase):
- """InlineResponse2004 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2004(self):
- """Test InlineResponse2004"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2004.InlineResponse2004() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2005.py b/test/test_inline_response2005.py
deleted file mode 100644
index 2ab3a672..00000000
--- a/test/test_inline_response2005.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2005 import InlineResponse2005 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2005(unittest.TestCase):
- """InlineResponse2005 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2005(self):
- """Test InlineResponse2005"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2005.InlineResponse2005() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response2006.py b/test/test_inline_response2006.py
deleted file mode 100644
index 798313c3..00000000
--- a/test/test_inline_response2006.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response2006 import InlineResponse2006 # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse2006(unittest.TestCase):
- """InlineResponse2006 unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse2006(self):
- """Test InlineResponse2006"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response2006.InlineResponse2006() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_inline_response200_geometry.py b/test/test_inline_response200_geometry.py
deleted file mode 100644
index 0b8ef879..00000000
--- a/test/test_inline_response200_geometry.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestInlineResponse200Geometry(unittest.TestCase):
- """InlineResponse200Geometry unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testInlineResponse200Geometry(self):
- """Test InlineResponse200Geometry"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.inline_response200_geometry.InlineResponse200Geometry() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_isochrones_profile_body.py b/test/test_isochrones_profile_body.py
deleted file mode 100644
index 00f17f96..00000000
--- a/test/test_isochrones_profile_body.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestIsochronesProfileBody(unittest.TestCase):
- """IsochronesProfileBody unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testIsochronesProfileBody(self):
- """Test IsochronesProfileBody"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.isochrones_profile_body.IsochronesProfileBody() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_isochrones_request.py b/test/test_isochrones_request.py
deleted file mode 100644
index 6408f4c3..00000000
--- a/test/test_isochrones_request.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.isochrones_request import IsochronesRequest # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestIsochronesRequest(unittest.TestCase):
- """IsochronesRequest unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testIsochronesRequest(self):
- """Test IsochronesRequest"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.isochrones_request.IsochronesRequest() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_isochrones_response_info.py b/test/test_isochrones_response_info.py
deleted file mode 100644
index 12b77881..00000000
--- a/test/test_isochrones_response_info.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestIsochronesResponseInfo(unittest.TestCase):
- """IsochronesResponseInfo unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testIsochronesResponseInfo(self):
- """Test IsochronesResponseInfo"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.isochrones_response_info.IsochronesResponseInfo() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json2_d_destinations.py b/test/test_json2_d_destinations.py
deleted file mode 100644
index 5205572c..00000000
--- a/test/test_json2_d_destinations.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json2_d_destinations import JSON2DDestinations # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSON2DDestinations(unittest.TestCase):
- """JSON2DDestinations unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSON2DDestinations(self):
- """Test JSON2DDestinations"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json2_d_destinations.JSON2DDestinations() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json2_d_sources.py b/test/test_json2_d_sources.py
deleted file mode 100644
index d99999a6..00000000
--- a/test/test_json2_d_sources.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json2_d_sources import JSON2DSources # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSON2DSources(unittest.TestCase):
- """JSON2DSources unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSON2DSources(self):
- """Test JSON2DSources"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json2_d_sources.JSON2DSources() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_edge.py b/test/test_json_edge.py
deleted file mode 100644
index eb630b2b..00000000
--- a/test/test_json_edge.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_edge import JsonEdge # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonEdge(unittest.TestCase):
- """JsonEdge unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonEdge(self):
- """Test JsonEdge"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_edge.JsonEdge() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_edge_extra.py b/test/test_json_edge_extra.py
deleted file mode 100644
index c88480a1..00000000
--- a/test/test_json_edge_extra.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_edge_extra import JsonEdgeExtra # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonEdgeExtra(unittest.TestCase):
- """JsonEdgeExtra unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonEdgeExtra(self):
- """Test JsonEdgeExtra"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_edge_extra.JsonEdgeExtra() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_export_response.py b/test/test_json_export_response.py
deleted file mode 100644
index e2ba6a2f..00000000
--- a/test/test_json_export_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_export_response import JsonExportResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonExportResponse(unittest.TestCase):
- """JsonExportResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonExportResponse(self):
- """Test JsonExportResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_export_response.JsonExportResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_export_response_edges.py b/test/test_json_export_response_edges.py
deleted file mode 100644
index ef91aadc..00000000
--- a/test/test_json_export_response_edges.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonExportResponseEdges(unittest.TestCase):
- """JsonExportResponseEdges unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonExportResponseEdges(self):
- """Test JsonExportResponseEdges"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_export_response_edges.JsonExportResponseEdges() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_export_response_edges_extra.py b/test/test_json_export_response_edges_extra.py
deleted file mode 100644
index 840f340f..00000000
--- a/test/test_json_export_response_edges_extra.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonExportResponseEdgesExtra(unittest.TestCase):
- """JsonExportResponseEdgesExtra unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonExportResponseEdgesExtra(self):
- """Test JsonExportResponseEdgesExtra"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_export_response_edges_extra.JsonExportResponseEdgesExtra() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_export_response_nodes.py b/test/test_json_export_response_nodes.py
deleted file mode 100644
index aae371c0..00000000
--- a/test/test_json_export_response_nodes.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonExportResponseNodes(unittest.TestCase):
- """JsonExportResponseNodes unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonExportResponseNodes(self):
- """Test JsonExportResponseNodes"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_export_response_nodes.JsonExportResponseNodes() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_extra.py b/test/test_json_extra.py
deleted file mode 100644
index 809ce8ef..00000000
--- a/test/test_json_extra.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_extra import JSONExtra # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONExtra(unittest.TestCase):
- """JSONExtra unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONExtra(self):
- """Test JSONExtra"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_extra.JSONExtra() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_extra_summary.py b/test/test_json_extra_summary.py
deleted file mode 100644
index fec9247d..00000000
--- a/test/test_json_extra_summary.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_extra_summary import JSONExtraSummary # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONExtraSummary(unittest.TestCase):
- """JSONExtraSummary unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONExtraSummary(self):
- """Test JSONExtraSummary"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_extra_summary.JSONExtraSummary() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response.py b/test/test_json_individual_route_response.py
deleted file mode 100644
index 8f723ca1..00000000
--- a/test/test_json_individual_route_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponse(unittest.TestCase):
- """JSONIndividualRouteResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponse(self):
- """Test JSONIndividualRouteResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response.JSONIndividualRouteResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_extras.py b/test/test_json_individual_route_response_extras.py
deleted file mode 100644
index 3e79df70..00000000
--- a/test/test_json_individual_route_response_extras.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseExtras(unittest.TestCase):
- """JSONIndividualRouteResponseExtras unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseExtras(self):
- """Test JSONIndividualRouteResponseExtras"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_extras.JSONIndividualRouteResponseExtras() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_instructions.py b/test/test_json_individual_route_response_instructions.py
deleted file mode 100644
index df7c7e59..00000000
--- a/test/test_json_individual_route_response_instructions.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseInstructions(unittest.TestCase):
- """JSONIndividualRouteResponseInstructions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseInstructions(self):
- """Test JSONIndividualRouteResponseInstructions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_instructions.JSONIndividualRouteResponseInstructions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_legs.py b/test/test_json_individual_route_response_legs.py
deleted file mode 100644
index 4ea298a5..00000000
--- a/test/test_json_individual_route_response_legs.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseLegs(unittest.TestCase):
- """JSONIndividualRouteResponseLegs unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseLegs(self):
- """Test JSONIndividualRouteResponseLegs"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_legs.JSONIndividualRouteResponseLegs() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_maneuver.py b/test/test_json_individual_route_response_maneuver.py
deleted file mode 100644
index 8a1c16e4..00000000
--- a/test/test_json_individual_route_response_maneuver.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseManeuver(unittest.TestCase):
- """JSONIndividualRouteResponseManeuver unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseManeuver(self):
- """Test JSONIndividualRouteResponseManeuver"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_maneuver.JSONIndividualRouteResponseManeuver() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_segments.py b/test/test_json_individual_route_response_segments.py
deleted file mode 100644
index 51d02f99..00000000
--- a/test/test_json_individual_route_response_segments.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseSegments(unittest.TestCase):
- """JSONIndividualRouteResponseSegments unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseSegments(self):
- """Test JSONIndividualRouteResponseSegments"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_segments.JSONIndividualRouteResponseSegments() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_stops.py b/test/test_json_individual_route_response_stops.py
deleted file mode 100644
index 8bb11575..00000000
--- a/test/test_json_individual_route_response_stops.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseStops(unittest.TestCase):
- """JSONIndividualRouteResponseStops unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseStops(self):
- """Test JSONIndividualRouteResponseStops"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_stops.JSONIndividualRouteResponseStops() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_summary.py b/test/test_json_individual_route_response_summary.py
deleted file mode 100644
index b4410553..00000000
--- a/test/test_json_individual_route_response_summary.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseSummary(unittest.TestCase):
- """JSONIndividualRouteResponseSummary unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseSummary(self):
- """Test JSONIndividualRouteResponseSummary"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_summary.JSONIndividualRouteResponseSummary() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_individual_route_response_warnings.py b/test/test_json_individual_route_response_warnings.py
deleted file mode 100644
index addd1520..00000000
--- a/test/test_json_individual_route_response_warnings.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONIndividualRouteResponseWarnings(unittest.TestCase):
- """JSONIndividualRouteResponseWarnings unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONIndividualRouteResponseWarnings(self):
- """Test JSONIndividualRouteResponseWarnings"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_individual_route_response_warnings.JSONIndividualRouteResponseWarnings() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_leg.py b/test/test_json_leg.py
deleted file mode 100644
index 3baf8f28..00000000
--- a/test/test_json_leg.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_leg import JSONLeg # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONLeg(unittest.TestCase):
- """JSONLeg unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONLeg(self):
- """Test JSONLeg"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_leg.JSONLeg() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_node.py b/test/test_json_node.py
deleted file mode 100644
index bd1dd9d0..00000000
--- a/test/test_json_node.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_node import JsonNode # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJsonNode(unittest.TestCase):
- """JsonNode unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJsonNode(self):
- """Test JsonNode"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_node.JsonNode() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_object.py b/test/test_json_object.py
deleted file mode 100644
index b33229fd..00000000
--- a/test/test_json_object.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_object import JSONObject # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONObject(unittest.TestCase):
- """JSONObject unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONObject(self):
- """Test JSONObject"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_object.JSONObject() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_route_response.py b/test/test_json_route_response.py
deleted file mode 100644
index b4241b06..00000000
--- a/test/test_json_route_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_route_response import JSONRouteResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONRouteResponse(unittest.TestCase):
- """JSONRouteResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONRouteResponse(self):
- """Test JSONRouteResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_route_response.JSONRouteResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_route_response_routes.py b/test/test_json_route_response_routes.py
deleted file mode 100644
index a1115e39..00000000
--- a/test/test_json_route_response_routes.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONRouteResponseRoutes(unittest.TestCase):
- """JSONRouteResponseRoutes unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONRouteResponseRoutes(self):
- """Test JSONRouteResponseRoutes"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_route_response_routes.JSONRouteResponseRoutes() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_segment.py b/test/test_json_segment.py
deleted file mode 100644
index 80ec9588..00000000
--- a/test/test_json_segment.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_segment import JSONSegment # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONSegment(unittest.TestCase):
- """JSONSegment unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONSegment(self):
- """Test JSONSegment"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_segment.JSONSegment() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_step.py b/test/test_json_step.py
deleted file mode 100644
index 2d3aea37..00000000
--- a/test/test_json_step.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_step import JSONStep # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONStep(unittest.TestCase):
- """JSONStep unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONStep(self):
- """Test JSONStep"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_step.JSONStep() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_step_maneuver.py b/test/test_json_step_maneuver.py
deleted file mode 100644
index 825a2d77..00000000
--- a/test/test_json_step_maneuver.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_step_maneuver import JSONStepManeuver # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONStepManeuver(unittest.TestCase):
- """JSONStepManeuver unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONStepManeuver(self):
- """Test JSONStepManeuver"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_step_maneuver.JSONStepManeuver() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_summary.py b/test/test_json_summary.py
deleted file mode 100644
index f4aaeb57..00000000
--- a/test/test_json_summary.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_summary import JSONSummary # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONSummary(unittest.TestCase):
- """JSONSummary unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONSummary(self):
- """Test JSONSummary"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_summary.JSONSummary() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_json_warning.py b/test/test_json_warning.py
deleted file mode 100644
index bbc3532d..00000000
--- a/test/test_json_warning.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.json_warning import JSONWarning # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONWarning(unittest.TestCase):
- """JSONWarning unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONWarning(self):
- """Test JSONWarning"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.json_warning.JSONWarning() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_jsonpt_stop.py b/test/test_jsonpt_stop.py
deleted file mode 100644
index 4f24186d..00000000
--- a/test/test_jsonpt_stop.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.jsonpt_stop import JSONPtStop # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestJSONPtStop(unittest.TestCase):
- """JSONPtStop unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testJSONPtStop(self):
- """Test JSONPtStop"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.jsonpt_stop.JSONPtStop() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_profile_body.py b/test/test_matrix_profile_body.py
deleted file mode 100644
index 0abb4a05..00000000
--- a/test/test_matrix_profile_body.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_profile_body import MatrixProfileBody # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixProfileBody(unittest.TestCase):
- """MatrixProfileBody unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixProfileBody(self):
- """Test MatrixProfileBody"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_profile_body.MatrixProfileBody() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_request.py b/test/test_matrix_request.py
deleted file mode 100644
index 4d3a9da9..00000000
--- a/test/test_matrix_request.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_request import MatrixRequest # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixRequest(unittest.TestCase):
- """MatrixRequest unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixRequest(self):
- """Test MatrixRequest"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_request.MatrixRequest() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_response.py b/test/test_matrix_response.py
deleted file mode 100644
index 97527f39..00000000
--- a/test/test_matrix_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_response import MatrixResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixResponse(unittest.TestCase):
- """MatrixResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixResponse(self):
- """Test MatrixResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_response.MatrixResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_response_destinations.py b/test/test_matrix_response_destinations.py
deleted file mode 100644
index bf321d8a..00000000
--- a/test/test_matrix_response_destinations.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixResponseDestinations(unittest.TestCase):
- """MatrixResponseDestinations unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixResponseDestinations(self):
- """Test MatrixResponseDestinations"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_response_destinations.MatrixResponseDestinations() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_response_info.py b/test/test_matrix_response_info.py
deleted file mode 100644
index 3ab4bc02..00000000
--- a/test/test_matrix_response_info.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_response_info import MatrixResponseInfo # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixResponseInfo(unittest.TestCase):
- """MatrixResponseInfo unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixResponseInfo(self):
- """Test MatrixResponseInfo"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_response_info.MatrixResponseInfo() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_response_metadata.py b/test/test_matrix_response_metadata.py
deleted file mode 100644
index e3ee51d7..00000000
--- a/test/test_matrix_response_metadata.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixResponseMetadata(unittest.TestCase):
- """MatrixResponseMetadata unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixResponseMetadata(self):
- """Test MatrixResponseMetadata"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_response_metadata.MatrixResponseMetadata() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_response_sources.py b/test/test_matrix_response_sources.py
deleted file mode 100644
index 472f9433..00000000
--- a/test/test_matrix_response_sources.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.matrix_response_sources import MatrixResponseSources # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestMatrixResponseSources(unittest.TestCase):
- """MatrixResponseSources unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testMatrixResponseSources(self):
- """Test MatrixResponseSources"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.matrix_response_sources.MatrixResponseSources() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_matrix_service_api.py b/test/test_matrix_service_api.py
index 097744ae..69944e48 100644
--- a/test/test_matrix_service_api.py
+++ b/test/test_matrix_service_api.py
@@ -43,7 +43,7 @@ def test_get_default(self):
)
profile = 'driving-car' # str | Specifies the matrix profile.
- response = self.api.get_default(body, profile)
+ response = self.api.get_default1(body, profile)
self.assertEqual(len(response.destinations), 4)
diff --git a/test/test_openpoiservice_poi_request.py b/test/test_openpoiservice_poi_request.py
deleted file mode 100644
index eddc2433..00000000
--- a/test/test_openpoiservice_poi_request.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOpenpoiservicePoiRequest(unittest.TestCase):
- """OpenpoiservicePoiRequest unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOpenpoiservicePoiRequest(self):
- """Test OpenpoiservicePoiRequest"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.openpoiservice_poi_request.OpenpoiservicePoiRequest() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_openpoiservice_poi_response.py b/test/test_openpoiservice_poi_response.py
deleted file mode 100644
index f636b9bd..00000000
--- a/test/test_openpoiservice_poi_response.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOpenpoiservicePoiResponse(unittest.TestCase):
- """OpenpoiservicePoiResponse unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOpenpoiservicePoiResponse(self):
- """Test OpenpoiservicePoiResponse"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.openpoiservice_poi_response.OpenpoiservicePoiResponse() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_optimization_body.py b/test/test_optimization_body.py
deleted file mode 100644
index 3f57aa04..00000000
--- a/test/test_optimization_body.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.optimization_body import OptimizationBody # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOptimizationBody(unittest.TestCase):
- """OptimizationBody unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOptimizationBody(self):
- """Test OptimizationBody"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.optimization_body.OptimizationBody() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_optimization_jobs.py b/test/test_optimization_jobs.py
deleted file mode 100644
index 6863e1dd..00000000
--- a/test/test_optimization_jobs.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.optimization_jobs import OptimizationJobs # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOptimizationJobs(unittest.TestCase):
- """OptimizationJobs unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOptimizationJobs(self):
- """Test OptimizationJobs"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.optimization_jobs.OptimizationJobs() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_optimization_options.py b/test/test_optimization_options.py
deleted file mode 100644
index e6cdd798..00000000
--- a/test/test_optimization_options.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.optimization_options import OptimizationOptions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOptimizationOptions(unittest.TestCase):
- """OptimizationOptions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOptimizationOptions(self):
- """Test OptimizationOptions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.optimization_options.OptimizationOptions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_optimization_vehicles.py b/test/test_optimization_vehicles.py
deleted file mode 100644
index 446e441f..00000000
--- a/test/test_optimization_vehicles.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.optimization_vehicles import OptimizationVehicles # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestOptimizationVehicles(unittest.TestCase):
- """OptimizationVehicles unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testOptimizationVehicles(self):
- """Test OptimizationVehicles"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.optimization_vehicles.OptimizationVehicles() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_pois_filters.py b/test/test_pois_filters.py
deleted file mode 100644
index 53b299d5..00000000
--- a/test/test_pois_filters.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.pois_filters import PoisFilters # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestPoisFilters(unittest.TestCase):
- """PoisFilters unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testPoisFilters(self):
- """Test PoisFilters"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.pois_filters.PoisFilters() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_pois_geometry.py b/test/test_pois_geometry.py
deleted file mode 100644
index 70039a6a..00000000
--- a/test/test_pois_geometry.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.pois_geometry import PoisGeometry # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestPoisGeometry(unittest.TestCase):
- """PoisGeometry unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testPoisGeometry(self):
- """Test PoisGeometry"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.pois_geometry.PoisGeometry() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_profile_parameters.py b/test/test_profile_parameters.py
deleted file mode 100644
index a354ba7a..00000000
--- a/test/test_profile_parameters.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.profile_parameters import ProfileParameters # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestProfileParameters(unittest.TestCase):
- """ProfileParameters unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testProfileParameters(self):
- """Test ProfileParameters"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.profile_parameters.ProfileParameters() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_profile_parameters_restrictions.py b/test/test_profile_parameters_restrictions.py
deleted file mode 100644
index 914f3289..00000000
--- a/test/test_profile_parameters_restrictions.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestProfileParametersRestrictions(unittest.TestCase):
- """ProfileParametersRestrictions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testProfileParametersRestrictions(self):
- """Test ProfileParametersRestrictions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.profile_parameters_restrictions.ProfileParametersRestrictions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_profile_weightings.py b/test/test_profile_weightings.py
deleted file mode 100644
index 6279e661..00000000
--- a/test/test_profile_weightings.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.profile_weightings import ProfileWeightings # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestProfileWeightings(unittest.TestCase):
- """ProfileWeightings unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testProfileWeightings(self):
- """Test ProfileWeightings"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.profile_weightings.ProfileWeightings() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_restrictions.py b/test/test_restrictions.py
deleted file mode 100644
index fb72ca97..00000000
--- a/test/test_restrictions.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.restrictions import Restrictions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRestrictions(unittest.TestCase):
- """Restrictions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRestrictions(self):
- """Test Restrictions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.restrictions.Restrictions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_round_trip_route_options.py b/test/test_round_trip_route_options.py
deleted file mode 100644
index 618d3dc4..00000000
--- a/test/test_round_trip_route_options.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRoundTripRouteOptions(unittest.TestCase):
- """RoundTripRouteOptions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRoundTripRouteOptions(self):
- """Test RoundTripRouteOptions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.round_trip_route_options.RoundTripRouteOptions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_route_options.py b/test/test_route_options.py
deleted file mode 100644
index 25087275..00000000
--- a/test/test_route_options.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.route_options import RouteOptions # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRouteOptions(unittest.TestCase):
- """RouteOptions unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRouteOptions(self):
- """Test RouteOptions"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.route_options.RouteOptions() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_route_options_avoid_polygons.py b/test/test_route_options_avoid_polygons.py
deleted file mode 100644
index 4851552d..00000000
--- a/test/test_route_options_avoid_polygons.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRouteOptionsAvoidPolygons(unittest.TestCase):
- """RouteOptionsAvoidPolygons unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRouteOptionsAvoidPolygons(self):
- """Test RouteOptionsAvoidPolygons"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.route_options_avoid_polygons.RouteOptionsAvoidPolygons() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_route_response_info.py b/test/test_route_response_info.py
deleted file mode 100644
index 3fb91557..00000000
--- a/test/test_route_response_info.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.route_response_info import RouteResponseInfo # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRouteResponseInfo(unittest.TestCase):
- """RouteResponseInfo unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRouteResponseInfo(self):
- """Test RouteResponseInfo"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.route_response_info.RouteResponseInfo() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_rte.py b/test/test_rte.py
deleted file mode 100644
index 97df7afe..00000000
--- a/test/test_rte.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.rte import Rte # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestRte(unittest.TestCase):
- """Rte unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testRte(self):
- """Test Rte"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.rte.Rte() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_snapping_service_api.py b/test/test_snapping_service_api.py
new file mode 100644
index 00000000..ebdfcee5
--- /dev/null
+++ b/test/test_snapping_service_api.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from __future__ import absolute_import
+
+import unittest
+import configparser
+
+import openrouteservice
+from openrouteservice.api.snapping_service_api import SnappingServiceApi # noqa: E501
+from openrouteservice.rest import ApiException
+
+
+class TestSnappingServiceApi(unittest.TestCase):
+ """SnappingServiceApi unit test stubs"""
+
+ def setUp(self):
+ cfg = configparser.ConfigParser()
+ cfg.read('tests-config.ini')
+ configuration = openrouteservice.Configuration()
+ configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
+ self.api = SnappingServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+
+ def tearDown(self):
+ pass
+
+ def test_get_default(self):
+ """Test case for get_default
+
+ Snapping Service # noqa: E501
+ """
+ # response = self.api.get_default()
+ # self.assertIsNotNone(response)
+
+ def test_get_geo_json_snapping(self):
+ """Test case for get_geo_json_snapping
+
+ Snapping Service GeoJSON # noqa: E501
+ """
+ # response = self.api.get_geo_json_snapping()
+ # self.assertIsNotNone(response)
+
+ def test_get_json_snapping(self):
+ """Test case for get_json_snapping
+
+ Snapping Service JSON # noqa: E501
+ """
+ # response = self.api.get_json_snapping()
+ # self.assertIsNotNone(response)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration.py b/test/test_v2directionsprofilegeojson_schedule_duration.py
deleted file mode 100644
index e4c5bd1a..00000000
--- a/test/test_v2directionsprofilegeojson_schedule_duration.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestV2directionsprofilegeojsonScheduleDuration(unittest.TestCase):
- """V2directionsprofilegeojsonScheduleDuration unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testV2directionsprofilegeojsonScheduleDuration(self):
- """Test V2directionsprofilegeojsonScheduleDuration"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration.V2directionsprofilegeojsonScheduleDuration() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration_duration.py b/test/test_v2directionsprofilegeojson_schedule_duration_duration.py
deleted file mode 100644
index 621b936f..00000000
--- a/test/test_v2directionsprofilegeojson_schedule_duration_duration.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestV2directionsprofilegeojsonScheduleDurationDuration(unittest.TestCase):
- """V2directionsprofilegeojsonScheduleDurationDuration unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testV2directionsprofilegeojsonScheduleDurationDuration(self):
- """Test V2directionsprofilegeojsonScheduleDurationDuration"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration_duration.V2directionsprofilegeojsonScheduleDurationDuration() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_schedule_duration_units.py b/test/test_v2directionsprofilegeojson_schedule_duration_units.py
deleted file mode 100644
index 21548dbd..00000000
--- a/test/test_v2directionsprofilegeojson_schedule_duration_units.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestV2directionsprofilegeojsonScheduleDurationUnits(unittest.TestCase):
- """V2directionsprofilegeojsonScheduleDurationUnits unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testV2directionsprofilegeojsonScheduleDurationUnits(self):
- """Test V2directionsprofilegeojsonScheduleDurationUnits"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.v2directionsprofilegeojson_schedule_duration_units.V2directionsprofilegeojsonScheduleDurationUnits() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_v2directionsprofilegeojson_walking_time.py b/test/test_v2directionsprofilegeojson_walking_time.py
deleted file mode 100644
index b139a8ac..00000000
--- a/test/test_v2directionsprofilegeojson_walking_time.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from __future__ import absolute_import
-
-import unittest
-import configparser
-
-import openrouteservice
-from openrouteservice.models.v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime # noqa: E501
-from openrouteservice.rest import ApiException
-
-
-class TestV2directionsprofilegeojsonWalkingTime(unittest.TestCase):
- """V2directionsprofilegeojsonWalkingTime unit test stubs"""
-
- def setUp(self):
- cfg = configparser.ConfigParser()
- cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
-
- def tearDown(self):
- pass
-
- def testV2directionsprofilegeojsonWalkingTime(self):
- """Test V2directionsprofilegeojsonWalkingTime"""
- # FIXME: construct object with mandatory attributes with example values
- # model = openrouteservice.models.v2directionsprofilegeojson_walking_time.V2directionsprofilegeojsonWalkingTime() # noqa: E501
- pass
-
-
-if __name__ == '__main__':
- unittest.main()
From 1a61040712624a94fcda0f34f5076884ba7ef848 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Mon, 11 Mar 2024 14:20:34 +0100
Subject: [PATCH 05/38] feat: remove unused schemas
---
README.md | 87 +--
docs/GeoJSONIsochronesResponse.md | 12 -
docs/GeoJSONIsochronesResponseFeatures.md | 10 -
docs/GeoJSONIsochronesResponseMetadata.md | 16 -
...GeoJSONIsochronesResponseMetadataEngine.md | 11 -
docs/GeoJSONPointGeometry.md | 10 -
docs/GeoJSONRouteResponse.md | 12 -
docs/GeoJSONRouteResponseMetadata.md | 16 -
docs/GeoJSONSnappingResponse.md | 12 -
docs/GeoJSONSnappingResponseMetadata.md | 15 -
docs/GraphExportService.md | 10 -
docs/InlineResponse2003.md | 2 +-
docs/InlineResponse2004.md | 2 +-
docs/InlineResponse2005.md | 4 +-
...eBase.md => InlineResponse2005Features.md} | 4 +-
...metry.md => InlineResponse2005Geometry.md} | 2 +-
...eInfo.md => InlineResponse2005Metadata.md} | 4 +-
docs/InlineResponse2007.md | 2 +-
docs/InlineResponse2008.md | 4 +-
...tures.md => InlineResponse2008Features.md} | 2 +-
docs/IsochronesRequest.md | 20 -
docs/JSON2DDestinations.md | 11 -
docs/JSON2DSources.md | 11 -
docs/JSONIndividualRouteResponse.md | 18 -
docs/JSONIndividualRouteResponseLegs.md | 26 -
docs/JSONIndividualRouteResponseManeuver.md | 11 -
docs/JSONIndividualRouteResponseSegments.md | 16 -
docs/JSONIndividualRouteResponseStops.md | 19 -
docs/JSONIndividualRouteResponseSummary.md | 14 -
docs/JSONIndividualRouteResponseWarnings.md | 10 -
docs/JSONLocation.md | 11 -
docs/JSONObject.md | 8 -
docs/JSONRouteResponse.md | 2 +-
...seExtras.md => JSONRouteResponseExtras.md} | 2 +-
...ns.md => JSONRouteResponseInstructions.md} | 4 +-
docs/{JSONLeg.md => JSONRouteResponseLegs.md} | 6 +-
...neuver.md => JSONRouteResponseManeuver.md} | 2 +-
...seInfo.md => JSONRouteResponseMetadata.md} | 4 +-
....md => JSONRouteResponseMetadataEngine.md} | 2 +-
docs/JSONRouteResponseRoutes.md | 10 +-
...egment.md => JSONRouteResponseSegments.md} | 4 +-
...SONPtStop.md => JSONRouteResponseStops.md} | 2 +-
...Summary.md => JSONRouteResponseSummary.md} | 2 +-
...arning.md => JSONRouteResponseWarnings.md} | 2 +-
docs/JSONStep.md | 2 +-
docs/JsonEdgeExtra.md | 10 -
docs/JsonExportResponse.md | 14 -
docs/JsonExportResponseEdges.md | 11 -
docs/JsonExportResponseEdgesExtra.md | 10 -
docs/JsonExportResponseNodes.md | 10 -
docs/JsonNode.md | 10 -
docs/MatrixRequest.md | 15 -
docs/MatrixResponseInfo.md | 16 -
docs/MatrixResponseMetadata.md | 2 +-
docs/SnappingRequest.md | 11 -
docs/SnappingResponse.md | 2 +-
...nseInfo.md => SnappingResponseMetadata.md} | 4 +-
...irectionsprofilegeojsonScheduleDuration.md | 13 -
...sprofilegeojsonScheduleDurationDuration.md | 12 -
...ionsprofilegeojsonScheduleDurationUnits.md | 12 -
docs/V2directionsprofilegeojsonWalkingTime.md | 13 -
openrouteservice/__init__.py | 87 +--
openrouteservice/models/__init__.py | 87 +--
.../models/geo_json_feature_geometry.py | 140 -----
.../models/geo_json_isochrones_response.py | 190 ------
.../geo_json_isochrones_response_features.py | 136 ----
.../geo_json_isochrones_response_metadata.py | 304 ---------
...son_isochrones_response_metadata_engine.py | 168 -----
.../models/geo_json_route_response.py | 190 ------
.../models/geo_json_snapping_response.py | 194 ------
.../geo_json_snapping_response_features.py | 164 -----
.../geo_json_snapping_response_metadata.py | 276 --------
openrouteservice/models/gpx.py | 110 ----
.../models/graph_export_service.py | 141 -----
.../models/inline_response2003.py | 6 +-
...ata.py => inline_response2003_metadata.py} | 78 +--
.../models/inline_response2004.py | 12 +-
...extra.py => inline_response2004_extras.py} | 30 +-
...py => inline_response2004_instructions.py} | 86 +--
...son_leg.py => inline_response2004_legs.py} | 164 ++---
...ver.py => inline_response2004_maneuver.py} | 32 +-
...outes.py => inline_response2004_routes.py} | 118 ++--
...ent.py => inline_response2004_segments.py} | 78 +--
...t_stop.py => inline_response2004_stops.py} | 96 +--
...mary.py => inline_response2004_summary.py} | 32 +-
...ary.py => inline_response2004_summary1.py} | 56 +-
...ing.py => inline_response2004_warnings.py} | 24 +-
.../models/inline_response2005.py | 12 +-
...ase.py => inline_response2005_features.py} | 30 +-
...try.py => inline_response2005_geometry.py} | 16 +-
...nfo.py => inline_response2005_metadata.py} | 78 +--
...=> inline_response2005_metadata_engine.py} | 32 +-
.../models/inline_response2006.py | 18 +-
...py => inline_response2006_destinations.py} | 32 +-
...ata.py => inline_response2006_metadata.py} | 78 +--
...ions.py => inline_response2006_sources.py} | 32 +-
.../models/inline_response2007.py | 12 +-
...ns.py => inline_response2007_locations.py} | 32 +-
...nfo.py => inline_response2007_metadata.py} | 70 +--
.../models/inline_response2008.py | 12 +-
...ure.py => inline_response2008_features.py} | 44 +-
...try.py => inline_response2008_geometry.py} | 24 +-
...s.py => inline_response2008_properties.py} | 32 +-
openrouteservice/models/isochrones_request.py | 451 --------------
openrouteservice/models/json2_d_sources.py | 168 -----
openrouteservice/models/json_edge.py | 168 -----
openrouteservice/models/json_edge_extra.py | 140 -----
.../models/json_export_response.py | 240 -------
.../models/json_export_response_edges.py | 168 -----
.../json_export_response_edges_extra.py | 140 -----
.../models/json_export_response_nodes.py | 140 -----
.../models/json_individual_route_response.py | 362 -----------
.../json_individual_route_response_extras.py | 140 -----
..._individual_route_response_instructions.py | 334 ----------
.../json_individual_route_response_legs.py | 588 ------------------
...json_individual_route_response_maneuver.py | 168 -----
...json_individual_route_response_segments.py | 308 ---------
.../json_individual_route_response_stops.py | 392 ------------
.../json_individual_route_response_summary.py | 248 --------
...json_individual_route_response_warnings.py | 140 -----
openrouteservice/models/json_location.py | 168 -----
openrouteservice/models/json_node.py | 140 -----
openrouteservice/models/json_object.py | 89 ---
.../models/json_route_response.py | 166 -----
openrouteservice/models/matrix_request.py | 294 ---------
openrouteservice/models/matrix_response.py | 222 -------
.../models/matrix_response_info.py | 304 ---------
.../models/matrix_response_sources.py | 168 -----
openrouteservice/models/restrictions.py | 426 -------------
.../models/route_response_info.py | 304 ---------
openrouteservice/models/rte.py | 84 ---
openrouteservice/models/snapping_request.py | 170 -----
openrouteservice/models/snapping_response.py | 138 ----
...ectionsprofilegeojson_schedule_duration.py | 214 -------
...ofilegeojson_schedule_duration_duration.py | 188 ------
...sprofilegeojson_schedule_duration_units.py | 188 ------
...v2directionsprofilegeojson_walking_time.py | 214 -------
137 files changed, 791 insertions(+), 11155 deletions(-)
delete mode 100644 docs/GeoJSONIsochronesResponse.md
delete mode 100644 docs/GeoJSONIsochronesResponseFeatures.md
delete mode 100644 docs/GeoJSONIsochronesResponseMetadata.md
delete mode 100644 docs/GeoJSONIsochronesResponseMetadataEngine.md
delete mode 100644 docs/GeoJSONPointGeometry.md
delete mode 100644 docs/GeoJSONRouteResponse.md
delete mode 100644 docs/GeoJSONRouteResponseMetadata.md
delete mode 100644 docs/GeoJSONSnappingResponse.md
delete mode 100644 docs/GeoJSONSnappingResponseMetadata.md
delete mode 100644 docs/GraphExportService.md
rename docs/{GeoJSONIsochroneBase.md => InlineResponse2005Features.md} (71%)
rename docs/{GeoJSONIsochroneBaseGeometry.md => InlineResponse2005Geometry.md} (90%)
rename docs/{IsochronesResponseInfo.md => InlineResponse2005Metadata.md} (85%)
rename docs/{GeoJSONSnappingResponseFeatures.md => InlineResponse2008Features.md} (93%)
delete mode 100644 docs/IsochronesRequest.md
delete mode 100644 docs/JSON2DDestinations.md
delete mode 100644 docs/JSON2DSources.md
delete mode 100644 docs/JSONIndividualRouteResponse.md
delete mode 100644 docs/JSONIndividualRouteResponseLegs.md
delete mode 100644 docs/JSONIndividualRouteResponseManeuver.md
delete mode 100644 docs/JSONIndividualRouteResponseSegments.md
delete mode 100644 docs/JSONIndividualRouteResponseStops.md
delete mode 100644 docs/JSONIndividualRouteResponseSummary.md
delete mode 100644 docs/JSONIndividualRouteResponseWarnings.md
delete mode 100644 docs/JSONLocation.md
delete mode 100644 docs/JSONObject.md
rename docs/{JSONIndividualRouteResponseExtras.md => JSONRouteResponseExtras.md} (95%)
rename docs/{JSONIndividualRouteResponseInstructions.md => JSONRouteResponseInstructions.md} (87%)
rename docs/{JSONLeg.md => JSONRouteResponseLegs.md} (83%)
rename docs/{JSONStepManeuver.md => JSONRouteResponseManeuver.md} (95%)
rename docs/{RouteResponseInfo.md => JSONRouteResponseMetadata.md} (85%)
rename docs/{EngineInfo.md => JSONRouteResponseMetadataEngine.md} (94%)
rename docs/{JSONSegment.md => JSONRouteResponseSegments.md} (83%)
rename docs/{JSONPtStop.md => JSONRouteResponseStops.md} (97%)
rename docs/{JSONSummary.md => JSONRouteResponseSummary.md} (95%)
rename docs/{JSONWarning.md => JSONRouteResponseWarnings.md} (93%)
delete mode 100644 docs/JsonEdgeExtra.md
delete mode 100644 docs/JsonExportResponse.md
delete mode 100644 docs/JsonExportResponseEdges.md
delete mode 100644 docs/JsonExportResponseEdgesExtra.md
delete mode 100644 docs/JsonExportResponseNodes.md
delete mode 100644 docs/JsonNode.md
delete mode 100644 docs/MatrixRequest.md
delete mode 100644 docs/MatrixResponseInfo.md
delete mode 100644 docs/SnappingRequest.md
rename docs/{SnappingResponseInfo.md => SnappingResponseMetadata.md} (84%)
delete mode 100644 docs/V2directionsprofilegeojsonScheduleDuration.md
delete mode 100644 docs/V2directionsprofilegeojsonScheduleDurationDuration.md
delete mode 100644 docs/V2directionsprofilegeojsonScheduleDurationUnits.md
delete mode 100644 docs/V2directionsprofilegeojsonWalkingTime.md
delete mode 100644 openrouteservice/models/geo_json_feature_geometry.py
delete mode 100644 openrouteservice/models/geo_json_isochrones_response.py
delete mode 100644 openrouteservice/models/geo_json_isochrones_response_features.py
delete mode 100644 openrouteservice/models/geo_json_isochrones_response_metadata.py
delete mode 100644 openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
delete mode 100644 openrouteservice/models/geo_json_route_response.py
delete mode 100644 openrouteservice/models/geo_json_snapping_response.py
delete mode 100644 openrouteservice/models/geo_json_snapping_response_features.py
delete mode 100644 openrouteservice/models/geo_json_snapping_response_metadata.py
delete mode 100644 openrouteservice/models/gpx.py
delete mode 100644 openrouteservice/models/graph_export_service.py
rename openrouteservice/models/{geo_json_route_response_metadata.py => inline_response2003_metadata.py} (71%)
rename openrouteservice/models/{json_extra.py => inline_response2004_extras.py} (80%)
rename openrouteservice/models/{json_step.py => inline_response2004_instructions.py} (69%)
rename openrouteservice/models/{json_leg.py => inline_response2004_legs.py} (68%)
rename openrouteservice/models/{json_step_maneuver.py => inline_response2004_maneuver.py} (78%)
rename openrouteservice/models/{json_route_response_routes.py => inline_response2004_routes.py} (66%)
rename openrouteservice/models/{json_segment.py => inline_response2004_segments.py} (70%)
rename openrouteservice/models/{jsonpt_stop.py => inline_response2004_stops.py} (73%)
rename openrouteservice/models/{json_extra_summary.py => inline_response2004_summary.py} (78%)
rename openrouteservice/models/{json_summary.py => inline_response2004_summary1.py} (71%)
rename openrouteservice/models/{json_warning.py => inline_response2004_warnings.py} (80%)
rename openrouteservice/models/{geo_json_isochrone_base.py => inline_response2005_features.py} (76%)
rename openrouteservice/models/{geo_json_isochrone_base_geometry.py => inline_response2005_geometry.py} (83%)
rename openrouteservice/models/{isochrones_response_info.py => inline_response2005_metadata.py} (70%)
rename openrouteservice/models/{engine_info.py => inline_response2005_metadata_engine.py} (76%)
rename openrouteservice/models/{matrix_response_destinations.py => inline_response2006_destinations.py} (78%)
rename openrouteservice/models/{matrix_response_metadata.py => inline_response2006_metadata.py} (71%)
rename openrouteservice/models/{snapping_response_locations.py => inline_response2006_sources.py} (80%)
rename openrouteservice/models/{json2_d_destinations.py => inline_response2007_locations.py} (79%)
rename openrouteservice/models/{snapping_response_info.py => inline_response2007_metadata.py} (71%)
rename openrouteservice/models/{geo_json_feature.py => inline_response2008_features.py} (71%)
rename openrouteservice/models/{geo_json_point_geometry.py => inline_response2008_geometry.py} (80%)
rename openrouteservice/models/{geo_json_feature_properties.py => inline_response2008_properties.py} (78%)
delete mode 100644 openrouteservice/models/isochrones_request.py
delete mode 100644 openrouteservice/models/json2_d_sources.py
delete mode 100644 openrouteservice/models/json_edge.py
delete mode 100644 openrouteservice/models/json_edge_extra.py
delete mode 100644 openrouteservice/models/json_export_response.py
delete mode 100644 openrouteservice/models/json_export_response_edges.py
delete mode 100644 openrouteservice/models/json_export_response_edges_extra.py
delete mode 100644 openrouteservice/models/json_export_response_nodes.py
delete mode 100644 openrouteservice/models/json_individual_route_response.py
delete mode 100644 openrouteservice/models/json_individual_route_response_extras.py
delete mode 100644 openrouteservice/models/json_individual_route_response_instructions.py
delete mode 100644 openrouteservice/models/json_individual_route_response_legs.py
delete mode 100644 openrouteservice/models/json_individual_route_response_maneuver.py
delete mode 100644 openrouteservice/models/json_individual_route_response_segments.py
delete mode 100644 openrouteservice/models/json_individual_route_response_stops.py
delete mode 100644 openrouteservice/models/json_individual_route_response_summary.py
delete mode 100644 openrouteservice/models/json_individual_route_response_warnings.py
delete mode 100644 openrouteservice/models/json_location.py
delete mode 100644 openrouteservice/models/json_node.py
delete mode 100644 openrouteservice/models/json_object.py
delete mode 100644 openrouteservice/models/json_route_response.py
delete mode 100644 openrouteservice/models/matrix_request.py
delete mode 100644 openrouteservice/models/matrix_response.py
delete mode 100644 openrouteservice/models/matrix_response_info.py
delete mode 100644 openrouteservice/models/matrix_response_sources.py
delete mode 100644 openrouteservice/models/restrictions.py
delete mode 100644 openrouteservice/models/route_response_info.py
delete mode 100644 openrouteservice/models/rte.py
delete mode 100644 openrouteservice/models/snapping_request.py
delete mode 100644 openrouteservice/models/snapping_response.py
delete mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
delete mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
delete mode 100644 openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
delete mode 100644 openrouteservice/models/v2directionsprofilegeojson_walking_time.py
diff --git a/README.md b/README.md
index e58947f5..b4f7a82f 100644
--- a/README.md
+++ b/README.md
@@ -133,31 +133,13 @@ Class | Method | HTTP request | Description
- [DirectionsService1](docs/DirectionsService1.md)
- [ElevationLineBody](docs/ElevationLineBody.md)
- [ElevationPointBody](docs/ElevationPointBody.md)
- - [EngineInfo](docs/EngineInfo.md)
- - [GeoJSONFeature](docs/GeoJSONFeature.md)
- - [GeoJSONFeatureGeometry](docs/GeoJSONFeatureGeometry.md)
- - [GeoJSONFeatureProperties](docs/GeoJSONFeatureProperties.md)
- [GeoJSONFeaturesObject](docs/GeoJSONFeaturesObject.md)
- [GeoJSONGeometryObject](docs/GeoJSONGeometryObject.md)
- - [GeoJSONIsochroneBase](docs/GeoJSONIsochroneBase.md)
- - [GeoJSONIsochroneBaseGeometry](docs/GeoJSONIsochroneBaseGeometry.md)
- - [GeoJSONIsochronesResponse](docs/GeoJSONIsochronesResponse.md)
- - [GeoJSONIsochronesResponseFeatures](docs/GeoJSONIsochronesResponseFeatures.md)
- - [GeoJSONIsochronesResponseMetadata](docs/GeoJSONIsochronesResponseMetadata.md)
- - [GeoJSONIsochronesResponseMetadataEngine](docs/GeoJSONIsochronesResponseMetadataEngine.md)
- - [GeoJSONPointGeometry](docs/GeoJSONPointGeometry.md)
- [GeoJSONPropertiesObject](docs/GeoJSONPropertiesObject.md)
- [GeoJSONPropertiesObjectCategoryIds](docs/GeoJSONPropertiesObjectCategoryIds.md)
- [GeoJSONPropertiesObjectCategoryIdsCategoryId](docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md)
- [GeoJSONPropertiesObjectOsmTags](docs/GeoJSONPropertiesObjectOsmTags.md)
- - [GeoJSONRouteResponse](docs/GeoJSONRouteResponse.md)
- - [GeoJSONRouteResponseMetadata](docs/GeoJSONRouteResponseMetadata.md)
- - [GeoJSONSnappingResponse](docs/GeoJSONSnappingResponse.md)
- - [GeoJSONSnappingResponseFeatures](docs/GeoJSONSnappingResponseFeatures.md)
- - [GeoJSONSnappingResponseMetadata](docs/GeoJSONSnappingResponseMetadata.md)
- [GeocodeResponse](docs/GeocodeResponse.md)
- - [Gpx](docs/Gpx.md)
- - [GraphExportService](docs/GraphExportService.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [InlineResponse2001Geometry](docs/InlineResponse2001Geometry.md)
@@ -168,53 +150,37 @@ Class | Method | HTTP request | Description
- [InlineResponse2002Unassigned](docs/InlineResponse2002Unassigned.md)
- [InlineResponse2002Violations](docs/InlineResponse2002Violations.md)
- [InlineResponse2003](docs/InlineResponse2003.md)
+ - [InlineResponse2003Metadata](docs/InlineResponse2003Metadata.md)
- [InlineResponse2004](docs/InlineResponse2004.md)
+ - [InlineResponse2004Extras](docs/InlineResponse2004Extras.md)
+ - [InlineResponse2004Instructions](docs/InlineResponse2004Instructions.md)
+ - [InlineResponse2004Legs](docs/InlineResponse2004Legs.md)
+ - [InlineResponse2004Maneuver](docs/InlineResponse2004Maneuver.md)
+ - [InlineResponse2004Routes](docs/InlineResponse2004Routes.md)
+ - [InlineResponse2004Segments](docs/InlineResponse2004Segments.md)
+ - [InlineResponse2004Stops](docs/InlineResponse2004Stops.md)
+ - [InlineResponse2004Summary](docs/InlineResponse2004Summary.md)
+ - [InlineResponse2004Summary1](docs/InlineResponse2004Summary1.md)
+ - [InlineResponse2004Warnings](docs/InlineResponse2004Warnings.md)
- [InlineResponse2005](docs/InlineResponse2005.md)
+ - [InlineResponse2005Features](docs/InlineResponse2005Features.md)
+ - [InlineResponse2005Geometry](docs/InlineResponse2005Geometry.md)
+ - [InlineResponse2005Metadata](docs/InlineResponse2005Metadata.md)
+ - [InlineResponse2005MetadataEngine](docs/InlineResponse2005MetadataEngine.md)
- [InlineResponse2006](docs/InlineResponse2006.md)
+ - [InlineResponse2006Destinations](docs/InlineResponse2006Destinations.md)
+ - [InlineResponse2006Metadata](docs/InlineResponse2006Metadata.md)
+ - [InlineResponse2006Sources](docs/InlineResponse2006Sources.md)
- [InlineResponse2007](docs/InlineResponse2007.md)
+ - [InlineResponse2007Locations](docs/InlineResponse2007Locations.md)
+ - [InlineResponse2007Metadata](docs/InlineResponse2007Metadata.md)
- [InlineResponse2008](docs/InlineResponse2008.md)
+ - [InlineResponse2008Features](docs/InlineResponse2008Features.md)
+ - [InlineResponse2008Geometry](docs/InlineResponse2008Geometry.md)
+ - [InlineResponse2008Properties](docs/InlineResponse2008Properties.md)
- [InlineResponse200Geometry](docs/InlineResponse200Geometry.md)
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
- - [IsochronesRequest](docs/IsochronesRequest.md)
- - [IsochronesResponseInfo](docs/IsochronesResponseInfo.md)
- - [JSON2DDestinations](docs/JSON2DDestinations.md)
- - [JSON2DSources](docs/JSON2DSources.md)
- - [JSONExtra](docs/JSONExtra.md)
- - [JSONExtraSummary](docs/JSONExtraSummary.md)
- - [JSONIndividualRouteResponse](docs/JSONIndividualRouteResponse.md)
- - [JSONIndividualRouteResponseExtras](docs/JSONIndividualRouteResponseExtras.md)
- - [JSONIndividualRouteResponseInstructions](docs/JSONIndividualRouteResponseInstructions.md)
- - [JSONIndividualRouteResponseLegs](docs/JSONIndividualRouteResponseLegs.md)
- - [JSONIndividualRouteResponseManeuver](docs/JSONIndividualRouteResponseManeuver.md)
- - [JSONIndividualRouteResponseSegments](docs/JSONIndividualRouteResponseSegments.md)
- - [JSONIndividualRouteResponseStops](docs/JSONIndividualRouteResponseStops.md)
- - [JSONIndividualRouteResponseSummary](docs/JSONIndividualRouteResponseSummary.md)
- - [JSONIndividualRouteResponseWarnings](docs/JSONIndividualRouteResponseWarnings.md)
- - [JSONLeg](docs/JSONLeg.md)
- - [JSONLocation](docs/JSONLocation.md)
- - [JSONObject](docs/JSONObject.md)
- - [JSONPtStop](docs/JSONPtStop.md)
- - [JSONRouteResponse](docs/JSONRouteResponse.md)
- - [JSONRouteResponseRoutes](docs/JSONRouteResponseRoutes.md)
- - [JSONSegment](docs/JSONSegment.md)
- - [JSONStep](docs/JSONStep.md)
- - [JSONStepManeuver](docs/JSONStepManeuver.md)
- - [JSONSummary](docs/JSONSummary.md)
- - [JSONWarning](docs/JSONWarning.md)
- - [JsonEdge](docs/JsonEdge.md)
- - [JsonEdgeExtra](docs/JsonEdgeExtra.md)
- - [JsonExportResponse](docs/JsonExportResponse.md)
- - [JsonExportResponseEdges](docs/JsonExportResponseEdges.md)
- - [JsonExportResponseEdgesExtra](docs/JsonExportResponseEdgesExtra.md)
- - [JsonExportResponseNodes](docs/JsonExportResponseNodes.md)
- - [JsonNode](docs/JsonNode.md)
- [MatrixProfileBody](docs/MatrixProfileBody.md)
- - [MatrixRequest](docs/MatrixRequest.md)
- - [MatrixResponse](docs/MatrixResponse.md)
- - [MatrixResponseDestinations](docs/MatrixResponseDestinations.md)
- - [MatrixResponseInfo](docs/MatrixResponseInfo.md)
- - [MatrixResponseMetadata](docs/MatrixResponseMetadata.md)
- - [MatrixResponseSources](docs/MatrixResponseSources.md)
- [OpenpoiservicePoiRequest](docs/OpenpoiservicePoiRequest.md)
- [OpenpoiservicePoiResponse](docs/OpenpoiservicePoiResponse.md)
- [OptimizationBody](docs/OptimizationBody.md)
@@ -233,17 +199,10 @@ Class | Method | HTTP request | Description
- [ProfileParameters](docs/ProfileParameters.md)
- [ProfileParametersRestrictions](docs/ProfileParametersRestrictions.md)
- [ProfileWeightings](docs/ProfileWeightings.md)
- - [Restrictions](docs/Restrictions.md)
- [RoundTripRouteOptions](docs/RoundTripRouteOptions.md)
- [RouteOptions](docs/RouteOptions.md)
- [RouteOptionsAvoidPolygons](docs/RouteOptionsAvoidPolygons.md)
- - [RouteResponseInfo](docs/RouteResponseInfo.md)
- - [Rte](docs/Rte.md)
- [SnapProfileBody](docs/SnapProfileBody.md)
- - [SnappingRequest](docs/SnappingRequest.md)
- - [SnappingResponse](docs/SnappingResponse.md)
- - [SnappingResponseInfo](docs/SnappingResponseInfo.md)
- - [SnappingResponseLocations](docs/SnappingResponseLocations.md)
## Author
diff --git a/docs/GeoJSONIsochronesResponse.md b/docs/GeoJSONIsochronesResponse.md
deleted file mode 100644
index c5ea1dba..00000000
--- a/docs/GeoJSONIsochronesResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# GeoJSONIsochronesResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned isochrones | [optional]
-**features** | [**list[GeoJSONIsochronesResponseFeatures]**](GeoJSONIsochronesResponseFeatures.md) | | [optional]
-**metadata** | [**GeoJSONIsochronesResponseMetadata**](GeoJSONIsochronesResponseMetadata.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONIsochronesResponseFeatures.md b/docs/GeoJSONIsochronesResponseFeatures.md
deleted file mode 100644
index 1c47d7f5..00000000
--- a/docs/GeoJSONIsochronesResponseFeatures.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GeoJSONIsochronesResponseFeatures
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**geometry** | [**GeoJSONIsochroneBaseGeometry**](GeoJSONIsochroneBaseGeometry.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONIsochronesResponseMetadata.md b/docs/GeoJSONIsochronesResponseMetadata.md
deleted file mode 100644
index cb75cb10..00000000
--- a/docs/GeoJSONIsochronesResponseMetadata.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# GeoJSONIsochronesResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**IsochronesProfileBody**](IsochronesProfileBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONIsochronesResponseMetadataEngine.md b/docs/GeoJSONIsochronesResponseMetadataEngine.md
deleted file mode 100644
index ce77d8ea..00000000
--- a/docs/GeoJSONIsochronesResponseMetadataEngine.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GeoJSONIsochronesResponseMetadataEngine
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**build_date** | **str** | The date that the service was last updated | [optional]
-**graph_date** | **str** | The date that the graph data was last updated | [optional]
-**version** | **str** | The backend version of the openrouteservice that was queried | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONPointGeometry.md b/docs/GeoJSONPointGeometry.md
deleted file mode 100644
index 7811958d..00000000
--- a/docs/GeoJSONPointGeometry.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GeoJSONPointGeometry
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**coordinates** | **list[float]** | Lon/Lat coordinates of the snapped location | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'Point']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONRouteResponse.md b/docs/GeoJSONRouteResponse.md
deleted file mode 100644
index a7dbbba1..00000000
--- a/docs/GeoJSONRouteResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# GeoJSONRouteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**features** | **list[object]** | | [optional]
-**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONRouteResponseMetadata.md b/docs/GeoJSONRouteResponseMetadata.md
deleted file mode 100644
index 04de4589..00000000
--- a/docs/GeoJSONRouteResponseMetadata.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# GeoJSONRouteResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**DirectionsService1**](DirectionsService1.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONSnappingResponse.md b/docs/GeoJSONSnappingResponse.md
deleted file mode 100644
index e46de064..00000000
--- a/docs/GeoJSONSnappingResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# GeoJSONSnappingResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned snapping points | [optional]
-**features** | [**list[GeoJSONSnappingResponseFeatures]**](GeoJSONSnappingResponseFeatures.md) | Information about the service and request | [optional]
-**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'FeatureCollection']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONSnappingResponseMetadata.md b/docs/GeoJSONSnappingResponseMetadata.md
deleted file mode 100644
index 50f2a31c..00000000
--- a/docs/GeoJSONSnappingResponseMetadata.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# GeoJSONSnappingResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**ProfileJsonBody**](ProfileJsonBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GraphExportService.md b/docs/GraphExportService.md
deleted file mode 100644
index 1d8403fc..00000000
--- a/docs/GraphExportService.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GraphExportService
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[list[float]]** | The bounding box to use for the request as an array of `longitude/latitude` pairs |
-**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md
index 6ee8ab01..8e6022ca 100644
--- a/docs/InlineResponse2003.md
+++ b/docs/InlineResponse2003.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
**features** | **list[object]** | | [optional]
-**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
**type** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md
index 13e450e8..af4cefce 100644
--- a/docs/InlineResponse2004.md
+++ b/docs/InlineResponse2004.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md
index 733518ca..94e906dc 100644
--- a/docs/InlineResponse2005.md
+++ b/docs/InlineResponse2005.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bbox** | **list[float]** | Bounding box that covers all returned isochrones | [optional]
-**features** | [**list[GeoJSONIsochronesResponseFeatures]**](GeoJSONIsochronesResponseFeatures.md) | | [optional]
-**metadata** | [**GeoJSONIsochronesResponseMetadata**](GeoJSONIsochronesResponseMetadata.md) | | [optional]
+**features** | [**list[InlineResponse2005Features]**](InlineResponse2005Features.md) | | [optional]
+**metadata** | [**InlineResponse2005Metadata**](InlineResponse2005Metadata.md) | | [optional]
**type** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/GeoJSONIsochroneBase.md b/docs/InlineResponse2005Features.md
similarity index 71%
rename from docs/GeoJSONIsochroneBase.md
rename to docs/InlineResponse2005Features.md
index 7586bb06..efda05e3 100644
--- a/docs/GeoJSONIsochroneBase.md
+++ b/docs/InlineResponse2005Features.md
@@ -1,9 +1,9 @@
-# GeoJSONIsochroneBase
+# InlineResponse2005Features
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**geometry** | [**GeoJSONIsochroneBaseGeometry**](GeoJSONIsochroneBaseGeometry.md) | | [optional]
+**geometry** | [**InlineResponse2005Geometry**](InlineResponse2005Geometry.md) | | [optional]
**type** | **str** | | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/GeoJSONIsochroneBaseGeometry.md b/docs/InlineResponse2005Geometry.md
similarity index 90%
rename from docs/GeoJSONIsochroneBaseGeometry.md
rename to docs/InlineResponse2005Geometry.md
index 7aa7b599..09a1e005 100644
--- a/docs/GeoJSONIsochroneBaseGeometry.md
+++ b/docs/InlineResponse2005Geometry.md
@@ -1,4 +1,4 @@
-# GeoJSONIsochroneBaseGeometry
+# InlineResponse2005Geometry
## Properties
Name | Type | Description | Notes
diff --git a/docs/IsochronesResponseInfo.md b/docs/InlineResponse2005Metadata.md
similarity index 85%
rename from docs/IsochronesResponseInfo.md
rename to docs/InlineResponse2005Metadata.md
index 147ef0c1..97214124 100644
--- a/docs/IsochronesResponseInfo.md
+++ b/docs/InlineResponse2005Metadata.md
@@ -1,10 +1,10 @@
-# IsochronesResponseInfo
+# InlineResponse2005Metadata
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
**id** | **str** | ID of the request (as passed in by the query) | [optional]
**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
**query** | [**IsochronesProfileBody**](IsochronesProfileBody.md) | | [optional]
diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md
index c59ab88d..97f695da 100644
--- a/docs/InlineResponse2007.md
+++ b/docs/InlineResponse2007.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
-**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md
index 680b7b90..03a29dca 100644
--- a/docs/InlineResponse2008.md
+++ b/docs/InlineResponse2008.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bbox** | **list[float]** | Bounding box that covers all returned snapping points | [optional]
-**features** | [**list[GeoJSONSnappingResponseFeatures]**](GeoJSONSnappingResponseFeatures.md) | Information about the service and request | [optional]
-**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+**features** | [**list[InlineResponse2008Features]**](InlineResponse2008Features.md) | Information about the service and request | [optional]
+**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
**type** | **str** | GeoJSON type | [optional] [default to 'FeatureCollection']
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/GeoJSONSnappingResponseFeatures.md b/docs/InlineResponse2008Features.md
similarity index 93%
rename from docs/GeoJSONSnappingResponseFeatures.md
rename to docs/InlineResponse2008Features.md
index 9a2213b1..b1e2cbe1 100644
--- a/docs/GeoJSONSnappingResponseFeatures.md
+++ b/docs/InlineResponse2008Features.md
@@ -1,4 +1,4 @@
-# GeoJSONSnappingResponseFeatures
+# InlineResponse2008Features
## Properties
Name | Type | Description | Notes
diff --git a/docs/IsochronesRequest.md b/docs/IsochronesRequest.md
deleted file mode 100644
index 5282b243..00000000
--- a/docs/IsochronesRequest.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# IsochronesRequest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**area_units** | **str** | Specifies the area unit. Default: m. | [optional] [default to 'm']
-**attributes** | **list[str]** | List of isochrones attributes | [optional]
-**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
-**intersections** | **bool** | Specifies whether to return intersecting polygons. | [optional] [default to False]
-**interval** | **float** | Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. | [optional]
-**location_type** | **str** | `start` treats the location(s) as starting point, `destination` as goal. | [optional] [default to 'start']
-**locations** | **list[list[float]]** | The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) |
-**options** | [**RouteOptions**](RouteOptions.md) | | [optional]
-**range** | **list[float]** | Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. |
-**range_type** | **str** | Specifies the isochrones reachability type. | [optional] [default to 'time']
-**smoothing** | **float** | Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` | [optional]
-**units** | **str** | Specifies the distance units only if `range_type` is set to distance. Default: m. | [optional] [default to 'm']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSON2DDestinations.md b/docs/JSON2DDestinations.md
deleted file mode 100644
index f63008a5..00000000
--- a/docs/JSON2DDestinations.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSON2DDestinations
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSON2DSources.md b/docs/JSON2DSources.md
deleted file mode 100644
index 9b9345f6..00000000
--- a/docs/JSON2DSources.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSON2DSources
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponse.md b/docs/JSONIndividualRouteResponse.md
deleted file mode 100644
index 96f3cd8f..00000000
--- a/docs/JSONIndividualRouteResponse.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# JSONIndividualRouteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival** | **datetime** | Arrival date and time | [optional]
-**bbox** | **list[float]** | A bounding box which contains the entire route | [optional]
-**departure** | **datetime** | Departure date and time | [optional]
-**extras** | [**dict(str, JSONIndividualRouteResponseExtras)**](JSONIndividualRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
-**geometry** | **str** | The geometry of the route. For JSON route responses this is an encoded polyline. | [optional]
-**legs** | [**list[JSONIndividualRouteResponseLegs]**](JSONIndividualRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
-**segments** | [**list[JSONIndividualRouteResponseSegments]**](JSONIndividualRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
-**summary** | [**JSONIndividualRouteResponseSummary**](JSONIndividualRouteResponseSummary.md) | | [optional]
-**warnings** | [**list[JSONIndividualRouteResponseWarnings]**](JSONIndividualRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
-**way_points** | **list[int]** | List containing the indices of way points corresponding to the *geometry*. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseLegs.md b/docs/JSONIndividualRouteResponseLegs.md
deleted file mode 100644
index a64c1654..00000000
--- a/docs/JSONIndividualRouteResponseLegs.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# JSONIndividualRouteResponseLegs
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival** | **datetime** | Arrival date and time | [optional]
-**departure** | **datetime** | Departure date and time | [optional]
-**departure_location** | **str** | The departure location of the leg. | [optional]
-**distance** | **float** | The distance for the leg in metres. | [optional]
-**duration** | **float** | The duration for the leg in seconds. | [optional]
-**feed_id** | **str** | The feed ID this public transport leg based its information from. | [optional]
-**geometry** | **str** | The geometry of the leg. This is an encoded polyline. | [optional]
-**instructions** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
-**is_in_same_vehicle_as_previous** | **bool** | Whether the legs continues in the same vehicle as the previous one. | [optional]
-**route_desc** | **str** | The route description of the leg (if provided in the GTFS data set). | [optional]
-**route_id** | **str** | The route ID of this public transport leg. | [optional]
-**route_long_name** | **str** | The public transport route name of the leg. | [optional]
-**route_short_name** | **str** | The public transport route name (short version) of the leg. | [optional]
-**route_type** | **int** | The route type of the leg (if provided in the GTFS data set). | [optional]
-**stops** | [**list[JSONIndividualRouteResponseStops]**](JSONIndividualRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
-**trip_headsign** | **str** | The headsign of the public transport vehicle of the leg. | [optional]
-**trip_id** | **str** | The trip ID of this public transport leg. | [optional]
-**type** | **str** | The type of the leg, possible values are currently 'walk' and 'pt'. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseManeuver.md b/docs/JSONIndividualRouteResponseManeuver.md
deleted file mode 100644
index 602b1178..00000000
--- a/docs/JSONIndividualRouteResponseManeuver.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONIndividualRouteResponseManeuver
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bearing_after** | **int** | The azimuth angle (in degrees) of the direction right after the maneuver. | [optional]
-**bearing_before** | **int** | The azimuth angle (in degrees) of the direction right before the maneuver. | [optional]
-**location** | **list[float]** | The coordinate of the point where a maneuver takes place. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseSegments.md b/docs/JSONIndividualRouteResponseSegments.md
deleted file mode 100644
index 91d704b1..00000000
--- a/docs/JSONIndividualRouteResponseSegments.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# JSONIndividualRouteResponseSegments
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ascent** | **float** | Contains ascent of this segment in metres. | [optional]
-**avgspeed** | **float** | Contains the average speed of this segment in km/h. | [optional]
-**descent** | **float** | Contains descent of this segment in metres. | [optional]
-**detourfactor** | **float** | Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. | [optional]
-**distance** | **float** | Contains the distance of the segment in specified units. | [optional]
-**duration** | **float** | Contains the duration of the segment in seconds. | [optional]
-**percentage** | **float** | Contains the proportion of the route in percent. | [optional]
-**steps** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseStops.md b/docs/JSONIndividualRouteResponseStops.md
deleted file mode 100644
index 3542ada7..00000000
--- a/docs/JSONIndividualRouteResponseStops.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# JSONIndividualRouteResponseStops
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival_cancelled** | **bool** | Whether arrival at the stop was cancelled. | [optional]
-**arrival_time** | **datetime** | Arrival time of the stop. | [optional]
-**departure_cancelled** | **bool** | Whether departure at the stop was cancelled. | [optional]
-**departure_time** | **datetime** | Departure time of the stop. | [optional]
-**location** | **list[float]** | The location of the stop. | [optional]
-**name** | **str** | The name of the stop. | [optional]
-**planned_arrival_time** | **datetime** | Planned arrival time of the stop. | [optional]
-**planned_departure_time** | **datetime** | Planned departure time of the stop. | [optional]
-**predicted_arrival_time** | **datetime** | Predicted arrival time of the stop. | [optional]
-**predicted_departure_time** | **datetime** | Predicted departure time of the stop. | [optional]
-**stop_id** | **str** | The ID of the stop. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseSummary.md b/docs/JSONIndividualRouteResponseSummary.md
deleted file mode 100644
index 0f724eaf..00000000
--- a/docs/JSONIndividualRouteResponseSummary.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# JSONIndividualRouteResponseSummary
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ascent** | **float** | Total ascent in meters. | [optional]
-**descent** | **float** | Total descent in meters. | [optional]
-**distance** | **float** | Total route distance in specified units. | [optional]
-**duration** | **float** | Total duration in seconds. | [optional]
-**fare** | **int** | | [optional]
-**transfers** | **int** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONIndividualRouteResponseWarnings.md b/docs/JSONIndividualRouteResponseWarnings.md
deleted file mode 100644
index dddc130c..00000000
--- a/docs/JSONIndividualRouteResponseWarnings.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JSONIndividualRouteResponseWarnings
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**code** | **int** | Identification code for the warning | [optional]
-**message** | **str** | The message associated with the warning | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONLocation.md b/docs/JSONLocation.md
deleted file mode 100644
index cf11ea8e..00000000
--- a/docs/JSONLocation.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONLocation
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONObject.md b/docs/JSONObject.md
deleted file mode 100644
index 5c479f6c..00000000
--- a/docs/JSONObject.md
+++ /dev/null
@@ -1,8 +0,0 @@
-# JSONObject
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponse.md b/docs/JSONRouteResponse.md
index 429c9b04..b87f9e1d 100644
--- a/docs/JSONRouteResponse.md
+++ b/docs/JSONRouteResponse.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**metadata** | [**GeoJSONRouteResponseMetadata**](GeoJSONRouteResponseMetadata.md) | | [optional]
+**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/JSONIndividualRouteResponseExtras.md b/docs/JSONRouteResponseExtras.md
similarity index 95%
rename from docs/JSONIndividualRouteResponseExtras.md
rename to docs/JSONRouteResponseExtras.md
index 4ef3cdcc..538cf6e8 100644
--- a/docs/JSONIndividualRouteResponseExtras.md
+++ b/docs/JSONRouteResponseExtras.md
@@ -1,4 +1,4 @@
-# JSONIndividualRouteResponseExtras
+# JSONRouteResponseExtras
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONIndividualRouteResponseInstructions.md b/docs/JSONRouteResponseInstructions.md
similarity index 87%
rename from docs/JSONIndividualRouteResponseInstructions.md
rename to docs/JSONRouteResponseInstructions.md
index 690c9d42..44f5847c 100644
--- a/docs/JSONIndividualRouteResponseInstructions.md
+++ b/docs/JSONRouteResponseInstructions.md
@@ -1,4 +1,4 @@
-# JSONIndividualRouteResponseInstructions
+# JSONRouteResponseInstructions
## Properties
Name | Type | Description | Notes
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
**instruction** | **str** | The routing instruction text for the step. | [optional]
-**maneuver** | [**JSONIndividualRouteResponseManeuver**](JSONIndividualRouteResponseManeuver.md) | | [optional]
+**maneuver** | [**JSONRouteResponseManeuver**](JSONRouteResponseManeuver.md) | | [optional]
**name** | **str** | The name of the next street. | [optional]
**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
diff --git a/docs/JSONLeg.md b/docs/JSONRouteResponseLegs.md
similarity index 83%
rename from docs/JSONLeg.md
rename to docs/JSONRouteResponseLegs.md
index a7f0abdc..373fdff5 100644
--- a/docs/JSONLeg.md
+++ b/docs/JSONRouteResponseLegs.md
@@ -1,4 +1,4 @@
-# JSONLeg
+# JSONRouteResponseLegs
## Properties
Name | Type | Description | Notes
@@ -10,14 +10,14 @@ Name | Type | Description | Notes
**duration** | **float** | The duration for the leg in seconds. | [optional]
**feed_id** | **str** | The feed ID this public transport leg based its information from. | [optional]
**geometry** | **str** | The geometry of the leg. This is an encoded polyline. | [optional]
-**instructions** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+**instructions** | [**list[JSONRouteResponseInstructions]**](JSONRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
**is_in_same_vehicle_as_previous** | **bool** | Whether the legs continues in the same vehicle as the previous one. | [optional]
**route_desc** | **str** | The route description of the leg (if provided in the GTFS data set). | [optional]
**route_id** | **str** | The route ID of this public transport leg. | [optional]
**route_long_name** | **str** | The public transport route name of the leg. | [optional]
**route_short_name** | **str** | The public transport route name (short version) of the leg. | [optional]
**route_type** | **int** | The route type of the leg (if provided in the GTFS data set). | [optional]
-**stops** | [**list[JSONIndividualRouteResponseStops]**](JSONIndividualRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
+**stops** | [**list[JSONRouteResponseStops]**](JSONRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
**trip_headsign** | **str** | The headsign of the public transport vehicle of the leg. | [optional]
**trip_id** | **str** | The trip ID of this public transport leg. | [optional]
**type** | **str** | The type of the leg, possible values are currently 'walk' and 'pt'. | [optional]
diff --git a/docs/JSONStepManeuver.md b/docs/JSONRouteResponseManeuver.md
similarity index 95%
rename from docs/JSONStepManeuver.md
rename to docs/JSONRouteResponseManeuver.md
index 0662c44b..1085a2de 100644
--- a/docs/JSONStepManeuver.md
+++ b/docs/JSONRouteResponseManeuver.md
@@ -1,4 +1,4 @@
-# JSONStepManeuver
+# JSONRouteResponseManeuver
## Properties
Name | Type | Description | Notes
diff --git a/docs/RouteResponseInfo.md b/docs/JSONRouteResponseMetadata.md
similarity index 85%
rename from docs/RouteResponseInfo.md
rename to docs/JSONRouteResponseMetadata.md
index 5438cb96..0ab05986 100644
--- a/docs/RouteResponseInfo.md
+++ b/docs/JSONRouteResponseMetadata.md
@@ -1,10 +1,10 @@
-# RouteResponseInfo
+# JSONRouteResponseMetadata
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
**id** | **str** | ID of the request (as passed in by the query) | [optional]
**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
**query** | [**DirectionsService1**](DirectionsService1.md) | | [optional]
diff --git a/docs/EngineInfo.md b/docs/JSONRouteResponseMetadataEngine.md
similarity index 94%
rename from docs/EngineInfo.md
rename to docs/JSONRouteResponseMetadataEngine.md
index 14afea75..2cbd9c6d 100644
--- a/docs/EngineInfo.md
+++ b/docs/JSONRouteResponseMetadataEngine.md
@@ -1,4 +1,4 @@
-# EngineInfo
+# JSONRouteResponseMetadataEngine
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONRouteResponseRoutes.md b/docs/JSONRouteResponseRoutes.md
index 5f1d2499..040c78e2 100644
--- a/docs/JSONRouteResponseRoutes.md
+++ b/docs/JSONRouteResponseRoutes.md
@@ -6,12 +6,12 @@ Name | Type | Description | Notes
**arrival** | **datetime** | Arrival date and time | [optional]
**bbox** | **list[float]** | A bounding box which contains the entire route | [optional]
**departure** | **datetime** | Departure date and time | [optional]
-**extras** | [**dict(str, JSONIndividualRouteResponseExtras)**](JSONIndividualRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
+**extras** | [**dict(str, JSONRouteResponseExtras)**](JSONRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
**geometry** | **str** | The geometry of the route. For JSON route responses this is an encoded polyline. | [optional]
-**legs** | [**list[JSONIndividualRouteResponseLegs]**](JSONIndividualRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
-**segments** | [**list[JSONIndividualRouteResponseSegments]**](JSONIndividualRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
-**summary** | [**JSONIndividualRouteResponseSummary**](JSONIndividualRouteResponseSummary.md) | | [optional]
-**warnings** | [**list[JSONIndividualRouteResponseWarnings]**](JSONIndividualRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
+**legs** | [**list[JSONRouteResponseLegs]**](JSONRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
+**segments** | [**list[JSONRouteResponseSegments]**](JSONRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
+**summary** | [**JSONRouteResponseSummary**](JSONRouteResponseSummary.md) | | [optional]
+**warnings** | [**list[JSONRouteResponseWarnings]**](JSONRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
**way_points** | **list[int]** | List containing the indices of way points corresponding to the *geometry*. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/JSONSegment.md b/docs/JSONRouteResponseSegments.md
similarity index 83%
rename from docs/JSONSegment.md
rename to docs/JSONRouteResponseSegments.md
index f8ae21ea..091b44c8 100644
--- a/docs/JSONSegment.md
+++ b/docs/JSONRouteResponseSegments.md
@@ -1,4 +1,4 @@
-# JSONSegment
+# JSONRouteResponseSegments
## Properties
Name | Type | Description | Notes
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**distance** | **float** | Contains the distance of the segment in specified units. | [optional]
**duration** | **float** | Contains the duration of the segment in seconds. | [optional]
**percentage** | **float** | Contains the proportion of the route in percent. | [optional]
-**steps** | [**list[JSONIndividualRouteResponseInstructions]**](JSONIndividualRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
+**steps** | [**list[JSONRouteResponseInstructions]**](JSONRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/JSONPtStop.md b/docs/JSONRouteResponseStops.md
similarity index 97%
rename from docs/JSONPtStop.md
rename to docs/JSONRouteResponseStops.md
index cc00ed92..d205e8f0 100644
--- a/docs/JSONPtStop.md
+++ b/docs/JSONRouteResponseStops.md
@@ -1,4 +1,4 @@
-# JSONPtStop
+# JSONRouteResponseStops
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONSummary.md b/docs/JSONRouteResponseSummary.md
similarity index 95%
rename from docs/JSONSummary.md
rename to docs/JSONRouteResponseSummary.md
index ac4b3861..7675c2f2 100644
--- a/docs/JSONSummary.md
+++ b/docs/JSONRouteResponseSummary.md
@@ -1,4 +1,4 @@
-# JSONSummary
+# JSONRouteResponseSummary
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONWarning.md b/docs/JSONRouteResponseWarnings.md
similarity index 93%
rename from docs/JSONWarning.md
rename to docs/JSONRouteResponseWarnings.md
index 6871b8b0..f74260fb 100644
--- a/docs/JSONWarning.md
+++ b/docs/JSONRouteResponseWarnings.md
@@ -1,4 +1,4 @@
-# JSONWarning
+# JSONRouteResponseWarnings
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONStep.md b/docs/JSONStep.md
index 776f1de9..0ec9d45a 100644
--- a/docs/JSONStep.md
+++ b/docs/JSONStep.md
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
**instruction** | **str** | The routing instruction text for the step. | [optional]
-**maneuver** | [**JSONIndividualRouteResponseManeuver**](JSONIndividualRouteResponseManeuver.md) | | [optional]
+**maneuver** | [**JSONRouteResponseManeuver**](JSONRouteResponseManeuver.md) | | [optional]
**name** | **str** | The name of the next street. | [optional]
**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
diff --git a/docs/JsonEdgeExtra.md b/docs/JsonEdgeExtra.md
deleted file mode 100644
index fa635449..00000000
--- a/docs/JsonEdgeExtra.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JsonEdgeExtra
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**edge_id** | **str** | Id of the corresponding edge in the graph | [optional]
-**extra** | **object** | Extra info stored on the edge | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonExportResponse.md b/docs/JsonExportResponse.md
deleted file mode 100644
index e89fd3b1..00000000
--- a/docs/JsonExportResponse.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# JsonExportResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**edges** | [**list[JsonExportResponseEdges]**](JsonExportResponseEdges.md) | | [optional]
-**edges_count** | **int** | | [optional]
-**edges_extra** | [**list[JsonExportResponseEdgesExtra]**](JsonExportResponseEdgesExtra.md) | | [optional]
-**nodes** | [**list[JsonExportResponseNodes]**](JsonExportResponseNodes.md) | | [optional]
-**nodes_count** | **int** | | [optional]
-**warning** | [**JSONIndividualRouteResponseWarnings**](JSONIndividualRouteResponseWarnings.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonExportResponseEdges.md b/docs/JsonExportResponseEdges.md
deleted file mode 100644
index d76eedaa..00000000
--- a/docs/JsonExportResponseEdges.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JsonExportResponseEdges
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**from_id** | **int** | Id of the start point of the edge | [optional]
-**to_id** | **int** | Id of the end point of the edge | [optional]
-**weight** | **float** | Weight of the corresponding edge in the given bounding box | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonExportResponseEdgesExtra.md b/docs/JsonExportResponseEdgesExtra.md
deleted file mode 100644
index 5a6d6bf1..00000000
--- a/docs/JsonExportResponseEdgesExtra.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JsonExportResponseEdgesExtra
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**edge_id** | **str** | Id of the corresponding edge in the graph | [optional]
-**extra** | **object** | Extra info stored on the edge | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonExportResponseNodes.md b/docs/JsonExportResponseNodes.md
deleted file mode 100644
index 436a2375..00000000
--- a/docs/JsonExportResponseNodes.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JsonExportResponseNodes
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**node_id** | **int** | Id of the corresponding node in the graph | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonNode.md b/docs/JsonNode.md
deleted file mode 100644
index 733122fd..00000000
--- a/docs/JsonNode.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JsonNode
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**node_id** | **int** | Id of the corresponding node in the graph | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixRequest.md b/docs/MatrixRequest.md
deleted file mode 100644
index cad8737a..00000000
--- a/docs/MatrixRequest.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# MatrixRequest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**destinations** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations | [optional]
-**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
-**locations** | **list[list[float]]** | List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) |
-**metrics** | **list[str]** | Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. | [optional]
-**resolve_locations** | **bool** | Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. | [optional] [default to False]
-**sources** | **list[str]** | A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations | [optional]
-**units** | **str** | Specifies the distance unit. Default: m. | [optional] [default to 'm']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponseInfo.md b/docs/MatrixResponseInfo.md
deleted file mode 100644
index 17174ca6..00000000
--- a/docs/MatrixResponseInfo.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# MatrixResponseInfo
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**MatrixProfileBody**](MatrixProfileBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponseMetadata.md b/docs/MatrixResponseMetadata.md
index eac5caab..d3e92503 100644
--- a/docs/MatrixResponseMetadata.md
+++ b/docs/MatrixResponseMetadata.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
**id** | **str** | ID of the request (as passed in by the query) | [optional]
**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
**query** | [**MatrixProfileBody**](MatrixProfileBody.md) | | [optional]
diff --git a/docs/SnappingRequest.md b/docs/SnappingRequest.md
deleted file mode 100644
index 1c6a92d9..00000000
--- a/docs/SnappingRequest.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# SnappingRequest
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **str** | Arbitrary identification string of the request reflected in the meta information. | [optional]
-**locations** | **list[list[float]]** | The locations to be snapped as array of `longitude/latitude` pairs. |
-**radius** | **float** | Maximum radius in meters around given coordinates to search for graph edges. |
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/SnappingResponse.md b/docs/SnappingResponse.md
index a8333ce9..4499848c 100644
--- a/docs/SnappingResponse.md
+++ b/docs/SnappingResponse.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
-**metadata** | [**GeoJSONSnappingResponseMetadata**](GeoJSONSnappingResponseMetadata.md) | | [optional]
+**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
diff --git a/docs/SnappingResponseInfo.md b/docs/SnappingResponseMetadata.md
similarity index 84%
rename from docs/SnappingResponseInfo.md
rename to docs/SnappingResponseMetadata.md
index 12699deb..73c0555a 100644
--- a/docs/SnappingResponseInfo.md
+++ b/docs/SnappingResponseMetadata.md
@@ -1,10 +1,10 @@
-# SnappingResponseInfo
+# SnappingResponseMetadata
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**GeoJSONIsochronesResponseMetadataEngine**](GeoJSONIsochronesResponseMetadataEngine.md) | | [optional]
+**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
**query** | [**ProfileJsonBody**](ProfileJsonBody.md) | | [optional]
**service** | **str** | The service that was requested | [optional]
diff --git a/docs/V2directionsprofilegeojsonScheduleDuration.md b/docs/V2directionsprofilegeojsonScheduleDuration.md
deleted file mode 100644
index 86b08589..00000000
--- a/docs/V2directionsprofilegeojsonScheduleDuration.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# V2directionsprofilegeojsonScheduleDuration
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nano** | **int** | | [optional]
-**negative** | **bool** | | [optional]
-**seconds** | **int** | | [optional]
-**units** | [**list[V2directionsprofilegeojsonScheduleDurationUnits]**](V2directionsprofilegeojsonScheduleDurationUnits.md) | | [optional]
-**zero** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/V2directionsprofilegeojsonScheduleDurationDuration.md b/docs/V2directionsprofilegeojsonScheduleDurationDuration.md
deleted file mode 100644
index bec91c4c..00000000
--- a/docs/V2directionsprofilegeojsonScheduleDurationDuration.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# V2directionsprofilegeojsonScheduleDurationDuration
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nano** | **int** | | [optional]
-**negative** | **bool** | | [optional]
-**seconds** | **int** | | [optional]
-**zero** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/V2directionsprofilegeojsonScheduleDurationUnits.md b/docs/V2directionsprofilegeojsonScheduleDurationUnits.md
deleted file mode 100644
index 4adc80ba..00000000
--- a/docs/V2directionsprofilegeojsonScheduleDurationUnits.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# V2directionsprofilegeojsonScheduleDurationUnits
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**date_based** | **bool** | | [optional]
-**duration** | [**V2directionsprofilegeojsonScheduleDurationDuration**](V2directionsprofilegeojsonScheduleDurationDuration.md) | | [optional]
-**duration_estimated** | **bool** | | [optional]
-**time_based** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/V2directionsprofilegeojsonWalkingTime.md b/docs/V2directionsprofilegeojsonWalkingTime.md
deleted file mode 100644
index 19074826..00000000
--- a/docs/V2directionsprofilegeojsonWalkingTime.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# V2directionsprofilegeojsonWalkingTime
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nano** | **int** | | [optional]
-**negative** | **bool** | | [optional]
-**seconds** | **int** | | [optional]
-**units** | [**list[V2directionsprofilegeojsonScheduleDurationUnits]**](V2directionsprofilegeojsonScheduleDurationUnits.md) | | [optional]
-**zero** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index c6e1729a..19fd174b 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -32,31 +32,13 @@
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
-from openrouteservice.models.engine_info import EngineInfo
-from openrouteservice.models.geo_json_feature import GeoJSONFeature
-from openrouteservice.models.geo_json_feature_geometry import GeoJSONFeatureGeometry
-from openrouteservice.models.geo_json_feature_properties import GeoJSONFeatureProperties
from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
-from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
-from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry
-from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse
-from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
-from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
-from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
-from openrouteservice.models.geo_json_point_geometry import GeoJSONPointGeometry
from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
-from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
-from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
-from openrouteservice.models.geo_json_snapping_response import GeoJSONSnappingResponse
-from openrouteservice.models.geo_json_snapping_response_features import GeoJSONSnappingResponseFeatures
-from openrouteservice.models.geo_json_snapping_response_metadata import GeoJSONSnappingResponseMetadata
from openrouteservice.models.geocode_response import GeocodeResponse
-from openrouteservice.models.gpx import Gpx
-from openrouteservice.models.graph_export_service import GraphExportService
from openrouteservice.models.inline_response200 import InlineResponse200
from openrouteservice.models.inline_response2001 import InlineResponse2001
from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
@@ -67,53 +49,37 @@
from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
from openrouteservice.models.inline_response2003 import InlineResponse2003
+from openrouteservice.models.inline_response2003_metadata import InlineResponse2003Metadata
from openrouteservice.models.inline_response2004 import InlineResponse2004
+from openrouteservice.models.inline_response2004_extras import InlineResponse2004Extras
+from openrouteservice.models.inline_response2004_instructions import InlineResponse2004Instructions
+from openrouteservice.models.inline_response2004_legs import InlineResponse2004Legs
+from openrouteservice.models.inline_response2004_maneuver import InlineResponse2004Maneuver
+from openrouteservice.models.inline_response2004_routes import InlineResponse2004Routes
+from openrouteservice.models.inline_response2004_segments import InlineResponse2004Segments
+from openrouteservice.models.inline_response2004_stops import InlineResponse2004Stops
+from openrouteservice.models.inline_response2004_summary import InlineResponse2004Summary
+from openrouteservice.models.inline_response2004_summary1 import InlineResponse2004Summary1
+from openrouteservice.models.inline_response2004_warnings import InlineResponse2004Warnings
from openrouteservice.models.inline_response2005 import InlineResponse2005
+from openrouteservice.models.inline_response2005_features import InlineResponse2005Features
+from openrouteservice.models.inline_response2005_geometry import InlineResponse2005Geometry
+from openrouteservice.models.inline_response2005_metadata import InlineResponse2005Metadata
+from openrouteservice.models.inline_response2005_metadata_engine import InlineResponse2005MetadataEngine
from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response2006_destinations import InlineResponse2006Destinations
+from openrouteservice.models.inline_response2006_metadata import InlineResponse2006Metadata
+from openrouteservice.models.inline_response2006_sources import InlineResponse2006Sources
from openrouteservice.models.inline_response2007 import InlineResponse2007
+from openrouteservice.models.inline_response2007_locations import InlineResponse2007Locations
+from openrouteservice.models.inline_response2007_metadata import InlineResponse2007Metadata
from openrouteservice.models.inline_response2008 import InlineResponse2008
+from openrouteservice.models.inline_response2008_features import InlineResponse2008Features
+from openrouteservice.models.inline_response2008_geometry import InlineResponse2008Geometry
+from openrouteservice.models.inline_response2008_properties import InlineResponse2008Properties
from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
-from openrouteservice.models.isochrones_request import IsochronesRequest
-from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo
-from openrouteservice.models.json2_d_destinations import JSON2DDestinations
-from openrouteservice.models.json2_d_sources import JSON2DSources
-from openrouteservice.models.json_extra import JSONExtra
-from openrouteservice.models.json_extra_summary import JSONExtraSummary
-from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse
-from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras
-from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions
-from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs
-from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver
-from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments
-from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops
-from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
-from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
-from openrouteservice.models.json_leg import JSONLeg
-from openrouteservice.models.json_location import JSONLocation
-from openrouteservice.models.json_object import JSONObject
-from openrouteservice.models.jsonpt_stop import JSONPtStop
-from openrouteservice.models.json_route_response import JSONRouteResponse
-from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes
-from openrouteservice.models.json_segment import JSONSegment
-from openrouteservice.models.json_step import JSONStep
-from openrouteservice.models.json_step_maneuver import JSONStepManeuver
-from openrouteservice.models.json_summary import JSONSummary
-from openrouteservice.models.json_warning import JSONWarning
-from openrouteservice.models.json_edge import JsonEdge
-from openrouteservice.models.json_edge_extra import JsonEdgeExtra
-from openrouteservice.models.json_export_response import JsonExportResponse
-from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges
-from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra
-from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes
-from openrouteservice.models.json_node import JsonNode
from openrouteservice.models.matrix_profile_body import MatrixProfileBody
-from openrouteservice.models.matrix_request import MatrixRequest
-from openrouteservice.models.matrix_response import MatrixResponse
-from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations
-from openrouteservice.models.matrix_response_info import MatrixResponseInfo
-from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata
-from openrouteservice.models.matrix_response_sources import MatrixResponseSources
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
@@ -132,15 +98,8 @@
from openrouteservice.models.profile_parameters import ProfileParameters
from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
from openrouteservice.models.profile_weightings import ProfileWeightings
-from openrouteservice.models.restrictions import Restrictions
from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions
from openrouteservice.models.route_options import RouteOptions
from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
-from openrouteservice.models.route_response_info import RouteResponseInfo
-from openrouteservice.models.rte import Rte
from openrouteservice.models.snap_profile_body import SnapProfileBody
-from openrouteservice.models.snapping_request import SnappingRequest
-from openrouteservice.models.snapping_response import SnappingResponse
-from openrouteservice.models.snapping_response_info import SnappingResponseInfo
-from openrouteservice.models.snapping_response_locations import SnappingResponseLocations
from openrouteservice.utility import *
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index f678dd09..884132fd 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -19,31 +19,13 @@
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
-from openrouteservice.models.engine_info import EngineInfo
-from openrouteservice.models.geo_json_feature import GeoJSONFeature
-from openrouteservice.models.geo_json_feature_geometry import GeoJSONFeatureGeometry
-from openrouteservice.models.geo_json_feature_properties import GeoJSONFeatureProperties
from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
-from openrouteservice.models.geo_json_isochrone_base import GeoJSONIsochroneBase
-from openrouteservice.models.geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry
-from openrouteservice.models.geo_json_isochrones_response import GeoJSONIsochronesResponse
-from openrouteservice.models.geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
-from openrouteservice.models.geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
-from openrouteservice.models.geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
-from openrouteservice.models.geo_json_point_geometry import GeoJSONPointGeometry
from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
-from openrouteservice.models.geo_json_route_response import GeoJSONRouteResponse
-from openrouteservice.models.geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
-from openrouteservice.models.geo_json_snapping_response import GeoJSONSnappingResponse
-from openrouteservice.models.geo_json_snapping_response_features import GeoJSONSnappingResponseFeatures
-from openrouteservice.models.geo_json_snapping_response_metadata import GeoJSONSnappingResponseMetadata
from openrouteservice.models.geocode_response import GeocodeResponse
-from openrouteservice.models.gpx import Gpx
-from openrouteservice.models.graph_export_service import GraphExportService
from openrouteservice.models.inline_response200 import InlineResponse200
from openrouteservice.models.inline_response2001 import InlineResponse2001
from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
@@ -54,53 +36,37 @@
from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
from openrouteservice.models.inline_response2003 import InlineResponse2003
+from openrouteservice.models.inline_response2003_metadata import InlineResponse2003Metadata
from openrouteservice.models.inline_response2004 import InlineResponse2004
+from openrouteservice.models.inline_response2004_extras import InlineResponse2004Extras
+from openrouteservice.models.inline_response2004_instructions import InlineResponse2004Instructions
+from openrouteservice.models.inline_response2004_legs import InlineResponse2004Legs
+from openrouteservice.models.inline_response2004_maneuver import InlineResponse2004Maneuver
+from openrouteservice.models.inline_response2004_routes import InlineResponse2004Routes
+from openrouteservice.models.inline_response2004_segments import InlineResponse2004Segments
+from openrouteservice.models.inline_response2004_stops import InlineResponse2004Stops
+from openrouteservice.models.inline_response2004_summary import InlineResponse2004Summary
+from openrouteservice.models.inline_response2004_summary1 import InlineResponse2004Summary1
+from openrouteservice.models.inline_response2004_warnings import InlineResponse2004Warnings
from openrouteservice.models.inline_response2005 import InlineResponse2005
+from openrouteservice.models.inline_response2005_features import InlineResponse2005Features
+from openrouteservice.models.inline_response2005_geometry import InlineResponse2005Geometry
+from openrouteservice.models.inline_response2005_metadata import InlineResponse2005Metadata
+from openrouteservice.models.inline_response2005_metadata_engine import InlineResponse2005MetadataEngine
from openrouteservice.models.inline_response2006 import InlineResponse2006
+from openrouteservice.models.inline_response2006_destinations import InlineResponse2006Destinations
+from openrouteservice.models.inline_response2006_metadata import InlineResponse2006Metadata
+from openrouteservice.models.inline_response2006_sources import InlineResponse2006Sources
from openrouteservice.models.inline_response2007 import InlineResponse2007
+from openrouteservice.models.inline_response2007_locations import InlineResponse2007Locations
+from openrouteservice.models.inline_response2007_metadata import InlineResponse2007Metadata
from openrouteservice.models.inline_response2008 import InlineResponse2008
+from openrouteservice.models.inline_response2008_features import InlineResponse2008Features
+from openrouteservice.models.inline_response2008_geometry import InlineResponse2008Geometry
+from openrouteservice.models.inline_response2008_properties import InlineResponse2008Properties
from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
-from openrouteservice.models.isochrones_request import IsochronesRequest
-from openrouteservice.models.isochrones_response_info import IsochronesResponseInfo
-from openrouteservice.models.json2_d_destinations import JSON2DDestinations
-from openrouteservice.models.json2_d_sources import JSON2DSources
-from openrouteservice.models.json_extra import JSONExtra
-from openrouteservice.models.json_extra_summary import JSONExtraSummary
-from openrouteservice.models.json_individual_route_response import JSONIndividualRouteResponse
-from openrouteservice.models.json_individual_route_response_extras import JSONIndividualRouteResponseExtras
-from openrouteservice.models.json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions
-from openrouteservice.models.json_individual_route_response_legs import JSONIndividualRouteResponseLegs
-from openrouteservice.models.json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver
-from openrouteservice.models.json_individual_route_response_segments import JSONIndividualRouteResponseSegments
-from openrouteservice.models.json_individual_route_response_stops import JSONIndividualRouteResponseStops
-from openrouteservice.models.json_individual_route_response_summary import JSONIndividualRouteResponseSummary
-from openrouteservice.models.json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
-from openrouteservice.models.json_leg import JSONLeg
-from openrouteservice.models.json_location import JSONLocation
-from openrouteservice.models.json_object import JSONObject
-from openrouteservice.models.jsonpt_stop import JSONPtStop
-from openrouteservice.models.json_route_response import JSONRouteResponse
-from openrouteservice.models.json_route_response_routes import JSONRouteResponseRoutes
-from openrouteservice.models.json_segment import JSONSegment
-from openrouteservice.models.json_step import JSONStep
-from openrouteservice.models.json_step_maneuver import JSONStepManeuver
-from openrouteservice.models.json_summary import JSONSummary
-from openrouteservice.models.json_warning import JSONWarning
-from openrouteservice.models.json_edge import JsonEdge
-from openrouteservice.models.json_edge_extra import JsonEdgeExtra
-from openrouteservice.models.json_export_response import JsonExportResponse
-from openrouteservice.models.json_export_response_edges import JsonExportResponseEdges
-from openrouteservice.models.json_export_response_edges_extra import JsonExportResponseEdgesExtra
-from openrouteservice.models.json_export_response_nodes import JsonExportResponseNodes
-from openrouteservice.models.json_node import JsonNode
from openrouteservice.models.matrix_profile_body import MatrixProfileBody
-from openrouteservice.models.matrix_request import MatrixRequest
-from openrouteservice.models.matrix_response import MatrixResponse
-from openrouteservice.models.matrix_response_destinations import MatrixResponseDestinations
-from openrouteservice.models.matrix_response_info import MatrixResponseInfo
-from openrouteservice.models.matrix_response_metadata import MatrixResponseMetadata
-from openrouteservice.models.matrix_response_sources import MatrixResponseSources
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
@@ -119,14 +85,7 @@
from openrouteservice.models.profile_parameters import ProfileParameters
from openrouteservice.models.profile_parameters_restrictions import ProfileParametersRestrictions
from openrouteservice.models.profile_weightings import ProfileWeightings
-from openrouteservice.models.restrictions import Restrictions
from openrouteservice.models.round_trip_route_options import RoundTripRouteOptions
from openrouteservice.models.route_options import RouteOptions
from openrouteservice.models.route_options_avoid_polygons import RouteOptionsAvoidPolygons
-from openrouteservice.models.route_response_info import RouteResponseInfo
-from openrouteservice.models.rte import Rte
from openrouteservice.models.snap_profile_body import SnapProfileBody
-from openrouteservice.models.snapping_request import SnappingRequest
-from openrouteservice.models.snapping_response import SnappingResponse
-from openrouteservice.models.snapping_response_info import SnappingResponseInfo
-from openrouteservice.models.snapping_response_locations import SnappingResponseLocations
diff --git a/openrouteservice/models/geo_json_feature_geometry.py b/openrouteservice/models/geo_json_feature_geometry.py
deleted file mode 100644
index 45009fb4..00000000
--- a/openrouteservice/models/geo_json_feature_geometry.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONFeatureGeometry(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'coordinates': 'list[float]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'coordinates': 'coordinates',
- 'type': 'type'
- }
-
- def __init__(self, coordinates=None, type='Point'): # noqa: E501
- """GeoJSONFeatureGeometry - a model defined in Swagger""" # noqa: E501
- self._coordinates = None
- self._type = None
- self.discriminator = None
- if coordinates is not None:
- self.coordinates = coordinates
- if type is not None:
- self.type = type
-
- @property
- def coordinates(self):
- """Gets the coordinates of this GeoJSONFeatureGeometry. # noqa: E501
-
- Lon/Lat coordinates of the snapped location # noqa: E501
-
- :return: The coordinates of this GeoJSONFeatureGeometry. # noqa: E501
- :rtype: list[float]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this GeoJSONFeatureGeometry.
-
- Lon/Lat coordinates of the snapped location # noqa: E501
-
- :param coordinates: The coordinates of this GeoJSONFeatureGeometry. # noqa: E501
- :type: list[float]
- """
-
- self._coordinates = coordinates
-
- @property
- def type(self):
- """Gets the type of this GeoJSONFeatureGeometry. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this GeoJSONFeatureGeometry. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONFeatureGeometry.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this GeoJSONFeatureGeometry. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONFeatureGeometry, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONFeatureGeometry):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response.py b/openrouteservice/models/geo_json_isochrones_response.py
deleted file mode 100644
index 9ed9c6eb..00000000
--- a/openrouteservice/models/geo_json_isochrones_response.py
+++ /dev/null
@@ -1,190 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONIsochronesResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[GeoJSONIsochronesResponseFeatures]',
- 'metadata': 'GeoJSONIsochronesResponseMetadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
- """GeoJSONIsochronesResponse - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this GeoJSONIsochronesResponse. # noqa: E501
-
- Bounding box that covers all returned isochrones # noqa: E501
-
- :return: The bbox of this GeoJSONIsochronesResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this GeoJSONIsochronesResponse.
-
- Bounding box that covers all returned isochrones # noqa: E501
-
- :param bbox: The bbox of this GeoJSONIsochronesResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this GeoJSONIsochronesResponse. # noqa: E501
-
-
- :return: The features of this GeoJSONIsochronesResponse. # noqa: E501
- :rtype: list[GeoJSONIsochronesResponseFeatures]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this GeoJSONIsochronesResponse.
-
-
- :param features: The features of this GeoJSONIsochronesResponse. # noqa: E501
- :type: list[GeoJSONIsochronesResponseFeatures]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this GeoJSONIsochronesResponse. # noqa: E501
-
-
- :return: The metadata of this GeoJSONIsochronesResponse. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this GeoJSONIsochronesResponse.
-
-
- :param metadata: The metadata of this GeoJSONIsochronesResponse. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this GeoJSONIsochronesResponse. # noqa: E501
-
-
- :return: The type of this GeoJSONIsochronesResponse. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONIsochronesResponse.
-
-
- :param type: The type of this GeoJSONIsochronesResponse. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONIsochronesResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochronesResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_features.py b/openrouteservice/models/geo_json_isochrones_response_features.py
deleted file mode 100644
index e0acd011..00000000
--- a/openrouteservice/models/geo_json_isochrones_response_features.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONIsochronesResponseFeatures(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'geometry': 'GeoJSONIsochroneBaseGeometry',
- 'type': 'str'
- }
-
- attribute_map = {
- 'geometry': 'geometry',
- 'type': 'type'
- }
-
- def __init__(self, geometry=None, type=None): # noqa: E501
- """GeoJSONIsochronesResponseFeatures - a model defined in Swagger""" # noqa: E501
- self._geometry = None
- self._type = None
- self.discriminator = None
- if geometry is not None:
- self.geometry = geometry
- if type is not None:
- self.type = type
-
- @property
- def geometry(self):
- """Gets the geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
-
-
- :return: The geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
- :rtype: GeoJSONIsochroneBaseGeometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this GeoJSONIsochronesResponseFeatures.
-
-
- :param geometry: The geometry of this GeoJSONIsochronesResponseFeatures. # noqa: E501
- :type: GeoJSONIsochroneBaseGeometry
- """
-
- self._geometry = geometry
-
- @property
- def type(self):
- """Gets the type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
-
-
- :return: The type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONIsochronesResponseFeatures.
-
-
- :param type: The type of this GeoJSONIsochronesResponseFeatures. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONIsochronesResponseFeatures, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochronesResponseFeatures):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata.py b/openrouteservice/models/geo_json_isochrones_response_metadata.py
deleted file mode 100644
index 69ec6644..00000000
--- a/openrouteservice/models/geo_json_isochrones_response_metadata.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONIsochronesResponseMetadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'IsochronesProfileBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """GeoJSONIsochronesResponseMetadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this GeoJSONIsochronesResponseMetadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
-
- :return: The engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this GeoJSONIsochronesResponseMetadata.
-
-
- :param engine: The engine of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this GeoJSONIsochronesResponseMetadata.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
-
- :return: The query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: IsochronesProfileBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this GeoJSONIsochronesResponseMetadata.
-
-
- :param query: The query of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: IsochronesProfileBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this GeoJSONIsochronesResponseMetadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this GeoJSONIsochronesResponseMetadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this GeoJSONIsochronesResponseMetadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this GeoJSONIsochronesResponseMetadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONIsochronesResponseMetadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochronesResponseMetadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py b/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
deleted file mode 100644
index a672418f..00000000
--- a/openrouteservice/models/geo_json_isochrones_response_metadata_engine.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONIsochronesResponseMetadataEngine(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'build_date': 'str',
- 'graph_date': 'str',
- 'version': 'str'
- }
-
- attribute_map = {
- 'build_date': 'build_date',
- 'graph_date': 'graph_date',
- 'version': 'version'
- }
-
- def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E501
- """GeoJSONIsochronesResponseMetadataEngine - a model defined in Swagger""" # noqa: E501
- self._build_date = None
- self._graph_date = None
- self._version = None
- self.discriminator = None
- if build_date is not None:
- self.build_date = build_date
- if graph_date is not None:
- self.graph_date = graph_date
- if version is not None:
- self.version = version
-
- @property
- def build_date(self):
- """Gets the build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
-
- The date that the service was last updated # noqa: E501
-
- :return: The build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._build_date
-
- @build_date.setter
- def build_date(self, build_date):
- """Sets the build_date of this GeoJSONIsochronesResponseMetadataEngine.
-
- The date that the service was last updated # noqa: E501
-
- :param build_date: The build_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :type: str
- """
-
- self._build_date = build_date
-
- @property
- def graph_date(self):
- """Gets the graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
-
- The date that the graph data was last updated # noqa: E501
-
- :return: The graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._graph_date
-
- @graph_date.setter
- def graph_date(self, graph_date):
- """Sets the graph_date of this GeoJSONIsochronesResponseMetadataEngine.
-
- The date that the graph data was last updated # noqa: E501
-
- :param graph_date: The graph_date of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :type: str
- """
-
- self._graph_date = graph_date
-
- @property
- def version(self):
- """Gets the version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
-
- The backend version of the openrouteservice that was queried # noqa: E501
-
- :return: The version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._version
-
- @version.setter
- def version(self, version):
- """Sets the version of this GeoJSONIsochronesResponseMetadataEngine.
-
- The backend version of the openrouteservice that was queried # noqa: E501
-
- :param version: The version of this GeoJSONIsochronesResponseMetadataEngine. # noqa: E501
- :type: str
- """
-
- self._version = version
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONIsochronesResponseMetadataEngine, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochronesResponseMetadataEngine):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_route_response.py b/openrouteservice/models/geo_json_route_response.py
deleted file mode 100644
index 941325ab..00000000
--- a/openrouteservice/models/geo_json_route_response.py
+++ /dev/null
@@ -1,190 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONRouteResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[object]',
- 'metadata': 'GeoJSONRouteResponseMetadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
- """GeoJSONRouteResponse - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this GeoJSONRouteResponse. # noqa: E501
-
- Bounding box that covers all returned routes # noqa: E501
-
- :return: The bbox of this GeoJSONRouteResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this GeoJSONRouteResponse.
-
- Bounding box that covers all returned routes # noqa: E501
-
- :param bbox: The bbox of this GeoJSONRouteResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this GeoJSONRouteResponse. # noqa: E501
-
-
- :return: The features of this GeoJSONRouteResponse. # noqa: E501
- :rtype: list[object]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this GeoJSONRouteResponse.
-
-
- :param features: The features of this GeoJSONRouteResponse. # noqa: E501
- :type: list[object]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this GeoJSONRouteResponse. # noqa: E501
-
-
- :return: The metadata of this GeoJSONRouteResponse. # noqa: E501
- :rtype: GeoJSONRouteResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this GeoJSONRouteResponse.
-
-
- :param metadata: The metadata of this GeoJSONRouteResponse. # noqa: E501
- :type: GeoJSONRouteResponseMetadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this GeoJSONRouteResponse. # noqa: E501
-
-
- :return: The type of this GeoJSONRouteResponse. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONRouteResponse.
-
-
- :param type: The type of this GeoJSONRouteResponse. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONRouteResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONRouteResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_snapping_response.py b/openrouteservice/models/geo_json_snapping_response.py
deleted file mode 100644
index babeca31..00000000
--- a/openrouteservice/models/geo_json_snapping_response.py
+++ /dev/null
@@ -1,194 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONSnappingResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[GeoJSONSnappingResponseFeatures]',
- 'metadata': 'GeoJSONSnappingResponseMetadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type='FeatureCollection'): # noqa: E501
- """GeoJSONSnappingResponse - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this GeoJSONSnappingResponse. # noqa: E501
-
- Bounding box that covers all returned snapping points # noqa: E501
-
- :return: The bbox of this GeoJSONSnappingResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this GeoJSONSnappingResponse.
-
- Bounding box that covers all returned snapping points # noqa: E501
-
- :param bbox: The bbox of this GeoJSONSnappingResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this GeoJSONSnappingResponse. # noqa: E501
-
- Information about the service and request # noqa: E501
-
- :return: The features of this GeoJSONSnappingResponse. # noqa: E501
- :rtype: list[GeoJSONSnappingResponseFeatures]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this GeoJSONSnappingResponse.
-
- Information about the service and request # noqa: E501
-
- :param features: The features of this GeoJSONSnappingResponse. # noqa: E501
- :type: list[GeoJSONSnappingResponseFeatures]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this GeoJSONSnappingResponse. # noqa: E501
-
-
- :return: The metadata of this GeoJSONSnappingResponse. # noqa: E501
- :rtype: GeoJSONSnappingResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this GeoJSONSnappingResponse.
-
-
- :param metadata: The metadata of this GeoJSONSnappingResponse. # noqa: E501
- :type: GeoJSONSnappingResponseMetadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this GeoJSONSnappingResponse. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this GeoJSONSnappingResponse. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONSnappingResponse.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this GeoJSONSnappingResponse. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONSnappingResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONSnappingResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_snapping_response_features.py b/openrouteservice/models/geo_json_snapping_response_features.py
deleted file mode 100644
index 9365b332..00000000
--- a/openrouteservice/models/geo_json_snapping_response_features.py
+++ /dev/null
@@ -1,164 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONSnappingResponseFeatures(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'geometry': 'GeoJSONFeatureGeometry',
- 'properties': 'GeoJSONFeatureProperties',
- 'type': 'str'
- }
-
- attribute_map = {
- 'geometry': 'geometry',
- 'properties': 'properties',
- 'type': 'type'
- }
-
- def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E501
- """GeoJSONSnappingResponseFeatures - a model defined in Swagger""" # noqa: E501
- self._geometry = None
- self._properties = None
- self._type = None
- self.discriminator = None
- if geometry is not None:
- self.geometry = geometry
- if properties is not None:
- self.properties = properties
- if type is not None:
- self.type = type
-
- @property
- def geometry(self):
- """Gets the geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
-
-
- :return: The geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :rtype: GeoJSONFeatureGeometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this GeoJSONSnappingResponseFeatures.
-
-
- :param geometry: The geometry of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :type: GeoJSONFeatureGeometry
- """
-
- self._geometry = geometry
-
- @property
- def properties(self):
- """Gets the properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
-
-
- :return: The properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :rtype: GeoJSONFeatureProperties
- """
- return self._properties
-
- @properties.setter
- def properties(self, properties):
- """Sets the properties of this GeoJSONSnappingResponseFeatures.
-
-
- :param properties: The properties of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :type: GeoJSONFeatureProperties
- """
-
- self._properties = properties
-
- @property
- def type(self):
- """Gets the type of this GeoJSONSnappingResponseFeatures. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONSnappingResponseFeatures.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this GeoJSONSnappingResponseFeatures. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONSnappingResponseFeatures, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONSnappingResponseFeatures):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_snapping_response_metadata.py b/openrouteservice/models/geo_json_snapping_response_metadata.py
deleted file mode 100644
index 95fc49d8..00000000
--- a/openrouteservice/models/geo_json_snapping_response_metadata.py
+++ /dev/null
@@ -1,276 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONSnappingResponseMetadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
- 'osm_file_md5_hash': 'str',
- 'query': 'ProfileJsonBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """GeoJSONSnappingResponseMetadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this GeoJSONSnappingResponseMetadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
-
- :return: The engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this GeoJSONSnappingResponseMetadata.
-
-
- :param engine: The engine of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
- """
-
- self._engine = engine
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this GeoJSONSnappingResponseMetadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
-
- :return: The query of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: ProfileJsonBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this GeoJSONSnappingResponseMetadata.
-
-
- :param query: The query of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: ProfileJsonBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this GeoJSONSnappingResponseMetadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this GeoJSONSnappingResponseMetadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this GeoJSONSnappingResponseMetadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this GeoJSONSnappingResponseMetadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONSnappingResponseMetadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONSnappingResponseMetadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/gpx.py b/openrouteservice/models/gpx.py
deleted file mode 100644
index 8e1083a6..00000000
--- a/openrouteservice/models/gpx.py
+++ /dev/null
@@ -1,110 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class Gpx(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'gpx_route_elements': 'list[object]'
- }
-
- attribute_map = {
- 'gpx_route_elements': 'gpxRouteElements'
- }
-
- def __init__(self, gpx_route_elements=None): # noqa: E501
- """Gpx - a model defined in Swagger""" # noqa: E501
- self._gpx_route_elements = None
- self.discriminator = None
- if gpx_route_elements is not None:
- self.gpx_route_elements = gpx_route_elements
-
- @property
- def gpx_route_elements(self):
- """Gets the gpx_route_elements of this Gpx. # noqa: E501
-
-
- :return: The gpx_route_elements of this Gpx. # noqa: E501
- :rtype: list[object]
- """
- return self._gpx_route_elements
-
- @gpx_route_elements.setter
- def gpx_route_elements(self, gpx_route_elements):
- """Sets the gpx_route_elements of this Gpx.
-
-
- :param gpx_route_elements: The gpx_route_elements of this Gpx. # noqa: E501
- :type: list[object]
- """
-
- self._gpx_route_elements = gpx_route_elements
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(Gpx, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Gpx):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/graph_export_service.py b/openrouteservice/models/graph_export_service.py
deleted file mode 100644
index fdd5915e..00000000
--- a/openrouteservice/models/graph_export_service.py
+++ /dev/null
@@ -1,141 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GraphExportService(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[list[float]]',
- 'id': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'id': 'id'
- }
-
- def __init__(self, bbox=None, id=None): # noqa: E501
- """GraphExportService - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._id = None
- self.discriminator = None
- self.bbox = bbox
- if id is not None:
- self.id = id
-
- @property
- def bbox(self):
- """Gets the bbox of this GraphExportService. # noqa: E501
-
- The bounding box to use for the request as an array of `longitude/latitude` pairs # noqa: E501
-
- :return: The bbox of this GraphExportService. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this GraphExportService.
-
- The bounding box to use for the request as an array of `longitude/latitude` pairs # noqa: E501
-
- :param bbox: The bbox of this GraphExportService. # noqa: E501
- :type: list[list[float]]
- """
- if bbox is None:
- raise ValueError("Invalid value for `bbox`, must not be `None`") # noqa: E501
-
- self._bbox = bbox
-
- @property
- def id(self):
- """Gets the id of this GraphExportService. # noqa: E501
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :return: The id of this GraphExportService. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this GraphExportService.
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :param id: The id of this GraphExportService. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GraphExportService, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GraphExportService):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2003.py b/openrouteservice/models/inline_response2003.py
index 4a62703b..fdc3c2f5 100644
--- a/openrouteservice/models/inline_response2003.py
+++ b/openrouteservice/models/inline_response2003.py
@@ -30,7 +30,7 @@ class InlineResponse2003(object):
swagger_types = {
'bbox': 'list[float]',
'features': 'list[object]',
- 'metadata': 'GeoJSONRouteResponseMetadata',
+ 'metadata': 'InlineResponse2003Metadata',
'type': 'str'
}
@@ -107,7 +107,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2003. # noqa: E501
- :rtype: GeoJSONRouteResponseMetadata
+ :rtype: InlineResponse2003Metadata
"""
return self._metadata
@@ -117,7 +117,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2003. # noqa: E501
- :type: GeoJSONRouteResponseMetadata
+ :type: InlineResponse2003Metadata
"""
self._metadata = metadata
diff --git a/openrouteservice/models/geo_json_route_response_metadata.py b/openrouteservice/models/inline_response2003_metadata.py
similarity index 71%
rename from openrouteservice/models/geo_json_route_response_metadata.py
rename to openrouteservice/models/inline_response2003_metadata.py
index 4059c54d..9d19a48a 100644
--- a/openrouteservice/models/geo_json_route_response_metadata.py
+++ b/openrouteservice/models/inline_response2003_metadata.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONRouteResponseMetadata(object):
+class InlineResponse2003Metadata(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -29,7 +29,7 @@ class GeoJSONRouteResponseMetadata(object):
"""
swagger_types = {
'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'engine': 'InlineResponse2005MetadataEngine',
'id': 'str',
'osm_file_md5_hash': 'str',
'query': 'DirectionsService1',
@@ -50,7 +50,7 @@ class GeoJSONRouteResponseMetadata(object):
}
def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """GeoJSONRouteResponseMetadata - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2003Metadata - a model defined in Swagger""" # noqa: E501
self._attribution = None
self._engine = None
self._id = None
@@ -79,22 +79,22 @@ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=Non
@property
def attribution(self):
- """Gets the attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the attribution of this InlineResponse2003Metadata. # noqa: E501
Copyright and attribution information # noqa: E501
- :return: The attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The attribution of this InlineResponse2003Metadata. # noqa: E501
:rtype: str
"""
return self._attribution
@attribution.setter
def attribution(self, attribution):
- """Sets the attribution of this GeoJSONRouteResponseMetadata.
+ """Sets the attribution of this InlineResponse2003Metadata.
Copyright and attribution information # noqa: E501
- :param attribution: The attribution of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param attribution: The attribution of this InlineResponse2003Metadata. # noqa: E501
:type: str
"""
@@ -102,43 +102,43 @@ def attribution(self, attribution):
@property
def engine(self):
- """Gets the engine of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the engine of this InlineResponse2003Metadata. # noqa: E501
- :return: The engine of this GeoJSONRouteResponseMetadata. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
+ :return: The engine of this InlineResponse2003Metadata. # noqa: E501
+ :rtype: InlineResponse2005MetadataEngine
"""
return self._engine
@engine.setter
def engine(self, engine):
- """Sets the engine of this GeoJSONRouteResponseMetadata.
+ """Sets the engine of this InlineResponse2003Metadata.
- :param engine: The engine of this GeoJSONRouteResponseMetadata. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
+ :param engine: The engine of this InlineResponse2003Metadata. # noqa: E501
+ :type: InlineResponse2005MetadataEngine
"""
self._engine = engine
@property
def id(self):
- """Gets the id of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the id of this InlineResponse2003Metadata. # noqa: E501
ID of the request (as passed in by the query) # noqa: E501
- :return: The id of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The id of this InlineResponse2003Metadata. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
- """Sets the id of this GeoJSONRouteResponseMetadata.
+ """Sets the id of this InlineResponse2003Metadata.
ID of the request (as passed in by the query) # noqa: E501
- :param id: The id of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param id: The id of this InlineResponse2003Metadata. # noqa: E501
:type: str
"""
@@ -146,22 +146,22 @@ def id(self, id):
@property
def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :return: The osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
:rtype: str
"""
return self._osm_file_md5_hash
@osm_file_md5_hash.setter
def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this GeoJSONRouteResponseMetadata.
+ """Sets the osm_file_md5_hash of this InlineResponse2003Metadata.
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :param osm_file_md5_hash: The osm_file_md5_hash of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
:type: str
"""
@@ -169,20 +169,20 @@ def osm_file_md5_hash(self, osm_file_md5_hash):
@property
def query(self):
- """Gets the query of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the query of this InlineResponse2003Metadata. # noqa: E501
- :return: The query of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The query of this InlineResponse2003Metadata. # noqa: E501
:rtype: DirectionsService1
"""
return self._query
@query.setter
def query(self, query):
- """Sets the query of this GeoJSONRouteResponseMetadata.
+ """Sets the query of this InlineResponse2003Metadata.
- :param query: The query of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param query: The query of this InlineResponse2003Metadata. # noqa: E501
:type: DirectionsService1
"""
@@ -190,22 +190,22 @@ def query(self, query):
@property
def service(self):
- """Gets the service of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the service of this InlineResponse2003Metadata. # noqa: E501
The service that was requested # noqa: E501
- :return: The service of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The service of this InlineResponse2003Metadata. # noqa: E501
:rtype: str
"""
return self._service
@service.setter
def service(self, service):
- """Sets the service of this GeoJSONRouteResponseMetadata.
+ """Sets the service of this InlineResponse2003Metadata.
The service that was requested # noqa: E501
- :param service: The service of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param service: The service of this InlineResponse2003Metadata. # noqa: E501
:type: str
"""
@@ -213,22 +213,22 @@ def service(self, service):
@property
def system_message(self):
- """Gets the system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the system_message of this InlineResponse2003Metadata. # noqa: E501
System message # noqa: E501
- :return: The system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The system_message of this InlineResponse2003Metadata. # noqa: E501
:rtype: str
"""
return self._system_message
@system_message.setter
def system_message(self, system_message):
- """Sets the system_message of this GeoJSONRouteResponseMetadata.
+ """Sets the system_message of this InlineResponse2003Metadata.
System message # noqa: E501
- :param system_message: The system_message of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param system_message: The system_message of this InlineResponse2003Metadata. # noqa: E501
:type: str
"""
@@ -236,22 +236,22 @@ def system_message(self, system_message):
@property
def timestamp(self):
- """Gets the timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+ """Gets the timestamp of this InlineResponse2003Metadata. # noqa: E501
Time that the request was made (UNIX Epoch time) # noqa: E501
- :return: The timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :return: The timestamp of this InlineResponse2003Metadata. # noqa: E501
:rtype: int
"""
return self._timestamp
@timestamp.setter
def timestamp(self, timestamp):
- """Sets the timestamp of this GeoJSONRouteResponseMetadata.
+ """Sets the timestamp of this InlineResponse2003Metadata.
Time that the request was made (UNIX Epoch time) # noqa: E501
- :param timestamp: The timestamp of this GeoJSONRouteResponseMetadata. # noqa: E501
+ :param timestamp: The timestamp of this InlineResponse2003Metadata. # noqa: E501
:type: int
"""
@@ -278,7 +278,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONRouteResponseMetadata, dict):
+ if issubclass(InlineResponse2003Metadata, dict):
for key, value in self.items():
result[key] = value
@@ -294,7 +294,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONRouteResponseMetadata):
+ if not isinstance(other, InlineResponse2003Metadata):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/inline_response2004.py b/openrouteservice/models/inline_response2004.py
index b7afce4e..710d8ba3 100644
--- a/openrouteservice/models/inline_response2004.py
+++ b/openrouteservice/models/inline_response2004.py
@@ -29,8 +29,8 @@ class InlineResponse2004(object):
"""
swagger_types = {
'bbox': 'list[float]',
- 'metadata': 'GeoJSONRouteResponseMetadata',
- 'routes': 'list[JSONRouteResponseRoutes]'
+ 'metadata': 'InlineResponse2003Metadata',
+ 'routes': 'list[InlineResponse2004Routes]'
}
attribute_map = {
@@ -81,7 +81,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2004. # noqa: E501
- :rtype: GeoJSONRouteResponseMetadata
+ :rtype: InlineResponse2003Metadata
"""
return self._metadata
@@ -91,7 +91,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2004. # noqa: E501
- :type: GeoJSONRouteResponseMetadata
+ :type: InlineResponse2003Metadata
"""
self._metadata = metadata
@@ -103,7 +103,7 @@ def routes(self):
A list of routes returned from the request # noqa: E501
:return: The routes of this InlineResponse2004. # noqa: E501
- :rtype: list[JSONRouteResponseRoutes]
+ :rtype: list[InlineResponse2004Routes]
"""
return self._routes
@@ -114,7 +114,7 @@ def routes(self, routes):
A list of routes returned from the request # noqa: E501
:param routes: The routes of this InlineResponse2004. # noqa: E501
- :type: list[JSONRouteResponseRoutes]
+ :type: list[InlineResponse2004Routes]
"""
self._routes = routes
diff --git a/openrouteservice/models/json_extra.py b/openrouteservice/models/inline_response2004_extras.py
similarity index 80%
rename from openrouteservice/models/json_extra.py
rename to openrouteservice/models/inline_response2004_extras.py
index 1a6c8549..baed8624 100644
--- a/openrouteservice/models/json_extra.py
+++ b/openrouteservice/models/inline_response2004_extras.py
@@ -15,7 +15,7 @@
import six
-class JSONExtra(object):
+class InlineResponse2004Extras(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -28,7 +28,7 @@ class JSONExtra(object):
and the value is json key in definition.
"""
swagger_types = {
- 'summary': 'list[JSONExtraSummary]',
+ 'summary': 'list[InlineResponse2004Summary]',
'values': 'list[list[int]]'
}
@@ -38,7 +38,7 @@ class JSONExtra(object):
}
def __init__(self, summary=None, values=None): # noqa: E501
- """JSONExtra - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Extras - a model defined in Swagger""" # noqa: E501
self._summary = None
self._values = None
self.discriminator = None
@@ -49,45 +49,45 @@ def __init__(self, summary=None, values=None): # noqa: E501
@property
def summary(self):
- """Gets the summary of this JSONExtra. # noqa: E501
+ """Gets the summary of this InlineResponse2004Extras. # noqa: E501
List representing the summary of the extra info items. # noqa: E501
- :return: The summary of this JSONExtra. # noqa: E501
- :rtype: list[JSONExtraSummary]
+ :return: The summary of this InlineResponse2004Extras. # noqa: E501
+ :rtype: list[InlineResponse2004Summary]
"""
return self._summary
@summary.setter
def summary(self, summary):
- """Sets the summary of this JSONExtra.
+ """Sets the summary of this InlineResponse2004Extras.
List representing the summary of the extra info items. # noqa: E501
- :param summary: The summary of this JSONExtra. # noqa: E501
- :type: list[JSONExtraSummary]
+ :param summary: The summary of this InlineResponse2004Extras. # noqa: E501
+ :type: list[InlineResponse2004Summary]
"""
self._summary = summary
@property
def values(self):
- """Gets the values of this JSONExtra. # noqa: E501
+ """Gets the values of this InlineResponse2004Extras. # noqa: E501
A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
- :return: The values of this JSONExtra. # noqa: E501
+ :return: The values of this InlineResponse2004Extras. # noqa: E501
:rtype: list[list[int]]
"""
return self._values
@values.setter
def values(self, values):
- """Sets the values of this JSONExtra.
+ """Sets the values of this InlineResponse2004Extras.
A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
- :param values: The values of this JSONExtra. # noqa: E501
+ :param values: The values of this InlineResponse2004Extras. # noqa: E501
:type: list[list[int]]
"""
@@ -114,7 +114,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONExtra, dict):
+ if issubclass(InlineResponse2004Extras, dict):
for key, value in self.items():
result[key] = value
@@ -130,7 +130,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONExtra):
+ if not isinstance(other, InlineResponse2004Extras):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_step.py b/openrouteservice/models/inline_response2004_instructions.py
similarity index 69%
rename from openrouteservice/models/json_step.py
rename to openrouteservice/models/inline_response2004_instructions.py
index 219c5323..46dca263 100644
--- a/openrouteservice/models/json_step.py
+++ b/openrouteservice/models/inline_response2004_instructions.py
@@ -15,7 +15,7 @@
import six
-class JSONStep(object):
+class InlineResponse2004Instructions(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -33,7 +33,7 @@ class JSONStep(object):
'exit_bearings': 'list[int]',
'exit_number': 'int',
'instruction': 'str',
- 'maneuver': 'JSONIndividualRouteResponseManeuver',
+ 'maneuver': 'InlineResponse2004Maneuver',
'name': 'str',
'type': 'int',
'way_points': 'list[int]'
@@ -52,7 +52,7 @@ class JSONStep(object):
}
def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number=None, instruction=None, maneuver=None, name=None, type=None, way_points=None): # noqa: E501
- """JSONStep - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Instructions - a model defined in Swagger""" # noqa: E501
self._distance = None
self._duration = None
self._exit_bearings = None
@@ -84,22 +84,22 @@ def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number
@property
def distance(self):
- """Gets the distance of this JSONStep. # noqa: E501
+ """Gets the distance of this InlineResponse2004Instructions. # noqa: E501
The distance for the step in metres. # noqa: E501
- :return: The distance of this JSONStep. # noqa: E501
+ :return: The distance of this InlineResponse2004Instructions. # noqa: E501
:rtype: float
"""
return self._distance
@distance.setter
def distance(self, distance):
- """Sets the distance of this JSONStep.
+ """Sets the distance of this InlineResponse2004Instructions.
The distance for the step in metres. # noqa: E501
- :param distance: The distance of this JSONStep. # noqa: E501
+ :param distance: The distance of this InlineResponse2004Instructions. # noqa: E501
:type: float
"""
@@ -107,22 +107,22 @@ def distance(self, distance):
@property
def duration(self):
- """Gets the duration of this JSONStep. # noqa: E501
+ """Gets the duration of this InlineResponse2004Instructions. # noqa: E501
The duration for the step in seconds. # noqa: E501
- :return: The duration of this JSONStep. # noqa: E501
+ :return: The duration of this InlineResponse2004Instructions. # noqa: E501
:rtype: float
"""
return self._duration
@duration.setter
def duration(self, duration):
- """Sets the duration of this JSONStep.
+ """Sets the duration of this InlineResponse2004Instructions.
The duration for the step in seconds. # noqa: E501
- :param duration: The duration of this JSONStep. # noqa: E501
+ :param duration: The duration of this InlineResponse2004Instructions. # noqa: E501
:type: float
"""
@@ -130,22 +130,22 @@ def duration(self, duration):
@property
def exit_bearings(self):
- """Gets the exit_bearings of this JSONStep. # noqa: E501
+ """Gets the exit_bearings of this InlineResponse2004Instructions. # noqa: E501
Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
- :return: The exit_bearings of this JSONStep. # noqa: E501
+ :return: The exit_bearings of this InlineResponse2004Instructions. # noqa: E501
:rtype: list[int]
"""
return self._exit_bearings
@exit_bearings.setter
def exit_bearings(self, exit_bearings):
- """Sets the exit_bearings of this JSONStep.
+ """Sets the exit_bearings of this InlineResponse2004Instructions.
Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
- :param exit_bearings: The exit_bearings of this JSONStep. # noqa: E501
+ :param exit_bearings: The exit_bearings of this InlineResponse2004Instructions. # noqa: E501
:type: list[int]
"""
@@ -153,22 +153,22 @@ def exit_bearings(self, exit_bearings):
@property
def exit_number(self):
- """Gets the exit_number of this JSONStep. # noqa: E501
+ """Gets the exit_number of this InlineResponse2004Instructions. # noqa: E501
Only for roundabouts. Contains the number of the exit to take. # noqa: E501
- :return: The exit_number of this JSONStep. # noqa: E501
+ :return: The exit_number of this InlineResponse2004Instructions. # noqa: E501
:rtype: int
"""
return self._exit_number
@exit_number.setter
def exit_number(self, exit_number):
- """Sets the exit_number of this JSONStep.
+ """Sets the exit_number of this InlineResponse2004Instructions.
Only for roundabouts. Contains the number of the exit to take. # noqa: E501
- :param exit_number: The exit_number of this JSONStep. # noqa: E501
+ :param exit_number: The exit_number of this InlineResponse2004Instructions. # noqa: E501
:type: int
"""
@@ -176,22 +176,22 @@ def exit_number(self, exit_number):
@property
def instruction(self):
- """Gets the instruction of this JSONStep. # noqa: E501
+ """Gets the instruction of this InlineResponse2004Instructions. # noqa: E501
The routing instruction text for the step. # noqa: E501
- :return: The instruction of this JSONStep. # noqa: E501
+ :return: The instruction of this InlineResponse2004Instructions. # noqa: E501
:rtype: str
"""
return self._instruction
@instruction.setter
def instruction(self, instruction):
- """Sets the instruction of this JSONStep.
+ """Sets the instruction of this InlineResponse2004Instructions.
The routing instruction text for the step. # noqa: E501
- :param instruction: The instruction of this JSONStep. # noqa: E501
+ :param instruction: The instruction of this InlineResponse2004Instructions. # noqa: E501
:type: str
"""
@@ -199,43 +199,43 @@ def instruction(self, instruction):
@property
def maneuver(self):
- """Gets the maneuver of this JSONStep. # noqa: E501
+ """Gets the maneuver of this InlineResponse2004Instructions. # noqa: E501
- :return: The maneuver of this JSONStep. # noqa: E501
- :rtype: JSONIndividualRouteResponseManeuver
+ :return: The maneuver of this InlineResponse2004Instructions. # noqa: E501
+ :rtype: InlineResponse2004Maneuver
"""
return self._maneuver
@maneuver.setter
def maneuver(self, maneuver):
- """Sets the maneuver of this JSONStep.
+ """Sets the maneuver of this InlineResponse2004Instructions.
- :param maneuver: The maneuver of this JSONStep. # noqa: E501
- :type: JSONIndividualRouteResponseManeuver
+ :param maneuver: The maneuver of this InlineResponse2004Instructions. # noqa: E501
+ :type: InlineResponse2004Maneuver
"""
self._maneuver = maneuver
@property
def name(self):
- """Gets the name of this JSONStep. # noqa: E501
+ """Gets the name of this InlineResponse2004Instructions. # noqa: E501
The name of the next street. # noqa: E501
- :return: The name of this JSONStep. # noqa: E501
+ :return: The name of this InlineResponse2004Instructions. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this JSONStep.
+ """Sets the name of this InlineResponse2004Instructions.
The name of the next street. # noqa: E501
- :param name: The name of this JSONStep. # noqa: E501
+ :param name: The name of this InlineResponse2004Instructions. # noqa: E501
:type: str
"""
@@ -243,22 +243,22 @@ def name(self, name):
@property
def type(self):
- """Gets the type of this JSONStep. # noqa: E501
+ """Gets the type of this InlineResponse2004Instructions. # noqa: E501
The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
- :return: The type of this JSONStep. # noqa: E501
+ :return: The type of this InlineResponse2004Instructions. # noqa: E501
:rtype: int
"""
return self._type
@type.setter
def type(self, type):
- """Sets the type of this JSONStep.
+ """Sets the type of this InlineResponse2004Instructions.
The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
- :param type: The type of this JSONStep. # noqa: E501
+ :param type: The type of this InlineResponse2004Instructions. # noqa: E501
:type: int
"""
@@ -266,22 +266,22 @@ def type(self, type):
@property
def way_points(self):
- """Gets the way_points of this JSONStep. # noqa: E501
+ """Gets the way_points of this InlineResponse2004Instructions. # noqa: E501
List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
- :return: The way_points of this JSONStep. # noqa: E501
+ :return: The way_points of this InlineResponse2004Instructions. # noqa: E501
:rtype: list[int]
"""
return self._way_points
@way_points.setter
def way_points(self, way_points):
- """Sets the way_points of this JSONStep.
+ """Sets the way_points of this InlineResponse2004Instructions.
List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
- :param way_points: The way_points of this JSONStep. # noqa: E501
+ :param way_points: The way_points of this InlineResponse2004Instructions. # noqa: E501
:type: list[int]
"""
@@ -308,7 +308,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONStep, dict):
+ if issubclass(InlineResponse2004Instructions, dict):
for key, value in self.items():
result[key] = value
@@ -324,7 +324,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONStep):
+ if not isinstance(other, InlineResponse2004Instructions):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_leg.py b/openrouteservice/models/inline_response2004_legs.py
similarity index 68%
rename from openrouteservice/models/json_leg.py
rename to openrouteservice/models/inline_response2004_legs.py
index b3fc3f88..2984ea70 100644
--- a/openrouteservice/models/json_leg.py
+++ b/openrouteservice/models/inline_response2004_legs.py
@@ -15,7 +15,7 @@
import six
-class JSONLeg(object):
+class InlineResponse2004Legs(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -35,14 +35,14 @@ class JSONLeg(object):
'duration': 'float',
'feed_id': 'str',
'geometry': 'str',
- 'instructions': 'list[JSONIndividualRouteResponseInstructions]',
+ 'instructions': 'list[InlineResponse2004Instructions]',
'is_in_same_vehicle_as_previous': 'bool',
'route_desc': 'str',
'route_id': 'str',
'route_long_name': 'str',
'route_short_name': 'str',
'route_type': 'int',
- 'stops': 'list[JSONIndividualRouteResponseStops]',
+ 'stops': 'list[InlineResponse2004Stops]',
'trip_headsign': 'str',
'trip_id': 'str',
'type': 'str'
@@ -70,7 +70,7 @@ class JSONLeg(object):
}
def __init__(self, arrival=None, departure=None, departure_location=None, distance=None, duration=None, feed_id=None, geometry=None, instructions=None, is_in_same_vehicle_as_previous=None, route_desc=None, route_id=None, route_long_name=None, route_short_name=None, route_type=None, stops=None, trip_headsign=None, trip_id=None, type=None): # noqa: E501
- """JSONLeg - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Legs - a model defined in Swagger""" # noqa: E501
self._arrival = None
self._departure = None
self._departure_location = None
@@ -129,22 +129,22 @@ def __init__(self, arrival=None, departure=None, departure_location=None, distan
@property
def arrival(self):
- """Gets the arrival of this JSONLeg. # noqa: E501
+ """Gets the arrival of this InlineResponse2004Legs. # noqa: E501
Arrival date and time # noqa: E501
- :return: The arrival of this JSONLeg. # noqa: E501
+ :return: The arrival of this InlineResponse2004Legs. # noqa: E501
:rtype: datetime
"""
return self._arrival
@arrival.setter
def arrival(self, arrival):
- """Sets the arrival of this JSONLeg.
+ """Sets the arrival of this InlineResponse2004Legs.
Arrival date and time # noqa: E501
- :param arrival: The arrival of this JSONLeg. # noqa: E501
+ :param arrival: The arrival of this InlineResponse2004Legs. # noqa: E501
:type: datetime
"""
@@ -152,22 +152,22 @@ def arrival(self, arrival):
@property
def departure(self):
- """Gets the departure of this JSONLeg. # noqa: E501
+ """Gets the departure of this InlineResponse2004Legs. # noqa: E501
Departure date and time # noqa: E501
- :return: The departure of this JSONLeg. # noqa: E501
+ :return: The departure of this InlineResponse2004Legs. # noqa: E501
:rtype: datetime
"""
return self._departure
@departure.setter
def departure(self, departure):
- """Sets the departure of this JSONLeg.
+ """Sets the departure of this InlineResponse2004Legs.
Departure date and time # noqa: E501
- :param departure: The departure of this JSONLeg. # noqa: E501
+ :param departure: The departure of this InlineResponse2004Legs. # noqa: E501
:type: datetime
"""
@@ -175,22 +175,22 @@ def departure(self, departure):
@property
def departure_location(self):
- """Gets the departure_location of this JSONLeg. # noqa: E501
+ """Gets the departure_location of this InlineResponse2004Legs. # noqa: E501
The departure location of the leg. # noqa: E501
- :return: The departure_location of this JSONLeg. # noqa: E501
+ :return: The departure_location of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._departure_location
@departure_location.setter
def departure_location(self, departure_location):
- """Sets the departure_location of this JSONLeg.
+ """Sets the departure_location of this InlineResponse2004Legs.
The departure location of the leg. # noqa: E501
- :param departure_location: The departure_location of this JSONLeg. # noqa: E501
+ :param departure_location: The departure_location of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -198,22 +198,22 @@ def departure_location(self, departure_location):
@property
def distance(self):
- """Gets the distance of this JSONLeg. # noqa: E501
+ """Gets the distance of this InlineResponse2004Legs. # noqa: E501
The distance for the leg in metres. # noqa: E501
- :return: The distance of this JSONLeg. # noqa: E501
+ :return: The distance of this InlineResponse2004Legs. # noqa: E501
:rtype: float
"""
return self._distance
@distance.setter
def distance(self, distance):
- """Sets the distance of this JSONLeg.
+ """Sets the distance of this InlineResponse2004Legs.
The distance for the leg in metres. # noqa: E501
- :param distance: The distance of this JSONLeg. # noqa: E501
+ :param distance: The distance of this InlineResponse2004Legs. # noqa: E501
:type: float
"""
@@ -221,22 +221,22 @@ def distance(self, distance):
@property
def duration(self):
- """Gets the duration of this JSONLeg. # noqa: E501
+ """Gets the duration of this InlineResponse2004Legs. # noqa: E501
The duration for the leg in seconds. # noqa: E501
- :return: The duration of this JSONLeg. # noqa: E501
+ :return: The duration of this InlineResponse2004Legs. # noqa: E501
:rtype: float
"""
return self._duration
@duration.setter
def duration(self, duration):
- """Sets the duration of this JSONLeg.
+ """Sets the duration of this InlineResponse2004Legs.
The duration for the leg in seconds. # noqa: E501
- :param duration: The duration of this JSONLeg. # noqa: E501
+ :param duration: The duration of this InlineResponse2004Legs. # noqa: E501
:type: float
"""
@@ -244,22 +244,22 @@ def duration(self, duration):
@property
def feed_id(self):
- """Gets the feed_id of this JSONLeg. # noqa: E501
+ """Gets the feed_id of this InlineResponse2004Legs. # noqa: E501
The feed ID this public transport leg based its information from. # noqa: E501
- :return: The feed_id of this JSONLeg. # noqa: E501
+ :return: The feed_id of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._feed_id
@feed_id.setter
def feed_id(self, feed_id):
- """Sets the feed_id of this JSONLeg.
+ """Sets the feed_id of this InlineResponse2004Legs.
The feed ID this public transport leg based its information from. # noqa: E501
- :param feed_id: The feed_id of this JSONLeg. # noqa: E501
+ :param feed_id: The feed_id of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -267,22 +267,22 @@ def feed_id(self, feed_id):
@property
def geometry(self):
- """Gets the geometry of this JSONLeg. # noqa: E501
+ """Gets the geometry of this InlineResponse2004Legs. # noqa: E501
The geometry of the leg. This is an encoded polyline. # noqa: E501
- :return: The geometry of this JSONLeg. # noqa: E501
+ :return: The geometry of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._geometry
@geometry.setter
def geometry(self, geometry):
- """Sets the geometry of this JSONLeg.
+ """Sets the geometry of this InlineResponse2004Legs.
The geometry of the leg. This is an encoded polyline. # noqa: E501
- :param geometry: The geometry of this JSONLeg. # noqa: E501
+ :param geometry: The geometry of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -290,45 +290,45 @@ def geometry(self, geometry):
@property
def instructions(self):
- """Gets the instructions of this JSONLeg. # noqa: E501
+ """Gets the instructions of this InlineResponse2004Legs. # noqa: E501
List containing the specific steps the segment consists of. # noqa: E501
- :return: The instructions of this JSONLeg. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseInstructions]
+ :return: The instructions of this InlineResponse2004Legs. # noqa: E501
+ :rtype: list[InlineResponse2004Instructions]
"""
return self._instructions
@instructions.setter
def instructions(self, instructions):
- """Sets the instructions of this JSONLeg.
+ """Sets the instructions of this InlineResponse2004Legs.
List containing the specific steps the segment consists of. # noqa: E501
- :param instructions: The instructions of this JSONLeg. # noqa: E501
- :type: list[JSONIndividualRouteResponseInstructions]
+ :param instructions: The instructions of this InlineResponse2004Legs. # noqa: E501
+ :type: list[InlineResponse2004Instructions]
"""
self._instructions = instructions
@property
def is_in_same_vehicle_as_previous(self):
- """Gets the is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+ """Gets the is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
Whether the legs continues in the same vehicle as the previous one. # noqa: E501
- :return: The is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+ :return: The is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
:rtype: bool
"""
return self._is_in_same_vehicle_as_previous
@is_in_same_vehicle_as_previous.setter
def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
- """Sets the is_in_same_vehicle_as_previous of this JSONLeg.
+ """Sets the is_in_same_vehicle_as_previous of this InlineResponse2004Legs.
Whether the legs continues in the same vehicle as the previous one. # noqa: E501
- :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this JSONLeg. # noqa: E501
+ :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
:type: bool
"""
@@ -336,22 +336,22 @@ def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
@property
def route_desc(self):
- """Gets the route_desc of this JSONLeg. # noqa: E501
+ """Gets the route_desc of this InlineResponse2004Legs. # noqa: E501
The route description of the leg (if provided in the GTFS data set). # noqa: E501
- :return: The route_desc of this JSONLeg. # noqa: E501
+ :return: The route_desc of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._route_desc
@route_desc.setter
def route_desc(self, route_desc):
- """Sets the route_desc of this JSONLeg.
+ """Sets the route_desc of this InlineResponse2004Legs.
The route description of the leg (if provided in the GTFS data set). # noqa: E501
- :param route_desc: The route_desc of this JSONLeg. # noqa: E501
+ :param route_desc: The route_desc of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -359,22 +359,22 @@ def route_desc(self, route_desc):
@property
def route_id(self):
- """Gets the route_id of this JSONLeg. # noqa: E501
+ """Gets the route_id of this InlineResponse2004Legs. # noqa: E501
The route ID of this public transport leg. # noqa: E501
- :return: The route_id of this JSONLeg. # noqa: E501
+ :return: The route_id of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._route_id
@route_id.setter
def route_id(self, route_id):
- """Sets the route_id of this JSONLeg.
+ """Sets the route_id of this InlineResponse2004Legs.
The route ID of this public transport leg. # noqa: E501
- :param route_id: The route_id of this JSONLeg. # noqa: E501
+ :param route_id: The route_id of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -382,22 +382,22 @@ def route_id(self, route_id):
@property
def route_long_name(self):
- """Gets the route_long_name of this JSONLeg. # noqa: E501
+ """Gets the route_long_name of this InlineResponse2004Legs. # noqa: E501
The public transport route name of the leg. # noqa: E501
- :return: The route_long_name of this JSONLeg. # noqa: E501
+ :return: The route_long_name of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._route_long_name
@route_long_name.setter
def route_long_name(self, route_long_name):
- """Sets the route_long_name of this JSONLeg.
+ """Sets the route_long_name of this InlineResponse2004Legs.
The public transport route name of the leg. # noqa: E501
- :param route_long_name: The route_long_name of this JSONLeg. # noqa: E501
+ :param route_long_name: The route_long_name of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -405,22 +405,22 @@ def route_long_name(self, route_long_name):
@property
def route_short_name(self):
- """Gets the route_short_name of this JSONLeg. # noqa: E501
+ """Gets the route_short_name of this InlineResponse2004Legs. # noqa: E501
The public transport route name (short version) of the leg. # noqa: E501
- :return: The route_short_name of this JSONLeg. # noqa: E501
+ :return: The route_short_name of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._route_short_name
@route_short_name.setter
def route_short_name(self, route_short_name):
- """Sets the route_short_name of this JSONLeg.
+ """Sets the route_short_name of this InlineResponse2004Legs.
The public transport route name (short version) of the leg. # noqa: E501
- :param route_short_name: The route_short_name of this JSONLeg. # noqa: E501
+ :param route_short_name: The route_short_name of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -428,22 +428,22 @@ def route_short_name(self, route_short_name):
@property
def route_type(self):
- """Gets the route_type of this JSONLeg. # noqa: E501
+ """Gets the route_type of this InlineResponse2004Legs. # noqa: E501
The route type of the leg (if provided in the GTFS data set). # noqa: E501
- :return: The route_type of this JSONLeg. # noqa: E501
+ :return: The route_type of this InlineResponse2004Legs. # noqa: E501
:rtype: int
"""
return self._route_type
@route_type.setter
def route_type(self, route_type):
- """Sets the route_type of this JSONLeg.
+ """Sets the route_type of this InlineResponse2004Legs.
The route type of the leg (if provided in the GTFS data set). # noqa: E501
- :param route_type: The route_type of this JSONLeg. # noqa: E501
+ :param route_type: The route_type of this InlineResponse2004Legs. # noqa: E501
:type: int
"""
@@ -451,45 +451,45 @@ def route_type(self, route_type):
@property
def stops(self):
- """Gets the stops of this JSONLeg. # noqa: E501
+ """Gets the stops of this InlineResponse2004Legs. # noqa: E501
List containing the stops the along the leg. # noqa: E501
- :return: The stops of this JSONLeg. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseStops]
+ :return: The stops of this InlineResponse2004Legs. # noqa: E501
+ :rtype: list[InlineResponse2004Stops]
"""
return self._stops
@stops.setter
def stops(self, stops):
- """Sets the stops of this JSONLeg.
+ """Sets the stops of this InlineResponse2004Legs.
List containing the stops the along the leg. # noqa: E501
- :param stops: The stops of this JSONLeg. # noqa: E501
- :type: list[JSONIndividualRouteResponseStops]
+ :param stops: The stops of this InlineResponse2004Legs. # noqa: E501
+ :type: list[InlineResponse2004Stops]
"""
self._stops = stops
@property
def trip_headsign(self):
- """Gets the trip_headsign of this JSONLeg. # noqa: E501
+ """Gets the trip_headsign of this InlineResponse2004Legs. # noqa: E501
The headsign of the public transport vehicle of the leg. # noqa: E501
- :return: The trip_headsign of this JSONLeg. # noqa: E501
+ :return: The trip_headsign of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._trip_headsign
@trip_headsign.setter
def trip_headsign(self, trip_headsign):
- """Sets the trip_headsign of this JSONLeg.
+ """Sets the trip_headsign of this InlineResponse2004Legs.
The headsign of the public transport vehicle of the leg. # noqa: E501
- :param trip_headsign: The trip_headsign of this JSONLeg. # noqa: E501
+ :param trip_headsign: The trip_headsign of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -497,22 +497,22 @@ def trip_headsign(self, trip_headsign):
@property
def trip_id(self):
- """Gets the trip_id of this JSONLeg. # noqa: E501
+ """Gets the trip_id of this InlineResponse2004Legs. # noqa: E501
The trip ID of this public transport leg. # noqa: E501
- :return: The trip_id of this JSONLeg. # noqa: E501
+ :return: The trip_id of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._trip_id
@trip_id.setter
def trip_id(self, trip_id):
- """Sets the trip_id of this JSONLeg.
+ """Sets the trip_id of this InlineResponse2004Legs.
The trip ID of this public transport leg. # noqa: E501
- :param trip_id: The trip_id of this JSONLeg. # noqa: E501
+ :param trip_id: The trip_id of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -520,22 +520,22 @@ def trip_id(self, trip_id):
@property
def type(self):
- """Gets the type of this JSONLeg. # noqa: E501
+ """Gets the type of this InlineResponse2004Legs. # noqa: E501
The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
- :return: The type of this JSONLeg. # noqa: E501
+ :return: The type of this InlineResponse2004Legs. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
- """Sets the type of this JSONLeg.
+ """Sets the type of this InlineResponse2004Legs.
The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
- :param type: The type of this JSONLeg. # noqa: E501
+ :param type: The type of this InlineResponse2004Legs. # noqa: E501
:type: str
"""
@@ -562,7 +562,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONLeg, dict):
+ if issubclass(InlineResponse2004Legs, dict):
for key, value in self.items():
result[key] = value
@@ -578,7 +578,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONLeg):
+ if not isinstance(other, InlineResponse2004Legs):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_step_maneuver.py b/openrouteservice/models/inline_response2004_maneuver.py
similarity index 78%
rename from openrouteservice/models/json_step_maneuver.py
rename to openrouteservice/models/inline_response2004_maneuver.py
index be41dcae..385b342f 100644
--- a/openrouteservice/models/json_step_maneuver.py
+++ b/openrouteservice/models/inline_response2004_maneuver.py
@@ -15,7 +15,7 @@
import six
-class JSONStepManeuver(object):
+class InlineResponse2004Maneuver(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class JSONStepManeuver(object):
}
def __init__(self, bearing_after=None, bearing_before=None, location=None): # noqa: E501
- """JSONStepManeuver - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Maneuver - a model defined in Swagger""" # noqa: E501
self._bearing_after = None
self._bearing_before = None
self._location = None
@@ -54,22 +54,22 @@ def __init__(self, bearing_after=None, bearing_before=None, location=None): # n
@property
def bearing_after(self):
- """Gets the bearing_after of this JSONStepManeuver. # noqa: E501
+ """Gets the bearing_after of this InlineResponse2004Maneuver. # noqa: E501
The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
- :return: The bearing_after of this JSONStepManeuver. # noqa: E501
+ :return: The bearing_after of this InlineResponse2004Maneuver. # noqa: E501
:rtype: int
"""
return self._bearing_after
@bearing_after.setter
def bearing_after(self, bearing_after):
- """Sets the bearing_after of this JSONStepManeuver.
+ """Sets the bearing_after of this InlineResponse2004Maneuver.
The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
- :param bearing_after: The bearing_after of this JSONStepManeuver. # noqa: E501
+ :param bearing_after: The bearing_after of this InlineResponse2004Maneuver. # noqa: E501
:type: int
"""
@@ -77,22 +77,22 @@ def bearing_after(self, bearing_after):
@property
def bearing_before(self):
- """Gets the bearing_before of this JSONStepManeuver. # noqa: E501
+ """Gets the bearing_before of this InlineResponse2004Maneuver. # noqa: E501
The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
- :return: The bearing_before of this JSONStepManeuver. # noqa: E501
+ :return: The bearing_before of this InlineResponse2004Maneuver. # noqa: E501
:rtype: int
"""
return self._bearing_before
@bearing_before.setter
def bearing_before(self, bearing_before):
- """Sets the bearing_before of this JSONStepManeuver.
+ """Sets the bearing_before of this InlineResponse2004Maneuver.
The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
- :param bearing_before: The bearing_before of this JSONStepManeuver. # noqa: E501
+ :param bearing_before: The bearing_before of this InlineResponse2004Maneuver. # noqa: E501
:type: int
"""
@@ -100,22 +100,22 @@ def bearing_before(self, bearing_before):
@property
def location(self):
- """Gets the location of this JSONStepManeuver. # noqa: E501
+ """Gets the location of this InlineResponse2004Maneuver. # noqa: E501
The coordinate of the point where a maneuver takes place. # noqa: E501
- :return: The location of this JSONStepManeuver. # noqa: E501
+ :return: The location of this InlineResponse2004Maneuver. # noqa: E501
:rtype: list[float]
"""
return self._location
@location.setter
def location(self, location):
- """Sets the location of this JSONStepManeuver.
+ """Sets the location of this InlineResponse2004Maneuver.
The coordinate of the point where a maneuver takes place. # noqa: E501
- :param location: The location of this JSONStepManeuver. # noqa: E501
+ :param location: The location of this InlineResponse2004Maneuver. # noqa: E501
:type: list[float]
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONStepManeuver, dict):
+ if issubclass(InlineResponse2004Maneuver, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONStepManeuver):
+ if not isinstance(other, InlineResponse2004Maneuver):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_route_response_routes.py b/openrouteservice/models/inline_response2004_routes.py
similarity index 66%
rename from openrouteservice/models/json_route_response_routes.py
rename to openrouteservice/models/inline_response2004_routes.py
index d8c62104..4612af42 100644
--- a/openrouteservice/models/json_route_response_routes.py
+++ b/openrouteservice/models/inline_response2004_routes.py
@@ -15,7 +15,7 @@
import six
-class JSONRouteResponseRoutes(object):
+class InlineResponse2004Routes(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -31,12 +31,12 @@ class JSONRouteResponseRoutes(object):
'arrival': 'datetime',
'bbox': 'list[float]',
'departure': 'datetime',
- 'extras': 'dict(str, JSONIndividualRouteResponseExtras)',
+ 'extras': 'dict(str, InlineResponse2004Extras)',
'geometry': 'str',
- 'legs': 'list[JSONIndividualRouteResponseLegs]',
- 'segments': 'list[JSONIndividualRouteResponseSegments]',
- 'summary': 'JSONIndividualRouteResponseSummary',
- 'warnings': 'list[JSONIndividualRouteResponseWarnings]',
+ 'legs': 'list[InlineResponse2004Legs]',
+ 'segments': 'list[InlineResponse2004Segments]',
+ 'summary': 'InlineResponse2004Summary1',
+ 'warnings': 'list[InlineResponse2004Warnings]',
'way_points': 'list[int]'
}
@@ -54,7 +54,7 @@ class JSONRouteResponseRoutes(object):
}
def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometry=None, legs=None, segments=None, summary=None, warnings=None, way_points=None): # noqa: E501
- """JSONRouteResponseRoutes - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Routes - a model defined in Swagger""" # noqa: E501
self._arrival = None
self._bbox = None
self._departure = None
@@ -89,22 +89,22 @@ def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometr
@property
def arrival(self):
- """Gets the arrival of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the arrival of this InlineResponse2004Routes. # noqa: E501
Arrival date and time # noqa: E501
- :return: The arrival of this JSONRouteResponseRoutes. # noqa: E501
+ :return: The arrival of this InlineResponse2004Routes. # noqa: E501
:rtype: datetime
"""
return self._arrival
@arrival.setter
def arrival(self, arrival):
- """Sets the arrival of this JSONRouteResponseRoutes.
+ """Sets the arrival of this InlineResponse2004Routes.
Arrival date and time # noqa: E501
- :param arrival: The arrival of this JSONRouteResponseRoutes. # noqa: E501
+ :param arrival: The arrival of this InlineResponse2004Routes. # noqa: E501
:type: datetime
"""
@@ -112,22 +112,22 @@ def arrival(self, arrival):
@property
def bbox(self):
- """Gets the bbox of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the bbox of this InlineResponse2004Routes. # noqa: E501
A bounding box which contains the entire route # noqa: E501
- :return: The bbox of this JSONRouteResponseRoutes. # noqa: E501
+ :return: The bbox of this InlineResponse2004Routes. # noqa: E501
:rtype: list[float]
"""
return self._bbox
@bbox.setter
def bbox(self, bbox):
- """Sets the bbox of this JSONRouteResponseRoutes.
+ """Sets the bbox of this InlineResponse2004Routes.
A bounding box which contains the entire route # noqa: E501
- :param bbox: The bbox of this JSONRouteResponseRoutes. # noqa: E501
+ :param bbox: The bbox of this InlineResponse2004Routes. # noqa: E501
:type: list[float]
"""
@@ -135,22 +135,22 @@ def bbox(self, bbox):
@property
def departure(self):
- """Gets the departure of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the departure of this InlineResponse2004Routes. # noqa: E501
Departure date and time # noqa: E501
- :return: The departure of this JSONRouteResponseRoutes. # noqa: E501
+ :return: The departure of this InlineResponse2004Routes. # noqa: E501
:rtype: datetime
"""
return self._departure
@departure.setter
def departure(self, departure):
- """Sets the departure of this JSONRouteResponseRoutes.
+ """Sets the departure of this InlineResponse2004Routes.
Departure date and time # noqa: E501
- :param departure: The departure of this JSONRouteResponseRoutes. # noqa: E501
+ :param departure: The departure of this InlineResponse2004Routes. # noqa: E501
:type: datetime
"""
@@ -158,45 +158,45 @@ def departure(self, departure):
@property
def extras(self):
- """Gets the extras of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the extras of this InlineResponse2004Routes. # noqa: E501
List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
- :return: The extras of this JSONRouteResponseRoutes. # noqa: E501
- :rtype: dict(str, JSONIndividualRouteResponseExtras)
+ :return: The extras of this InlineResponse2004Routes. # noqa: E501
+ :rtype: dict(str, InlineResponse2004Extras)
"""
return self._extras
@extras.setter
def extras(self, extras):
- """Sets the extras of this JSONRouteResponseRoutes.
+ """Sets the extras of this InlineResponse2004Routes.
List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
- :param extras: The extras of this JSONRouteResponseRoutes. # noqa: E501
- :type: dict(str, JSONIndividualRouteResponseExtras)
+ :param extras: The extras of this InlineResponse2004Routes. # noqa: E501
+ :type: dict(str, InlineResponse2004Extras)
"""
self._extras = extras
@property
def geometry(self):
- """Gets the geometry of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the geometry of this InlineResponse2004Routes. # noqa: E501
The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
- :return: The geometry of this JSONRouteResponseRoutes. # noqa: E501
+ :return: The geometry of this InlineResponse2004Routes. # noqa: E501
:rtype: str
"""
return self._geometry
@geometry.setter
def geometry(self, geometry):
- """Sets the geometry of this JSONRouteResponseRoutes.
+ """Sets the geometry of this InlineResponse2004Routes.
The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
- :param geometry: The geometry of this JSONRouteResponseRoutes. # noqa: E501
+ :param geometry: The geometry of this InlineResponse2004Routes. # noqa: E501
:type: str
"""
@@ -204,112 +204,112 @@ def geometry(self, geometry):
@property
def legs(self):
- """Gets the legs of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the legs of this InlineResponse2004Routes. # noqa: E501
List containing the legs the route consists of. # noqa: E501
- :return: The legs of this JSONRouteResponseRoutes. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseLegs]
+ :return: The legs of this InlineResponse2004Routes. # noqa: E501
+ :rtype: list[InlineResponse2004Legs]
"""
return self._legs
@legs.setter
def legs(self, legs):
- """Sets the legs of this JSONRouteResponseRoutes.
+ """Sets the legs of this InlineResponse2004Routes.
List containing the legs the route consists of. # noqa: E501
- :param legs: The legs of this JSONRouteResponseRoutes. # noqa: E501
- :type: list[JSONIndividualRouteResponseLegs]
+ :param legs: The legs of this InlineResponse2004Routes. # noqa: E501
+ :type: list[InlineResponse2004Legs]
"""
self._legs = legs
@property
def segments(self):
- """Gets the segments of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the segments of this InlineResponse2004Routes. # noqa: E501
List containing the segments and its corresponding steps which make up the route. # noqa: E501
- :return: The segments of this JSONRouteResponseRoutes. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseSegments]
+ :return: The segments of this InlineResponse2004Routes. # noqa: E501
+ :rtype: list[InlineResponse2004Segments]
"""
return self._segments
@segments.setter
def segments(self, segments):
- """Sets the segments of this JSONRouteResponseRoutes.
+ """Sets the segments of this InlineResponse2004Routes.
List containing the segments and its corresponding steps which make up the route. # noqa: E501
- :param segments: The segments of this JSONRouteResponseRoutes. # noqa: E501
- :type: list[JSONIndividualRouteResponseSegments]
+ :param segments: The segments of this InlineResponse2004Routes. # noqa: E501
+ :type: list[InlineResponse2004Segments]
"""
self._segments = segments
@property
def summary(self):
- """Gets the summary of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the summary of this InlineResponse2004Routes. # noqa: E501
- :return: The summary of this JSONRouteResponseRoutes. # noqa: E501
- :rtype: JSONIndividualRouteResponseSummary
+ :return: The summary of this InlineResponse2004Routes. # noqa: E501
+ :rtype: InlineResponse2004Summary1
"""
return self._summary
@summary.setter
def summary(self, summary):
- """Sets the summary of this JSONRouteResponseRoutes.
+ """Sets the summary of this InlineResponse2004Routes.
- :param summary: The summary of this JSONRouteResponseRoutes. # noqa: E501
- :type: JSONIndividualRouteResponseSummary
+ :param summary: The summary of this InlineResponse2004Routes. # noqa: E501
+ :type: InlineResponse2004Summary1
"""
self._summary = summary
@property
def warnings(self):
- """Gets the warnings of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the warnings of this InlineResponse2004Routes. # noqa: E501
List of warnings that have been generated for the route # noqa: E501
- :return: The warnings of this JSONRouteResponseRoutes. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseWarnings]
+ :return: The warnings of this InlineResponse2004Routes. # noqa: E501
+ :rtype: list[InlineResponse2004Warnings]
"""
return self._warnings
@warnings.setter
def warnings(self, warnings):
- """Sets the warnings of this JSONRouteResponseRoutes.
+ """Sets the warnings of this InlineResponse2004Routes.
List of warnings that have been generated for the route # noqa: E501
- :param warnings: The warnings of this JSONRouteResponseRoutes. # noqa: E501
- :type: list[JSONIndividualRouteResponseWarnings]
+ :param warnings: The warnings of this InlineResponse2004Routes. # noqa: E501
+ :type: list[InlineResponse2004Warnings]
"""
self._warnings = warnings
@property
def way_points(self):
- """Gets the way_points of this JSONRouteResponseRoutes. # noqa: E501
+ """Gets the way_points of this InlineResponse2004Routes. # noqa: E501
List containing the indices of way points corresponding to the *geometry*. # noqa: E501
- :return: The way_points of this JSONRouteResponseRoutes. # noqa: E501
+ :return: The way_points of this InlineResponse2004Routes. # noqa: E501
:rtype: list[int]
"""
return self._way_points
@way_points.setter
def way_points(self, way_points):
- """Sets the way_points of this JSONRouteResponseRoutes.
+ """Sets the way_points of this InlineResponse2004Routes.
List containing the indices of way points corresponding to the *geometry*. # noqa: E501
- :param way_points: The way_points of this JSONRouteResponseRoutes. # noqa: E501
+ :param way_points: The way_points of this InlineResponse2004Routes. # noqa: E501
:type: list[int]
"""
@@ -336,7 +336,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONRouteResponseRoutes, dict):
+ if issubclass(InlineResponse2004Routes, dict):
for key, value in self.items():
result[key] = value
@@ -352,7 +352,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONRouteResponseRoutes):
+ if not isinstance(other, InlineResponse2004Routes):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_segment.py b/openrouteservice/models/inline_response2004_segments.py
similarity index 70%
rename from openrouteservice/models/json_segment.py
rename to openrouteservice/models/inline_response2004_segments.py
index 55704ffc..88c3a458 100644
--- a/openrouteservice/models/json_segment.py
+++ b/openrouteservice/models/inline_response2004_segments.py
@@ -15,7 +15,7 @@
import six
-class JSONSegment(object):
+class InlineResponse2004Segments(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -35,7 +35,7 @@ class JSONSegment(object):
'distance': 'float',
'duration': 'float',
'percentage': 'float',
- 'steps': 'list[JSONIndividualRouteResponseInstructions]'
+ 'steps': 'list[InlineResponse2004Instructions]'
}
attribute_map = {
@@ -50,7 +50,7 @@ class JSONSegment(object):
}
def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None, distance=None, duration=None, percentage=None, steps=None): # noqa: E501
- """JSONSegment - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Segments - a model defined in Swagger""" # noqa: E501
self._ascent = None
self._avgspeed = None
self._descent = None
@@ -79,22 +79,22 @@ def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None,
@property
def ascent(self):
- """Gets the ascent of this JSONSegment. # noqa: E501
+ """Gets the ascent of this InlineResponse2004Segments. # noqa: E501
Contains ascent of this segment in metres. # noqa: E501
- :return: The ascent of this JSONSegment. # noqa: E501
+ :return: The ascent of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._ascent
@ascent.setter
def ascent(self, ascent):
- """Sets the ascent of this JSONSegment.
+ """Sets the ascent of this InlineResponse2004Segments.
Contains ascent of this segment in metres. # noqa: E501
- :param ascent: The ascent of this JSONSegment. # noqa: E501
+ :param ascent: The ascent of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -102,22 +102,22 @@ def ascent(self, ascent):
@property
def avgspeed(self):
- """Gets the avgspeed of this JSONSegment. # noqa: E501
+ """Gets the avgspeed of this InlineResponse2004Segments. # noqa: E501
Contains the average speed of this segment in km/h. # noqa: E501
- :return: The avgspeed of this JSONSegment. # noqa: E501
+ :return: The avgspeed of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._avgspeed
@avgspeed.setter
def avgspeed(self, avgspeed):
- """Sets the avgspeed of this JSONSegment.
+ """Sets the avgspeed of this InlineResponse2004Segments.
Contains the average speed of this segment in km/h. # noqa: E501
- :param avgspeed: The avgspeed of this JSONSegment. # noqa: E501
+ :param avgspeed: The avgspeed of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -125,22 +125,22 @@ def avgspeed(self, avgspeed):
@property
def descent(self):
- """Gets the descent of this JSONSegment. # noqa: E501
+ """Gets the descent of this InlineResponse2004Segments. # noqa: E501
Contains descent of this segment in metres. # noqa: E501
- :return: The descent of this JSONSegment. # noqa: E501
+ :return: The descent of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._descent
@descent.setter
def descent(self, descent):
- """Sets the descent of this JSONSegment.
+ """Sets the descent of this InlineResponse2004Segments.
Contains descent of this segment in metres. # noqa: E501
- :param descent: The descent of this JSONSegment. # noqa: E501
+ :param descent: The descent of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -148,22 +148,22 @@ def descent(self, descent):
@property
def detourfactor(self):
- """Gets the detourfactor of this JSONSegment. # noqa: E501
+ """Gets the detourfactor of this InlineResponse2004Segments. # noqa: E501
Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
- :return: The detourfactor of this JSONSegment. # noqa: E501
+ :return: The detourfactor of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._detourfactor
@detourfactor.setter
def detourfactor(self, detourfactor):
- """Sets the detourfactor of this JSONSegment.
+ """Sets the detourfactor of this InlineResponse2004Segments.
Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
- :param detourfactor: The detourfactor of this JSONSegment. # noqa: E501
+ :param detourfactor: The detourfactor of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -171,22 +171,22 @@ def detourfactor(self, detourfactor):
@property
def distance(self):
- """Gets the distance of this JSONSegment. # noqa: E501
+ """Gets the distance of this InlineResponse2004Segments. # noqa: E501
Contains the distance of the segment in specified units. # noqa: E501
- :return: The distance of this JSONSegment. # noqa: E501
+ :return: The distance of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._distance
@distance.setter
def distance(self, distance):
- """Sets the distance of this JSONSegment.
+ """Sets the distance of this InlineResponse2004Segments.
Contains the distance of the segment in specified units. # noqa: E501
- :param distance: The distance of this JSONSegment. # noqa: E501
+ :param distance: The distance of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -194,22 +194,22 @@ def distance(self, distance):
@property
def duration(self):
- """Gets the duration of this JSONSegment. # noqa: E501
+ """Gets the duration of this InlineResponse2004Segments. # noqa: E501
Contains the duration of the segment in seconds. # noqa: E501
- :return: The duration of this JSONSegment. # noqa: E501
+ :return: The duration of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._duration
@duration.setter
def duration(self, duration):
- """Sets the duration of this JSONSegment.
+ """Sets the duration of this InlineResponse2004Segments.
Contains the duration of the segment in seconds. # noqa: E501
- :param duration: The duration of this JSONSegment. # noqa: E501
+ :param duration: The duration of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -217,22 +217,22 @@ def duration(self, duration):
@property
def percentage(self):
- """Gets the percentage of this JSONSegment. # noqa: E501
+ """Gets the percentage of this InlineResponse2004Segments. # noqa: E501
Contains the proportion of the route in percent. # noqa: E501
- :return: The percentage of this JSONSegment. # noqa: E501
+ :return: The percentage of this InlineResponse2004Segments. # noqa: E501
:rtype: float
"""
return self._percentage
@percentage.setter
def percentage(self, percentage):
- """Sets the percentage of this JSONSegment.
+ """Sets the percentage of this InlineResponse2004Segments.
Contains the proportion of the route in percent. # noqa: E501
- :param percentage: The percentage of this JSONSegment. # noqa: E501
+ :param percentage: The percentage of this InlineResponse2004Segments. # noqa: E501
:type: float
"""
@@ -240,23 +240,23 @@ def percentage(self, percentage):
@property
def steps(self):
- """Gets the steps of this JSONSegment. # noqa: E501
+ """Gets the steps of this InlineResponse2004Segments. # noqa: E501
List containing the specific steps the segment consists of. # noqa: E501
- :return: The steps of this JSONSegment. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseInstructions]
+ :return: The steps of this InlineResponse2004Segments. # noqa: E501
+ :rtype: list[InlineResponse2004Instructions]
"""
return self._steps
@steps.setter
def steps(self, steps):
- """Sets the steps of this JSONSegment.
+ """Sets the steps of this InlineResponse2004Segments.
List containing the specific steps the segment consists of. # noqa: E501
- :param steps: The steps of this JSONSegment. # noqa: E501
- :type: list[JSONIndividualRouteResponseInstructions]
+ :param steps: The steps of this InlineResponse2004Segments. # noqa: E501
+ :type: list[InlineResponse2004Instructions]
"""
self._steps = steps
@@ -282,7 +282,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONSegment, dict):
+ if issubclass(InlineResponse2004Segments, dict):
for key, value in self.items():
result[key] = value
@@ -298,7 +298,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONSegment):
+ if not isinstance(other, InlineResponse2004Segments):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/jsonpt_stop.py b/openrouteservice/models/inline_response2004_stops.py
similarity index 73%
rename from openrouteservice/models/jsonpt_stop.py
rename to openrouteservice/models/inline_response2004_stops.py
index 0b856bf7..de33a8d7 100644
--- a/openrouteservice/models/jsonpt_stop.py
+++ b/openrouteservice/models/inline_response2004_stops.py
@@ -15,7 +15,7 @@
import six
-class JSONPtStop(object):
+class InlineResponse2004Stops(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -56,7 +56,7 @@ class JSONPtStop(object):
}
def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelled=None, departure_time=None, location=None, name=None, planned_arrival_time=None, planned_departure_time=None, predicted_arrival_time=None, predicted_departure_time=None, stop_id=None): # noqa: E501
- """JSONPtStop - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Stops - a model defined in Swagger""" # noqa: E501
self._arrival_cancelled = None
self._arrival_time = None
self._departure_cancelled = None
@@ -94,22 +94,22 @@ def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelle
@property
def arrival_cancelled(self):
- """Gets the arrival_cancelled of this JSONPtStop. # noqa: E501
+ """Gets the arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
Whether arrival at the stop was cancelled. # noqa: E501
- :return: The arrival_cancelled of this JSONPtStop. # noqa: E501
+ :return: The arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
:rtype: bool
"""
return self._arrival_cancelled
@arrival_cancelled.setter
def arrival_cancelled(self, arrival_cancelled):
- """Sets the arrival_cancelled of this JSONPtStop.
+ """Sets the arrival_cancelled of this InlineResponse2004Stops.
Whether arrival at the stop was cancelled. # noqa: E501
- :param arrival_cancelled: The arrival_cancelled of this JSONPtStop. # noqa: E501
+ :param arrival_cancelled: The arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
:type: bool
"""
@@ -117,22 +117,22 @@ def arrival_cancelled(self, arrival_cancelled):
@property
def arrival_time(self):
- """Gets the arrival_time of this JSONPtStop. # noqa: E501
+ """Gets the arrival_time of this InlineResponse2004Stops. # noqa: E501
Arrival time of the stop. # noqa: E501
- :return: The arrival_time of this JSONPtStop. # noqa: E501
+ :return: The arrival_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._arrival_time
@arrival_time.setter
def arrival_time(self, arrival_time):
- """Sets the arrival_time of this JSONPtStop.
+ """Sets the arrival_time of this InlineResponse2004Stops.
Arrival time of the stop. # noqa: E501
- :param arrival_time: The arrival_time of this JSONPtStop. # noqa: E501
+ :param arrival_time: The arrival_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -140,22 +140,22 @@ def arrival_time(self, arrival_time):
@property
def departure_cancelled(self):
- """Gets the departure_cancelled of this JSONPtStop. # noqa: E501
+ """Gets the departure_cancelled of this InlineResponse2004Stops. # noqa: E501
Whether departure at the stop was cancelled. # noqa: E501
- :return: The departure_cancelled of this JSONPtStop. # noqa: E501
+ :return: The departure_cancelled of this InlineResponse2004Stops. # noqa: E501
:rtype: bool
"""
return self._departure_cancelled
@departure_cancelled.setter
def departure_cancelled(self, departure_cancelled):
- """Sets the departure_cancelled of this JSONPtStop.
+ """Sets the departure_cancelled of this InlineResponse2004Stops.
Whether departure at the stop was cancelled. # noqa: E501
- :param departure_cancelled: The departure_cancelled of this JSONPtStop. # noqa: E501
+ :param departure_cancelled: The departure_cancelled of this InlineResponse2004Stops. # noqa: E501
:type: bool
"""
@@ -163,22 +163,22 @@ def departure_cancelled(self, departure_cancelled):
@property
def departure_time(self):
- """Gets the departure_time of this JSONPtStop. # noqa: E501
+ """Gets the departure_time of this InlineResponse2004Stops. # noqa: E501
Departure time of the stop. # noqa: E501
- :return: The departure_time of this JSONPtStop. # noqa: E501
+ :return: The departure_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._departure_time
@departure_time.setter
def departure_time(self, departure_time):
- """Sets the departure_time of this JSONPtStop.
+ """Sets the departure_time of this InlineResponse2004Stops.
Departure time of the stop. # noqa: E501
- :param departure_time: The departure_time of this JSONPtStop. # noqa: E501
+ :param departure_time: The departure_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -186,22 +186,22 @@ def departure_time(self, departure_time):
@property
def location(self):
- """Gets the location of this JSONPtStop. # noqa: E501
+ """Gets the location of this InlineResponse2004Stops. # noqa: E501
The location of the stop. # noqa: E501
- :return: The location of this JSONPtStop. # noqa: E501
+ :return: The location of this InlineResponse2004Stops. # noqa: E501
:rtype: list[float]
"""
return self._location
@location.setter
def location(self, location):
- """Sets the location of this JSONPtStop.
+ """Sets the location of this InlineResponse2004Stops.
The location of the stop. # noqa: E501
- :param location: The location of this JSONPtStop. # noqa: E501
+ :param location: The location of this InlineResponse2004Stops. # noqa: E501
:type: list[float]
"""
@@ -209,22 +209,22 @@ def location(self, location):
@property
def name(self):
- """Gets the name of this JSONPtStop. # noqa: E501
+ """Gets the name of this InlineResponse2004Stops. # noqa: E501
The name of the stop. # noqa: E501
- :return: The name of this JSONPtStop. # noqa: E501
+ :return: The name of this InlineResponse2004Stops. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this JSONPtStop.
+ """Sets the name of this InlineResponse2004Stops.
The name of the stop. # noqa: E501
- :param name: The name of this JSONPtStop. # noqa: E501
+ :param name: The name of this InlineResponse2004Stops. # noqa: E501
:type: str
"""
@@ -232,22 +232,22 @@ def name(self, name):
@property
def planned_arrival_time(self):
- """Gets the planned_arrival_time of this JSONPtStop. # noqa: E501
+ """Gets the planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
Planned arrival time of the stop. # noqa: E501
- :return: The planned_arrival_time of this JSONPtStop. # noqa: E501
+ :return: The planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._planned_arrival_time
@planned_arrival_time.setter
def planned_arrival_time(self, planned_arrival_time):
- """Sets the planned_arrival_time of this JSONPtStop.
+ """Sets the planned_arrival_time of this InlineResponse2004Stops.
Planned arrival time of the stop. # noqa: E501
- :param planned_arrival_time: The planned_arrival_time of this JSONPtStop. # noqa: E501
+ :param planned_arrival_time: The planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -255,22 +255,22 @@ def planned_arrival_time(self, planned_arrival_time):
@property
def planned_departure_time(self):
- """Gets the planned_departure_time of this JSONPtStop. # noqa: E501
+ """Gets the planned_departure_time of this InlineResponse2004Stops. # noqa: E501
Planned departure time of the stop. # noqa: E501
- :return: The planned_departure_time of this JSONPtStop. # noqa: E501
+ :return: The planned_departure_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._planned_departure_time
@planned_departure_time.setter
def planned_departure_time(self, planned_departure_time):
- """Sets the planned_departure_time of this JSONPtStop.
+ """Sets the planned_departure_time of this InlineResponse2004Stops.
Planned departure time of the stop. # noqa: E501
- :param planned_departure_time: The planned_departure_time of this JSONPtStop. # noqa: E501
+ :param planned_departure_time: The planned_departure_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -278,22 +278,22 @@ def planned_departure_time(self, planned_departure_time):
@property
def predicted_arrival_time(self):
- """Gets the predicted_arrival_time of this JSONPtStop. # noqa: E501
+ """Gets the predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
Predicted arrival time of the stop. # noqa: E501
- :return: The predicted_arrival_time of this JSONPtStop. # noqa: E501
+ :return: The predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._predicted_arrival_time
@predicted_arrival_time.setter
def predicted_arrival_time(self, predicted_arrival_time):
- """Sets the predicted_arrival_time of this JSONPtStop.
+ """Sets the predicted_arrival_time of this InlineResponse2004Stops.
Predicted arrival time of the stop. # noqa: E501
- :param predicted_arrival_time: The predicted_arrival_time of this JSONPtStop. # noqa: E501
+ :param predicted_arrival_time: The predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -301,22 +301,22 @@ def predicted_arrival_time(self, predicted_arrival_time):
@property
def predicted_departure_time(self):
- """Gets the predicted_departure_time of this JSONPtStop. # noqa: E501
+ """Gets the predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
Predicted departure time of the stop. # noqa: E501
- :return: The predicted_departure_time of this JSONPtStop. # noqa: E501
+ :return: The predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
:rtype: datetime
"""
return self._predicted_departure_time
@predicted_departure_time.setter
def predicted_departure_time(self, predicted_departure_time):
- """Sets the predicted_departure_time of this JSONPtStop.
+ """Sets the predicted_departure_time of this InlineResponse2004Stops.
Predicted departure time of the stop. # noqa: E501
- :param predicted_departure_time: The predicted_departure_time of this JSONPtStop. # noqa: E501
+ :param predicted_departure_time: The predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
:type: datetime
"""
@@ -324,22 +324,22 @@ def predicted_departure_time(self, predicted_departure_time):
@property
def stop_id(self):
- """Gets the stop_id of this JSONPtStop. # noqa: E501
+ """Gets the stop_id of this InlineResponse2004Stops. # noqa: E501
The ID of the stop. # noqa: E501
- :return: The stop_id of this JSONPtStop. # noqa: E501
+ :return: The stop_id of this InlineResponse2004Stops. # noqa: E501
:rtype: str
"""
return self._stop_id
@stop_id.setter
def stop_id(self, stop_id):
- """Sets the stop_id of this JSONPtStop.
+ """Sets the stop_id of this InlineResponse2004Stops.
The ID of the stop. # noqa: E501
- :param stop_id: The stop_id of this JSONPtStop. # noqa: E501
+ :param stop_id: The stop_id of this InlineResponse2004Stops. # noqa: E501
:type: str
"""
@@ -366,7 +366,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONPtStop, dict):
+ if issubclass(InlineResponse2004Stops, dict):
for key, value in self.items():
result[key] = value
@@ -382,7 +382,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONPtStop):
+ if not isinstance(other, InlineResponse2004Stops):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_extra_summary.py b/openrouteservice/models/inline_response2004_summary.py
similarity index 78%
rename from openrouteservice/models/json_extra_summary.py
rename to openrouteservice/models/inline_response2004_summary.py
index 4253e8bd..a556bc58 100644
--- a/openrouteservice/models/json_extra_summary.py
+++ b/openrouteservice/models/inline_response2004_summary.py
@@ -15,7 +15,7 @@
import six
-class JSONExtraSummary(object):
+class InlineResponse2004Summary(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class JSONExtraSummary(object):
}
def __init__(self, amount=None, distance=None, value=None): # noqa: E501
- """JSONExtraSummary - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Summary - a model defined in Swagger""" # noqa: E501
self._amount = None
self._distance = None
self._value = None
@@ -54,22 +54,22 @@ def __init__(self, amount=None, distance=None, value=None): # noqa: E501
@property
def amount(self):
- """Gets the amount of this JSONExtraSummary. # noqa: E501
+ """Gets the amount of this InlineResponse2004Summary. # noqa: E501
Category percentage of the entire route. # noqa: E501
- :return: The amount of this JSONExtraSummary. # noqa: E501
+ :return: The amount of this InlineResponse2004Summary. # noqa: E501
:rtype: float
"""
return self._amount
@amount.setter
def amount(self, amount):
- """Sets the amount of this JSONExtraSummary.
+ """Sets the amount of this InlineResponse2004Summary.
Category percentage of the entire route. # noqa: E501
- :param amount: The amount of this JSONExtraSummary. # noqa: E501
+ :param amount: The amount of this InlineResponse2004Summary. # noqa: E501
:type: float
"""
@@ -77,22 +77,22 @@ def amount(self, amount):
@property
def distance(self):
- """Gets the distance of this JSONExtraSummary. # noqa: E501
+ """Gets the distance of this InlineResponse2004Summary. # noqa: E501
Cumulative distance of this value. # noqa: E501
- :return: The distance of this JSONExtraSummary. # noqa: E501
+ :return: The distance of this InlineResponse2004Summary. # noqa: E501
:rtype: float
"""
return self._distance
@distance.setter
def distance(self, distance):
- """Sets the distance of this JSONExtraSummary.
+ """Sets the distance of this InlineResponse2004Summary.
Cumulative distance of this value. # noqa: E501
- :param distance: The distance of this JSONExtraSummary. # noqa: E501
+ :param distance: The distance of this InlineResponse2004Summary. # noqa: E501
:type: float
"""
@@ -100,22 +100,22 @@ def distance(self, distance):
@property
def value(self):
- """Gets the value of this JSONExtraSummary. # noqa: E501
+ """Gets the value of this InlineResponse2004Summary. # noqa: E501
[Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
- :return: The value of this JSONExtraSummary. # noqa: E501
+ :return: The value of this InlineResponse2004Summary. # noqa: E501
:rtype: float
"""
return self._value
@value.setter
def value(self, value):
- """Sets the value of this JSONExtraSummary.
+ """Sets the value of this InlineResponse2004Summary.
[Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
- :param value: The value of this JSONExtraSummary. # noqa: E501
+ :param value: The value of this InlineResponse2004Summary. # noqa: E501
:type: float
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONExtraSummary, dict):
+ if issubclass(InlineResponse2004Summary, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONExtraSummary):
+ if not isinstance(other, InlineResponse2004Summary):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_summary.py b/openrouteservice/models/inline_response2004_summary1.py
similarity index 71%
rename from openrouteservice/models/json_summary.py
rename to openrouteservice/models/inline_response2004_summary1.py
index a1d9de65..42553d66 100644
--- a/openrouteservice/models/json_summary.py
+++ b/openrouteservice/models/inline_response2004_summary1.py
@@ -15,7 +15,7 @@
import six
-class JSONSummary(object):
+class InlineResponse2004Summary1(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -46,7 +46,7 @@ class JSONSummary(object):
}
def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare=None, transfers=None): # noqa: E501
- """JSONSummary - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Summary1 - a model defined in Swagger""" # noqa: E501
self._ascent = None
self._descent = None
self._distance = None
@@ -69,22 +69,22 @@ def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare
@property
def ascent(self):
- """Gets the ascent of this JSONSummary. # noqa: E501
+ """Gets the ascent of this InlineResponse2004Summary1. # noqa: E501
Total ascent in meters. # noqa: E501
- :return: The ascent of this JSONSummary. # noqa: E501
+ :return: The ascent of this InlineResponse2004Summary1. # noqa: E501
:rtype: float
"""
return self._ascent
@ascent.setter
def ascent(self, ascent):
- """Sets the ascent of this JSONSummary.
+ """Sets the ascent of this InlineResponse2004Summary1.
Total ascent in meters. # noqa: E501
- :param ascent: The ascent of this JSONSummary. # noqa: E501
+ :param ascent: The ascent of this InlineResponse2004Summary1. # noqa: E501
:type: float
"""
@@ -92,22 +92,22 @@ def ascent(self, ascent):
@property
def descent(self):
- """Gets the descent of this JSONSummary. # noqa: E501
+ """Gets the descent of this InlineResponse2004Summary1. # noqa: E501
Total descent in meters. # noqa: E501
- :return: The descent of this JSONSummary. # noqa: E501
+ :return: The descent of this InlineResponse2004Summary1. # noqa: E501
:rtype: float
"""
return self._descent
@descent.setter
def descent(self, descent):
- """Sets the descent of this JSONSummary.
+ """Sets the descent of this InlineResponse2004Summary1.
Total descent in meters. # noqa: E501
- :param descent: The descent of this JSONSummary. # noqa: E501
+ :param descent: The descent of this InlineResponse2004Summary1. # noqa: E501
:type: float
"""
@@ -115,22 +115,22 @@ def descent(self, descent):
@property
def distance(self):
- """Gets the distance of this JSONSummary. # noqa: E501
+ """Gets the distance of this InlineResponse2004Summary1. # noqa: E501
Total route distance in specified units. # noqa: E501
- :return: The distance of this JSONSummary. # noqa: E501
+ :return: The distance of this InlineResponse2004Summary1. # noqa: E501
:rtype: float
"""
return self._distance
@distance.setter
def distance(self, distance):
- """Sets the distance of this JSONSummary.
+ """Sets the distance of this InlineResponse2004Summary1.
Total route distance in specified units. # noqa: E501
- :param distance: The distance of this JSONSummary. # noqa: E501
+ :param distance: The distance of this InlineResponse2004Summary1. # noqa: E501
:type: float
"""
@@ -138,22 +138,22 @@ def distance(self, distance):
@property
def duration(self):
- """Gets the duration of this JSONSummary. # noqa: E501
+ """Gets the duration of this InlineResponse2004Summary1. # noqa: E501
Total duration in seconds. # noqa: E501
- :return: The duration of this JSONSummary. # noqa: E501
+ :return: The duration of this InlineResponse2004Summary1. # noqa: E501
:rtype: float
"""
return self._duration
@duration.setter
def duration(self, duration):
- """Sets the duration of this JSONSummary.
+ """Sets the duration of this InlineResponse2004Summary1.
Total duration in seconds. # noqa: E501
- :param duration: The duration of this JSONSummary. # noqa: E501
+ :param duration: The duration of this InlineResponse2004Summary1. # noqa: E501
:type: float
"""
@@ -161,20 +161,20 @@ def duration(self, duration):
@property
def fare(self):
- """Gets the fare of this JSONSummary. # noqa: E501
+ """Gets the fare of this InlineResponse2004Summary1. # noqa: E501
- :return: The fare of this JSONSummary. # noqa: E501
+ :return: The fare of this InlineResponse2004Summary1. # noqa: E501
:rtype: int
"""
return self._fare
@fare.setter
def fare(self, fare):
- """Sets the fare of this JSONSummary.
+ """Sets the fare of this InlineResponse2004Summary1.
- :param fare: The fare of this JSONSummary. # noqa: E501
+ :param fare: The fare of this InlineResponse2004Summary1. # noqa: E501
:type: int
"""
@@ -182,20 +182,20 @@ def fare(self, fare):
@property
def transfers(self):
- """Gets the transfers of this JSONSummary. # noqa: E501
+ """Gets the transfers of this InlineResponse2004Summary1. # noqa: E501
- :return: The transfers of this JSONSummary. # noqa: E501
+ :return: The transfers of this InlineResponse2004Summary1. # noqa: E501
:rtype: int
"""
return self._transfers
@transfers.setter
def transfers(self, transfers):
- """Sets the transfers of this JSONSummary.
+ """Sets the transfers of this InlineResponse2004Summary1.
- :param transfers: The transfers of this JSONSummary. # noqa: E501
+ :param transfers: The transfers of this InlineResponse2004Summary1. # noqa: E501
:type: int
"""
@@ -222,7 +222,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONSummary, dict):
+ if issubclass(InlineResponse2004Summary1, dict):
for key, value in self.items():
result[key] = value
@@ -238,7 +238,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONSummary):
+ if not isinstance(other, InlineResponse2004Summary1):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/json_warning.py b/openrouteservice/models/inline_response2004_warnings.py
similarity index 80%
rename from openrouteservice/models/json_warning.py
rename to openrouteservice/models/inline_response2004_warnings.py
index 5d61f0a4..c0214c33 100644
--- a/openrouteservice/models/json_warning.py
+++ b/openrouteservice/models/inline_response2004_warnings.py
@@ -15,7 +15,7 @@
import six
-class JSONWarning(object):
+class InlineResponse2004Warnings(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -38,7 +38,7 @@ class JSONWarning(object):
}
def __init__(self, code=None, message=None): # noqa: E501
- """JSONWarning - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2004Warnings - a model defined in Swagger""" # noqa: E501
self._code = None
self._message = None
self.discriminator = None
@@ -49,22 +49,22 @@ def __init__(self, code=None, message=None): # noqa: E501
@property
def code(self):
- """Gets the code of this JSONWarning. # noqa: E501
+ """Gets the code of this InlineResponse2004Warnings. # noqa: E501
Identification code for the warning # noqa: E501
- :return: The code of this JSONWarning. # noqa: E501
+ :return: The code of this InlineResponse2004Warnings. # noqa: E501
:rtype: int
"""
return self._code
@code.setter
def code(self, code):
- """Sets the code of this JSONWarning.
+ """Sets the code of this InlineResponse2004Warnings.
Identification code for the warning # noqa: E501
- :param code: The code of this JSONWarning. # noqa: E501
+ :param code: The code of this InlineResponse2004Warnings. # noqa: E501
:type: int
"""
@@ -72,22 +72,22 @@ def code(self, code):
@property
def message(self):
- """Gets the message of this JSONWarning. # noqa: E501
+ """Gets the message of this InlineResponse2004Warnings. # noqa: E501
The message associated with the warning # noqa: E501
- :return: The message of this JSONWarning. # noqa: E501
+ :return: The message of this InlineResponse2004Warnings. # noqa: E501
:rtype: str
"""
return self._message
@message.setter
def message(self, message):
- """Sets the message of this JSONWarning.
+ """Sets the message of this InlineResponse2004Warnings.
The message associated with the warning # noqa: E501
- :param message: The message of this JSONWarning. # noqa: E501
+ :param message: The message of this InlineResponse2004Warnings. # noqa: E501
:type: str
"""
@@ -114,7 +114,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSONWarning, dict):
+ if issubclass(InlineResponse2004Warnings, dict):
for key, value in self.items():
result[key] = value
@@ -130,7 +130,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSONWarning):
+ if not isinstance(other, InlineResponse2004Warnings):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/inline_response2005.py b/openrouteservice/models/inline_response2005.py
index 381e330e..be33215f 100644
--- a/openrouteservice/models/inline_response2005.py
+++ b/openrouteservice/models/inline_response2005.py
@@ -29,8 +29,8 @@ class InlineResponse2005(object):
"""
swagger_types = {
'bbox': 'list[float]',
- 'features': 'list[GeoJSONIsochronesResponseFeatures]',
- 'metadata': 'GeoJSONIsochronesResponseMetadata',
+ 'features': 'list[InlineResponse2005Features]',
+ 'metadata': 'InlineResponse2005Metadata',
'type': 'str'
}
@@ -86,7 +86,7 @@ def features(self):
:return: The features of this InlineResponse2005. # noqa: E501
- :rtype: list[GeoJSONIsochronesResponseFeatures]
+ :rtype: list[InlineResponse2005Features]
"""
return self._features
@@ -96,7 +96,7 @@ def features(self, features):
:param features: The features of this InlineResponse2005. # noqa: E501
- :type: list[GeoJSONIsochronesResponseFeatures]
+ :type: list[InlineResponse2005Features]
"""
self._features = features
@@ -107,7 +107,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2005. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadata
+ :rtype: InlineResponse2005Metadata
"""
return self._metadata
@@ -117,7 +117,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2005. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadata
+ :type: InlineResponse2005Metadata
"""
self._metadata = metadata
diff --git a/openrouteservice/models/geo_json_isochrone_base.py b/openrouteservice/models/inline_response2005_features.py
similarity index 76%
rename from openrouteservice/models/geo_json_isochrone_base.py
rename to openrouteservice/models/inline_response2005_features.py
index 3ba0e3f1..1b439f6f 100644
--- a/openrouteservice/models/geo_json_isochrone_base.py
+++ b/openrouteservice/models/inline_response2005_features.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONIsochroneBase(object):
+class InlineResponse2005Features(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -28,7 +28,7 @@ class GeoJSONIsochroneBase(object):
and the value is json key in definition.
"""
swagger_types = {
- 'geometry': 'GeoJSONIsochroneBaseGeometry',
+ 'geometry': 'InlineResponse2005Geometry',
'type': 'str'
}
@@ -38,7 +38,7 @@ class GeoJSONIsochroneBase(object):
}
def __init__(self, geometry=None, type=None): # noqa: E501
- """GeoJSONIsochroneBase - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2005Features - a model defined in Swagger""" # noqa: E501
self._geometry = None
self._type = None
self.discriminator = None
@@ -49,41 +49,41 @@ def __init__(self, geometry=None, type=None): # noqa: E501
@property
def geometry(self):
- """Gets the geometry of this GeoJSONIsochroneBase. # noqa: E501
+ """Gets the geometry of this InlineResponse2005Features. # noqa: E501
- :return: The geometry of this GeoJSONIsochroneBase. # noqa: E501
- :rtype: GeoJSONIsochroneBaseGeometry
+ :return: The geometry of this InlineResponse2005Features. # noqa: E501
+ :rtype: InlineResponse2005Geometry
"""
return self._geometry
@geometry.setter
def geometry(self, geometry):
- """Sets the geometry of this GeoJSONIsochroneBase.
+ """Sets the geometry of this InlineResponse2005Features.
- :param geometry: The geometry of this GeoJSONIsochroneBase. # noqa: E501
- :type: GeoJSONIsochroneBaseGeometry
+ :param geometry: The geometry of this InlineResponse2005Features. # noqa: E501
+ :type: InlineResponse2005Geometry
"""
self._geometry = geometry
@property
def type(self):
- """Gets the type of this GeoJSONIsochroneBase. # noqa: E501
+ """Gets the type of this InlineResponse2005Features. # noqa: E501
- :return: The type of this GeoJSONIsochroneBase. # noqa: E501
+ :return: The type of this InlineResponse2005Features. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
- """Sets the type of this GeoJSONIsochroneBase.
+ """Sets the type of this InlineResponse2005Features.
- :param type: The type of this GeoJSONIsochroneBase. # noqa: E501
+ :param type: The type of this InlineResponse2005Features. # noqa: E501
:type: str
"""
@@ -110,7 +110,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONIsochroneBase, dict):
+ if issubclass(InlineResponse2005Features, dict):
for key, value in self.items():
result[key] = value
@@ -126,7 +126,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochroneBase):
+ if not isinstance(other, InlineResponse2005Features):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/geo_json_isochrone_base_geometry.py b/openrouteservice/models/inline_response2005_geometry.py
similarity index 83%
rename from openrouteservice/models/geo_json_isochrone_base_geometry.py
rename to openrouteservice/models/inline_response2005_geometry.py
index bf95a1e7..dd3bd304 100644
--- a/openrouteservice/models/geo_json_isochrone_base_geometry.py
+++ b/openrouteservice/models/inline_response2005_geometry.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONIsochroneBaseGeometry(object):
+class InlineResponse2005Geometry(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -36,7 +36,7 @@ class GeoJSONIsochroneBaseGeometry(object):
}
def __init__(self, empty=None): # noqa: E501
- """GeoJSONIsochroneBaseGeometry - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2005Geometry - a model defined in Swagger""" # noqa: E501
self._empty = None
self.discriminator = None
if empty is not None:
@@ -44,20 +44,20 @@ def __init__(self, empty=None): # noqa: E501
@property
def empty(self):
- """Gets the empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+ """Gets the empty of this InlineResponse2005Geometry. # noqa: E501
- :return: The empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+ :return: The empty of this InlineResponse2005Geometry. # noqa: E501
:rtype: bool
"""
return self._empty
@empty.setter
def empty(self, empty):
- """Sets the empty of this GeoJSONIsochroneBaseGeometry.
+ """Sets the empty of this InlineResponse2005Geometry.
- :param empty: The empty of this GeoJSONIsochroneBaseGeometry. # noqa: E501
+ :param empty: The empty of this InlineResponse2005Geometry. # noqa: E501
:type: bool
"""
@@ -84,7 +84,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONIsochroneBaseGeometry, dict):
+ if issubclass(InlineResponse2005Geometry, dict):
for key, value in self.items():
result[key] = value
@@ -100,7 +100,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONIsochroneBaseGeometry):
+ if not isinstance(other, InlineResponse2005Geometry):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/isochrones_response_info.py b/openrouteservice/models/inline_response2005_metadata.py
similarity index 70%
rename from openrouteservice/models/isochrones_response_info.py
rename to openrouteservice/models/inline_response2005_metadata.py
index a8649e3c..04a4d31a 100644
--- a/openrouteservice/models/isochrones_response_info.py
+++ b/openrouteservice/models/inline_response2005_metadata.py
@@ -15,7 +15,7 @@
import six
-class IsochronesResponseInfo(object):
+class InlineResponse2005Metadata(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -29,7 +29,7 @@ class IsochronesResponseInfo(object):
"""
swagger_types = {
'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'engine': 'InlineResponse2005MetadataEngine',
'id': 'str',
'osm_file_md5_hash': 'str',
'query': 'IsochronesProfileBody',
@@ -50,7 +50,7 @@ class IsochronesResponseInfo(object):
}
def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """IsochronesResponseInfo - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2005Metadata - a model defined in Swagger""" # noqa: E501
self._attribution = None
self._engine = None
self._id = None
@@ -79,22 +79,22 @@ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=Non
@property
def attribution(self):
- """Gets the attribution of this IsochronesResponseInfo. # noqa: E501
+ """Gets the attribution of this InlineResponse2005Metadata. # noqa: E501
Copyright and attribution information # noqa: E501
- :return: The attribution of this IsochronesResponseInfo. # noqa: E501
+ :return: The attribution of this InlineResponse2005Metadata. # noqa: E501
:rtype: str
"""
return self._attribution
@attribution.setter
def attribution(self, attribution):
- """Sets the attribution of this IsochronesResponseInfo.
+ """Sets the attribution of this InlineResponse2005Metadata.
Copyright and attribution information # noqa: E501
- :param attribution: The attribution of this IsochronesResponseInfo. # noqa: E501
+ :param attribution: The attribution of this InlineResponse2005Metadata. # noqa: E501
:type: str
"""
@@ -102,43 +102,43 @@ def attribution(self, attribution):
@property
def engine(self):
- """Gets the engine of this IsochronesResponseInfo. # noqa: E501
+ """Gets the engine of this InlineResponse2005Metadata. # noqa: E501
- :return: The engine of this IsochronesResponseInfo. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
+ :return: The engine of this InlineResponse2005Metadata. # noqa: E501
+ :rtype: InlineResponse2005MetadataEngine
"""
return self._engine
@engine.setter
def engine(self, engine):
- """Sets the engine of this IsochronesResponseInfo.
+ """Sets the engine of this InlineResponse2005Metadata.
- :param engine: The engine of this IsochronesResponseInfo. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
+ :param engine: The engine of this InlineResponse2005Metadata. # noqa: E501
+ :type: InlineResponse2005MetadataEngine
"""
self._engine = engine
@property
def id(self):
- """Gets the id of this IsochronesResponseInfo. # noqa: E501
+ """Gets the id of this InlineResponse2005Metadata. # noqa: E501
ID of the request (as passed in by the query) # noqa: E501
- :return: The id of this IsochronesResponseInfo. # noqa: E501
+ :return: The id of this InlineResponse2005Metadata. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
- """Sets the id of this IsochronesResponseInfo.
+ """Sets the id of this InlineResponse2005Metadata.
ID of the request (as passed in by the query) # noqa: E501
- :param id: The id of this IsochronesResponseInfo. # noqa: E501
+ :param id: The id of this InlineResponse2005Metadata. # noqa: E501
:type: str
"""
@@ -146,22 +146,22 @@ def id(self, id):
@property
def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+ """Gets the osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :return: The osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+ :return: The osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
:rtype: str
"""
return self._osm_file_md5_hash
@osm_file_md5_hash.setter
def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this IsochronesResponseInfo.
+ """Sets the osm_file_md5_hash of this InlineResponse2005Metadata.
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :param osm_file_md5_hash: The osm_file_md5_hash of this IsochronesResponseInfo. # noqa: E501
+ :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
:type: str
"""
@@ -169,20 +169,20 @@ def osm_file_md5_hash(self, osm_file_md5_hash):
@property
def query(self):
- """Gets the query of this IsochronesResponseInfo. # noqa: E501
+ """Gets the query of this InlineResponse2005Metadata. # noqa: E501
- :return: The query of this IsochronesResponseInfo. # noqa: E501
+ :return: The query of this InlineResponse2005Metadata. # noqa: E501
:rtype: IsochronesProfileBody
"""
return self._query
@query.setter
def query(self, query):
- """Sets the query of this IsochronesResponseInfo.
+ """Sets the query of this InlineResponse2005Metadata.
- :param query: The query of this IsochronesResponseInfo. # noqa: E501
+ :param query: The query of this InlineResponse2005Metadata. # noqa: E501
:type: IsochronesProfileBody
"""
@@ -190,22 +190,22 @@ def query(self, query):
@property
def service(self):
- """Gets the service of this IsochronesResponseInfo. # noqa: E501
+ """Gets the service of this InlineResponse2005Metadata. # noqa: E501
The service that was requested # noqa: E501
- :return: The service of this IsochronesResponseInfo. # noqa: E501
+ :return: The service of this InlineResponse2005Metadata. # noqa: E501
:rtype: str
"""
return self._service
@service.setter
def service(self, service):
- """Sets the service of this IsochronesResponseInfo.
+ """Sets the service of this InlineResponse2005Metadata.
The service that was requested # noqa: E501
- :param service: The service of this IsochronesResponseInfo. # noqa: E501
+ :param service: The service of this InlineResponse2005Metadata. # noqa: E501
:type: str
"""
@@ -213,22 +213,22 @@ def service(self, service):
@property
def system_message(self):
- """Gets the system_message of this IsochronesResponseInfo. # noqa: E501
+ """Gets the system_message of this InlineResponse2005Metadata. # noqa: E501
System message # noqa: E501
- :return: The system_message of this IsochronesResponseInfo. # noqa: E501
+ :return: The system_message of this InlineResponse2005Metadata. # noqa: E501
:rtype: str
"""
return self._system_message
@system_message.setter
def system_message(self, system_message):
- """Sets the system_message of this IsochronesResponseInfo.
+ """Sets the system_message of this InlineResponse2005Metadata.
System message # noqa: E501
- :param system_message: The system_message of this IsochronesResponseInfo. # noqa: E501
+ :param system_message: The system_message of this InlineResponse2005Metadata. # noqa: E501
:type: str
"""
@@ -236,22 +236,22 @@ def system_message(self, system_message):
@property
def timestamp(self):
- """Gets the timestamp of this IsochronesResponseInfo. # noqa: E501
+ """Gets the timestamp of this InlineResponse2005Metadata. # noqa: E501
Time that the request was made (UNIX Epoch time) # noqa: E501
- :return: The timestamp of this IsochronesResponseInfo. # noqa: E501
+ :return: The timestamp of this InlineResponse2005Metadata. # noqa: E501
:rtype: int
"""
return self._timestamp
@timestamp.setter
def timestamp(self, timestamp):
- """Sets the timestamp of this IsochronesResponseInfo.
+ """Sets the timestamp of this InlineResponse2005Metadata.
Time that the request was made (UNIX Epoch time) # noqa: E501
- :param timestamp: The timestamp of this IsochronesResponseInfo. # noqa: E501
+ :param timestamp: The timestamp of this InlineResponse2005Metadata. # noqa: E501
:type: int
"""
@@ -278,7 +278,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(IsochronesResponseInfo, dict):
+ if issubclass(InlineResponse2005Metadata, dict):
for key, value in self.items():
result[key] = value
@@ -294,7 +294,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, IsochronesResponseInfo):
+ if not isinstance(other, InlineResponse2005Metadata):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/engine_info.py b/openrouteservice/models/inline_response2005_metadata_engine.py
similarity index 76%
rename from openrouteservice/models/engine_info.py
rename to openrouteservice/models/inline_response2005_metadata_engine.py
index b472eff2..e405cef1 100644
--- a/openrouteservice/models/engine_info.py
+++ b/openrouteservice/models/inline_response2005_metadata_engine.py
@@ -15,7 +15,7 @@
import six
-class EngineInfo(object):
+class InlineResponse2005MetadataEngine(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class EngineInfo(object):
}
def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E501
- """EngineInfo - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2005MetadataEngine - a model defined in Swagger""" # noqa: E501
self._build_date = None
self._graph_date = None
self._version = None
@@ -54,22 +54,22 @@ def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E50
@property
def build_date(self):
- """Gets the build_date of this EngineInfo. # noqa: E501
+ """Gets the build_date of this InlineResponse2005MetadataEngine. # noqa: E501
The date that the service was last updated # noqa: E501
- :return: The build_date of this EngineInfo. # noqa: E501
+ :return: The build_date of this InlineResponse2005MetadataEngine. # noqa: E501
:rtype: str
"""
return self._build_date
@build_date.setter
def build_date(self, build_date):
- """Sets the build_date of this EngineInfo.
+ """Sets the build_date of this InlineResponse2005MetadataEngine.
The date that the service was last updated # noqa: E501
- :param build_date: The build_date of this EngineInfo. # noqa: E501
+ :param build_date: The build_date of this InlineResponse2005MetadataEngine. # noqa: E501
:type: str
"""
@@ -77,22 +77,22 @@ def build_date(self, build_date):
@property
def graph_date(self):
- """Gets the graph_date of this EngineInfo. # noqa: E501
+ """Gets the graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
The date that the graph data was last updated # noqa: E501
- :return: The graph_date of this EngineInfo. # noqa: E501
+ :return: The graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
:rtype: str
"""
return self._graph_date
@graph_date.setter
def graph_date(self, graph_date):
- """Sets the graph_date of this EngineInfo.
+ """Sets the graph_date of this InlineResponse2005MetadataEngine.
The date that the graph data was last updated # noqa: E501
- :param graph_date: The graph_date of this EngineInfo. # noqa: E501
+ :param graph_date: The graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
:type: str
"""
@@ -100,22 +100,22 @@ def graph_date(self, graph_date):
@property
def version(self):
- """Gets the version of this EngineInfo. # noqa: E501
+ """Gets the version of this InlineResponse2005MetadataEngine. # noqa: E501
The backend version of the openrouteservice that was queried # noqa: E501
- :return: The version of this EngineInfo. # noqa: E501
+ :return: The version of this InlineResponse2005MetadataEngine. # noqa: E501
:rtype: str
"""
return self._version
@version.setter
def version(self, version):
- """Sets the version of this EngineInfo.
+ """Sets the version of this InlineResponse2005MetadataEngine.
The backend version of the openrouteservice that was queried # noqa: E501
- :param version: The version of this EngineInfo. # noqa: E501
+ :param version: The version of this InlineResponse2005MetadataEngine. # noqa: E501
:type: str
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(EngineInfo, dict):
+ if issubclass(InlineResponse2005MetadataEngine, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, EngineInfo):
+ if not isinstance(other, InlineResponse2005MetadataEngine):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/inline_response2006.py b/openrouteservice/models/inline_response2006.py
index 92b3f18d..7e0d9c17 100644
--- a/openrouteservice/models/inline_response2006.py
+++ b/openrouteservice/models/inline_response2006.py
@@ -28,11 +28,11 @@ class InlineResponse2006(object):
and the value is json key in definition.
"""
swagger_types = {
- 'destinations': 'list[MatrixResponseDestinations]',
+ 'destinations': 'list[InlineResponse2006Destinations]',
'distances': 'list[list[float]]',
'durations': 'list[list[float]]',
- 'metadata': 'MatrixResponseMetadata',
- 'sources': 'list[MatrixResponseSources]'
+ 'metadata': 'InlineResponse2006Metadata',
+ 'sources': 'list[InlineResponse2006Sources]'
}
attribute_map = {
@@ -69,7 +69,7 @@ def destinations(self):
The individual destinations of the matrix calculations. # noqa: E501
:return: The destinations of this InlineResponse2006. # noqa: E501
- :rtype: list[MatrixResponseDestinations]
+ :rtype: list[InlineResponse2006Destinations]
"""
return self._destinations
@@ -80,7 +80,7 @@ def destinations(self, destinations):
The individual destinations of the matrix calculations. # noqa: E501
:param destinations: The destinations of this InlineResponse2006. # noqa: E501
- :type: list[MatrixResponseDestinations]
+ :type: list[InlineResponse2006Destinations]
"""
self._destinations = destinations
@@ -137,7 +137,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2006. # noqa: E501
- :rtype: MatrixResponseMetadata
+ :rtype: InlineResponse2006Metadata
"""
return self._metadata
@@ -147,7 +147,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2006. # noqa: E501
- :type: MatrixResponseMetadata
+ :type: InlineResponse2006Metadata
"""
self._metadata = metadata
@@ -159,7 +159,7 @@ def sources(self):
The individual sources of the matrix calculations. # noqa: E501
:return: The sources of this InlineResponse2006. # noqa: E501
- :rtype: list[MatrixResponseSources]
+ :rtype: list[InlineResponse2006Sources]
"""
return self._sources
@@ -170,7 +170,7 @@ def sources(self, sources):
The individual sources of the matrix calculations. # noqa: E501
:param sources: The sources of this InlineResponse2006. # noqa: E501
- :type: list[MatrixResponseSources]
+ :type: list[InlineResponse2006Sources]
"""
self._sources = sources
diff --git a/openrouteservice/models/matrix_response_destinations.py b/openrouteservice/models/inline_response2006_destinations.py
similarity index 78%
rename from openrouteservice/models/matrix_response_destinations.py
rename to openrouteservice/models/inline_response2006_destinations.py
index ee6f4115..228044f9 100644
--- a/openrouteservice/models/matrix_response_destinations.py
+++ b/openrouteservice/models/inline_response2006_destinations.py
@@ -15,7 +15,7 @@
import six
-class MatrixResponseDestinations(object):
+class InlineResponse2006Destinations(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class MatrixResponseDestinations(object):
}
def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """MatrixResponseDestinations - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2006Destinations - a model defined in Swagger""" # noqa: E501
self._location = None
self._name = None
self._snapped_distance = None
@@ -54,22 +54,22 @@ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E5
@property
def location(self):
- """Gets the location of this MatrixResponseDestinations. # noqa: E501
+ """Gets the location of this InlineResponse2006Destinations. # noqa: E501
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :return: The location of this MatrixResponseDestinations. # noqa: E501
+ :return: The location of this InlineResponse2006Destinations. # noqa: E501
:rtype: list[float]
"""
return self._location
@location.setter
def location(self, location):
- """Sets the location of this MatrixResponseDestinations.
+ """Sets the location of this InlineResponse2006Destinations.
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :param location: The location of this MatrixResponseDestinations. # noqa: E501
+ :param location: The location of this InlineResponse2006Destinations. # noqa: E501
:type: list[float]
"""
@@ -77,22 +77,22 @@ def location(self, location):
@property
def name(self):
- """Gets the name of this MatrixResponseDestinations. # noqa: E501
+ """Gets the name of this InlineResponse2006Destinations. # noqa: E501
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :return: The name of this MatrixResponseDestinations. # noqa: E501
+ :return: The name of this InlineResponse2006Destinations. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this MatrixResponseDestinations.
+ """Sets the name of this InlineResponse2006Destinations.
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :param name: The name of this MatrixResponseDestinations. # noqa: E501
+ :param name: The name of this InlineResponse2006Destinations. # noqa: E501
:type: str
"""
@@ -100,22 +100,22 @@ def name(self, name):
@property
def snapped_distance(self):
- """Gets the snapped_distance of this MatrixResponseDestinations. # noqa: E501
+ """Gets the snapped_distance of this InlineResponse2006Destinations. # noqa: E501
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :return: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
+ :return: The snapped_distance of this InlineResponse2006Destinations. # noqa: E501
:rtype: float
"""
return self._snapped_distance
@snapped_distance.setter
def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this MatrixResponseDestinations.
+ """Sets the snapped_distance of this InlineResponse2006Destinations.
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :param snapped_distance: The snapped_distance of this MatrixResponseDestinations. # noqa: E501
+ :param snapped_distance: The snapped_distance of this InlineResponse2006Destinations. # noqa: E501
:type: float
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(MatrixResponseDestinations, dict):
+ if issubclass(InlineResponse2006Destinations, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, MatrixResponseDestinations):
+ if not isinstance(other, InlineResponse2006Destinations):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/matrix_response_metadata.py b/openrouteservice/models/inline_response2006_metadata.py
similarity index 71%
rename from openrouteservice/models/matrix_response_metadata.py
rename to openrouteservice/models/inline_response2006_metadata.py
index f2503eb9..10c64e96 100644
--- a/openrouteservice/models/matrix_response_metadata.py
+++ b/openrouteservice/models/inline_response2006_metadata.py
@@ -15,7 +15,7 @@
import six
-class MatrixResponseMetadata(object):
+class InlineResponse2006Metadata(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -29,7 +29,7 @@ class MatrixResponseMetadata(object):
"""
swagger_types = {
'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'engine': 'InlineResponse2005MetadataEngine',
'id': 'str',
'osm_file_md5_hash': 'str',
'query': 'MatrixProfileBody',
@@ -50,7 +50,7 @@ class MatrixResponseMetadata(object):
}
def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """MatrixResponseMetadata - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2006Metadata - a model defined in Swagger""" # noqa: E501
self._attribution = None
self._engine = None
self._id = None
@@ -79,22 +79,22 @@ def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=Non
@property
def attribution(self):
- """Gets the attribution of this MatrixResponseMetadata. # noqa: E501
+ """Gets the attribution of this InlineResponse2006Metadata. # noqa: E501
Copyright and attribution information # noqa: E501
- :return: The attribution of this MatrixResponseMetadata. # noqa: E501
+ :return: The attribution of this InlineResponse2006Metadata. # noqa: E501
:rtype: str
"""
return self._attribution
@attribution.setter
def attribution(self, attribution):
- """Sets the attribution of this MatrixResponseMetadata.
+ """Sets the attribution of this InlineResponse2006Metadata.
Copyright and attribution information # noqa: E501
- :param attribution: The attribution of this MatrixResponseMetadata. # noqa: E501
+ :param attribution: The attribution of this InlineResponse2006Metadata. # noqa: E501
:type: str
"""
@@ -102,43 +102,43 @@ def attribution(self, attribution):
@property
def engine(self):
- """Gets the engine of this MatrixResponseMetadata. # noqa: E501
+ """Gets the engine of this InlineResponse2006Metadata. # noqa: E501
- :return: The engine of this MatrixResponseMetadata. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
+ :return: The engine of this InlineResponse2006Metadata. # noqa: E501
+ :rtype: InlineResponse2005MetadataEngine
"""
return self._engine
@engine.setter
def engine(self, engine):
- """Sets the engine of this MatrixResponseMetadata.
+ """Sets the engine of this InlineResponse2006Metadata.
- :param engine: The engine of this MatrixResponseMetadata. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
+ :param engine: The engine of this InlineResponse2006Metadata. # noqa: E501
+ :type: InlineResponse2005MetadataEngine
"""
self._engine = engine
@property
def id(self):
- """Gets the id of this MatrixResponseMetadata. # noqa: E501
+ """Gets the id of this InlineResponse2006Metadata. # noqa: E501
ID of the request (as passed in by the query) # noqa: E501
- :return: The id of this MatrixResponseMetadata. # noqa: E501
+ :return: The id of this InlineResponse2006Metadata. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
- """Sets the id of this MatrixResponseMetadata.
+ """Sets the id of this InlineResponse2006Metadata.
ID of the request (as passed in by the query) # noqa: E501
- :param id: The id of this MatrixResponseMetadata. # noqa: E501
+ :param id: The id of this InlineResponse2006Metadata. # noqa: E501
:type: str
"""
@@ -146,22 +146,22 @@ def id(self, id):
@property
def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+ """Gets the osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :return: The osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+ :return: The osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
:rtype: str
"""
return self._osm_file_md5_hash
@osm_file_md5_hash.setter
def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this MatrixResponseMetadata.
+ """Sets the osm_file_md5_hash of this InlineResponse2006Metadata.
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :param osm_file_md5_hash: The osm_file_md5_hash of this MatrixResponseMetadata. # noqa: E501
+ :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
:type: str
"""
@@ -169,20 +169,20 @@ def osm_file_md5_hash(self, osm_file_md5_hash):
@property
def query(self):
- """Gets the query of this MatrixResponseMetadata. # noqa: E501
+ """Gets the query of this InlineResponse2006Metadata. # noqa: E501
- :return: The query of this MatrixResponseMetadata. # noqa: E501
+ :return: The query of this InlineResponse2006Metadata. # noqa: E501
:rtype: MatrixProfileBody
"""
return self._query
@query.setter
def query(self, query):
- """Sets the query of this MatrixResponseMetadata.
+ """Sets the query of this InlineResponse2006Metadata.
- :param query: The query of this MatrixResponseMetadata. # noqa: E501
+ :param query: The query of this InlineResponse2006Metadata. # noqa: E501
:type: MatrixProfileBody
"""
@@ -190,22 +190,22 @@ def query(self, query):
@property
def service(self):
- """Gets the service of this MatrixResponseMetadata. # noqa: E501
+ """Gets the service of this InlineResponse2006Metadata. # noqa: E501
The service that was requested # noqa: E501
- :return: The service of this MatrixResponseMetadata. # noqa: E501
+ :return: The service of this InlineResponse2006Metadata. # noqa: E501
:rtype: str
"""
return self._service
@service.setter
def service(self, service):
- """Sets the service of this MatrixResponseMetadata.
+ """Sets the service of this InlineResponse2006Metadata.
The service that was requested # noqa: E501
- :param service: The service of this MatrixResponseMetadata. # noqa: E501
+ :param service: The service of this InlineResponse2006Metadata. # noqa: E501
:type: str
"""
@@ -213,22 +213,22 @@ def service(self, service):
@property
def system_message(self):
- """Gets the system_message of this MatrixResponseMetadata. # noqa: E501
+ """Gets the system_message of this InlineResponse2006Metadata. # noqa: E501
System message # noqa: E501
- :return: The system_message of this MatrixResponseMetadata. # noqa: E501
+ :return: The system_message of this InlineResponse2006Metadata. # noqa: E501
:rtype: str
"""
return self._system_message
@system_message.setter
def system_message(self, system_message):
- """Sets the system_message of this MatrixResponseMetadata.
+ """Sets the system_message of this InlineResponse2006Metadata.
System message # noqa: E501
- :param system_message: The system_message of this MatrixResponseMetadata. # noqa: E501
+ :param system_message: The system_message of this InlineResponse2006Metadata. # noqa: E501
:type: str
"""
@@ -236,22 +236,22 @@ def system_message(self, system_message):
@property
def timestamp(self):
- """Gets the timestamp of this MatrixResponseMetadata. # noqa: E501
+ """Gets the timestamp of this InlineResponse2006Metadata. # noqa: E501
Time that the request was made (UNIX Epoch time) # noqa: E501
- :return: The timestamp of this MatrixResponseMetadata. # noqa: E501
+ :return: The timestamp of this InlineResponse2006Metadata. # noqa: E501
:rtype: int
"""
return self._timestamp
@timestamp.setter
def timestamp(self, timestamp):
- """Sets the timestamp of this MatrixResponseMetadata.
+ """Sets the timestamp of this InlineResponse2006Metadata.
Time that the request was made (UNIX Epoch time) # noqa: E501
- :param timestamp: The timestamp of this MatrixResponseMetadata. # noqa: E501
+ :param timestamp: The timestamp of this InlineResponse2006Metadata. # noqa: E501
:type: int
"""
@@ -278,7 +278,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(MatrixResponseMetadata, dict):
+ if issubclass(InlineResponse2006Metadata, dict):
for key, value in self.items():
result[key] = value
@@ -294,7 +294,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, MatrixResponseMetadata):
+ if not isinstance(other, InlineResponse2006Metadata):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/snapping_response_locations.py b/openrouteservice/models/inline_response2006_sources.py
similarity index 80%
rename from openrouteservice/models/snapping_response_locations.py
rename to openrouteservice/models/inline_response2006_sources.py
index cb7ecdeb..a7a4a3e0 100644
--- a/openrouteservice/models/snapping_response_locations.py
+++ b/openrouteservice/models/inline_response2006_sources.py
@@ -15,7 +15,7 @@
import six
-class SnappingResponseLocations(object):
+class InlineResponse2006Sources(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class SnappingResponseLocations(object):
}
def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """SnappingResponseLocations - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2006Sources - a model defined in Swagger""" # noqa: E501
self._location = None
self._name = None
self._snapped_distance = None
@@ -54,22 +54,22 @@ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E5
@property
def location(self):
- """Gets the location of this SnappingResponseLocations. # noqa: E501
+ """Gets the location of this InlineResponse2006Sources. # noqa: E501
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :return: The location of this SnappingResponseLocations. # noqa: E501
+ :return: The location of this InlineResponse2006Sources. # noqa: E501
:rtype: list[float]
"""
return self._location
@location.setter
def location(self, location):
- """Sets the location of this SnappingResponseLocations.
+ """Sets the location of this InlineResponse2006Sources.
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :param location: The location of this SnappingResponseLocations. # noqa: E501
+ :param location: The location of this InlineResponse2006Sources. # noqa: E501
:type: list[float]
"""
@@ -77,22 +77,22 @@ def location(self, location):
@property
def name(self):
- """Gets the name of this SnappingResponseLocations. # noqa: E501
+ """Gets the name of this InlineResponse2006Sources. # noqa: E501
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :return: The name of this SnappingResponseLocations. # noqa: E501
+ :return: The name of this InlineResponse2006Sources. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this SnappingResponseLocations.
+ """Sets the name of this InlineResponse2006Sources.
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :param name: The name of this SnappingResponseLocations. # noqa: E501
+ :param name: The name of this InlineResponse2006Sources. # noqa: E501
:type: str
"""
@@ -100,22 +100,22 @@ def name(self, name):
@property
def snapped_distance(self):
- """Gets the snapped_distance of this SnappingResponseLocations. # noqa: E501
+ """Gets the snapped_distance of this InlineResponse2006Sources. # noqa: E501
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :return: The snapped_distance of this SnappingResponseLocations. # noqa: E501
+ :return: The snapped_distance of this InlineResponse2006Sources. # noqa: E501
:rtype: float
"""
return self._snapped_distance
@snapped_distance.setter
def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this SnappingResponseLocations.
+ """Sets the snapped_distance of this InlineResponse2006Sources.
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :param snapped_distance: The snapped_distance of this SnappingResponseLocations. # noqa: E501
+ :param snapped_distance: The snapped_distance of this InlineResponse2006Sources. # noqa: E501
:type: float
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(SnappingResponseLocations, dict):
+ if issubclass(InlineResponse2006Sources, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, SnappingResponseLocations):
+ if not isinstance(other, InlineResponse2006Sources):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/inline_response2007.py b/openrouteservice/models/inline_response2007.py
index a6fdc92e..25217860 100644
--- a/openrouteservice/models/inline_response2007.py
+++ b/openrouteservice/models/inline_response2007.py
@@ -28,8 +28,8 @@ class InlineResponse2007(object):
and the value is json key in definition.
"""
swagger_types = {
- 'locations': 'list[SnappingResponseLocations]',
- 'metadata': 'GeoJSONSnappingResponseMetadata'
+ 'locations': 'list[InlineResponse2007Locations]',
+ 'metadata': 'InlineResponse2007Metadata'
}
attribute_map = {
@@ -54,7 +54,7 @@ def locations(self):
The snapped locations as coordinates and snapping distance. # noqa: E501
:return: The locations of this InlineResponse2007. # noqa: E501
- :rtype: list[SnappingResponseLocations]
+ :rtype: list[InlineResponse2007Locations]
"""
return self._locations
@@ -65,7 +65,7 @@ def locations(self, locations):
The snapped locations as coordinates and snapping distance. # noqa: E501
:param locations: The locations of this InlineResponse2007. # noqa: E501
- :type: list[SnappingResponseLocations]
+ :type: list[InlineResponse2007Locations]
"""
self._locations = locations
@@ -76,7 +76,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2007. # noqa: E501
- :rtype: GeoJSONSnappingResponseMetadata
+ :rtype: InlineResponse2007Metadata
"""
return self._metadata
@@ -86,7 +86,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2007. # noqa: E501
- :type: GeoJSONSnappingResponseMetadata
+ :type: InlineResponse2007Metadata
"""
self._metadata = metadata
diff --git a/openrouteservice/models/json2_d_destinations.py b/openrouteservice/models/inline_response2007_locations.py
similarity index 79%
rename from openrouteservice/models/json2_d_destinations.py
rename to openrouteservice/models/inline_response2007_locations.py
index 3fbed49a..d67d7adf 100644
--- a/openrouteservice/models/json2_d_destinations.py
+++ b/openrouteservice/models/inline_response2007_locations.py
@@ -15,7 +15,7 @@
import six
-class JSON2DDestinations(object):
+class InlineResponse2007Locations(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class JSON2DDestinations(object):
}
def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """JSON2DDestinations - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2007Locations - a model defined in Swagger""" # noqa: E501
self._location = None
self._name = None
self._snapped_distance = None
@@ -54,22 +54,22 @@ def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E5
@property
def location(self):
- """Gets the location of this JSON2DDestinations. # noqa: E501
+ """Gets the location of this InlineResponse2007Locations. # noqa: E501
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :return: The location of this JSON2DDestinations. # noqa: E501
+ :return: The location of this InlineResponse2007Locations. # noqa: E501
:rtype: list[float]
"""
return self._location
@location.setter
def location(self, location):
- """Sets the location of this JSON2DDestinations.
+ """Sets the location of this InlineResponse2007Locations.
{longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
- :param location: The location of this JSON2DDestinations. # noqa: E501
+ :param location: The location of this InlineResponse2007Locations. # noqa: E501
:type: list[float]
"""
@@ -77,22 +77,22 @@ def location(self, location):
@property
def name(self):
- """Gets the name of this JSON2DDestinations. # noqa: E501
+ """Gets the name of this InlineResponse2007Locations. # noqa: E501
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :return: The name of this JSON2DDestinations. # noqa: E501
+ :return: The name of this InlineResponse2007Locations. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this JSON2DDestinations.
+ """Sets the name of this InlineResponse2007Locations.
Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :param name: The name of this JSON2DDestinations. # noqa: E501
+ :param name: The name of this InlineResponse2007Locations. # noqa: E501
:type: str
"""
@@ -100,22 +100,22 @@ def name(self, name):
@property
def snapped_distance(self):
- """Gets the snapped_distance of this JSON2DDestinations. # noqa: E501
+ """Gets the snapped_distance of this InlineResponse2007Locations. # noqa: E501
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :return: The snapped_distance of this JSON2DDestinations. # noqa: E501
+ :return: The snapped_distance of this InlineResponse2007Locations. # noqa: E501
:rtype: float
"""
return self._snapped_distance
@snapped_distance.setter
def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this JSON2DDestinations.
+ """Sets the snapped_distance of this InlineResponse2007Locations.
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :param snapped_distance: The snapped_distance of this JSON2DDestinations. # noqa: E501
+ :param snapped_distance: The snapped_distance of this InlineResponse2007Locations. # noqa: E501
:type: float
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(JSON2DDestinations, dict):
+ if issubclass(InlineResponse2007Locations, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, JSON2DDestinations):
+ if not isinstance(other, InlineResponse2007Locations):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/snapping_response_info.py b/openrouteservice/models/inline_response2007_metadata.py
similarity index 71%
rename from openrouteservice/models/snapping_response_info.py
rename to openrouteservice/models/inline_response2007_metadata.py
index cdc45a44..bde57dfd 100644
--- a/openrouteservice/models/snapping_response_info.py
+++ b/openrouteservice/models/inline_response2007_metadata.py
@@ -15,7 +15,7 @@
import six
-class SnappingResponseInfo(object):
+class InlineResponse2007Metadata(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -29,7 +29,7 @@ class SnappingResponseInfo(object):
"""
swagger_types = {
'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
+ 'engine': 'InlineResponse2005MetadataEngine',
'osm_file_md5_hash': 'str',
'query': 'ProfileJsonBody',
'service': 'str',
@@ -48,7 +48,7 @@ class SnappingResponseInfo(object):
}
def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """SnappingResponseInfo - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2007Metadata - a model defined in Swagger""" # noqa: E501
self._attribution = None
self._engine = None
self._osm_file_md5_hash = None
@@ -74,22 +74,22 @@ def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=
@property
def attribution(self):
- """Gets the attribution of this SnappingResponseInfo. # noqa: E501
+ """Gets the attribution of this InlineResponse2007Metadata. # noqa: E501
Copyright and attribution information # noqa: E501
- :return: The attribution of this SnappingResponseInfo. # noqa: E501
+ :return: The attribution of this InlineResponse2007Metadata. # noqa: E501
:rtype: str
"""
return self._attribution
@attribution.setter
def attribution(self, attribution):
- """Sets the attribution of this SnappingResponseInfo.
+ """Sets the attribution of this InlineResponse2007Metadata.
Copyright and attribution information # noqa: E501
- :param attribution: The attribution of this SnappingResponseInfo. # noqa: E501
+ :param attribution: The attribution of this InlineResponse2007Metadata. # noqa: E501
:type: str
"""
@@ -97,43 +97,43 @@ def attribution(self, attribution):
@property
def engine(self):
- """Gets the engine of this SnappingResponseInfo. # noqa: E501
+ """Gets the engine of this InlineResponse2007Metadata. # noqa: E501
- :return: The engine of this SnappingResponseInfo. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
+ :return: The engine of this InlineResponse2007Metadata. # noqa: E501
+ :rtype: InlineResponse2005MetadataEngine
"""
return self._engine
@engine.setter
def engine(self, engine):
- """Sets the engine of this SnappingResponseInfo.
+ """Sets the engine of this InlineResponse2007Metadata.
- :param engine: The engine of this SnappingResponseInfo. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
+ :param engine: The engine of this InlineResponse2007Metadata. # noqa: E501
+ :type: InlineResponse2005MetadataEngine
"""
self._engine = engine
@property
def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+ """Gets the osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :return: The osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+ :return: The osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
:rtype: str
"""
return self._osm_file_md5_hash
@osm_file_md5_hash.setter
def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this SnappingResponseInfo.
+ """Sets the osm_file_md5_hash of this InlineResponse2007Metadata.
The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
- :param osm_file_md5_hash: The osm_file_md5_hash of this SnappingResponseInfo. # noqa: E501
+ :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
:type: str
"""
@@ -141,20 +141,20 @@ def osm_file_md5_hash(self, osm_file_md5_hash):
@property
def query(self):
- """Gets the query of this SnappingResponseInfo. # noqa: E501
+ """Gets the query of this InlineResponse2007Metadata. # noqa: E501
- :return: The query of this SnappingResponseInfo. # noqa: E501
+ :return: The query of this InlineResponse2007Metadata. # noqa: E501
:rtype: ProfileJsonBody
"""
return self._query
@query.setter
def query(self, query):
- """Sets the query of this SnappingResponseInfo.
+ """Sets the query of this InlineResponse2007Metadata.
- :param query: The query of this SnappingResponseInfo. # noqa: E501
+ :param query: The query of this InlineResponse2007Metadata. # noqa: E501
:type: ProfileJsonBody
"""
@@ -162,22 +162,22 @@ def query(self, query):
@property
def service(self):
- """Gets the service of this SnappingResponseInfo. # noqa: E501
+ """Gets the service of this InlineResponse2007Metadata. # noqa: E501
The service that was requested # noqa: E501
- :return: The service of this SnappingResponseInfo. # noqa: E501
+ :return: The service of this InlineResponse2007Metadata. # noqa: E501
:rtype: str
"""
return self._service
@service.setter
def service(self, service):
- """Sets the service of this SnappingResponseInfo.
+ """Sets the service of this InlineResponse2007Metadata.
The service that was requested # noqa: E501
- :param service: The service of this SnappingResponseInfo. # noqa: E501
+ :param service: The service of this InlineResponse2007Metadata. # noqa: E501
:type: str
"""
@@ -185,22 +185,22 @@ def service(self, service):
@property
def system_message(self):
- """Gets the system_message of this SnappingResponseInfo. # noqa: E501
+ """Gets the system_message of this InlineResponse2007Metadata. # noqa: E501
System message # noqa: E501
- :return: The system_message of this SnappingResponseInfo. # noqa: E501
+ :return: The system_message of this InlineResponse2007Metadata. # noqa: E501
:rtype: str
"""
return self._system_message
@system_message.setter
def system_message(self, system_message):
- """Sets the system_message of this SnappingResponseInfo.
+ """Sets the system_message of this InlineResponse2007Metadata.
System message # noqa: E501
- :param system_message: The system_message of this SnappingResponseInfo. # noqa: E501
+ :param system_message: The system_message of this InlineResponse2007Metadata. # noqa: E501
:type: str
"""
@@ -208,22 +208,22 @@ def system_message(self, system_message):
@property
def timestamp(self):
- """Gets the timestamp of this SnappingResponseInfo. # noqa: E501
+ """Gets the timestamp of this InlineResponse2007Metadata. # noqa: E501
Time that the request was made (UNIX Epoch time) # noqa: E501
- :return: The timestamp of this SnappingResponseInfo. # noqa: E501
+ :return: The timestamp of this InlineResponse2007Metadata. # noqa: E501
:rtype: int
"""
return self._timestamp
@timestamp.setter
def timestamp(self, timestamp):
- """Sets the timestamp of this SnappingResponseInfo.
+ """Sets the timestamp of this InlineResponse2007Metadata.
Time that the request was made (UNIX Epoch time) # noqa: E501
- :param timestamp: The timestamp of this SnappingResponseInfo. # noqa: E501
+ :param timestamp: The timestamp of this InlineResponse2007Metadata. # noqa: E501
:type: int
"""
@@ -250,7 +250,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(SnappingResponseInfo, dict):
+ if issubclass(InlineResponse2007Metadata, dict):
for key, value in self.items():
result[key] = value
@@ -266,7 +266,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, SnappingResponseInfo):
+ if not isinstance(other, InlineResponse2007Metadata):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/inline_response2008.py b/openrouteservice/models/inline_response2008.py
index cb315b72..ea5818aa 100644
--- a/openrouteservice/models/inline_response2008.py
+++ b/openrouteservice/models/inline_response2008.py
@@ -29,8 +29,8 @@ class InlineResponse2008(object):
"""
swagger_types = {
'bbox': 'list[float]',
- 'features': 'list[GeoJSONSnappingResponseFeatures]',
- 'metadata': 'GeoJSONSnappingResponseMetadata',
+ 'features': 'list[InlineResponse2008Features]',
+ 'metadata': 'InlineResponse2007Metadata',
'type': 'str'
}
@@ -87,7 +87,7 @@ def features(self):
Information about the service and request # noqa: E501
:return: The features of this InlineResponse2008. # noqa: E501
- :rtype: list[GeoJSONSnappingResponseFeatures]
+ :rtype: list[InlineResponse2008Features]
"""
return self._features
@@ -98,7 +98,7 @@ def features(self, features):
Information about the service and request # noqa: E501
:param features: The features of this InlineResponse2008. # noqa: E501
- :type: list[GeoJSONSnappingResponseFeatures]
+ :type: list[InlineResponse2008Features]
"""
self._features = features
@@ -109,7 +109,7 @@ def metadata(self):
:return: The metadata of this InlineResponse2008. # noqa: E501
- :rtype: GeoJSONSnappingResponseMetadata
+ :rtype: InlineResponse2007Metadata
"""
return self._metadata
@@ -119,7 +119,7 @@ def metadata(self, metadata):
:param metadata: The metadata of this InlineResponse2008. # noqa: E501
- :type: GeoJSONSnappingResponseMetadata
+ :type: InlineResponse2007Metadata
"""
self._metadata = metadata
diff --git a/openrouteservice/models/geo_json_feature.py b/openrouteservice/models/inline_response2008_features.py
similarity index 71%
rename from openrouteservice/models/geo_json_feature.py
rename to openrouteservice/models/inline_response2008_features.py
index e5c4e1b8..04b1e203 100644
--- a/openrouteservice/models/geo_json_feature.py
+++ b/openrouteservice/models/inline_response2008_features.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONFeature(object):
+class InlineResponse2008Features(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -28,8 +28,8 @@ class GeoJSONFeature(object):
and the value is json key in definition.
"""
swagger_types = {
- 'geometry': 'GeoJSONFeatureGeometry',
- 'properties': 'GeoJSONFeatureProperties',
+ 'geometry': 'InlineResponse2008Geometry',
+ 'properties': 'InlineResponse2008Properties',
'type': 'str'
}
@@ -40,7 +40,7 @@ class GeoJSONFeature(object):
}
def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E501
- """GeoJSONFeature - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2008Features - a model defined in Swagger""" # noqa: E501
self._geometry = None
self._properties = None
self._type = None
@@ -54,64 +54,64 @@ def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E50
@property
def geometry(self):
- """Gets the geometry of this GeoJSONFeature. # noqa: E501
+ """Gets the geometry of this InlineResponse2008Features. # noqa: E501
- :return: The geometry of this GeoJSONFeature. # noqa: E501
- :rtype: GeoJSONFeatureGeometry
+ :return: The geometry of this InlineResponse2008Features. # noqa: E501
+ :rtype: InlineResponse2008Geometry
"""
return self._geometry
@geometry.setter
def geometry(self, geometry):
- """Sets the geometry of this GeoJSONFeature.
+ """Sets the geometry of this InlineResponse2008Features.
- :param geometry: The geometry of this GeoJSONFeature. # noqa: E501
- :type: GeoJSONFeatureGeometry
+ :param geometry: The geometry of this InlineResponse2008Features. # noqa: E501
+ :type: InlineResponse2008Geometry
"""
self._geometry = geometry
@property
def properties(self):
- """Gets the properties of this GeoJSONFeature. # noqa: E501
+ """Gets the properties of this InlineResponse2008Features. # noqa: E501
- :return: The properties of this GeoJSONFeature. # noqa: E501
- :rtype: GeoJSONFeatureProperties
+ :return: The properties of this InlineResponse2008Features. # noqa: E501
+ :rtype: InlineResponse2008Properties
"""
return self._properties
@properties.setter
def properties(self, properties):
- """Sets the properties of this GeoJSONFeature.
+ """Sets the properties of this InlineResponse2008Features.
- :param properties: The properties of this GeoJSONFeature. # noqa: E501
- :type: GeoJSONFeatureProperties
+ :param properties: The properties of this InlineResponse2008Features. # noqa: E501
+ :type: InlineResponse2008Properties
"""
self._properties = properties
@property
def type(self):
- """Gets the type of this GeoJSONFeature. # noqa: E501
+ """Gets the type of this InlineResponse2008Features. # noqa: E501
GeoJSON type # noqa: E501
- :return: The type of this GeoJSONFeature. # noqa: E501
+ :return: The type of this InlineResponse2008Features. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
- """Sets the type of this GeoJSONFeature.
+ """Sets the type of this InlineResponse2008Features.
GeoJSON type # noqa: E501
- :param type: The type of this GeoJSONFeature. # noqa: E501
+ :param type: The type of this InlineResponse2008Features. # noqa: E501
:type: str
"""
@@ -138,7 +138,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONFeature, dict):
+ if issubclass(InlineResponse2008Features, dict):
for key, value in self.items():
result[key] = value
@@ -154,7 +154,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONFeature):
+ if not isinstance(other, InlineResponse2008Features):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/geo_json_point_geometry.py b/openrouteservice/models/inline_response2008_geometry.py
similarity index 80%
rename from openrouteservice/models/geo_json_point_geometry.py
rename to openrouteservice/models/inline_response2008_geometry.py
index 4b50df42..19a58619 100644
--- a/openrouteservice/models/geo_json_point_geometry.py
+++ b/openrouteservice/models/inline_response2008_geometry.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONPointGeometry(object):
+class InlineResponse2008Geometry(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -38,7 +38,7 @@ class GeoJSONPointGeometry(object):
}
def __init__(self, coordinates=None, type='Point'): # noqa: E501
- """GeoJSONPointGeometry - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2008Geometry - a model defined in Swagger""" # noqa: E501
self._coordinates = None
self._type = None
self.discriminator = None
@@ -49,22 +49,22 @@ def __init__(self, coordinates=None, type='Point'): # noqa: E501
@property
def coordinates(self):
- """Gets the coordinates of this GeoJSONPointGeometry. # noqa: E501
+ """Gets the coordinates of this InlineResponse2008Geometry. # noqa: E501
Lon/Lat coordinates of the snapped location # noqa: E501
- :return: The coordinates of this GeoJSONPointGeometry. # noqa: E501
+ :return: The coordinates of this InlineResponse2008Geometry. # noqa: E501
:rtype: list[float]
"""
return self._coordinates
@coordinates.setter
def coordinates(self, coordinates):
- """Sets the coordinates of this GeoJSONPointGeometry.
+ """Sets the coordinates of this InlineResponse2008Geometry.
Lon/Lat coordinates of the snapped location # noqa: E501
- :param coordinates: The coordinates of this GeoJSONPointGeometry. # noqa: E501
+ :param coordinates: The coordinates of this InlineResponse2008Geometry. # noqa: E501
:type: list[float]
"""
@@ -72,22 +72,22 @@ def coordinates(self, coordinates):
@property
def type(self):
- """Gets the type of this GeoJSONPointGeometry. # noqa: E501
+ """Gets the type of this InlineResponse2008Geometry. # noqa: E501
GeoJSON type # noqa: E501
- :return: The type of this GeoJSONPointGeometry. # noqa: E501
+ :return: The type of this InlineResponse2008Geometry. # noqa: E501
:rtype: str
"""
return self._type
@type.setter
def type(self, type):
- """Sets the type of this GeoJSONPointGeometry.
+ """Sets the type of this InlineResponse2008Geometry.
GeoJSON type # noqa: E501
- :param type: The type of this GeoJSONPointGeometry. # noqa: E501
+ :param type: The type of this InlineResponse2008Geometry. # noqa: E501
:type: str
"""
@@ -114,7 +114,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONPointGeometry, dict):
+ if issubclass(InlineResponse2008Geometry, dict):
for key, value in self.items():
result[key] = value
@@ -130,7 +130,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONPointGeometry):
+ if not isinstance(other, InlineResponse2008Geometry):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/geo_json_feature_properties.py b/openrouteservice/models/inline_response2008_properties.py
similarity index 78%
rename from openrouteservice/models/geo_json_feature_properties.py
rename to openrouteservice/models/inline_response2008_properties.py
index 6c1c2d27..1f52e0c7 100644
--- a/openrouteservice/models/geo_json_feature_properties.py
+++ b/openrouteservice/models/inline_response2008_properties.py
@@ -15,7 +15,7 @@
import six
-class GeoJSONFeatureProperties(object):
+class InlineResponse2008Properties(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -40,7 +40,7 @@ class GeoJSONFeatureProperties(object):
}
def __init__(self, name=None, snapped_distance=None, source_id=None): # noqa: E501
- """GeoJSONFeatureProperties - a model defined in Swagger""" # noqa: E501
+ """InlineResponse2008Properties - a model defined in Swagger""" # noqa: E501
self._name = None
self._snapped_distance = None
self._source_id = None
@@ -54,22 +54,22 @@ def __init__(self, name=None, snapped_distance=None, source_id=None): # noqa: E
@property
def name(self):
- """Gets the name of this GeoJSONFeatureProperties. # noqa: E501
+ """Gets the name of this InlineResponse2008Properties. # noqa: E501
\"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :return: The name of this GeoJSONFeatureProperties. # noqa: E501
+ :return: The name of this InlineResponse2008Properties. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this GeoJSONFeatureProperties.
+ """Sets the name of this InlineResponse2008Properties.
\"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
- :param name: The name of this GeoJSONFeatureProperties. # noqa: E501
+ :param name: The name of this InlineResponse2008Properties. # noqa: E501
:type: str
"""
@@ -77,22 +77,22 @@ def name(self, name):
@property
def snapped_distance(self):
- """Gets the snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+ """Gets the snapped_distance of this InlineResponse2008Properties. # noqa: E501
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :return: The snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+ :return: The snapped_distance of this InlineResponse2008Properties. # noqa: E501
:rtype: float
"""
return self._snapped_distance
@snapped_distance.setter
def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this GeoJSONFeatureProperties.
+ """Sets the snapped_distance of this InlineResponse2008Properties.
Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
- :param snapped_distance: The snapped_distance of this GeoJSONFeatureProperties. # noqa: E501
+ :param snapped_distance: The snapped_distance of this InlineResponse2008Properties. # noqa: E501
:type: float
"""
@@ -100,22 +100,22 @@ def snapped_distance(self, snapped_distance):
@property
def source_id(self):
- """Gets the source_id of this GeoJSONFeatureProperties. # noqa: E501
+ """Gets the source_id of this InlineResponse2008Properties. # noqa: E501
Index of the requested location # noqa: E501
- :return: The source_id of this GeoJSONFeatureProperties. # noqa: E501
+ :return: The source_id of this InlineResponse2008Properties. # noqa: E501
:rtype: int
"""
return self._source_id
@source_id.setter
def source_id(self, source_id):
- """Sets the source_id of this GeoJSONFeatureProperties.
+ """Sets the source_id of this InlineResponse2008Properties.
Index of the requested location # noqa: E501
- :param source_id: The source_id of this GeoJSONFeatureProperties. # noqa: E501
+ :param source_id: The source_id of this InlineResponse2008Properties. # noqa: E501
:type: int
"""
@@ -142,7 +142,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(GeoJSONFeatureProperties, dict):
+ if issubclass(InlineResponse2008Properties, dict):
for key, value in self.items():
result[key] = value
@@ -158,7 +158,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONFeatureProperties):
+ if not isinstance(other, InlineResponse2008Properties):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/isochrones_request.py b/openrouteservice/models/isochrones_request.py
deleted file mode 100644
index 05e921db..00000000
--- a/openrouteservice/models/isochrones_request.py
+++ /dev/null
@@ -1,451 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class IsochronesRequest(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'area_units': 'str',
- 'attributes': 'list[str]',
- 'id': 'str',
- 'intersections': 'bool',
- 'interval': 'float',
- 'location_type': 'str',
- 'locations': 'list[list[float]]',
- 'options': 'RouteOptions',
- 'range': 'list[float]',
- 'range_type': 'str',
- 'smoothing': 'float',
- 'units': 'str'
- }
-
- attribute_map = {
- 'area_units': 'area_units',
- 'attributes': 'attributes',
- 'id': 'id',
- 'intersections': 'intersections',
- 'interval': 'interval',
- 'location_type': 'location_type',
- 'locations': 'locations',
- 'options': 'options',
- 'range': 'range',
- 'range_type': 'range_type',
- 'smoothing': 'smoothing',
- 'units': 'units'
- }
-
- def __init__(self, area_units='m', attributes=None, id=None, intersections=False, interval=None, location_type='start', locations=None, options=None, range=None, range_type='time', smoothing=None, units='m'): # noqa: E501
- """IsochronesRequest - a model defined in Swagger""" # noqa: E501
- self._area_units = None
- self._attributes = None
- self._id = None
- self._intersections = None
- self._interval = None
- self._location_type = None
- self._locations = None
- self._options = None
- self._range = None
- self._range_type = None
- self._smoothing = None
- self._units = None
- self.discriminator = None
- if area_units is not None:
- self.area_units = area_units
- if attributes is not None:
- self.attributes = attributes
- if id is not None:
- self.id = id
- if intersections is not None:
- self.intersections = intersections
- if interval is not None:
- self.interval = interval
- if location_type is not None:
- self.location_type = location_type
- self.locations = locations
- if options is not None:
- self.options = options
- self.range = range
- if range_type is not None:
- self.range_type = range_type
- if smoothing is not None:
- self.smoothing = smoothing
- if units is not None:
- self.units = units
-
- @property
- def area_units(self):
- """Gets the area_units of this IsochronesRequest. # noqa: E501
-
- Specifies the area unit. Default: m. # noqa: E501
-
- :return: The area_units of this IsochronesRequest. # noqa: E501
- :rtype: str
- """
- return self._area_units
-
- @area_units.setter
- def area_units(self, area_units):
- """Sets the area_units of this IsochronesRequest.
-
- Specifies the area unit. Default: m. # noqa: E501
-
- :param area_units: The area_units of this IsochronesRequest. # noqa: E501
- :type: str
- """
- allowed_values = ["m", "km", "mi"] # noqa: E501
- if area_units not in allowed_values:
- raise ValueError(
- "Invalid value for `area_units` ({0}), must be one of {1}" # noqa: E501
- .format(area_units, allowed_values)
- )
-
- self._area_units = area_units
-
- @property
- def attributes(self):
- """Gets the attributes of this IsochronesRequest. # noqa: E501
-
- List of isochrones attributes # noqa: E501
-
- :return: The attributes of this IsochronesRequest. # noqa: E501
- :rtype: list[str]
- """
- return self._attributes
-
- @attributes.setter
- def attributes(self, attributes):
- """Sets the attributes of this IsochronesRequest.
-
- List of isochrones attributes # noqa: E501
-
- :param attributes: The attributes of this IsochronesRequest. # noqa: E501
- :type: list[str]
- """
- allowed_values = ["area", "reachfactor", "total_pop"] # noqa: E501
- if not set(attributes).issubset(set(allowed_values)):
- raise ValueError(
- "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
- .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
- ", ".join(map(str, allowed_values)))
- )
-
- self._attributes = attributes
-
- @property
- def id(self):
- """Gets the id of this IsochronesRequest. # noqa: E501
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :return: The id of this IsochronesRequest. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this IsochronesRequest.
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :param id: The id of this IsochronesRequest. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def intersections(self):
- """Gets the intersections of this IsochronesRequest. # noqa: E501
-
- Specifies whether to return intersecting polygons. # noqa: E501
-
- :return: The intersections of this IsochronesRequest. # noqa: E501
- :rtype: bool
- """
- return self._intersections
-
- @intersections.setter
- def intersections(self, intersections):
- """Sets the intersections of this IsochronesRequest.
-
- Specifies whether to return intersecting polygons. # noqa: E501
-
- :param intersections: The intersections of this IsochronesRequest. # noqa: E501
- :type: bool
- """
-
- self._intersections = intersections
-
- @property
- def interval(self):
- """Gets the interval of this IsochronesRequest. # noqa: E501
-
- Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
-
- :return: The interval of this IsochronesRequest. # noqa: E501
- :rtype: float
- """
- return self._interval
-
- @interval.setter
- def interval(self, interval):
- """Sets the interval of this IsochronesRequest.
-
- Interval of isochrones or equidistants. This is only used if a single range value is given. Value in **seconds** for time and **meters** for distance. # noqa: E501
-
- :param interval: The interval of this IsochronesRequest. # noqa: E501
- :type: float
- """
-
- self._interval = interval
-
- @property
- def location_type(self):
- """Gets the location_type of this IsochronesRequest. # noqa: E501
-
- `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
-
- :return: The location_type of this IsochronesRequest. # noqa: E501
- :rtype: str
- """
- return self._location_type
-
- @location_type.setter
- def location_type(self, location_type):
- """Sets the location_type of this IsochronesRequest.
-
- `start` treats the location(s) as starting point, `destination` as goal. # noqa: E501
-
- :param location_type: The location_type of this IsochronesRequest. # noqa: E501
- :type: str
- """
- allowed_values = ["start", "destination"] # noqa: E501
- if location_type not in allowed_values:
- raise ValueError(
- "Invalid value for `location_type` ({0}), must be one of {1}" # noqa: E501
- .format(location_type, allowed_values)
- )
-
- self._location_type = location_type
-
- @property
- def locations(self):
- """Gets the locations of this IsochronesRequest. # noqa: E501
-
- The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
-
- :return: The locations of this IsochronesRequest. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._locations
-
- @locations.setter
- def locations(self, locations):
- """Sets the locations of this IsochronesRequest.
-
- The locations to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
-
- :param locations: The locations of this IsochronesRequest. # noqa: E501
- :type: list[list[float]]
- """
- if locations is None:
- raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
-
- self._locations = locations
-
- @property
- def options(self):
- """Gets the options of this IsochronesRequest. # noqa: E501
-
-
- :return: The options of this IsochronesRequest. # noqa: E501
- :rtype: RouteOptions
- """
- return self._options
-
- @options.setter
- def options(self, options):
- """Sets the options of this IsochronesRequest.
-
-
- :param options: The options of this IsochronesRequest. # noqa: E501
- :type: RouteOptions
- """
-
- self._options = options
-
- @property
- def range(self):
- """Gets the range of this IsochronesRequest. # noqa: E501
-
- Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
-
- :return: The range of this IsochronesRequest. # noqa: E501
- :rtype: list[float]
- """
- return self._range
-
- @range.setter
- def range(self, range):
- """Sets the range of this IsochronesRequest.
-
- Maximum range value of the analysis in **seconds** for time and **metres** for distance.Alternatively a comma separated list of specific range values. Ranges will be the same for all locations. # noqa: E501
-
- :param range: The range of this IsochronesRequest. # noqa: E501
- :type: list[float]
- """
- if range is None:
- raise ValueError("Invalid value for `range`, must not be `None`") # noqa: E501
-
- self._range = range
-
- @property
- def range_type(self):
- """Gets the range_type of this IsochronesRequest. # noqa: E501
-
- Specifies the isochrones reachability type. # noqa: E501
-
- :return: The range_type of this IsochronesRequest. # noqa: E501
- :rtype: str
- """
- return self._range_type
-
- @range_type.setter
- def range_type(self, range_type):
- """Sets the range_type of this IsochronesRequest.
-
- Specifies the isochrones reachability type. # noqa: E501
-
- :param range_type: The range_type of this IsochronesRequest. # noqa: E501
- :type: str
- """
- allowed_values = ["time", "distance"] # noqa: E501
- if range_type not in allowed_values:
- raise ValueError(
- "Invalid value for `range_type` ({0}), must be one of {1}" # noqa: E501
- .format(range_type, allowed_values)
- )
-
- self._range_type = range_type
-
- @property
- def smoothing(self):
- """Gets the smoothing of this IsochronesRequest. # noqa: E501
-
- Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
-
- :return: The smoothing of this IsochronesRequest. # noqa: E501
- :rtype: float
- """
- return self._smoothing
-
- @smoothing.setter
- def smoothing(self, smoothing):
- """Sets the smoothing of this IsochronesRequest.
-
- Applies a level of generalisation to the isochrone polygons generated as a `smoothing_factor` between `0` and `100.0`. Generalisation is produced by determining a maximum length of a connecting line between two points found on the outside of a containing polygon. If the distance is larger than a threshold value, the line between the two points is removed and a smaller connecting line between other points is used. Note that the minimum length of this connecting line is ~1333m, and so when the `smoothing_factor` results in a distance smaller than this, the minimum value is used. The threshold value is determined as `(maximum_radius_of_isochrone / 100) * smoothing_factor`. Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is based on Duckham and al. (2008) `\"Efficient generation of simple polygons for characterizing the shape of a set of points in the plane.\"` # noqa: E501
-
- :param smoothing: The smoothing of this IsochronesRequest. # noqa: E501
- :type: float
- """
-
- self._smoothing = smoothing
-
- @property
- def units(self):
- """Gets the units of this IsochronesRequest. # noqa: E501
-
- Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
-
- :return: The units of this IsochronesRequest. # noqa: E501
- :rtype: str
- """
- return self._units
-
- @units.setter
- def units(self, units):
- """Sets the units of this IsochronesRequest.
-
- Specifies the distance units only if `range_type` is set to distance. Default: m. # noqa: E501
-
- :param units: The units of this IsochronesRequest. # noqa: E501
- :type: str
- """
- allowed_values = ["m", "km", "mi"] # noqa: E501
- if units not in allowed_values:
- raise ValueError(
- "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
- .format(units, allowed_values)
- )
-
- self._units = units
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(IsochronesRequest, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, IsochronesRequest):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json2_d_sources.py b/openrouteservice/models/json2_d_sources.py
deleted file mode 100644
index cfd4b7a6..00000000
--- a/openrouteservice/models/json2_d_sources.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSON2DSources(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """JSON2DSources - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this JSON2DSources. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this JSON2DSources. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JSON2DSources.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this JSON2DSources. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this JSON2DSources. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this JSON2DSources. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this JSON2DSources.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this JSON2DSources. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this JSON2DSources. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this JSON2DSources. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this JSON2DSources.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this JSON2DSources. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSON2DSources, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSON2DSources):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_edge.py b/openrouteservice/models/json_edge.py
deleted file mode 100644
index 0dec9bc8..00000000
--- a/openrouteservice/models/json_edge.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonEdge(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'from_id': 'int',
- 'to_id': 'int',
- 'weight': 'float'
- }
-
- attribute_map = {
- 'from_id': 'fromId',
- 'to_id': 'toId',
- 'weight': 'weight'
- }
-
- def __init__(self, from_id=None, to_id=None, weight=None): # noqa: E501
- """JsonEdge - a model defined in Swagger""" # noqa: E501
- self._from_id = None
- self._to_id = None
- self._weight = None
- self.discriminator = None
- if from_id is not None:
- self.from_id = from_id
- if to_id is not None:
- self.to_id = to_id
- if weight is not None:
- self.weight = weight
-
- @property
- def from_id(self):
- """Gets the from_id of this JsonEdge. # noqa: E501
-
- Id of the start point of the edge # noqa: E501
-
- :return: The from_id of this JsonEdge. # noqa: E501
- :rtype: int
- """
- return self._from_id
-
- @from_id.setter
- def from_id(self, from_id):
- """Sets the from_id of this JsonEdge.
-
- Id of the start point of the edge # noqa: E501
-
- :param from_id: The from_id of this JsonEdge. # noqa: E501
- :type: int
- """
-
- self._from_id = from_id
-
- @property
- def to_id(self):
- """Gets the to_id of this JsonEdge. # noqa: E501
-
- Id of the end point of the edge # noqa: E501
-
- :return: The to_id of this JsonEdge. # noqa: E501
- :rtype: int
- """
- return self._to_id
-
- @to_id.setter
- def to_id(self, to_id):
- """Sets the to_id of this JsonEdge.
-
- Id of the end point of the edge # noqa: E501
-
- :param to_id: The to_id of this JsonEdge. # noqa: E501
- :type: int
- """
-
- self._to_id = to_id
-
- @property
- def weight(self):
- """Gets the weight of this JsonEdge. # noqa: E501
-
- Weight of the corresponding edge in the given bounding box # noqa: E501
-
- :return: The weight of this JsonEdge. # noqa: E501
- :rtype: float
- """
- return self._weight
-
- @weight.setter
- def weight(self, weight):
- """Sets the weight of this JsonEdge.
-
- Weight of the corresponding edge in the given bounding box # noqa: E501
-
- :param weight: The weight of this JsonEdge. # noqa: E501
- :type: float
- """
-
- self._weight = weight
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonEdge, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonEdge):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_edge_extra.py b/openrouteservice/models/json_edge_extra.py
deleted file mode 100644
index fa493ed9..00000000
--- a/openrouteservice/models/json_edge_extra.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonEdgeExtra(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'edge_id': 'str',
- 'extra': 'object'
- }
-
- attribute_map = {
- 'edge_id': 'edgeId',
- 'extra': 'extra'
- }
-
- def __init__(self, edge_id=None, extra=None): # noqa: E501
- """JsonEdgeExtra - a model defined in Swagger""" # noqa: E501
- self._edge_id = None
- self._extra = None
- self.discriminator = None
- if edge_id is not None:
- self.edge_id = edge_id
- if extra is not None:
- self.extra = extra
-
- @property
- def edge_id(self):
- """Gets the edge_id of this JsonEdgeExtra. # noqa: E501
-
- Id of the corresponding edge in the graph # noqa: E501
-
- :return: The edge_id of this JsonEdgeExtra. # noqa: E501
- :rtype: str
- """
- return self._edge_id
-
- @edge_id.setter
- def edge_id(self, edge_id):
- """Sets the edge_id of this JsonEdgeExtra.
-
- Id of the corresponding edge in the graph # noqa: E501
-
- :param edge_id: The edge_id of this JsonEdgeExtra. # noqa: E501
- :type: str
- """
-
- self._edge_id = edge_id
-
- @property
- def extra(self):
- """Gets the extra of this JsonEdgeExtra. # noqa: E501
-
- Extra info stored on the edge # noqa: E501
-
- :return: The extra of this JsonEdgeExtra. # noqa: E501
- :rtype: object
- """
- return self._extra
-
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this JsonEdgeExtra.
-
- Extra info stored on the edge # noqa: E501
-
- :param extra: The extra of this JsonEdgeExtra. # noqa: E501
- :type: object
- """
-
- self._extra = extra
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonEdgeExtra, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonEdgeExtra):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_export_response.py b/openrouteservice/models/json_export_response.py
deleted file mode 100644
index e533e54d..00000000
--- a/openrouteservice/models/json_export_response.py
+++ /dev/null
@@ -1,240 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonExportResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'edges': 'list[JsonExportResponseEdges]',
- 'edges_count': 'int',
- 'edges_extra': 'list[JsonExportResponseEdgesExtra]',
- 'nodes': 'list[JsonExportResponseNodes]',
- 'nodes_count': 'int',
- 'warning': 'JSONIndividualRouteResponseWarnings'
- }
-
- attribute_map = {
- 'edges': 'edges',
- 'edges_count': 'edges_count',
- 'edges_extra': 'edges_extra',
- 'nodes': 'nodes',
- 'nodes_count': 'nodes_count',
- 'warning': 'warning'
- }
-
- def __init__(self, edges=None, edges_count=None, edges_extra=None, nodes=None, nodes_count=None, warning=None): # noqa: E501
- """JsonExportResponse - a model defined in Swagger""" # noqa: E501
- self._edges = None
- self._edges_count = None
- self._edges_extra = None
- self._nodes = None
- self._nodes_count = None
- self._warning = None
- self.discriminator = None
- if edges is not None:
- self.edges = edges
- if edges_count is not None:
- self.edges_count = edges_count
- if edges_extra is not None:
- self.edges_extra = edges_extra
- if nodes is not None:
- self.nodes = nodes
- if nodes_count is not None:
- self.nodes_count = nodes_count
- if warning is not None:
- self.warning = warning
-
- @property
- def edges(self):
- """Gets the edges of this JsonExportResponse. # noqa: E501
-
-
- :return: The edges of this JsonExportResponse. # noqa: E501
- :rtype: list[JsonExportResponseEdges]
- """
- return self._edges
-
- @edges.setter
- def edges(self, edges):
- """Sets the edges of this JsonExportResponse.
-
-
- :param edges: The edges of this JsonExportResponse. # noqa: E501
- :type: list[JsonExportResponseEdges]
- """
-
- self._edges = edges
-
- @property
- def edges_count(self):
- """Gets the edges_count of this JsonExportResponse. # noqa: E501
-
-
- :return: The edges_count of this JsonExportResponse. # noqa: E501
- :rtype: int
- """
- return self._edges_count
-
- @edges_count.setter
- def edges_count(self, edges_count):
- """Sets the edges_count of this JsonExportResponse.
-
-
- :param edges_count: The edges_count of this JsonExportResponse. # noqa: E501
- :type: int
- """
-
- self._edges_count = edges_count
-
- @property
- def edges_extra(self):
- """Gets the edges_extra of this JsonExportResponse. # noqa: E501
-
-
- :return: The edges_extra of this JsonExportResponse. # noqa: E501
- :rtype: list[JsonExportResponseEdgesExtra]
- """
- return self._edges_extra
-
- @edges_extra.setter
- def edges_extra(self, edges_extra):
- """Sets the edges_extra of this JsonExportResponse.
-
-
- :param edges_extra: The edges_extra of this JsonExportResponse. # noqa: E501
- :type: list[JsonExportResponseEdgesExtra]
- """
-
- self._edges_extra = edges_extra
-
- @property
- def nodes(self):
- """Gets the nodes of this JsonExportResponse. # noqa: E501
-
-
- :return: The nodes of this JsonExportResponse. # noqa: E501
- :rtype: list[JsonExportResponseNodes]
- """
- return self._nodes
-
- @nodes.setter
- def nodes(self, nodes):
- """Sets the nodes of this JsonExportResponse.
-
-
- :param nodes: The nodes of this JsonExportResponse. # noqa: E501
- :type: list[JsonExportResponseNodes]
- """
-
- self._nodes = nodes
-
- @property
- def nodes_count(self):
- """Gets the nodes_count of this JsonExportResponse. # noqa: E501
-
-
- :return: The nodes_count of this JsonExportResponse. # noqa: E501
- :rtype: int
- """
- return self._nodes_count
-
- @nodes_count.setter
- def nodes_count(self, nodes_count):
- """Sets the nodes_count of this JsonExportResponse.
-
-
- :param nodes_count: The nodes_count of this JsonExportResponse. # noqa: E501
- :type: int
- """
-
- self._nodes_count = nodes_count
-
- @property
- def warning(self):
- """Gets the warning of this JsonExportResponse. # noqa: E501
-
-
- :return: The warning of this JsonExportResponse. # noqa: E501
- :rtype: JSONIndividualRouteResponseWarnings
- """
- return self._warning
-
- @warning.setter
- def warning(self, warning):
- """Sets the warning of this JsonExportResponse.
-
-
- :param warning: The warning of this JsonExportResponse. # noqa: E501
- :type: JSONIndividualRouteResponseWarnings
- """
-
- self._warning = warning
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonExportResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonExportResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_export_response_edges.py b/openrouteservice/models/json_export_response_edges.py
deleted file mode 100644
index a56a3e02..00000000
--- a/openrouteservice/models/json_export_response_edges.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonExportResponseEdges(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'from_id': 'int',
- 'to_id': 'int',
- 'weight': 'float'
- }
-
- attribute_map = {
- 'from_id': 'fromId',
- 'to_id': 'toId',
- 'weight': 'weight'
- }
-
- def __init__(self, from_id=None, to_id=None, weight=None): # noqa: E501
- """JsonExportResponseEdges - a model defined in Swagger""" # noqa: E501
- self._from_id = None
- self._to_id = None
- self._weight = None
- self.discriminator = None
- if from_id is not None:
- self.from_id = from_id
- if to_id is not None:
- self.to_id = to_id
- if weight is not None:
- self.weight = weight
-
- @property
- def from_id(self):
- """Gets the from_id of this JsonExportResponseEdges. # noqa: E501
-
- Id of the start point of the edge # noqa: E501
-
- :return: The from_id of this JsonExportResponseEdges. # noqa: E501
- :rtype: int
- """
- return self._from_id
-
- @from_id.setter
- def from_id(self, from_id):
- """Sets the from_id of this JsonExportResponseEdges.
-
- Id of the start point of the edge # noqa: E501
-
- :param from_id: The from_id of this JsonExportResponseEdges. # noqa: E501
- :type: int
- """
-
- self._from_id = from_id
-
- @property
- def to_id(self):
- """Gets the to_id of this JsonExportResponseEdges. # noqa: E501
-
- Id of the end point of the edge # noqa: E501
-
- :return: The to_id of this JsonExportResponseEdges. # noqa: E501
- :rtype: int
- """
- return self._to_id
-
- @to_id.setter
- def to_id(self, to_id):
- """Sets the to_id of this JsonExportResponseEdges.
-
- Id of the end point of the edge # noqa: E501
-
- :param to_id: The to_id of this JsonExportResponseEdges. # noqa: E501
- :type: int
- """
-
- self._to_id = to_id
-
- @property
- def weight(self):
- """Gets the weight of this JsonExportResponseEdges. # noqa: E501
-
- Weight of the corresponding edge in the given bounding box # noqa: E501
-
- :return: The weight of this JsonExportResponseEdges. # noqa: E501
- :rtype: float
- """
- return self._weight
-
- @weight.setter
- def weight(self, weight):
- """Sets the weight of this JsonExportResponseEdges.
-
- Weight of the corresponding edge in the given bounding box # noqa: E501
-
- :param weight: The weight of this JsonExportResponseEdges. # noqa: E501
- :type: float
- """
-
- self._weight = weight
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonExportResponseEdges, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonExportResponseEdges):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_export_response_edges_extra.py b/openrouteservice/models/json_export_response_edges_extra.py
deleted file mode 100644
index 8aa35be1..00000000
--- a/openrouteservice/models/json_export_response_edges_extra.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonExportResponseEdgesExtra(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'edge_id': 'str',
- 'extra': 'object'
- }
-
- attribute_map = {
- 'edge_id': 'edgeId',
- 'extra': 'extra'
- }
-
- def __init__(self, edge_id=None, extra=None): # noqa: E501
- """JsonExportResponseEdgesExtra - a model defined in Swagger""" # noqa: E501
- self._edge_id = None
- self._extra = None
- self.discriminator = None
- if edge_id is not None:
- self.edge_id = edge_id
- if extra is not None:
- self.extra = extra
-
- @property
- def edge_id(self):
- """Gets the edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
-
- Id of the corresponding edge in the graph # noqa: E501
-
- :return: The edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
- :rtype: str
- """
- return self._edge_id
-
- @edge_id.setter
- def edge_id(self, edge_id):
- """Sets the edge_id of this JsonExportResponseEdgesExtra.
-
- Id of the corresponding edge in the graph # noqa: E501
-
- :param edge_id: The edge_id of this JsonExportResponseEdgesExtra. # noqa: E501
- :type: str
- """
-
- self._edge_id = edge_id
-
- @property
- def extra(self):
- """Gets the extra of this JsonExportResponseEdgesExtra. # noqa: E501
-
- Extra info stored on the edge # noqa: E501
-
- :return: The extra of this JsonExportResponseEdgesExtra. # noqa: E501
- :rtype: object
- """
- return self._extra
-
- @extra.setter
- def extra(self, extra):
- """Sets the extra of this JsonExportResponseEdgesExtra.
-
- Extra info stored on the edge # noqa: E501
-
- :param extra: The extra of this JsonExportResponseEdgesExtra. # noqa: E501
- :type: object
- """
-
- self._extra = extra
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonExportResponseEdgesExtra, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonExportResponseEdgesExtra):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_export_response_nodes.py b/openrouteservice/models/json_export_response_nodes.py
deleted file mode 100644
index d5bda9d4..00000000
--- a/openrouteservice/models/json_export_response_nodes.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonExportResponseNodes(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'node_id': 'int'
- }
-
- attribute_map = {
- 'location': 'location',
- 'node_id': 'nodeId'
- }
-
- def __init__(self, location=None, node_id=None): # noqa: E501
- """JsonExportResponseNodes - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._node_id = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if node_id is not None:
- self.node_id = node_id
-
- @property
- def location(self):
- """Gets the location of this JsonExportResponseNodes. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this JsonExportResponseNodes. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JsonExportResponseNodes.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this JsonExportResponseNodes. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def node_id(self):
- """Gets the node_id of this JsonExportResponseNodes. # noqa: E501
-
- Id of the corresponding node in the graph # noqa: E501
-
- :return: The node_id of this JsonExportResponseNodes. # noqa: E501
- :rtype: int
- """
- return self._node_id
-
- @node_id.setter
- def node_id(self, node_id):
- """Sets the node_id of this JsonExportResponseNodes.
-
- Id of the corresponding node in the graph # noqa: E501
-
- :param node_id: The node_id of this JsonExportResponseNodes. # noqa: E501
- :type: int
- """
-
- self._node_id = node_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonExportResponseNodes, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonExportResponseNodes):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response.py b/openrouteservice/models/json_individual_route_response.py
deleted file mode 100644
index e705b6ed..00000000
--- a/openrouteservice/models/json_individual_route_response.py
+++ /dev/null
@@ -1,362 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival': 'datetime',
- 'bbox': 'list[float]',
- 'departure': 'datetime',
- 'extras': 'dict(str, JSONIndividualRouteResponseExtras)',
- 'geometry': 'str',
- 'legs': 'list[JSONIndividualRouteResponseLegs]',
- 'segments': 'list[JSONIndividualRouteResponseSegments]',
- 'summary': 'JSONIndividualRouteResponseSummary',
- 'warnings': 'list[JSONIndividualRouteResponseWarnings]',
- 'way_points': 'list[int]'
- }
-
- attribute_map = {
- 'arrival': 'arrival',
- 'bbox': 'bbox',
- 'departure': 'departure',
- 'extras': 'extras',
- 'geometry': 'geometry',
- 'legs': 'legs',
- 'segments': 'segments',
- 'summary': 'summary',
- 'warnings': 'warnings',
- 'way_points': 'way_points'
- }
-
- def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometry=None, legs=None, segments=None, summary=None, warnings=None, way_points=None): # noqa: E501
- """JSONIndividualRouteResponse - a model defined in Swagger""" # noqa: E501
- self._arrival = None
- self._bbox = None
- self._departure = None
- self._extras = None
- self._geometry = None
- self._legs = None
- self._segments = None
- self._summary = None
- self._warnings = None
- self._way_points = None
- self.discriminator = None
- if arrival is not None:
- self.arrival = arrival
- if bbox is not None:
- self.bbox = bbox
- if departure is not None:
- self.departure = departure
- if extras is not None:
- self.extras = extras
- if geometry is not None:
- self.geometry = geometry
- if legs is not None:
- self.legs = legs
- if segments is not None:
- self.segments = segments
- if summary is not None:
- self.summary = summary
- if warnings is not None:
- self.warnings = warnings
- if way_points is not None:
- self.way_points = way_points
-
- @property
- def arrival(self):
- """Gets the arrival of this JSONIndividualRouteResponse. # noqa: E501
-
- Arrival date and time # noqa: E501
-
- :return: The arrival of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: datetime
- """
- return self._arrival
-
- @arrival.setter
- def arrival(self, arrival):
- """Sets the arrival of this JSONIndividualRouteResponse.
-
- Arrival date and time # noqa: E501
-
- :param arrival: The arrival of this JSONIndividualRouteResponse. # noqa: E501
- :type: datetime
- """
-
- self._arrival = arrival
-
- @property
- def bbox(self):
- """Gets the bbox of this JSONIndividualRouteResponse. # noqa: E501
-
- A bounding box which contains the entire route # noqa: E501
-
- :return: The bbox of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this JSONIndividualRouteResponse.
-
- A bounding box which contains the entire route # noqa: E501
-
- :param bbox: The bbox of this JSONIndividualRouteResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def departure(self):
- """Gets the departure of this JSONIndividualRouteResponse. # noqa: E501
-
- Departure date and time # noqa: E501
-
- :return: The departure of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: datetime
- """
- return self._departure
-
- @departure.setter
- def departure(self, departure):
- """Sets the departure of this JSONIndividualRouteResponse.
-
- Departure date and time # noqa: E501
-
- :param departure: The departure of this JSONIndividualRouteResponse. # noqa: E501
- :type: datetime
- """
-
- self._departure = departure
-
- @property
- def extras(self):
- """Gets the extras of this JSONIndividualRouteResponse. # noqa: E501
-
- List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
-
- :return: The extras of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: dict(str, JSONIndividualRouteResponseExtras)
- """
- return self._extras
-
- @extras.setter
- def extras(self, extras):
- """Sets the extras of this JSONIndividualRouteResponse.
-
- List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
-
- :param extras: The extras of this JSONIndividualRouteResponse. # noqa: E501
- :type: dict(str, JSONIndividualRouteResponseExtras)
- """
-
- self._extras = extras
-
- @property
- def geometry(self):
- """Gets the geometry of this JSONIndividualRouteResponse. # noqa: E501
-
- The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
-
- :return: The geometry of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: str
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this JSONIndividualRouteResponse.
-
- The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
-
- :param geometry: The geometry of this JSONIndividualRouteResponse. # noqa: E501
- :type: str
- """
-
- self._geometry = geometry
-
- @property
- def legs(self):
- """Gets the legs of this JSONIndividualRouteResponse. # noqa: E501
-
- List containing the legs the route consists of. # noqa: E501
-
- :return: The legs of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseLegs]
- """
- return self._legs
-
- @legs.setter
- def legs(self, legs):
- """Sets the legs of this JSONIndividualRouteResponse.
-
- List containing the legs the route consists of. # noqa: E501
-
- :param legs: The legs of this JSONIndividualRouteResponse. # noqa: E501
- :type: list[JSONIndividualRouteResponseLegs]
- """
-
- self._legs = legs
-
- @property
- def segments(self):
- """Gets the segments of this JSONIndividualRouteResponse. # noqa: E501
-
- List containing the segments and its corresponding steps which make up the route. # noqa: E501
-
- :return: The segments of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseSegments]
- """
- return self._segments
-
- @segments.setter
- def segments(self, segments):
- """Sets the segments of this JSONIndividualRouteResponse.
-
- List containing the segments and its corresponding steps which make up the route. # noqa: E501
-
- :param segments: The segments of this JSONIndividualRouteResponse. # noqa: E501
- :type: list[JSONIndividualRouteResponseSegments]
- """
-
- self._segments = segments
-
- @property
- def summary(self):
- """Gets the summary of this JSONIndividualRouteResponse. # noqa: E501
-
-
- :return: The summary of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: JSONIndividualRouteResponseSummary
- """
- return self._summary
-
- @summary.setter
- def summary(self, summary):
- """Sets the summary of this JSONIndividualRouteResponse.
-
-
- :param summary: The summary of this JSONIndividualRouteResponse. # noqa: E501
- :type: JSONIndividualRouteResponseSummary
- """
-
- self._summary = summary
-
- @property
- def warnings(self):
- """Gets the warnings of this JSONIndividualRouteResponse. # noqa: E501
-
- List of warnings that have been generated for the route # noqa: E501
-
- :return: The warnings of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseWarnings]
- """
- return self._warnings
-
- @warnings.setter
- def warnings(self, warnings):
- """Sets the warnings of this JSONIndividualRouteResponse.
-
- List of warnings that have been generated for the route # noqa: E501
-
- :param warnings: The warnings of this JSONIndividualRouteResponse. # noqa: E501
- :type: list[JSONIndividualRouteResponseWarnings]
- """
-
- self._warnings = warnings
-
- @property
- def way_points(self):
- """Gets the way_points of this JSONIndividualRouteResponse. # noqa: E501
-
- List containing the indices of way points corresponding to the *geometry*. # noqa: E501
-
- :return: The way_points of this JSONIndividualRouteResponse. # noqa: E501
- :rtype: list[int]
- """
- return self._way_points
-
- @way_points.setter
- def way_points(self, way_points):
- """Sets the way_points of this JSONIndividualRouteResponse.
-
- List containing the indices of way points corresponding to the *geometry*. # noqa: E501
-
- :param way_points: The way_points of this JSONIndividualRouteResponse. # noqa: E501
- :type: list[int]
- """
-
- self._way_points = way_points
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_extras.py b/openrouteservice/models/json_individual_route_response_extras.py
deleted file mode 100644
index 38a2b7df..00000000
--- a/openrouteservice/models/json_individual_route_response_extras.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseExtras(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'summary': 'list[JSONExtraSummary]',
- 'values': 'list[list[int]]'
- }
-
- attribute_map = {
- 'summary': 'summary',
- 'values': 'values'
- }
-
- def __init__(self, summary=None, values=None): # noqa: E501
- """JSONIndividualRouteResponseExtras - a model defined in Swagger""" # noqa: E501
- self._summary = None
- self._values = None
- self.discriminator = None
- if summary is not None:
- self.summary = summary
- if values is not None:
- self.values = values
-
- @property
- def summary(self):
- """Gets the summary of this JSONIndividualRouteResponseExtras. # noqa: E501
-
- List representing the summary of the extra info items. # noqa: E501
-
- :return: The summary of this JSONIndividualRouteResponseExtras. # noqa: E501
- :rtype: list[JSONExtraSummary]
- """
- return self._summary
-
- @summary.setter
- def summary(self, summary):
- """Sets the summary of this JSONIndividualRouteResponseExtras.
-
- List representing the summary of the extra info items. # noqa: E501
-
- :param summary: The summary of this JSONIndividualRouteResponseExtras. # noqa: E501
- :type: list[JSONExtraSummary]
- """
-
- self._summary = summary
-
- @property
- def values(self):
- """Gets the values of this JSONIndividualRouteResponseExtras. # noqa: E501
-
- A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
-
- :return: The values of this JSONIndividualRouteResponseExtras. # noqa: E501
- :rtype: list[list[int]]
- """
- return self._values
-
- @values.setter
- def values(self, values):
- """Sets the values of this JSONIndividualRouteResponseExtras.
-
- A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
-
- :param values: The values of this JSONIndividualRouteResponseExtras. # noqa: E501
- :type: list[list[int]]
- """
-
- self._values = values
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseExtras, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseExtras):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_instructions.py b/openrouteservice/models/json_individual_route_response_instructions.py
deleted file mode 100644
index 2ff93d0f..00000000
--- a/openrouteservice/models/json_individual_route_response_instructions.py
+++ /dev/null
@@ -1,334 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseInstructions(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'distance': 'float',
- 'duration': 'float',
- 'exit_bearings': 'list[int]',
- 'exit_number': 'int',
- 'instruction': 'str',
- 'maneuver': 'JSONIndividualRouteResponseManeuver',
- 'name': 'str',
- 'type': 'int',
- 'way_points': 'list[int]'
- }
-
- attribute_map = {
- 'distance': 'distance',
- 'duration': 'duration',
- 'exit_bearings': 'exit_bearings',
- 'exit_number': 'exit_number',
- 'instruction': 'instruction',
- 'maneuver': 'maneuver',
- 'name': 'name',
- 'type': 'type',
- 'way_points': 'way_points'
- }
-
- def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number=None, instruction=None, maneuver=None, name=None, type=None, way_points=None): # noqa: E501
- """JSONIndividualRouteResponseInstructions - a model defined in Swagger""" # noqa: E501
- self._distance = None
- self._duration = None
- self._exit_bearings = None
- self._exit_number = None
- self._instruction = None
- self._maneuver = None
- self._name = None
- self._type = None
- self._way_points = None
- self.discriminator = None
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if exit_bearings is not None:
- self.exit_bearings = exit_bearings
- if exit_number is not None:
- self.exit_number = exit_number
- if instruction is not None:
- self.instruction = instruction
- if maneuver is not None:
- self.maneuver = maneuver
- if name is not None:
- self.name = name
- if type is not None:
- self.type = type
- if way_points is not None:
- self.way_points = way_points
-
- @property
- def distance(self):
- """Gets the distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- The distance for the step in metres. # noqa: E501
-
- :return: The distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this JSONIndividualRouteResponseInstructions.
-
- The distance for the step in metres. # noqa: E501
-
- :param distance: The distance of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- The duration for the step in seconds. # noqa: E501
-
- :return: The duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this JSONIndividualRouteResponseInstructions.
-
- The duration for the step in seconds. # noqa: E501
-
- :param duration: The duration of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def exit_bearings(self):
- """Gets the exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
-
- :return: The exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: list[int]
- """
- return self._exit_bearings
-
- @exit_bearings.setter
- def exit_bearings(self, exit_bearings):
- """Sets the exit_bearings of this JSONIndividualRouteResponseInstructions.
-
- Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
-
- :param exit_bearings: The exit_bearings of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: list[int]
- """
-
- self._exit_bearings = exit_bearings
-
- @property
- def exit_number(self):
- """Gets the exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- Only for roundabouts. Contains the number of the exit to take. # noqa: E501
-
- :return: The exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: int
- """
- return self._exit_number
-
- @exit_number.setter
- def exit_number(self, exit_number):
- """Sets the exit_number of this JSONIndividualRouteResponseInstructions.
-
- Only for roundabouts. Contains the number of the exit to take. # noqa: E501
-
- :param exit_number: The exit_number of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: int
- """
-
- self._exit_number = exit_number
-
- @property
- def instruction(self):
- """Gets the instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- The routing instruction text for the step. # noqa: E501
-
- :return: The instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: str
- """
- return self._instruction
-
- @instruction.setter
- def instruction(self, instruction):
- """Sets the instruction of this JSONIndividualRouteResponseInstructions.
-
- The routing instruction text for the step. # noqa: E501
-
- :param instruction: The instruction of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: str
- """
-
- self._instruction = instruction
-
- @property
- def maneuver(self):
- """Gets the maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
-
- :return: The maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: JSONIndividualRouteResponseManeuver
- """
- return self._maneuver
-
- @maneuver.setter
- def maneuver(self, maneuver):
- """Sets the maneuver of this JSONIndividualRouteResponseInstructions.
-
-
- :param maneuver: The maneuver of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: JSONIndividualRouteResponseManeuver
- """
-
- self._maneuver = maneuver
-
- @property
- def name(self):
- """Gets the name of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- The name of the next street. # noqa: E501
-
- :return: The name of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this JSONIndividualRouteResponseInstructions.
-
- The name of the next street. # noqa: E501
-
- :param name: The name of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def type(self):
- """Gets the type of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
-
- :return: The type of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: int
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this JSONIndividualRouteResponseInstructions.
-
- The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
-
- :param type: The type of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: int
- """
-
- self._type = type
-
- @property
- def way_points(self):
- """Gets the way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
-
- List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
-
- :return: The way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :rtype: list[int]
- """
- return self._way_points
-
- @way_points.setter
- def way_points(self, way_points):
- """Sets the way_points of this JSONIndividualRouteResponseInstructions.
-
- List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
-
- :param way_points: The way_points of this JSONIndividualRouteResponseInstructions. # noqa: E501
- :type: list[int]
- """
-
- self._way_points = way_points
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseInstructions, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseInstructions):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_legs.py b/openrouteservice/models/json_individual_route_response_legs.py
deleted file mode 100644
index 7f115a60..00000000
--- a/openrouteservice/models/json_individual_route_response_legs.py
+++ /dev/null
@@ -1,588 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseLegs(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival': 'datetime',
- 'departure': 'datetime',
- 'departure_location': 'str',
- 'distance': 'float',
- 'duration': 'float',
- 'feed_id': 'str',
- 'geometry': 'str',
- 'instructions': 'list[JSONIndividualRouteResponseInstructions]',
- 'is_in_same_vehicle_as_previous': 'bool',
- 'route_desc': 'str',
- 'route_id': 'str',
- 'route_long_name': 'str',
- 'route_short_name': 'str',
- 'route_type': 'int',
- 'stops': 'list[JSONIndividualRouteResponseStops]',
- 'trip_headsign': 'str',
- 'trip_id': 'str',
- 'type': 'str'
- }
-
- attribute_map = {
- 'arrival': 'arrival',
- 'departure': 'departure',
- 'departure_location': 'departure_location',
- 'distance': 'distance',
- 'duration': 'duration',
- 'feed_id': 'feed_id',
- 'geometry': 'geometry',
- 'instructions': 'instructions',
- 'is_in_same_vehicle_as_previous': 'is_in_same_vehicle_as_previous',
- 'route_desc': 'route_desc',
- 'route_id': 'route_id',
- 'route_long_name': 'route_long_name',
- 'route_short_name': 'route_short_name',
- 'route_type': 'route_type',
- 'stops': 'stops',
- 'trip_headsign': 'trip_headsign',
- 'trip_id': 'trip_id',
- 'type': 'type'
- }
-
- def __init__(self, arrival=None, departure=None, departure_location=None, distance=None, duration=None, feed_id=None, geometry=None, instructions=None, is_in_same_vehicle_as_previous=None, route_desc=None, route_id=None, route_long_name=None, route_short_name=None, route_type=None, stops=None, trip_headsign=None, trip_id=None, type=None): # noqa: E501
- """JSONIndividualRouteResponseLegs - a model defined in Swagger""" # noqa: E501
- self._arrival = None
- self._departure = None
- self._departure_location = None
- self._distance = None
- self._duration = None
- self._feed_id = None
- self._geometry = None
- self._instructions = None
- self._is_in_same_vehicle_as_previous = None
- self._route_desc = None
- self._route_id = None
- self._route_long_name = None
- self._route_short_name = None
- self._route_type = None
- self._stops = None
- self._trip_headsign = None
- self._trip_id = None
- self._type = None
- self.discriminator = None
- if arrival is not None:
- self.arrival = arrival
- if departure is not None:
- self.departure = departure
- if departure_location is not None:
- self.departure_location = departure_location
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if feed_id is not None:
- self.feed_id = feed_id
- if geometry is not None:
- self.geometry = geometry
- if instructions is not None:
- self.instructions = instructions
- if is_in_same_vehicle_as_previous is not None:
- self.is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
- if route_desc is not None:
- self.route_desc = route_desc
- if route_id is not None:
- self.route_id = route_id
- if route_long_name is not None:
- self.route_long_name = route_long_name
- if route_short_name is not None:
- self.route_short_name = route_short_name
- if route_type is not None:
- self.route_type = route_type
- if stops is not None:
- self.stops = stops
- if trip_headsign is not None:
- self.trip_headsign = trip_headsign
- if trip_id is not None:
- self.trip_id = trip_id
- if type is not None:
- self.type = type
-
- @property
- def arrival(self):
- """Gets the arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- Arrival date and time # noqa: E501
-
- :return: The arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: datetime
- """
- return self._arrival
-
- @arrival.setter
- def arrival(self, arrival):
- """Sets the arrival of this JSONIndividualRouteResponseLegs.
-
- Arrival date and time # noqa: E501
-
- :param arrival: The arrival of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: datetime
- """
-
- self._arrival = arrival
-
- @property
- def departure(self):
- """Gets the departure of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- Departure date and time # noqa: E501
-
- :return: The departure of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: datetime
- """
- return self._departure
-
- @departure.setter
- def departure(self, departure):
- """Sets the departure of this JSONIndividualRouteResponseLegs.
-
- Departure date and time # noqa: E501
-
- :param departure: The departure of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: datetime
- """
-
- self._departure = departure
-
- @property
- def departure_location(self):
- """Gets the departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The departure location of the leg. # noqa: E501
-
- :return: The departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._departure_location
-
- @departure_location.setter
- def departure_location(self, departure_location):
- """Sets the departure_location of this JSONIndividualRouteResponseLegs.
-
- The departure location of the leg. # noqa: E501
-
- :param departure_location: The departure_location of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._departure_location = departure_location
-
- @property
- def distance(self):
- """Gets the distance of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The distance for the leg in metres. # noqa: E501
-
- :return: The distance of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this JSONIndividualRouteResponseLegs.
-
- The distance for the leg in metres. # noqa: E501
-
- :param distance: The distance of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The duration for the leg in seconds. # noqa: E501
-
- :return: The duration of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this JSONIndividualRouteResponseLegs.
-
- The duration for the leg in seconds. # noqa: E501
-
- :param duration: The duration of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def feed_id(self):
- """Gets the feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The feed ID this public transport leg based its information from. # noqa: E501
-
- :return: The feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._feed_id
-
- @feed_id.setter
- def feed_id(self, feed_id):
- """Sets the feed_id of this JSONIndividualRouteResponseLegs.
-
- The feed ID this public transport leg based its information from. # noqa: E501
-
- :param feed_id: The feed_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._feed_id = feed_id
-
- @property
- def geometry(self):
- """Gets the geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The geometry of the leg. This is an encoded polyline. # noqa: E501
-
- :return: The geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this JSONIndividualRouteResponseLegs.
-
- The geometry of the leg. This is an encoded polyline. # noqa: E501
-
- :param geometry: The geometry of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._geometry = geometry
-
- @property
- def instructions(self):
- """Gets the instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :return: The instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseInstructions]
- """
- return self._instructions
-
- @instructions.setter
- def instructions(self, instructions):
- """Sets the instructions of this JSONIndividualRouteResponseLegs.
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :param instructions: The instructions of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: list[JSONIndividualRouteResponseInstructions]
- """
-
- self._instructions = instructions
-
- @property
- def is_in_same_vehicle_as_previous(self):
- """Gets the is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- Whether the legs continues in the same vehicle as the previous one. # noqa: E501
-
- :return: The is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: bool
- """
- return self._is_in_same_vehicle_as_previous
-
- @is_in_same_vehicle_as_previous.setter
- def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
- """Sets the is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs.
-
- Whether the legs continues in the same vehicle as the previous one. # noqa: E501
-
- :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: bool
- """
-
- self._is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
-
- @property
- def route_desc(self):
- """Gets the route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The route description of the leg (if provided in the GTFS data set). # noqa: E501
-
- :return: The route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._route_desc
-
- @route_desc.setter
- def route_desc(self, route_desc):
- """Sets the route_desc of this JSONIndividualRouteResponseLegs.
-
- The route description of the leg (if provided in the GTFS data set). # noqa: E501
-
- :param route_desc: The route_desc of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._route_desc = route_desc
-
- @property
- def route_id(self):
- """Gets the route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The route ID of this public transport leg. # noqa: E501
-
- :return: The route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._route_id
-
- @route_id.setter
- def route_id(self, route_id):
- """Sets the route_id of this JSONIndividualRouteResponseLegs.
-
- The route ID of this public transport leg. # noqa: E501
-
- :param route_id: The route_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._route_id = route_id
-
- @property
- def route_long_name(self):
- """Gets the route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The public transport route name of the leg. # noqa: E501
-
- :return: The route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._route_long_name
-
- @route_long_name.setter
- def route_long_name(self, route_long_name):
- """Sets the route_long_name of this JSONIndividualRouteResponseLegs.
-
- The public transport route name of the leg. # noqa: E501
-
- :param route_long_name: The route_long_name of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._route_long_name = route_long_name
-
- @property
- def route_short_name(self):
- """Gets the route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The public transport route name (short version) of the leg. # noqa: E501
-
- :return: The route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._route_short_name
-
- @route_short_name.setter
- def route_short_name(self, route_short_name):
- """Sets the route_short_name of this JSONIndividualRouteResponseLegs.
-
- The public transport route name (short version) of the leg. # noqa: E501
-
- :param route_short_name: The route_short_name of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._route_short_name = route_short_name
-
- @property
- def route_type(self):
- """Gets the route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The route type of the leg (if provided in the GTFS data set). # noqa: E501
-
- :return: The route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: int
- """
- return self._route_type
-
- @route_type.setter
- def route_type(self, route_type):
- """Sets the route_type of this JSONIndividualRouteResponseLegs.
-
- The route type of the leg (if provided in the GTFS data set). # noqa: E501
-
- :param route_type: The route_type of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: int
- """
-
- self._route_type = route_type
-
- @property
- def stops(self):
- """Gets the stops of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- List containing the stops the along the leg. # noqa: E501
-
- :return: The stops of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseStops]
- """
- return self._stops
-
- @stops.setter
- def stops(self, stops):
- """Sets the stops of this JSONIndividualRouteResponseLegs.
-
- List containing the stops the along the leg. # noqa: E501
-
- :param stops: The stops of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: list[JSONIndividualRouteResponseStops]
- """
-
- self._stops = stops
-
- @property
- def trip_headsign(self):
- """Gets the trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The headsign of the public transport vehicle of the leg. # noqa: E501
-
- :return: The trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._trip_headsign
-
- @trip_headsign.setter
- def trip_headsign(self, trip_headsign):
- """Sets the trip_headsign of this JSONIndividualRouteResponseLegs.
-
- The headsign of the public transport vehicle of the leg. # noqa: E501
-
- :param trip_headsign: The trip_headsign of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._trip_headsign = trip_headsign
-
- @property
- def trip_id(self):
- """Gets the trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The trip ID of this public transport leg. # noqa: E501
-
- :return: The trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._trip_id
-
- @trip_id.setter
- def trip_id(self, trip_id):
- """Sets the trip_id of this JSONIndividualRouteResponseLegs.
-
- The trip ID of this public transport leg. # noqa: E501
-
- :param trip_id: The trip_id of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._trip_id = trip_id
-
- @property
- def type(self):
- """Gets the type of this JSONIndividualRouteResponseLegs. # noqa: E501
-
- The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
-
- :return: The type of this JSONIndividualRouteResponseLegs. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this JSONIndividualRouteResponseLegs.
-
- The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
-
- :param type: The type of this JSONIndividualRouteResponseLegs. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseLegs, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseLegs):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_maneuver.py b/openrouteservice/models/json_individual_route_response_maneuver.py
deleted file mode 100644
index 318ced9d..00000000
--- a/openrouteservice/models/json_individual_route_response_maneuver.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseManeuver(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bearing_after': 'int',
- 'bearing_before': 'int',
- 'location': 'list[float]'
- }
-
- attribute_map = {
- 'bearing_after': 'bearing_after',
- 'bearing_before': 'bearing_before',
- 'location': 'location'
- }
-
- def __init__(self, bearing_after=None, bearing_before=None, location=None): # noqa: E501
- """JSONIndividualRouteResponseManeuver - a model defined in Swagger""" # noqa: E501
- self._bearing_after = None
- self._bearing_before = None
- self._location = None
- self.discriminator = None
- if bearing_after is not None:
- self.bearing_after = bearing_after
- if bearing_before is not None:
- self.bearing_before = bearing_before
- if location is not None:
- self.location = location
-
- @property
- def bearing_after(self):
- """Gets the bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
-
- The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
-
- :return: The bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :rtype: int
- """
- return self._bearing_after
-
- @bearing_after.setter
- def bearing_after(self, bearing_after):
- """Sets the bearing_after of this JSONIndividualRouteResponseManeuver.
-
- The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
-
- :param bearing_after: The bearing_after of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :type: int
- """
-
- self._bearing_after = bearing_after
-
- @property
- def bearing_before(self):
- """Gets the bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
-
- The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
-
- :return: The bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :rtype: int
- """
- return self._bearing_before
-
- @bearing_before.setter
- def bearing_before(self, bearing_before):
- """Sets the bearing_before of this JSONIndividualRouteResponseManeuver.
-
- The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
-
- :param bearing_before: The bearing_before of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :type: int
- """
-
- self._bearing_before = bearing_before
-
- @property
- def location(self):
- """Gets the location of this JSONIndividualRouteResponseManeuver. # noqa: E501
-
- The coordinate of the point where a maneuver takes place. # noqa: E501
-
- :return: The location of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JSONIndividualRouteResponseManeuver.
-
- The coordinate of the point where a maneuver takes place. # noqa: E501
-
- :param location: The location of this JSONIndividualRouteResponseManeuver. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseManeuver, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseManeuver):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_segments.py b/openrouteservice/models/json_individual_route_response_segments.py
deleted file mode 100644
index 77a9c1a2..00000000
--- a/openrouteservice/models/json_individual_route_response_segments.py
+++ /dev/null
@@ -1,308 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseSegments(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'ascent': 'float',
- 'avgspeed': 'float',
- 'descent': 'float',
- 'detourfactor': 'float',
- 'distance': 'float',
- 'duration': 'float',
- 'percentage': 'float',
- 'steps': 'list[JSONIndividualRouteResponseInstructions]'
- }
-
- attribute_map = {
- 'ascent': 'ascent',
- 'avgspeed': 'avgspeed',
- 'descent': 'descent',
- 'detourfactor': 'detourfactor',
- 'distance': 'distance',
- 'duration': 'duration',
- 'percentage': 'percentage',
- 'steps': 'steps'
- }
-
- def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None, distance=None, duration=None, percentage=None, steps=None): # noqa: E501
- """JSONIndividualRouteResponseSegments - a model defined in Swagger""" # noqa: E501
- self._ascent = None
- self._avgspeed = None
- self._descent = None
- self._detourfactor = None
- self._distance = None
- self._duration = None
- self._percentage = None
- self._steps = None
- self.discriminator = None
- if ascent is not None:
- self.ascent = ascent
- if avgspeed is not None:
- self.avgspeed = avgspeed
- if descent is not None:
- self.descent = descent
- if detourfactor is not None:
- self.detourfactor = detourfactor
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if percentage is not None:
- self.percentage = percentage
- if steps is not None:
- self.steps = steps
-
- @property
- def ascent(self):
- """Gets the ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains ascent of this segment in metres. # noqa: E501
-
- :return: The ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._ascent
-
- @ascent.setter
- def ascent(self, ascent):
- """Sets the ascent of this JSONIndividualRouteResponseSegments.
-
- Contains ascent of this segment in metres. # noqa: E501
-
- :param ascent: The ascent of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._ascent = ascent
-
- @property
- def avgspeed(self):
- """Gets the avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains the average speed of this segment in km/h. # noqa: E501
-
- :return: The avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._avgspeed
-
- @avgspeed.setter
- def avgspeed(self, avgspeed):
- """Sets the avgspeed of this JSONIndividualRouteResponseSegments.
-
- Contains the average speed of this segment in km/h. # noqa: E501
-
- :param avgspeed: The avgspeed of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._avgspeed = avgspeed
-
- @property
- def descent(self):
- """Gets the descent of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains descent of this segment in metres. # noqa: E501
-
- :return: The descent of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._descent
-
- @descent.setter
- def descent(self, descent):
- """Sets the descent of this JSONIndividualRouteResponseSegments.
-
- Contains descent of this segment in metres. # noqa: E501
-
- :param descent: The descent of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._descent = descent
-
- @property
- def detourfactor(self):
- """Gets the detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
-
- :return: The detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._detourfactor
-
- @detourfactor.setter
- def detourfactor(self, detourfactor):
- """Sets the detourfactor of this JSONIndividualRouteResponseSegments.
-
- Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
-
- :param detourfactor: The detourfactor of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._detourfactor = detourfactor
-
- @property
- def distance(self):
- """Gets the distance of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains the distance of the segment in specified units. # noqa: E501
-
- :return: The distance of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this JSONIndividualRouteResponseSegments.
-
- Contains the distance of the segment in specified units. # noqa: E501
-
- :param distance: The distance of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains the duration of the segment in seconds. # noqa: E501
-
- :return: The duration of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this JSONIndividualRouteResponseSegments.
-
- Contains the duration of the segment in seconds. # noqa: E501
-
- :param duration: The duration of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def percentage(self):
- """Gets the percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- Contains the proportion of the route in percent. # noqa: E501
-
- :return: The percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: float
- """
- return self._percentage
-
- @percentage.setter
- def percentage(self, percentage):
- """Sets the percentage of this JSONIndividualRouteResponseSegments.
-
- Contains the proportion of the route in percent. # noqa: E501
-
- :param percentage: The percentage of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: float
- """
-
- self._percentage = percentage
-
- @property
- def steps(self):
- """Gets the steps of this JSONIndividualRouteResponseSegments. # noqa: E501
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :return: The steps of this JSONIndividualRouteResponseSegments. # noqa: E501
- :rtype: list[JSONIndividualRouteResponseInstructions]
- """
- return self._steps
-
- @steps.setter
- def steps(self, steps):
- """Sets the steps of this JSONIndividualRouteResponseSegments.
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :param steps: The steps of this JSONIndividualRouteResponseSegments. # noqa: E501
- :type: list[JSONIndividualRouteResponseInstructions]
- """
-
- self._steps = steps
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseSegments, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseSegments):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_stops.py b/openrouteservice/models/json_individual_route_response_stops.py
deleted file mode 100644
index 1c3457b0..00000000
--- a/openrouteservice/models/json_individual_route_response_stops.py
+++ /dev/null
@@ -1,392 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseStops(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival_cancelled': 'bool',
- 'arrival_time': 'datetime',
- 'departure_cancelled': 'bool',
- 'departure_time': 'datetime',
- 'location': 'list[float]',
- 'name': 'str',
- 'planned_arrival_time': 'datetime',
- 'planned_departure_time': 'datetime',
- 'predicted_arrival_time': 'datetime',
- 'predicted_departure_time': 'datetime',
- 'stop_id': 'str'
- }
-
- attribute_map = {
- 'arrival_cancelled': 'arrival_cancelled',
- 'arrival_time': 'arrival_time',
- 'departure_cancelled': 'departure_cancelled',
- 'departure_time': 'departure_time',
- 'location': 'location',
- 'name': 'name',
- 'planned_arrival_time': 'planned_arrival_time',
- 'planned_departure_time': 'planned_departure_time',
- 'predicted_arrival_time': 'predicted_arrival_time',
- 'predicted_departure_time': 'predicted_departure_time',
- 'stop_id': 'stop_id'
- }
-
- def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelled=None, departure_time=None, location=None, name=None, planned_arrival_time=None, planned_departure_time=None, predicted_arrival_time=None, predicted_departure_time=None, stop_id=None): # noqa: E501
- """JSONIndividualRouteResponseStops - a model defined in Swagger""" # noqa: E501
- self._arrival_cancelled = None
- self._arrival_time = None
- self._departure_cancelled = None
- self._departure_time = None
- self._location = None
- self._name = None
- self._planned_arrival_time = None
- self._planned_departure_time = None
- self._predicted_arrival_time = None
- self._predicted_departure_time = None
- self._stop_id = None
- self.discriminator = None
- if arrival_cancelled is not None:
- self.arrival_cancelled = arrival_cancelled
- if arrival_time is not None:
- self.arrival_time = arrival_time
- if departure_cancelled is not None:
- self.departure_cancelled = departure_cancelled
- if departure_time is not None:
- self.departure_time = departure_time
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if planned_arrival_time is not None:
- self.planned_arrival_time = planned_arrival_time
- if planned_departure_time is not None:
- self.planned_departure_time = planned_departure_time
- if predicted_arrival_time is not None:
- self.predicted_arrival_time = predicted_arrival_time
- if predicted_departure_time is not None:
- self.predicted_departure_time = predicted_departure_time
- if stop_id is not None:
- self.stop_id = stop_id
-
- @property
- def arrival_cancelled(self):
- """Gets the arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Whether arrival at the stop was cancelled. # noqa: E501
-
- :return: The arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: bool
- """
- return self._arrival_cancelled
-
- @arrival_cancelled.setter
- def arrival_cancelled(self, arrival_cancelled):
- """Sets the arrival_cancelled of this JSONIndividualRouteResponseStops.
-
- Whether arrival at the stop was cancelled. # noqa: E501
-
- :param arrival_cancelled: The arrival_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: bool
- """
-
- self._arrival_cancelled = arrival_cancelled
-
- @property
- def arrival_time(self):
- """Gets the arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Arrival time of the stop. # noqa: E501
-
- :return: The arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._arrival_time
-
- @arrival_time.setter
- def arrival_time(self, arrival_time):
- """Sets the arrival_time of this JSONIndividualRouteResponseStops.
-
- Arrival time of the stop. # noqa: E501
-
- :param arrival_time: The arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._arrival_time = arrival_time
-
- @property
- def departure_cancelled(self):
- """Gets the departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Whether departure at the stop was cancelled. # noqa: E501
-
- :return: The departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: bool
- """
- return self._departure_cancelled
-
- @departure_cancelled.setter
- def departure_cancelled(self, departure_cancelled):
- """Sets the departure_cancelled of this JSONIndividualRouteResponseStops.
-
- Whether departure at the stop was cancelled. # noqa: E501
-
- :param departure_cancelled: The departure_cancelled of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: bool
- """
-
- self._departure_cancelled = departure_cancelled
-
- @property
- def departure_time(self):
- """Gets the departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Departure time of the stop. # noqa: E501
-
- :return: The departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._departure_time
-
- @departure_time.setter
- def departure_time(self, departure_time):
- """Sets the departure_time of this JSONIndividualRouteResponseStops.
-
- Departure time of the stop. # noqa: E501
-
- :param departure_time: The departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._departure_time = departure_time
-
- @property
- def location(self):
- """Gets the location of this JSONIndividualRouteResponseStops. # noqa: E501
-
- The location of the stop. # noqa: E501
-
- :return: The location of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JSONIndividualRouteResponseStops.
-
- The location of the stop. # noqa: E501
-
- :param location: The location of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this JSONIndividualRouteResponseStops. # noqa: E501
-
- The name of the stop. # noqa: E501
-
- :return: The name of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this JSONIndividualRouteResponseStops.
-
- The name of the stop. # noqa: E501
-
- :param name: The name of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def planned_arrival_time(self):
- """Gets the planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Planned arrival time of the stop. # noqa: E501
-
- :return: The planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._planned_arrival_time
-
- @planned_arrival_time.setter
- def planned_arrival_time(self, planned_arrival_time):
- """Sets the planned_arrival_time of this JSONIndividualRouteResponseStops.
-
- Planned arrival time of the stop. # noqa: E501
-
- :param planned_arrival_time: The planned_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._planned_arrival_time = planned_arrival_time
-
- @property
- def planned_departure_time(self):
- """Gets the planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Planned departure time of the stop. # noqa: E501
-
- :return: The planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._planned_departure_time
-
- @planned_departure_time.setter
- def planned_departure_time(self, planned_departure_time):
- """Sets the planned_departure_time of this JSONIndividualRouteResponseStops.
-
- Planned departure time of the stop. # noqa: E501
-
- :param planned_departure_time: The planned_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._planned_departure_time = planned_departure_time
-
- @property
- def predicted_arrival_time(self):
- """Gets the predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Predicted arrival time of the stop. # noqa: E501
-
- :return: The predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._predicted_arrival_time
-
- @predicted_arrival_time.setter
- def predicted_arrival_time(self, predicted_arrival_time):
- """Sets the predicted_arrival_time of this JSONIndividualRouteResponseStops.
-
- Predicted arrival time of the stop. # noqa: E501
-
- :param predicted_arrival_time: The predicted_arrival_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._predicted_arrival_time = predicted_arrival_time
-
- @property
- def predicted_departure_time(self):
- """Gets the predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
-
- Predicted departure time of the stop. # noqa: E501
-
- :return: The predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: datetime
- """
- return self._predicted_departure_time
-
- @predicted_departure_time.setter
- def predicted_departure_time(self, predicted_departure_time):
- """Sets the predicted_departure_time of this JSONIndividualRouteResponseStops.
-
- Predicted departure time of the stop. # noqa: E501
-
- :param predicted_departure_time: The predicted_departure_time of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: datetime
- """
-
- self._predicted_departure_time = predicted_departure_time
-
- @property
- def stop_id(self):
- """Gets the stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
-
- The ID of the stop. # noqa: E501
-
- :return: The stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
- :rtype: str
- """
- return self._stop_id
-
- @stop_id.setter
- def stop_id(self, stop_id):
- """Sets the stop_id of this JSONIndividualRouteResponseStops.
-
- The ID of the stop. # noqa: E501
-
- :param stop_id: The stop_id of this JSONIndividualRouteResponseStops. # noqa: E501
- :type: str
- """
-
- self._stop_id = stop_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseStops, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseStops):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_summary.py b/openrouteservice/models/json_individual_route_response_summary.py
deleted file mode 100644
index 136b6553..00000000
--- a/openrouteservice/models/json_individual_route_response_summary.py
+++ /dev/null
@@ -1,248 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseSummary(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'ascent': 'float',
- 'descent': 'float',
- 'distance': 'float',
- 'duration': 'float',
- 'fare': 'int',
- 'transfers': 'int'
- }
-
- attribute_map = {
- 'ascent': 'ascent',
- 'descent': 'descent',
- 'distance': 'distance',
- 'duration': 'duration',
- 'fare': 'fare',
- 'transfers': 'transfers'
- }
-
- def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare=None, transfers=None): # noqa: E501
- """JSONIndividualRouteResponseSummary - a model defined in Swagger""" # noqa: E501
- self._ascent = None
- self._descent = None
- self._distance = None
- self._duration = None
- self._fare = None
- self._transfers = None
- self.discriminator = None
- if ascent is not None:
- self.ascent = ascent
- if descent is not None:
- self.descent = descent
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if fare is not None:
- self.fare = fare
- if transfers is not None:
- self.transfers = transfers
-
- @property
- def ascent(self):
- """Gets the ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
-
- Total ascent in meters. # noqa: E501
-
- :return: The ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: float
- """
- return self._ascent
-
- @ascent.setter
- def ascent(self, ascent):
- """Sets the ascent of this JSONIndividualRouteResponseSummary.
-
- Total ascent in meters. # noqa: E501
-
- :param ascent: The ascent of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: float
- """
-
- self._ascent = ascent
-
- @property
- def descent(self):
- """Gets the descent of this JSONIndividualRouteResponseSummary. # noqa: E501
-
- Total descent in meters. # noqa: E501
-
- :return: The descent of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: float
- """
- return self._descent
-
- @descent.setter
- def descent(self, descent):
- """Sets the descent of this JSONIndividualRouteResponseSummary.
-
- Total descent in meters. # noqa: E501
-
- :param descent: The descent of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: float
- """
-
- self._descent = descent
-
- @property
- def distance(self):
- """Gets the distance of this JSONIndividualRouteResponseSummary. # noqa: E501
-
- Total route distance in specified units. # noqa: E501
-
- :return: The distance of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this JSONIndividualRouteResponseSummary.
-
- Total route distance in specified units. # noqa: E501
-
- :param distance: The distance of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this JSONIndividualRouteResponseSummary. # noqa: E501
-
- Total duration in seconds. # noqa: E501
-
- :return: The duration of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this JSONIndividualRouteResponseSummary.
-
- Total duration in seconds. # noqa: E501
-
- :param duration: The duration of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def fare(self):
- """Gets the fare of this JSONIndividualRouteResponseSummary. # noqa: E501
-
-
- :return: The fare of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: int
- """
- return self._fare
-
- @fare.setter
- def fare(self, fare):
- """Sets the fare of this JSONIndividualRouteResponseSummary.
-
-
- :param fare: The fare of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: int
- """
-
- self._fare = fare
-
- @property
- def transfers(self):
- """Gets the transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
-
-
- :return: The transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
- :rtype: int
- """
- return self._transfers
-
- @transfers.setter
- def transfers(self, transfers):
- """Sets the transfers of this JSONIndividualRouteResponseSummary.
-
-
- :param transfers: The transfers of this JSONIndividualRouteResponseSummary. # noqa: E501
- :type: int
- """
-
- self._transfers = transfers
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseSummary, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseSummary):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_individual_route_response_warnings.py b/openrouteservice/models/json_individual_route_response_warnings.py
deleted file mode 100644
index fe591ade..00000000
--- a/openrouteservice/models/json_individual_route_response_warnings.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONIndividualRouteResponseWarnings(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'code': 'int',
- 'message': 'str'
- }
-
- attribute_map = {
- 'code': 'code',
- 'message': 'message'
- }
-
- def __init__(self, code=None, message=None): # noqa: E501
- """JSONIndividualRouteResponseWarnings - a model defined in Swagger""" # noqa: E501
- self._code = None
- self._message = None
- self.discriminator = None
- if code is not None:
- self.code = code
- if message is not None:
- self.message = message
-
- @property
- def code(self):
- """Gets the code of this JSONIndividualRouteResponseWarnings. # noqa: E501
-
- Identification code for the warning # noqa: E501
-
- :return: The code of this JSONIndividualRouteResponseWarnings. # noqa: E501
- :rtype: int
- """
- return self._code
-
- @code.setter
- def code(self, code):
- """Sets the code of this JSONIndividualRouteResponseWarnings.
-
- Identification code for the warning # noqa: E501
-
- :param code: The code of this JSONIndividualRouteResponseWarnings. # noqa: E501
- :type: int
- """
-
- self._code = code
-
- @property
- def message(self):
- """Gets the message of this JSONIndividualRouteResponseWarnings. # noqa: E501
-
- The message associated with the warning # noqa: E501
-
- :return: The message of this JSONIndividualRouteResponseWarnings. # noqa: E501
- :rtype: str
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this JSONIndividualRouteResponseWarnings.
-
- The message associated with the warning # noqa: E501
-
- :param message: The message of this JSONIndividualRouteResponseWarnings. # noqa: E501
- :type: str
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONIndividualRouteResponseWarnings, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONIndividualRouteResponseWarnings):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_location.py b/openrouteservice/models/json_location.py
deleted file mode 100644
index 73f38809..00000000
--- a/openrouteservice/models/json_location.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONLocation(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """JSONLocation - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this JSONLocation. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this JSONLocation. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JSONLocation.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this JSONLocation. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this JSONLocation. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this JSONLocation. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this JSONLocation.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this JSONLocation. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this JSONLocation. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this JSONLocation. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this JSONLocation.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this JSONLocation. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONLocation, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONLocation):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_node.py b/openrouteservice/models/json_node.py
deleted file mode 100644
index 30e490ca..00000000
--- a/openrouteservice/models/json_node.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JsonNode(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'node_id': 'int'
- }
-
- attribute_map = {
- 'location': 'location',
- 'node_id': 'nodeId'
- }
-
- def __init__(self, location=None, node_id=None): # noqa: E501
- """JsonNode - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._node_id = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if node_id is not None:
- self.node_id = node_id
-
- @property
- def location(self):
- """Gets the location of this JsonNode. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this JsonNode. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this JsonNode.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this JsonNode. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def node_id(self):
- """Gets the node_id of this JsonNode. # noqa: E501
-
- Id of the corresponding node in the graph # noqa: E501
-
- :return: The node_id of this JsonNode. # noqa: E501
- :rtype: int
- """
- return self._node_id
-
- @node_id.setter
- def node_id(self, node_id):
- """Sets the node_id of this JsonNode.
-
- Id of the corresponding node in the graph # noqa: E501
-
- :param node_id: The node_id of this JsonNode. # noqa: E501
- :type: int
- """
-
- self._node_id = node_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JsonNode, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JsonNode):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_object.py b/openrouteservice/models/json_object.py
deleted file mode 100644
index fe8beb10..00000000
--- a/openrouteservice/models/json_object.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONObject(dict):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- }
- if hasattr(dict, "swagger_types"):
- swagger_types.update(dict.swagger_types)
-
- attribute_map = {
- }
- if hasattr(dict, "attribute_map"):
- attribute_map.update(dict.attribute_map)
-
- def __init__(self, *args, **kwargs): # noqa: E501
- """JSONObject - a model defined in Swagger""" # noqa: E501
- self.discriminator = None
- dict.__init__(self, *args, **kwargs)
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONObject, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONObject):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/json_route_response.py b/openrouteservice/models/json_route_response.py
deleted file mode 100644
index 123a1636..00000000
--- a/openrouteservice/models/json_route_response.py
+++ /dev/null
@@ -1,166 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class JSONRouteResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'metadata': 'GeoJSONRouteResponseMetadata',
- 'routes': 'list[JSONRouteResponseRoutes]'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'metadata': 'metadata',
- 'routes': 'routes'
- }
-
- def __init__(self, bbox=None, metadata=None, routes=None): # noqa: E501
- """JSONRouteResponse - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._metadata = None
- self._routes = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if metadata is not None:
- self.metadata = metadata
- if routes is not None:
- self.routes = routes
-
- @property
- def bbox(self):
- """Gets the bbox of this JSONRouteResponse. # noqa: E501
-
- Bounding box that covers all returned routes # noqa: E501
-
- :return: The bbox of this JSONRouteResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this JSONRouteResponse.
-
- Bounding box that covers all returned routes # noqa: E501
-
- :param bbox: The bbox of this JSONRouteResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def metadata(self):
- """Gets the metadata of this JSONRouteResponse. # noqa: E501
-
-
- :return: The metadata of this JSONRouteResponse. # noqa: E501
- :rtype: GeoJSONRouteResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this JSONRouteResponse.
-
-
- :param metadata: The metadata of this JSONRouteResponse. # noqa: E501
- :type: GeoJSONRouteResponseMetadata
- """
-
- self._metadata = metadata
-
- @property
- def routes(self):
- """Gets the routes of this JSONRouteResponse. # noqa: E501
-
- A list of routes returned from the request # noqa: E501
-
- :return: The routes of this JSONRouteResponse. # noqa: E501
- :rtype: list[JSONRouteResponseRoutes]
- """
- return self._routes
-
- @routes.setter
- def routes(self, routes):
- """Sets the routes of this JSONRouteResponse.
-
- A list of routes returned from the request # noqa: E501
-
- :param routes: The routes of this JSONRouteResponse. # noqa: E501
- :type: list[JSONRouteResponseRoutes]
- """
-
- self._routes = routes
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(JSONRouteResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, JSONRouteResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/matrix_request.py b/openrouteservice/models/matrix_request.py
deleted file mode 100644
index 1b60f1e1..00000000
--- a/openrouteservice/models/matrix_request.py
+++ /dev/null
@@ -1,294 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class MatrixRequest(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'destinations': 'list[str]',
- 'id': 'str',
- 'locations': 'list[list[float]]',
- 'metrics': 'list[str]',
- 'resolve_locations': 'bool',
- 'sources': 'list[str]',
- 'units': 'str'
- }
-
- attribute_map = {
- 'destinations': 'destinations',
- 'id': 'id',
- 'locations': 'locations',
- 'metrics': 'metrics',
- 'resolve_locations': 'resolve_locations',
- 'sources': 'sources',
- 'units': 'units'
- }
-
- def __init__(self, destinations=None, id=None, locations=None, metrics=None, resolve_locations=False, sources=None, units='m'): # noqa: E501
- """MatrixRequest - a model defined in Swagger""" # noqa: E501
- self._destinations = None
- self._id = None
- self._locations = None
- self._metrics = None
- self._resolve_locations = None
- self._sources = None
- self._units = None
- self.discriminator = None
- if destinations is not None:
- self.destinations = destinations
- if id is not None:
- self.id = id
- self.locations = locations
- if metrics is not None:
- self.metrics = metrics
- if resolve_locations is not None:
- self.resolve_locations = resolve_locations
- if sources is not None:
- self.sources = sources
- if units is not None:
- self.units = units
-
- @property
- def destinations(self):
- """Gets the destinations of this MatrixRequest. # noqa: E501
-
- A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
-
- :return: The destinations of this MatrixRequest. # noqa: E501
- :rtype: list[str]
- """
- return self._destinations
-
- @destinations.setter
- def destinations(self, destinations):
- """Sets the destinations of this MatrixRequest.
-
- A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). `[0,3]` for the first and fourth locations # noqa: E501
-
- :param destinations: The destinations of this MatrixRequest. # noqa: E501
- :type: list[str]
- """
-
- self._destinations = destinations
-
- @property
- def id(self):
- """Gets the id of this MatrixRequest. # noqa: E501
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :return: The id of this MatrixRequest. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this MatrixRequest.
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :param id: The id of this MatrixRequest. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def locations(self):
- """Gets the locations of this MatrixRequest. # noqa: E501
-
- List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
-
- :return: The locations of this MatrixRequest. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._locations
-
- @locations.setter
- def locations(self, locations):
- """Sets the locations of this MatrixRequest.
-
- List of comma separated lists of `longitude,latitude` coordinates in WGS 84 (EPSG:4326) # noqa: E501
-
- :param locations: The locations of this MatrixRequest. # noqa: E501
- :type: list[list[float]]
- """
- if locations is None:
- raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
-
- self._locations = locations
-
- @property
- def metrics(self):
- """Gets the metrics of this MatrixRequest. # noqa: E501
-
- Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
-
- :return: The metrics of this MatrixRequest. # noqa: E501
- :rtype: list[str]
- """
- return self._metrics
-
- @metrics.setter
- def metrics(self, metrics):
- """Sets the metrics of this MatrixRequest.
-
- Specifies a list of returned metrics. \"* `distance` - Returns distance matrix for specified points in defined `units`. * `duration` - Returns duration matrix for specified points in **seconds**. # noqa: E501
-
- :param metrics: The metrics of this MatrixRequest. # noqa: E501
- :type: list[str]
- """
- allowed_values = ["distance", "duration"] # noqa: E501
- if not set(metrics).issubset(set(allowed_values)):
- raise ValueError(
- "Invalid values for `metrics` [{0}], must be a subset of [{1}]" # noqa: E501
- .format(", ".join(map(str, set(metrics) - set(allowed_values))), # noqa: E501
- ", ".join(map(str, allowed_values)))
- )
-
- self._metrics = metrics
-
- @property
- def resolve_locations(self):
- """Gets the resolve_locations of this MatrixRequest. # noqa: E501
-
- Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
-
- :return: The resolve_locations of this MatrixRequest. # noqa: E501
- :rtype: bool
- """
- return self._resolve_locations
-
- @resolve_locations.setter
- def resolve_locations(self, resolve_locations):
- """Sets the resolve_locations of this MatrixRequest.
-
- Specifies whether given locations are resolved or not. If the parameter value set to `true`, every element in `destinations` and `sources` will contain a `name` element that identifies the name of the closest street. Default is `false`. # noqa: E501
-
- :param resolve_locations: The resolve_locations of this MatrixRequest. # noqa: E501
- :type: bool
- """
-
- self._resolve_locations = resolve_locations
-
- @property
- def sources(self):
- """Gets the sources of this MatrixRequest. # noqa: E501
-
- A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
-
- :return: The sources of this MatrixRequest. # noqa: E501
- :rtype: list[str]
- """
- return self._sources
-
- @sources.setter
- def sources(self, sources):
- """Sets the sources of this MatrixRequest.
-
- A list of indices that refers to the list of locations (starting with `0`). `{index_1},{index_2}[,{index_N} ...]` or `all` (default). example `[0,3]` for the first and fourth locations # noqa: E501
-
- :param sources: The sources of this MatrixRequest. # noqa: E501
- :type: list[str]
- """
-
- self._sources = sources
-
- @property
- def units(self):
- """Gets the units of this MatrixRequest. # noqa: E501
-
- Specifies the distance unit. Default: m. # noqa: E501
-
- :return: The units of this MatrixRequest. # noqa: E501
- :rtype: str
- """
- return self._units
-
- @units.setter
- def units(self, units):
- """Sets the units of this MatrixRequest.
-
- Specifies the distance unit. Default: m. # noqa: E501
-
- :param units: The units of this MatrixRequest. # noqa: E501
- :type: str
- """
- allowed_values = ["m", "km", "mi"] # noqa: E501
- if units not in allowed_values:
- raise ValueError(
- "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
- .format(units, allowed_values)
- )
-
- self._units = units
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(MatrixRequest, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MatrixRequest):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/matrix_response.py b/openrouteservice/models/matrix_response.py
deleted file mode 100644
index bb40c6ad..00000000
--- a/openrouteservice/models/matrix_response.py
+++ /dev/null
@@ -1,222 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class MatrixResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'destinations': 'list[MatrixResponseDestinations]',
- 'distances': 'list[list[float]]',
- 'durations': 'list[list[float]]',
- 'metadata': 'MatrixResponseMetadata',
- 'sources': 'list[MatrixResponseSources]'
- }
-
- attribute_map = {
- 'destinations': 'destinations',
- 'distances': 'distances',
- 'durations': 'durations',
- 'metadata': 'metadata',
- 'sources': 'sources'
- }
-
- def __init__(self, destinations=None, distances=None, durations=None, metadata=None, sources=None): # noqa: E501
- """MatrixResponse - a model defined in Swagger""" # noqa: E501
- self._destinations = None
- self._distances = None
- self._durations = None
- self._metadata = None
- self._sources = None
- self.discriminator = None
- if destinations is not None:
- self.destinations = destinations
- if distances is not None:
- self.distances = distances
- if durations is not None:
- self.durations = durations
- if metadata is not None:
- self.metadata = metadata
- if sources is not None:
- self.sources = sources
-
- @property
- def destinations(self):
- """Gets the destinations of this MatrixResponse. # noqa: E501
-
- The individual destinations of the matrix calculations. # noqa: E501
-
- :return: The destinations of this MatrixResponse. # noqa: E501
- :rtype: list[MatrixResponseDestinations]
- """
- return self._destinations
-
- @destinations.setter
- def destinations(self, destinations):
- """Sets the destinations of this MatrixResponse.
-
- The individual destinations of the matrix calculations. # noqa: E501
-
- :param destinations: The destinations of this MatrixResponse. # noqa: E501
- :type: list[MatrixResponseDestinations]
- """
-
- self._destinations = destinations
-
- @property
- def distances(self):
- """Gets the distances of this MatrixResponse. # noqa: E501
-
- The distances of the matrix calculations. # noqa: E501
-
- :return: The distances of this MatrixResponse. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._distances
-
- @distances.setter
- def distances(self, distances):
- """Sets the distances of this MatrixResponse.
-
- The distances of the matrix calculations. # noqa: E501
-
- :param distances: The distances of this MatrixResponse. # noqa: E501
- :type: list[list[float]]
- """
-
- self._distances = distances
-
- @property
- def durations(self):
- """Gets the durations of this MatrixResponse. # noqa: E501
-
- The durations of the matrix calculations. # noqa: E501
-
- :return: The durations of this MatrixResponse. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._durations
-
- @durations.setter
- def durations(self, durations):
- """Sets the durations of this MatrixResponse.
-
- The durations of the matrix calculations. # noqa: E501
-
- :param durations: The durations of this MatrixResponse. # noqa: E501
- :type: list[list[float]]
- """
-
- self._durations = durations
-
- @property
- def metadata(self):
- """Gets the metadata of this MatrixResponse. # noqa: E501
-
-
- :return: The metadata of this MatrixResponse. # noqa: E501
- :rtype: MatrixResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this MatrixResponse.
-
-
- :param metadata: The metadata of this MatrixResponse. # noqa: E501
- :type: MatrixResponseMetadata
- """
-
- self._metadata = metadata
-
- @property
- def sources(self):
- """Gets the sources of this MatrixResponse. # noqa: E501
-
- The individual sources of the matrix calculations. # noqa: E501
-
- :return: The sources of this MatrixResponse. # noqa: E501
- :rtype: list[MatrixResponseSources]
- """
- return self._sources
-
- @sources.setter
- def sources(self, sources):
- """Sets the sources of this MatrixResponse.
-
- The individual sources of the matrix calculations. # noqa: E501
-
- :param sources: The sources of this MatrixResponse. # noqa: E501
- :type: list[MatrixResponseSources]
- """
-
- self._sources = sources
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(MatrixResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MatrixResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/matrix_response_info.py b/openrouteservice/models/matrix_response_info.py
deleted file mode 100644
index 0d2963dd..00000000
--- a/openrouteservice/models/matrix_response_info.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class MatrixResponseInfo(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'MatrixProfileBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """MatrixResponseInfo - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this MatrixResponseInfo. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this MatrixResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this MatrixResponseInfo.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this MatrixResponseInfo. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this MatrixResponseInfo. # noqa: E501
-
-
- :return: The engine of this MatrixResponseInfo. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this MatrixResponseInfo.
-
-
- :param engine: The engine of this MatrixResponseInfo. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this MatrixResponseInfo. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this MatrixResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this MatrixResponseInfo.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this MatrixResponseInfo. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this MatrixResponseInfo.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this MatrixResponseInfo. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this MatrixResponseInfo. # noqa: E501
-
-
- :return: The query of this MatrixResponseInfo. # noqa: E501
- :rtype: MatrixProfileBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this MatrixResponseInfo.
-
-
- :param query: The query of this MatrixResponseInfo. # noqa: E501
- :type: MatrixProfileBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this MatrixResponseInfo. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this MatrixResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this MatrixResponseInfo.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this MatrixResponseInfo. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this MatrixResponseInfo. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this MatrixResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this MatrixResponseInfo.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this MatrixResponseInfo. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this MatrixResponseInfo. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this MatrixResponseInfo. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this MatrixResponseInfo.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this MatrixResponseInfo. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(MatrixResponseInfo, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MatrixResponseInfo):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/matrix_response_sources.py b/openrouteservice/models/matrix_response_sources.py
deleted file mode 100644
index 174a1b85..00000000
--- a/openrouteservice/models/matrix_response_sources.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class MatrixResponseSources(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """MatrixResponseSources - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this MatrixResponseSources. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this MatrixResponseSources. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this MatrixResponseSources.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this MatrixResponseSources. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this MatrixResponseSources. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this MatrixResponseSources. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this MatrixResponseSources.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this MatrixResponseSources. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this MatrixResponseSources. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this MatrixResponseSources. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this MatrixResponseSources.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this MatrixResponseSources. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(MatrixResponseSources, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, MatrixResponseSources):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/restrictions.py b/openrouteservice/models/restrictions.py
deleted file mode 100644
index 0a3f4158..00000000
--- a/openrouteservice/models/restrictions.py
+++ /dev/null
@@ -1,426 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class Restrictions(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'axleload': 'float',
- 'hazmat': 'bool',
- 'height': 'float',
- 'length': 'float',
- 'maximum_incline': 'int',
- 'maximum_sloped_kerb': 'float',
- 'minimum_width': 'float',
- 'smoothness_type': 'str',
- 'surface_type': 'str',
- 'track_type': 'str',
- 'weight': 'float',
- 'width': 'float'
- }
-
- attribute_map = {
- 'axleload': 'axleload',
- 'hazmat': 'hazmat',
- 'height': 'height',
- 'length': 'length',
- 'maximum_incline': 'maximum_incline',
- 'maximum_sloped_kerb': 'maximum_sloped_kerb',
- 'minimum_width': 'minimum_width',
- 'smoothness_type': 'smoothness_type',
- 'surface_type': 'surface_type',
- 'track_type': 'track_type',
- 'weight': 'weight',
- 'width': 'width'
- }
-
- def __init__(self, axleload=None, hazmat=False, height=None, length=None, maximum_incline=6, maximum_sloped_kerb=0.6, minimum_width=None, smoothness_type='good', surface_type='sett', track_type='grade1', weight=None, width=None): # noqa: E501
- """Restrictions - a model defined in Swagger""" # noqa: E501
- self._axleload = None
- self._hazmat = None
- self._height = None
- self._length = None
- self._maximum_incline = None
- self._maximum_sloped_kerb = None
- self._minimum_width = None
- self._smoothness_type = None
- self._surface_type = None
- self._track_type = None
- self._weight = None
- self._width = None
- self.discriminator = None
- if axleload is not None:
- self.axleload = axleload
- if hazmat is not None:
- self.hazmat = hazmat
- if height is not None:
- self.height = height
- if length is not None:
- self.length = length
- if maximum_incline is not None:
- self.maximum_incline = maximum_incline
- if maximum_sloped_kerb is not None:
- self.maximum_sloped_kerb = maximum_sloped_kerb
- if minimum_width is not None:
- self.minimum_width = minimum_width
- if smoothness_type is not None:
- self.smoothness_type = smoothness_type
- if surface_type is not None:
- self.surface_type = surface_type
- if track_type is not None:
- self.track_type = track_type
- if weight is not None:
- self.weight = weight
- if width is not None:
- self.width = width
-
- @property
- def axleload(self):
- """Gets the axleload of this Restrictions. # noqa: E501
-
- Axleload restriction in tons. # noqa: E501
-
- :return: The axleload of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._axleload
-
- @axleload.setter
- def axleload(self, axleload):
- """Sets the axleload of this Restrictions.
-
- Axleload restriction in tons. # noqa: E501
-
- :param axleload: The axleload of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._axleload = axleload
-
- @property
- def hazmat(self):
- """Gets the hazmat of this Restrictions. # noqa: E501
-
- Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
-
- :return: The hazmat of this Restrictions. # noqa: E501
- :rtype: bool
- """
- return self._hazmat
-
- @hazmat.setter
- def hazmat(self, hazmat):
- """Sets the hazmat of this Restrictions.
-
- Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. # noqa: E501
-
- :param hazmat: The hazmat of this Restrictions. # noqa: E501
- :type: bool
- """
-
- self._hazmat = hazmat
-
- @property
- def height(self):
- """Gets the height of this Restrictions. # noqa: E501
-
- Height restriction in metres. # noqa: E501
-
- :return: The height of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._height
-
- @height.setter
- def height(self, height):
- """Sets the height of this Restrictions.
-
- Height restriction in metres. # noqa: E501
-
- :param height: The height of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._height = height
-
- @property
- def length(self):
- """Gets the length of this Restrictions. # noqa: E501
-
- Length restriction in metres. # noqa: E501
-
- :return: The length of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._length
-
- @length.setter
- def length(self, length):
- """Sets the length of this Restrictions.
-
- Length restriction in metres. # noqa: E501
-
- :param length: The length of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._length = length
-
- @property
- def maximum_incline(self):
- """Gets the maximum_incline of this Restrictions. # noqa: E501
-
- Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
-
- :return: The maximum_incline of this Restrictions. # noqa: E501
- :rtype: int
- """
- return self._maximum_incline
-
- @maximum_incline.setter
- def maximum_incline(self, maximum_incline):
- """Sets the maximum_incline of this Restrictions.
-
- Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. # noqa: E501
-
- :param maximum_incline: The maximum_incline of this Restrictions. # noqa: E501
- :type: int
- """
-
- self._maximum_incline = maximum_incline
-
- @property
- def maximum_sloped_kerb(self):
- """Gets the maximum_sloped_kerb of this Restrictions. # noqa: E501
-
- Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
-
- :return: The maximum_sloped_kerb of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._maximum_sloped_kerb
-
- @maximum_sloped_kerb.setter
- def maximum_sloped_kerb(self, maximum_sloped_kerb):
- """Sets the maximum_sloped_kerb of this Restrictions.
-
- Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. # noqa: E501
-
- :param maximum_sloped_kerb: The maximum_sloped_kerb of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._maximum_sloped_kerb = maximum_sloped_kerb
-
- @property
- def minimum_width(self):
- """Gets the minimum_width of this Restrictions. # noqa: E501
-
- Specifies the minimum width of the footway in metres. # noqa: E501
-
- :return: The minimum_width of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._minimum_width
-
- @minimum_width.setter
- def minimum_width(self, minimum_width):
- """Sets the minimum_width of this Restrictions.
-
- Specifies the minimum width of the footway in metres. # noqa: E501
-
- :param minimum_width: The minimum_width of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._minimum_width = minimum_width
-
- @property
- def smoothness_type(self):
- """Gets the smoothness_type of this Restrictions. # noqa: E501
-
- Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
-
- :return: The smoothness_type of this Restrictions. # noqa: E501
- :rtype: str
- """
- return self._smoothness_type
-
- @smoothness_type.setter
- def smoothness_type(self, smoothness_type):
- """Sets the smoothness_type of this Restrictions.
-
- Specifies the minimum smoothness of the route. Default is `good`. # noqa: E501
-
- :param smoothness_type: The smoothness_type of this Restrictions. # noqa: E501
- :type: str
- """
- allowed_values = ["excellent", "good", "intermediate", "bad", "very_bad", "horrible", "very_horrible", "impassable"] # noqa: E501
- if smoothness_type not in allowed_values:
- raise ValueError(
- "Invalid value for `smoothness_type` ({0}), must be one of {1}" # noqa: E501
- .format(smoothness_type, allowed_values)
- )
-
- self._smoothness_type = smoothness_type
-
- @property
- def surface_type(self):
- """Gets the surface_type of this Restrictions. # noqa: E501
-
- Specifies the minimum surface type. Default is `sett`. # noqa: E501
-
- :return: The surface_type of this Restrictions. # noqa: E501
- :rtype: str
- """
- return self._surface_type
-
- @surface_type.setter
- def surface_type(self, surface_type):
- """Sets the surface_type of this Restrictions.
-
- Specifies the minimum surface type. Default is `sett`. # noqa: E501
-
- :param surface_type: The surface_type of this Restrictions. # noqa: E501
- :type: str
- """
-
- self._surface_type = surface_type
-
- @property
- def track_type(self):
- """Gets the track_type of this Restrictions. # noqa: E501
-
- Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
-
- :return: The track_type of this Restrictions. # noqa: E501
- :rtype: str
- """
- return self._track_type
-
- @track_type.setter
- def track_type(self, track_type):
- """Sets the track_type of this Restrictions.
-
- Specifies the minimum grade of the route. Default is `grade1`. # noqa: E501
-
- :param track_type: The track_type of this Restrictions. # noqa: E501
- :type: str
- """
-
- self._track_type = track_type
-
- @property
- def weight(self):
- """Gets the weight of this Restrictions. # noqa: E501
-
- Weight restriction in tons. # noqa: E501
-
- :return: The weight of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._weight
-
- @weight.setter
- def weight(self, weight):
- """Sets the weight of this Restrictions.
-
- Weight restriction in tons. # noqa: E501
-
- :param weight: The weight of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._weight = weight
-
- @property
- def width(self):
- """Gets the width of this Restrictions. # noqa: E501
-
- Width restriction in metres. # noqa: E501
-
- :return: The width of this Restrictions. # noqa: E501
- :rtype: float
- """
- return self._width
-
- @width.setter
- def width(self, width):
- """Sets the width of this Restrictions.
-
- Width restriction in metres. # noqa: E501
-
- :param width: The width of this Restrictions. # noqa: E501
- :type: float
- """
-
- self._width = width
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(Restrictions, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Restrictions):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/route_response_info.py b/openrouteservice/models/route_response_info.py
deleted file mode 100644
index 33603a81..00000000
--- a/openrouteservice/models/route_response_info.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class RouteResponseInfo(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'GeoJSONIsochronesResponseMetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'DirectionsService1',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """RouteResponseInfo - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this RouteResponseInfo. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this RouteResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this RouteResponseInfo.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this RouteResponseInfo. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this RouteResponseInfo. # noqa: E501
-
-
- :return: The engine of this RouteResponseInfo. # noqa: E501
- :rtype: GeoJSONIsochronesResponseMetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this RouteResponseInfo.
-
-
- :param engine: The engine of this RouteResponseInfo. # noqa: E501
- :type: GeoJSONIsochronesResponseMetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this RouteResponseInfo. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this RouteResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this RouteResponseInfo.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this RouteResponseInfo. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this RouteResponseInfo.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this RouteResponseInfo. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this RouteResponseInfo. # noqa: E501
-
-
- :return: The query of this RouteResponseInfo. # noqa: E501
- :rtype: DirectionsService1
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this RouteResponseInfo.
-
-
- :param query: The query of this RouteResponseInfo. # noqa: E501
- :type: DirectionsService1
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this RouteResponseInfo. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this RouteResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this RouteResponseInfo.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this RouteResponseInfo. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this RouteResponseInfo. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this RouteResponseInfo. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this RouteResponseInfo.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this RouteResponseInfo. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this RouteResponseInfo. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this RouteResponseInfo. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this RouteResponseInfo.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this RouteResponseInfo. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(RouteResponseInfo, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, RouteResponseInfo):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/rte.py b/openrouteservice/models/rte.py
deleted file mode 100644
index 40d8d5cc..00000000
--- a/openrouteservice/models/rte.py
+++ /dev/null
@@ -1,84 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class Rte(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- }
-
- attribute_map = {
- }
-
- def __init__(self): # noqa: E501
- """Rte - a model defined in Swagger""" # noqa: E501
- self.discriminator = None
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(Rte, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, Rte):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/snapping_request.py b/openrouteservice/models/snapping_request.py
deleted file mode 100644
index 9fc9e494..00000000
--- a/openrouteservice/models/snapping_request.py
+++ /dev/null
@@ -1,170 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class SnappingRequest(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'id': 'str',
- 'locations': 'list[list[float]]',
- 'radius': 'float'
- }
-
- attribute_map = {
- 'id': 'id',
- 'locations': 'locations',
- 'radius': 'radius'
- }
-
- def __init__(self, id=None, locations=None, radius=None): # noqa: E501
- """SnappingRequest - a model defined in Swagger""" # noqa: E501
- self._id = None
- self._locations = None
- self._radius = None
- self.discriminator = None
- if id is not None:
- self.id = id
- self.locations = locations
- self.radius = radius
-
- @property
- def id(self):
- """Gets the id of this SnappingRequest. # noqa: E501
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :return: The id of this SnappingRequest. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this SnappingRequest.
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :param id: The id of this SnappingRequest. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def locations(self):
- """Gets the locations of this SnappingRequest. # noqa: E501
-
- The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
-
- :return: The locations of this SnappingRequest. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._locations
-
- @locations.setter
- def locations(self, locations):
- """Sets the locations of this SnappingRequest.
-
- The locations to be snapped as array of `longitude/latitude` pairs. # noqa: E501
-
- :param locations: The locations of this SnappingRequest. # noqa: E501
- :type: list[list[float]]
- """
- if locations is None:
- raise ValueError("Invalid value for `locations`, must not be `None`") # noqa: E501
-
- self._locations = locations
-
- @property
- def radius(self):
- """Gets the radius of this SnappingRequest. # noqa: E501
-
- Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
-
- :return: The radius of this SnappingRequest. # noqa: E501
- :rtype: float
- """
- return self._radius
-
- @radius.setter
- def radius(self, radius):
- """Sets the radius of this SnappingRequest.
-
- Maximum radius in meters around given coordinates to search for graph edges. # noqa: E501
-
- :param radius: The radius of this SnappingRequest. # noqa: E501
- :type: float
- """
- if radius is None:
- raise ValueError("Invalid value for `radius`, must not be `None`") # noqa: E501
-
- self._radius = radius
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(SnappingRequest, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SnappingRequest):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/snapping_response.py b/openrouteservice/models/snapping_response.py
deleted file mode 100644
index c78d100a..00000000
--- a/openrouteservice/models/snapping_response.py
+++ /dev/null
@@ -1,138 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class SnappingResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'locations': 'list[SnappingResponseLocations]',
- 'metadata': 'GeoJSONSnappingResponseMetadata'
- }
-
- attribute_map = {
- 'locations': 'locations',
- 'metadata': 'metadata'
- }
-
- def __init__(self, locations=None, metadata=None): # noqa: E501
- """SnappingResponse - a model defined in Swagger""" # noqa: E501
- self._locations = None
- self._metadata = None
- self.discriminator = None
- if locations is not None:
- self.locations = locations
- if metadata is not None:
- self.metadata = metadata
-
- @property
- def locations(self):
- """Gets the locations of this SnappingResponse. # noqa: E501
-
- The snapped locations as coordinates and snapping distance. # noqa: E501
-
- :return: The locations of this SnappingResponse. # noqa: E501
- :rtype: list[SnappingResponseLocations]
- """
- return self._locations
-
- @locations.setter
- def locations(self, locations):
- """Sets the locations of this SnappingResponse.
-
- The snapped locations as coordinates and snapping distance. # noqa: E501
-
- :param locations: The locations of this SnappingResponse. # noqa: E501
- :type: list[SnappingResponseLocations]
- """
-
- self._locations = locations
-
- @property
- def metadata(self):
- """Gets the metadata of this SnappingResponse. # noqa: E501
-
-
- :return: The metadata of this SnappingResponse. # noqa: E501
- :rtype: GeoJSONSnappingResponseMetadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this SnappingResponse.
-
-
- :param metadata: The metadata of this SnappingResponse. # noqa: E501
- :type: GeoJSONSnappingResponseMetadata
- """
-
- self._metadata = metadata
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(SnappingResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, SnappingResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
deleted file mode 100644
index d27e674f..00000000
--- a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration.py
+++ /dev/null
@@ -1,214 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class V2directionsprofilegeojsonScheduleDuration(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'nano': 'int',
- 'negative': 'bool',
- 'seconds': 'int',
- 'units': 'list[V2directionsprofilegeojsonScheduleDurationUnits]',
- 'zero': 'bool'
- }
-
- attribute_map = {
- 'nano': 'nano',
- 'negative': 'negative',
- 'seconds': 'seconds',
- 'units': 'units',
- 'zero': 'zero'
- }
-
- def __init__(self, nano=None, negative=None, seconds=None, units=None, zero=None): # noqa: E501
- """V2directionsprofilegeojsonScheduleDuration - a model defined in Swagger""" # noqa: E501
- self._nano = None
- self._negative = None
- self._seconds = None
- self._units = None
- self._zero = None
- self.discriminator = None
- if nano is not None:
- self.nano = nano
- if negative is not None:
- self.negative = negative
- if seconds is not None:
- self.seconds = seconds
- if units is not None:
- self.units = units
- if zero is not None:
- self.zero = zero
-
- @property
- def nano(self):
- """Gets the nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
-
-
- :return: The nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :rtype: int
- """
- return self._nano
-
- @nano.setter
- def nano(self, nano):
- """Sets the nano of this V2directionsprofilegeojsonScheduleDuration.
-
-
- :param nano: The nano of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :type: int
- """
-
- self._nano = nano
-
- @property
- def negative(self):
- """Gets the negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
-
-
- :return: The negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :rtype: bool
- """
- return self._negative
-
- @negative.setter
- def negative(self, negative):
- """Sets the negative of this V2directionsprofilegeojsonScheduleDuration.
-
-
- :param negative: The negative of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :type: bool
- """
-
- self._negative = negative
-
- @property
- def seconds(self):
- """Gets the seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
-
-
- :return: The seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :rtype: int
- """
- return self._seconds
-
- @seconds.setter
- def seconds(self, seconds):
- """Sets the seconds of this V2directionsprofilegeojsonScheduleDuration.
-
-
- :param seconds: The seconds of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :type: int
- """
-
- self._seconds = seconds
-
- @property
- def units(self):
- """Gets the units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
-
-
- :return: The units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :rtype: list[V2directionsprofilegeojsonScheduleDurationUnits]
- """
- return self._units
-
- @units.setter
- def units(self, units):
- """Sets the units of this V2directionsprofilegeojsonScheduleDuration.
-
-
- :param units: The units of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :type: list[V2directionsprofilegeojsonScheduleDurationUnits]
- """
-
- self._units = units
-
- @property
- def zero(self):
- """Gets the zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
-
-
- :return: The zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :rtype: bool
- """
- return self._zero
-
- @zero.setter
- def zero(self, zero):
- """Sets the zero of this V2directionsprofilegeojsonScheduleDuration.
-
-
- :param zero: The zero of this V2directionsprofilegeojsonScheduleDuration. # noqa: E501
- :type: bool
- """
-
- self._zero = zero
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(V2directionsprofilegeojsonScheduleDuration, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V2directionsprofilegeojsonScheduleDuration):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
deleted file mode 100644
index a4df1d7f..00000000
--- a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_duration.py
+++ /dev/null
@@ -1,188 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class V2directionsprofilegeojsonScheduleDurationDuration(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'nano': 'int',
- 'negative': 'bool',
- 'seconds': 'int',
- 'zero': 'bool'
- }
-
- attribute_map = {
- 'nano': 'nano',
- 'negative': 'negative',
- 'seconds': 'seconds',
- 'zero': 'zero'
- }
-
- def __init__(self, nano=None, negative=None, seconds=None, zero=None): # noqa: E501
- """V2directionsprofilegeojsonScheduleDurationDuration - a model defined in Swagger""" # noqa: E501
- self._nano = None
- self._negative = None
- self._seconds = None
- self._zero = None
- self.discriminator = None
- if nano is not None:
- self.nano = nano
- if negative is not None:
- self.negative = negative
- if seconds is not None:
- self.seconds = seconds
- if zero is not None:
- self.zero = zero
-
- @property
- def nano(self):
- """Gets the nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
-
-
- :return: The nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :rtype: int
- """
- return self._nano
-
- @nano.setter
- def nano(self, nano):
- """Sets the nano of this V2directionsprofilegeojsonScheduleDurationDuration.
-
-
- :param nano: The nano of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :type: int
- """
-
- self._nano = nano
-
- @property
- def negative(self):
- """Gets the negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
-
-
- :return: The negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :rtype: bool
- """
- return self._negative
-
- @negative.setter
- def negative(self, negative):
- """Sets the negative of this V2directionsprofilegeojsonScheduleDurationDuration.
-
-
- :param negative: The negative of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :type: bool
- """
-
- self._negative = negative
-
- @property
- def seconds(self):
- """Gets the seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
-
-
- :return: The seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :rtype: int
- """
- return self._seconds
-
- @seconds.setter
- def seconds(self, seconds):
- """Sets the seconds of this V2directionsprofilegeojsonScheduleDurationDuration.
-
-
- :param seconds: The seconds of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :type: int
- """
-
- self._seconds = seconds
-
- @property
- def zero(self):
- """Gets the zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
-
-
- :return: The zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :rtype: bool
- """
- return self._zero
-
- @zero.setter
- def zero(self, zero):
- """Sets the zero of this V2directionsprofilegeojsonScheduleDurationDuration.
-
-
- :param zero: The zero of this V2directionsprofilegeojsonScheduleDurationDuration. # noqa: E501
- :type: bool
- """
-
- self._zero = zero
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(V2directionsprofilegeojsonScheduleDurationDuration, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V2directionsprofilegeojsonScheduleDurationDuration):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py b/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
deleted file mode 100644
index 31799769..00000000
--- a/openrouteservice/models/v2directionsprofilegeojson_schedule_duration_units.py
+++ /dev/null
@@ -1,188 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class V2directionsprofilegeojsonScheduleDurationUnits(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'date_based': 'bool',
- 'duration': 'V2directionsprofilegeojsonScheduleDurationDuration',
- 'duration_estimated': 'bool',
- 'time_based': 'bool'
- }
-
- attribute_map = {
- 'date_based': 'dateBased',
- 'duration': 'duration',
- 'duration_estimated': 'durationEstimated',
- 'time_based': 'timeBased'
- }
-
- def __init__(self, date_based=None, duration=None, duration_estimated=None, time_based=None): # noqa: E501
- """V2directionsprofilegeojsonScheduleDurationUnits - a model defined in Swagger""" # noqa: E501
- self._date_based = None
- self._duration = None
- self._duration_estimated = None
- self._time_based = None
- self.discriminator = None
- if date_based is not None:
- self.date_based = date_based
- if duration is not None:
- self.duration = duration
- if duration_estimated is not None:
- self.duration_estimated = duration_estimated
- if time_based is not None:
- self.time_based = time_based
-
- @property
- def date_based(self):
- """Gets the date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
-
-
- :return: The date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :rtype: bool
- """
- return self._date_based
-
- @date_based.setter
- def date_based(self, date_based):
- """Sets the date_based of this V2directionsprofilegeojsonScheduleDurationUnits.
-
-
- :param date_based: The date_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :type: bool
- """
-
- self._date_based = date_based
-
- @property
- def duration(self):
- """Gets the duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
-
-
- :return: The duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :rtype: V2directionsprofilegeojsonScheduleDurationDuration
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this V2directionsprofilegeojsonScheduleDurationUnits.
-
-
- :param duration: The duration of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :type: V2directionsprofilegeojsonScheduleDurationDuration
- """
-
- self._duration = duration
-
- @property
- def duration_estimated(self):
- """Gets the duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
-
-
- :return: The duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :rtype: bool
- """
- return self._duration_estimated
-
- @duration_estimated.setter
- def duration_estimated(self, duration_estimated):
- """Sets the duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits.
-
-
- :param duration_estimated: The duration_estimated of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :type: bool
- """
-
- self._duration_estimated = duration_estimated
-
- @property
- def time_based(self):
- """Gets the time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
-
-
- :return: The time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :rtype: bool
- """
- return self._time_based
-
- @time_based.setter
- def time_based(self, time_based):
- """Sets the time_based of this V2directionsprofilegeojsonScheduleDurationUnits.
-
-
- :param time_based: The time_based of this V2directionsprofilegeojsonScheduleDurationUnits. # noqa: E501
- :type: bool
- """
-
- self._time_based = time_based
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(V2directionsprofilegeojsonScheduleDurationUnits, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V2directionsprofilegeojsonScheduleDurationUnits):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/v2directionsprofilegeojson_walking_time.py b/openrouteservice/models/v2directionsprofilegeojson_walking_time.py
deleted file mode 100644
index 493352f5..00000000
--- a/openrouteservice/models/v2directionsprofilegeojson_walking_time.py
+++ /dev/null
@@ -1,214 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.0
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class V2directionsprofilegeojsonWalkingTime(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'nano': 'int',
- 'negative': 'bool',
- 'seconds': 'int',
- 'units': 'list[V2directionsprofilegeojsonScheduleDurationUnits]',
- 'zero': 'bool'
- }
-
- attribute_map = {
- 'nano': 'nano',
- 'negative': 'negative',
- 'seconds': 'seconds',
- 'units': 'units',
- 'zero': 'zero'
- }
-
- def __init__(self, nano=None, negative=None, seconds=None, units=None, zero=None): # noqa: E501
- """V2directionsprofilegeojsonWalkingTime - a model defined in Swagger""" # noqa: E501
- self._nano = None
- self._negative = None
- self._seconds = None
- self._units = None
- self._zero = None
- self.discriminator = None
- if nano is not None:
- self.nano = nano
- if negative is not None:
- self.negative = negative
- if seconds is not None:
- self.seconds = seconds
- if units is not None:
- self.units = units
- if zero is not None:
- self.zero = zero
-
- @property
- def nano(self):
- """Gets the nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
-
-
- :return: The nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :rtype: int
- """
- return self._nano
-
- @nano.setter
- def nano(self, nano):
- """Sets the nano of this V2directionsprofilegeojsonWalkingTime.
-
-
- :param nano: The nano of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :type: int
- """
-
- self._nano = nano
-
- @property
- def negative(self):
- """Gets the negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
-
-
- :return: The negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :rtype: bool
- """
- return self._negative
-
- @negative.setter
- def negative(self, negative):
- """Sets the negative of this V2directionsprofilegeojsonWalkingTime.
-
-
- :param negative: The negative of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :type: bool
- """
-
- self._negative = negative
-
- @property
- def seconds(self):
- """Gets the seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
-
-
- :return: The seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :rtype: int
- """
- return self._seconds
-
- @seconds.setter
- def seconds(self, seconds):
- """Sets the seconds of this V2directionsprofilegeojsonWalkingTime.
-
-
- :param seconds: The seconds of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :type: int
- """
-
- self._seconds = seconds
-
- @property
- def units(self):
- """Gets the units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
-
-
- :return: The units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :rtype: list[V2directionsprofilegeojsonScheduleDurationUnits]
- """
- return self._units
-
- @units.setter
- def units(self, units):
- """Sets the units of this V2directionsprofilegeojsonWalkingTime.
-
-
- :param units: The units of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :type: list[V2directionsprofilegeojsonScheduleDurationUnits]
- """
-
- self._units = units
-
- @property
- def zero(self):
- """Gets the zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
-
-
- :return: The zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :rtype: bool
- """
- return self._zero
-
- @zero.setter
- def zero(self, zero):
- """Sets the zero of this V2directionsprofilegeojsonWalkingTime.
-
-
- :param zero: The zero of this V2directionsprofilegeojsonWalkingTime. # noqa: E501
- :type: bool
- """
-
- self._zero = zero
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(V2directionsprofilegeojsonWalkingTime, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V2directionsprofilegeojsonWalkingTime):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
From c8f343f970b135252942b3f883cb678848b5fd90 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Mon, 11 Mar 2024 15:01:40 +0100
Subject: [PATCH 06/38] feat: remove InlineResponse classes
---
README.md | 48 +-
docs/DirectionsServiceApi.md | 8 +-
docs/ElevationApi.md | 12 +-
docs/GeoJSONFeature.md | 11 -
docs/GeoJSONFeatureGeometry.md | 10 -
docs/GeoJSONFeatureProperties.md | 11 -
docs/GeoJSONFeaturesObject.md | 11 -
docs/GeoJSONGeometryObject.md | 10 -
docs/GeoJSONPropertiesObject.md | 13 -
docs/GeoJSONPropertiesObjectCategoryIds.md | 9 -
...ONPropertiesObjectCategoryIdsCategoryId.md | 10 -
docs/GeoJSONPropertiesObjectOsmTags.md | 15 -
docs/GeocodeApi.md | 16 +-
docs/GeocodeResponse.md | 12 -
docs/Gpx.md | 9 -
docs/InlineResponse200.md | 12 -
docs/InlineResponse2001.md | 12 -
docs/InlineResponse2001Geometry.md | 10 -
docs/InlineResponse2002.md | 13 -
docs/InlineResponse2002Routes.md | 19 -
docs/InlineResponse2002Steps.md | 20 -
docs/InlineResponse2002Summary.md | 20 -
docs/InlineResponse2002Unassigned.md | 10 -
docs/InlineResponse2002Violations.md | 10 -
docs/InlineResponse2003.md | 12 -
docs/InlineResponse2004.md | 11 -
docs/InlineResponse2005.md | 12 -
docs/InlineResponse2005Features.md | 10 -
docs/InlineResponse2005Geometry.md | 9 -
docs/InlineResponse2005Metadata.md | 16 -
docs/InlineResponse2006.md | 13 -
docs/InlineResponse2007.md | 10 -
docs/InlineResponse2008.md | 12 -
docs/InlineResponse2008Features.md | 11 -
docs/InlineResponse200Geometry.md | 10 -
docs/IsochronesServiceApi.md | 4 +-
docs/JSONExtra.md | 10 -
docs/JSONExtraSummary.md | 11 -
docs/{Rte.md => JSONResponse.md} | 2 +-
docs/JSONRouteResponse.md | 11 -
docs/JSONRouteResponseExtras.md | 10 -
docs/JSONRouteResponseInstructions.md | 17 -
docs/JSONRouteResponseLegs.md | 26 -
docs/JSONRouteResponseManeuver.md | 11 -
docs/JSONRouteResponseMetadata.md | 16 -
docs/JSONRouteResponseMetadataEngine.md | 11 -
docs/JSONRouteResponseRoutes.md | 18 -
docs/JSONRouteResponseSegments.md | 16 -
docs/JSONRouteResponseStops.md | 19 -
docs/JSONRouteResponseSummary.md | 14 -
docs/JSONRouteResponseWarnings.md | 10 -
docs/JSONStep.md | 17 -
docs/JsonEdge.md | 11 -
docs/MatrixResponse.md | 13 -
docs/MatrixResponseDestinations.md | 11 -
docs/MatrixResponseMetadata.md | 16 -
docs/MatrixResponseSources.md | 11 -
docs/MatrixServiceApi.md | 4 +-
docs/OpenpoiservicePoiResponse.md | 10 -
docs/OptimizationApi.md | 4 +-
docs/PoisApi.md | 4 +-
docs/Restrictions.md | 20 -
docs/SnappingResponse.md | 10 -
docs/SnappingResponseLocations.md | 11 -
docs/SnappingResponseMetadata.md | 15 -
docs/SnappingServiceApi.md | 12 +-
openrouteservice/__init__.py | 48 +-
.../api/directions_service_api.py | 12 +-
openrouteservice/api/elevation_api.py | 18 +-
openrouteservice/api/geocode_api.py | 24 +-
.../api/isochrones_service_api.py | 6 +-
openrouteservice/api/matrix_service_api.py | 6 +-
openrouteservice/api/optimization_api.py | 6 +-
openrouteservice/api/pois_api.py | 6 +-
openrouteservice/api/snapping_service_api.py | 18 +-
openrouteservice/models/__init__.py | 48 +-
.../models/geo_json_features_object.py | 162 -----
.../models/geo_json_geometry_object.py | 136 ----
.../models/geo_json_properties_object.py | 214 -------
...geo_json_properties_object_category_ids.py | 110 ----
...perties_object_category_ids_category_id.py | 136 ----
.../geo_json_properties_object_osm_tags.py | 266 --------
openrouteservice/models/geocode_response.py | 188 ------
openrouteservice/models/inline_response200.py | 188 ------
.../models/inline_response2001.py | 188 ------
.../models/inline_response2001_geometry.py | 136 ----
.../models/inline_response2002.py | 222 -------
.../models/inline_response2002_routes.py | 392 ------------
.../models/inline_response2002_steps.py | 420 -------------
.../models/inline_response2002_summary.py | 420 -------------
.../models/inline_response2002_unassigned.py | 140 -----
.../models/inline_response2002_violations.py | 140 -----
.../models/inline_response2003.py | 190 ------
.../models/inline_response2003_metadata.py | 304 ---------
.../models/inline_response2004.py | 166 -----
.../models/inline_response2004_extras.py | 140 -----
.../inline_response2004_instructions.py | 334 ----------
.../models/inline_response2004_legs.py | 588 ------------------
.../models/inline_response2004_maneuver.py | 168 -----
.../models/inline_response2004_routes.py | 362 -----------
.../models/inline_response2004_segments.py | 308 ---------
.../models/inline_response2004_stops.py | 392 ------------
.../models/inline_response2004_summary.py | 168 -----
.../models/inline_response2004_summary1.py | 248 --------
.../models/inline_response2004_warnings.py | 140 -----
.../models/inline_response2005.py | 190 ------
.../models/inline_response2005_features.py | 136 ----
.../models/inline_response2005_metadata.py | 304 ---------
.../inline_response2005_metadata_engine.py | 168 -----
.../models/inline_response2006.py | 222 -------
.../inline_response2006_destinations.py | 168 -----
.../models/inline_response2006_metadata.py | 304 ---------
.../models/inline_response2006_sources.py | 168 -----
.../models/inline_response2007.py | 138 ----
.../models/inline_response2007_locations.py | 168 -----
.../models/inline_response2007_metadata.py | 276 --------
.../models/inline_response2008.py | 194 ------
.../models/inline_response2008_features.py | 164 -----
.../models/inline_response2008_geometry.py | 140 -----
.../models/inline_response2008_properties.py | 168 -----
.../models/inline_response200_geometry.py | 136 ----
...ponse2005_geometry.py => json_response.py} | 36 +-
.../models/openpoiservice_poi_response.py | 136 ----
123 files changed, 89 insertions(+), 11117 deletions(-)
delete mode 100644 docs/GeoJSONFeature.md
delete mode 100644 docs/GeoJSONFeatureGeometry.md
delete mode 100644 docs/GeoJSONFeatureProperties.md
delete mode 100644 docs/GeoJSONFeaturesObject.md
delete mode 100644 docs/GeoJSONGeometryObject.md
delete mode 100644 docs/GeoJSONPropertiesObject.md
delete mode 100644 docs/GeoJSONPropertiesObjectCategoryIds.md
delete mode 100644 docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
delete mode 100644 docs/GeoJSONPropertiesObjectOsmTags.md
delete mode 100644 docs/GeocodeResponse.md
delete mode 100644 docs/Gpx.md
delete mode 100644 docs/InlineResponse200.md
delete mode 100644 docs/InlineResponse2001.md
delete mode 100644 docs/InlineResponse2001Geometry.md
delete mode 100644 docs/InlineResponse2002.md
delete mode 100644 docs/InlineResponse2002Routes.md
delete mode 100644 docs/InlineResponse2002Steps.md
delete mode 100644 docs/InlineResponse2002Summary.md
delete mode 100644 docs/InlineResponse2002Unassigned.md
delete mode 100644 docs/InlineResponse2002Violations.md
delete mode 100644 docs/InlineResponse2003.md
delete mode 100644 docs/InlineResponse2004.md
delete mode 100644 docs/InlineResponse2005.md
delete mode 100644 docs/InlineResponse2005Features.md
delete mode 100644 docs/InlineResponse2005Geometry.md
delete mode 100644 docs/InlineResponse2005Metadata.md
delete mode 100644 docs/InlineResponse2006.md
delete mode 100644 docs/InlineResponse2007.md
delete mode 100644 docs/InlineResponse2008.md
delete mode 100644 docs/InlineResponse2008Features.md
delete mode 100644 docs/InlineResponse200Geometry.md
delete mode 100644 docs/JSONExtra.md
delete mode 100644 docs/JSONExtraSummary.md
rename docs/{Rte.md => JSONResponse.md} (94%)
delete mode 100644 docs/JSONRouteResponse.md
delete mode 100644 docs/JSONRouteResponseExtras.md
delete mode 100644 docs/JSONRouteResponseInstructions.md
delete mode 100644 docs/JSONRouteResponseLegs.md
delete mode 100644 docs/JSONRouteResponseManeuver.md
delete mode 100644 docs/JSONRouteResponseMetadata.md
delete mode 100644 docs/JSONRouteResponseMetadataEngine.md
delete mode 100644 docs/JSONRouteResponseRoutes.md
delete mode 100644 docs/JSONRouteResponseSegments.md
delete mode 100644 docs/JSONRouteResponseStops.md
delete mode 100644 docs/JSONRouteResponseSummary.md
delete mode 100644 docs/JSONRouteResponseWarnings.md
delete mode 100644 docs/JSONStep.md
delete mode 100644 docs/JsonEdge.md
delete mode 100644 docs/MatrixResponse.md
delete mode 100644 docs/MatrixResponseDestinations.md
delete mode 100644 docs/MatrixResponseMetadata.md
delete mode 100644 docs/MatrixResponseSources.md
delete mode 100644 docs/OpenpoiservicePoiResponse.md
delete mode 100644 docs/Restrictions.md
delete mode 100644 docs/SnappingResponse.md
delete mode 100644 docs/SnappingResponseLocations.md
delete mode 100644 docs/SnappingResponseMetadata.md
delete mode 100644 openrouteservice/models/geo_json_features_object.py
delete mode 100644 openrouteservice/models/geo_json_geometry_object.py
delete mode 100644 openrouteservice/models/geo_json_properties_object.py
delete mode 100644 openrouteservice/models/geo_json_properties_object_category_ids.py
delete mode 100644 openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
delete mode 100644 openrouteservice/models/geo_json_properties_object_osm_tags.py
delete mode 100644 openrouteservice/models/geocode_response.py
delete mode 100644 openrouteservice/models/inline_response200.py
delete mode 100644 openrouteservice/models/inline_response2001.py
delete mode 100644 openrouteservice/models/inline_response2001_geometry.py
delete mode 100644 openrouteservice/models/inline_response2002.py
delete mode 100644 openrouteservice/models/inline_response2002_routes.py
delete mode 100644 openrouteservice/models/inline_response2002_steps.py
delete mode 100644 openrouteservice/models/inline_response2002_summary.py
delete mode 100644 openrouteservice/models/inline_response2002_unassigned.py
delete mode 100644 openrouteservice/models/inline_response2002_violations.py
delete mode 100644 openrouteservice/models/inline_response2003.py
delete mode 100644 openrouteservice/models/inline_response2003_metadata.py
delete mode 100644 openrouteservice/models/inline_response2004.py
delete mode 100644 openrouteservice/models/inline_response2004_extras.py
delete mode 100644 openrouteservice/models/inline_response2004_instructions.py
delete mode 100644 openrouteservice/models/inline_response2004_legs.py
delete mode 100644 openrouteservice/models/inline_response2004_maneuver.py
delete mode 100644 openrouteservice/models/inline_response2004_routes.py
delete mode 100644 openrouteservice/models/inline_response2004_segments.py
delete mode 100644 openrouteservice/models/inline_response2004_stops.py
delete mode 100644 openrouteservice/models/inline_response2004_summary.py
delete mode 100644 openrouteservice/models/inline_response2004_summary1.py
delete mode 100644 openrouteservice/models/inline_response2004_warnings.py
delete mode 100644 openrouteservice/models/inline_response2005.py
delete mode 100644 openrouteservice/models/inline_response2005_features.py
delete mode 100644 openrouteservice/models/inline_response2005_metadata.py
delete mode 100644 openrouteservice/models/inline_response2005_metadata_engine.py
delete mode 100644 openrouteservice/models/inline_response2006.py
delete mode 100644 openrouteservice/models/inline_response2006_destinations.py
delete mode 100644 openrouteservice/models/inline_response2006_metadata.py
delete mode 100644 openrouteservice/models/inline_response2006_sources.py
delete mode 100644 openrouteservice/models/inline_response2007.py
delete mode 100644 openrouteservice/models/inline_response2007_locations.py
delete mode 100644 openrouteservice/models/inline_response2007_metadata.py
delete mode 100644 openrouteservice/models/inline_response2008.py
delete mode 100644 openrouteservice/models/inline_response2008_features.py
delete mode 100644 openrouteservice/models/inline_response2008_geometry.py
delete mode 100644 openrouteservice/models/inline_response2008_properties.py
delete mode 100644 openrouteservice/models/inline_response200_geometry.py
rename openrouteservice/models/{inline_response2005_geometry.py => json_response.py} (72%)
delete mode 100644 openrouteservice/models/openpoiservice_poi_response.py
diff --git a/README.md b/README.md
index b4f7a82f..b06852fb 100644
--- a/README.md
+++ b/README.md
@@ -133,56 +133,10 @@ Class | Method | HTTP request | Description
- [DirectionsService1](docs/DirectionsService1.md)
- [ElevationLineBody](docs/ElevationLineBody.md)
- [ElevationPointBody](docs/ElevationPointBody.md)
- - [GeoJSONFeaturesObject](docs/GeoJSONFeaturesObject.md)
- - [GeoJSONGeometryObject](docs/GeoJSONGeometryObject.md)
- - [GeoJSONPropertiesObject](docs/GeoJSONPropertiesObject.md)
- - [GeoJSONPropertiesObjectCategoryIds](docs/GeoJSONPropertiesObjectCategoryIds.md)
- - [GeoJSONPropertiesObjectCategoryIdsCategoryId](docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md)
- - [GeoJSONPropertiesObjectOsmTags](docs/GeoJSONPropertiesObjectOsmTags.md)
- - [GeocodeResponse](docs/GeocodeResponse.md)
- - [InlineResponse200](docs/InlineResponse200.md)
- - [InlineResponse2001](docs/InlineResponse2001.md)
- - [InlineResponse2001Geometry](docs/InlineResponse2001Geometry.md)
- - [InlineResponse2002](docs/InlineResponse2002.md)
- - [InlineResponse2002Routes](docs/InlineResponse2002Routes.md)
- - [InlineResponse2002Steps](docs/InlineResponse2002Steps.md)
- - [InlineResponse2002Summary](docs/InlineResponse2002Summary.md)
- - [InlineResponse2002Unassigned](docs/InlineResponse2002Unassigned.md)
- - [InlineResponse2002Violations](docs/InlineResponse2002Violations.md)
- - [InlineResponse2003](docs/InlineResponse2003.md)
- - [InlineResponse2003Metadata](docs/InlineResponse2003Metadata.md)
- - [InlineResponse2004](docs/InlineResponse2004.md)
- - [InlineResponse2004Extras](docs/InlineResponse2004Extras.md)
- - [InlineResponse2004Instructions](docs/InlineResponse2004Instructions.md)
- - [InlineResponse2004Legs](docs/InlineResponse2004Legs.md)
- - [InlineResponse2004Maneuver](docs/InlineResponse2004Maneuver.md)
- - [InlineResponse2004Routes](docs/InlineResponse2004Routes.md)
- - [InlineResponse2004Segments](docs/InlineResponse2004Segments.md)
- - [InlineResponse2004Stops](docs/InlineResponse2004Stops.md)
- - [InlineResponse2004Summary](docs/InlineResponse2004Summary.md)
- - [InlineResponse2004Summary1](docs/InlineResponse2004Summary1.md)
- - [InlineResponse2004Warnings](docs/InlineResponse2004Warnings.md)
- - [InlineResponse2005](docs/InlineResponse2005.md)
- - [InlineResponse2005Features](docs/InlineResponse2005Features.md)
- - [InlineResponse2005Geometry](docs/InlineResponse2005Geometry.md)
- - [InlineResponse2005Metadata](docs/InlineResponse2005Metadata.md)
- - [InlineResponse2005MetadataEngine](docs/InlineResponse2005MetadataEngine.md)
- - [InlineResponse2006](docs/InlineResponse2006.md)
- - [InlineResponse2006Destinations](docs/InlineResponse2006Destinations.md)
- - [InlineResponse2006Metadata](docs/InlineResponse2006Metadata.md)
- - [InlineResponse2006Sources](docs/InlineResponse2006Sources.md)
- - [InlineResponse2007](docs/InlineResponse2007.md)
- - [InlineResponse2007Locations](docs/InlineResponse2007Locations.md)
- - [InlineResponse2007Metadata](docs/InlineResponse2007Metadata.md)
- - [InlineResponse2008](docs/InlineResponse2008.md)
- - [InlineResponse2008Features](docs/InlineResponse2008Features.md)
- - [InlineResponse2008Geometry](docs/InlineResponse2008Geometry.md)
- - [InlineResponse2008Properties](docs/InlineResponse2008Properties.md)
- - [InlineResponse200Geometry](docs/InlineResponse200Geometry.md)
- [IsochronesProfileBody](docs/IsochronesProfileBody.md)
+ - [JSONResponse](docs/JSONResponse.md)
- [MatrixProfileBody](docs/MatrixProfileBody.md)
- [OpenpoiservicePoiRequest](docs/OpenpoiservicePoiRequest.md)
- - [OpenpoiservicePoiResponse](docs/OpenpoiservicePoiResponse.md)
- [OptimizationBody](docs/OptimizationBody.md)
- [OptimizationBreaks](docs/OptimizationBreaks.md)
- [OptimizationCosts](docs/OptimizationCosts.md)
diff --git a/docs/DirectionsServiceApi.md b/docs/DirectionsServiceApi.md
index 9ac21848..bc220177 100644
--- a/docs/DirectionsServiceApi.md
+++ b/docs/DirectionsServiceApi.md
@@ -8,7 +8,7 @@ Method | HTTP request | Description
[**get_json_route**](DirectionsServiceApi.md#get_json_route) | **POST** /v2/directions/{profile}/json | Directions Service JSON
# **get_geo_json_route**
-> InlineResponse2003 get_geo_json_route(body, profile)
+> JSONResponse get_geo_json_route(body, profile)
Directions Service GeoJSON
@@ -50,7 +50,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2003**](InlineResponse2003.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
[[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)
# **get_json_route**
-> InlineResponse2004 get_json_route(body, profile)
+> JSONResponse get_json_route(body, profile)
Directions Service JSON
@@ -106,7 +106,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2004**](InlineResponse2004.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/ElevationApi.md b/docs/ElevationApi.md
index b3d6ccb2..7515c32d 100644
--- a/docs/ElevationApi.md
+++ b/docs/ElevationApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
[**elevation_point_post**](ElevationApi.md#elevation_point_post) | **POST** /elevation/point | Elevation Point Service
# **elevation_line_post**
-> InlineResponse200 elevation_line_post(body)
+> JSONResponse elevation_line_post(body)
Elevation Line Service
@@ -49,7 +49,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse200**](InlineResponse200.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -63,7 +63,7 @@ Name | Type | Description | Notes
[[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)
# **elevation_point_get**
-> InlineResponse2001 elevation_point_get(geometry, format_out=format_out, dataset=dataset)
+> JSONResponse elevation_point_get(geometry, format_out=format_out, dataset=dataset)
Elevation Point Service
@@ -107,7 +107,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2001**](InlineResponse2001.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -121,7 +121,7 @@ Name | Type | Description | Notes
[[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)
# **elevation_point_post**
-> InlineResponse2001 elevation_point_post(body)
+> JSONResponse elevation_point_post(body)
Elevation Point Service
@@ -161,7 +161,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2001**](InlineResponse2001.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/GeoJSONFeature.md b/docs/GeoJSONFeature.md
deleted file mode 100644
index a8960275..00000000
--- a/docs/GeoJSONFeature.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GeoJSONFeature
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**geometry** | [**GeoJSONFeatureGeometry**](GeoJSONFeatureGeometry.md) | | [optional]
-**properties** | [**GeoJSONFeatureProperties**](GeoJSONFeatureProperties.md) | | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'Feature']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONFeatureGeometry.md b/docs/GeoJSONFeatureGeometry.md
deleted file mode 100644
index cbe20895..00000000
--- a/docs/GeoJSONFeatureGeometry.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GeoJSONFeatureGeometry
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**coordinates** | **list[float]** | Lon/Lat coordinates of the snapped location | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'Point']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONFeatureProperties.md b/docs/GeoJSONFeatureProperties.md
deleted file mode 100644
index df691fac..00000000
--- a/docs/GeoJSONFeatureProperties.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GeoJSONFeatureProperties
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**name** | **str** | \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-**source_id** | **int** | Index of the requested location | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONFeaturesObject.md b/docs/GeoJSONFeaturesObject.md
deleted file mode 100644
index 32f4087f..00000000
--- a/docs/GeoJSONFeaturesObject.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# GeoJSONFeaturesObject
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**feature_properties** | [**GeoJSONPropertiesObject**](GeoJSONPropertiesObject.md) | | [optional]
-**geometry** | [**GeoJSONGeometryObject**](GeoJSONGeometryObject.md) | | [optional]
-**type** | **str** | | [optional] [default to 'Feature']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONGeometryObject.md b/docs/GeoJSONGeometryObject.md
deleted file mode 100644
index c20f9d63..00000000
--- a/docs/GeoJSONGeometryObject.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GeoJSONGeometryObject
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**coordinates** | **list[float]** | | [optional]
-**type** | **str** | | [optional] [default to 'Point']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONPropertiesObject.md b/docs/GeoJSONPropertiesObject.md
deleted file mode 100644
index b3643f07..00000000
--- a/docs/GeoJSONPropertiesObject.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# GeoJSONPropertiesObject
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**category_ids** | [**GeoJSONPropertiesObjectCategoryIds**](GeoJSONPropertiesObjectCategoryIds.md) | | [optional]
-**distance** | **float** | | [optional]
-**osm_id** | **float** | | [optional]
-**osm_tags** | [**GeoJSONPropertiesObjectOsmTags**](GeoJSONPropertiesObjectOsmTags.md) | | [optional]
-**osm_type** | **float** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONPropertiesObjectCategoryIds.md b/docs/GeoJSONPropertiesObjectCategoryIds.md
deleted file mode 100644
index 4f873c68..00000000
--- a/docs/GeoJSONPropertiesObjectCategoryIds.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# GeoJSONPropertiesObjectCategoryIds
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**category_id** | [**GeoJSONPropertiesObjectCategoryIdsCategoryId**](GeoJSONPropertiesObjectCategoryIdsCategoryId.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md b/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
deleted file mode 100644
index 53de8f0d..00000000
--- a/docs/GeoJSONPropertiesObjectCategoryIdsCategoryId.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# GeoJSONPropertiesObjectCategoryIdsCategoryId
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**category_group** | **float** | | [optional]
-**category_name** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeoJSONPropertiesObjectOsmTags.md b/docs/GeoJSONPropertiesObjectOsmTags.md
deleted file mode 100644
index 2bbadb10..00000000
--- a/docs/GeoJSONPropertiesObjectOsmTags.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# GeoJSONPropertiesObjectOsmTags
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**address** | **str** | | [optional]
-**distance** | **str** | | [optional]
-**fee** | **str** | | [optional]
-**name** | **str** | | [optional]
-**opening_hours** | **str** | | [optional]
-**website** | **str** | | [optional]
-**wheelchair** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/GeocodeApi.md b/docs/GeocodeApi.md
index f3db47c5..d8cf1907 100644
--- a/docs/GeocodeApi.md
+++ b/docs/GeocodeApi.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
[**geocode_search_structured_get**](GeocodeApi.md#geocode_search_structured_get) | **GET** /geocode/search/structured | Structured Forward Geocode Service (beta)
# **geocode_autocomplete_get**
-> GeocodeResponse geocode_autocomplete_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_country=boundary_country, sources=sources, layers=layers)
+> JSONResponse geocode_autocomplete_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_country=boundary_country, sources=sources, layers=layers)
Geocode Autocomplete Service
@@ -68,7 +68,7 @@ Name | Type | Description | Notes
### Return type
-[**GeocodeResponse**](GeocodeResponse.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -82,7 +82,7 @@ Name | Type | Description | Notes
[[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)
# **geocode_reverse_get**
-> GeocodeResponse geocode_reverse_get(point_lon, point_lat, boundary_circle_radius=boundary_circle_radius, size=size, layers=layers, sources=sources, boundary_country=boundary_country)
+> JSONResponse geocode_reverse_get(point_lon, point_lat, boundary_circle_radius=boundary_circle_radius, size=size, layers=layers, sources=sources, boundary_country=boundary_country)
Reverse Geocode Service
@@ -134,7 +134,7 @@ Name | Type | Description | Notes
### Return type
-[**GeocodeResponse**](GeocodeResponse.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -148,7 +148,7 @@ Name | Type | Description | Notes
[[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)
# **geocode_search_get**
-> GeocodeResponse geocode_search_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_gid=boundary_gid, boundary_country=boundary_country, sources=sources, layers=layers, size=size)
+> JSONResponse geocode_search_get(text, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_gid=boundary_gid, boundary_country=boundary_country, sources=sources, layers=layers, size=size)
Forward Geocode Service
@@ -216,7 +216,7 @@ Name | Type | Description | Notes
### Return type
-[**GeocodeResponse**](GeocodeResponse.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -230,7 +230,7 @@ Name | Type | Description | Notes
[[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)
# **geocode_search_structured_get**
-> GeocodeResponse geocode_search_structured_get(address=address, neighbourhood=neighbourhood, country=country, postalcode=postalcode, region=region, county=county, locality=locality, borough=borough, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_country=boundary_country, layers=layers, sources=sources, size=size)
+> JSONResponse geocode_search_structured_get(address=address, neighbourhood=neighbourhood, country=country, postalcode=postalcode, region=region, county=county, locality=locality, borough=borough, focus_point_lon=focus_point_lon, focus_point_lat=focus_point_lat, boundary_rect_min_lon=boundary_rect_min_lon, boundary_rect_min_lat=boundary_rect_min_lat, boundary_rect_max_lon=boundary_rect_max_lon, boundary_rect_max_lat=boundary_rect_max_lat, boundary_circle_lon=boundary_circle_lon, boundary_circle_lat=boundary_circle_lat, boundary_circle_radius=boundary_circle_radius, boundary_country=boundary_country, layers=layers, sources=sources, size=size)
Structured Forward Geocode Service (beta)
@@ -310,7 +310,7 @@ Name | Type | Description | Notes
### Return type
-[**GeocodeResponse**](GeocodeResponse.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/GeocodeResponse.md b/docs/GeocodeResponse.md
deleted file mode 100644
index 673d1673..00000000
--- a/docs/GeocodeResponse.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# GeocodeResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | | [optional]
-**features** | **list[object]** | | [optional]
-**geocoding** | **object** | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/Gpx.md b/docs/Gpx.md
deleted file mode 100644
index 14495e48..00000000
--- a/docs/Gpx.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Gpx
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**gpx_route_elements** | **list[object]** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md
deleted file mode 100644
index 4d9bbd35..00000000
--- a/docs/InlineResponse200.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# InlineResponse200
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | | [optional]
-**geometry** | [**InlineResponse200Geometry**](InlineResponse200Geometry.md) | | [optional]
-**timestamp** | **int** | | [optional]
-**version** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md
deleted file mode 100644
index 328a92ab..00000000
--- a/docs/InlineResponse2001.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# InlineResponse2001
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | | [optional]
-**geometry** | [**InlineResponse2001Geometry**](InlineResponse2001Geometry.md) | | [optional]
-**timestamp** | **int** | | [optional]
-**version** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2001Geometry.md b/docs/InlineResponse2001Geometry.md
deleted file mode 100644
index 3f000bb1..00000000
--- a/docs/InlineResponse2001Geometry.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse2001Geometry
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**coordinates** | **list[float]** | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md
deleted file mode 100644
index dd873bf4..00000000
--- a/docs/InlineResponse2002.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# InlineResponse2002
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**code** | **int** | status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | | [optional]
-**error** | **str** | error message (present if `code` is different from `0`) | [optional]
-**routes** | [**list[InlineResponse2002Routes]**](InlineResponse2002Routes.md) | array of `route` objects | [optional]
-**summary** | [**InlineResponse2002Summary**](InlineResponse2002Summary.md) | | [optional]
-**unassigned** | [**list[InlineResponse2002Unassigned]**](InlineResponse2002Unassigned.md) | array of objects describing unassigned jobs with their `id` and `location` (if provided) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002Routes.md b/docs/InlineResponse2002Routes.md
deleted file mode 100644
index d1421151..00000000
--- a/docs/InlineResponse2002Routes.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# InlineResponse2002Routes
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cost** | **float** | cost for this route | [optional]
-**delivery** | **list[int]** | Total delivery for tasks in this route | [optional]
-**description** | **str** | vehicle description, if provided in input | [optional]
-**distance** | **float** | total route distance. Only provided when using the `-g` flag | [optional]
-**duration** | **float** | total travel time for this route | [optional]
-**geometry** | **str** | polyline encoded route geometry. Only provided when using the `-g` flag | [optional]
-**pickup** | **list[int]** | total pickup for tasks in this route | [optional]
-**service** | **float** | total service time for this route | [optional]
-**steps** | [**list[InlineResponse2002Steps]**](InlineResponse2002Steps.md) | array of `step` objects | [optional]
-**vehicle** | **int** | id of the vehicle assigned to this route | [optional]
-**waiting_time** | **float** | total waiting time for this route | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002Steps.md b/docs/InlineResponse2002Steps.md
deleted file mode 100644
index 8ee61c15..00000000
--- a/docs/InlineResponse2002Steps.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# InlineResponse2002Steps
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival** | **float** | estimated time of arrival at this step in seconds | [optional]
-**description** | **str** | step description, if provided in input | [optional]
-**distance** | **float** | traveled distance upon arrival at this step. Only provided when using the `-g` flag | [optional]
-**duration** | **float** | cumulated travel time upon arrival at this step in seconds | [optional]
-**id** | **int** | id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` | [optional]
-**load** | **int** | vehicle load after step completion (with capacity constraints) | [optional]
-**location** | **list[float]** | coordinates array for this step (if provided in input) | [optional]
-**service** | **float** | service time at this step | [optional]
-**setup** | **float** | setup time at this step | [optional]
-**type** | **str** | string that is either `start`, `job` or `end` | [optional]
-**violations** | [**list[InlineResponse2002Violations]**](InlineResponse2002Violations.md) | array of violation objects for this step | [optional]
-**waiting_time** | **float** | waiting time upon arrival at this step, only provided if `type` value is `job` | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002Summary.md b/docs/InlineResponse2002Summary.md
deleted file mode 100644
index b14c542e..00000000
--- a/docs/InlineResponse2002Summary.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# InlineResponse2002Summary
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cost** | **float** | total cost for all routes | [optional]
-**delivery** | **float** | Total delivery for all routes | [optional]
-**distance** | **float** | total distance for all routes. Only provided when using the `-g` flag with `OSRM` | [optional]
-**duration** | **float** | total travel time for all routes | [optional]
-**pickup** | **float** | Total pickup for all routes | [optional]
-**priority** | **float** | total priority sum for all assigned tasks | [optional]
-**routes** | **float** | Number of routes in the solution | [optional]
-**service** | **float** | total service time for all routes | [optional]
-**setup** | **float** | Total setup time for all routes | [optional]
-**unassigned** | **int** | number of jobs that could not be served | [optional]
-**violations** | [**list[InlineResponse2002Violations]**](InlineResponse2002Violations.md) | array of violation objects for all routes | [optional]
-**waiting_time** | **float** | total waiting time for all routes | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002Unassigned.md b/docs/InlineResponse2002Unassigned.md
deleted file mode 100644
index 54606878..00000000
--- a/docs/InlineResponse2002Unassigned.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse2002Unassigned
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | The `id` of the unassigned job\" | [optional]
-**location** | **list[float]** | The `location` of the unassigned job | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2002Violations.md b/docs/InlineResponse2002Violations.md
deleted file mode 100644
index 8a828f55..00000000
--- a/docs/InlineResponse2002Violations.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse2002Violations
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cause** | **str** | string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value | [optional]
-**duration** | **float** | Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md
deleted file mode 100644
index 8e6022ca..00000000
--- a/docs/InlineResponse2003.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# InlineResponse2003
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**features** | **list[object]** | | [optional]
-**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md
deleted file mode 100644
index af4cefce..00000000
--- a/docs/InlineResponse2004.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# InlineResponse2004
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
-**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md
deleted file mode 100644
index 94e906dc..00000000
--- a/docs/InlineResponse2005.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# InlineResponse2005
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned isochrones | [optional]
-**features** | [**list[InlineResponse2005Features]**](InlineResponse2005Features.md) | | [optional]
-**metadata** | [**InlineResponse2005Metadata**](InlineResponse2005Metadata.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2005Features.md b/docs/InlineResponse2005Features.md
deleted file mode 100644
index efda05e3..00000000
--- a/docs/InlineResponse2005Features.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse2005Features
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**geometry** | [**InlineResponse2005Geometry**](InlineResponse2005Geometry.md) | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2005Geometry.md b/docs/InlineResponse2005Geometry.md
deleted file mode 100644
index 09a1e005..00000000
--- a/docs/InlineResponse2005Geometry.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# InlineResponse2005Geometry
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**empty** | **bool** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2005Metadata.md b/docs/InlineResponse2005Metadata.md
deleted file mode 100644
index 97214124..00000000
--- a/docs/InlineResponse2005Metadata.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# InlineResponse2005Metadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**IsochronesProfileBody**](IsochronesProfileBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md
deleted file mode 100644
index 38f5b84b..00000000
--- a/docs/InlineResponse2006.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# InlineResponse2006
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**destinations** | [**list[MatrixResponseDestinations]**](MatrixResponseDestinations.md) | The individual destinations of the matrix calculations. | [optional]
-**distances** | **list[list[float]]** | The distances of the matrix calculations. | [optional]
-**durations** | **list[list[float]]** | The durations of the matrix calculations. | [optional]
-**metadata** | [**MatrixResponseMetadata**](MatrixResponseMetadata.md) | | [optional]
-**sources** | [**list[MatrixResponseSources]**](MatrixResponseSources.md) | The individual sources of the matrix calculations. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md
deleted file mode 100644
index 97f695da..00000000
--- a/docs/InlineResponse2007.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse2007
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
-**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md
deleted file mode 100644
index 03a29dca..00000000
--- a/docs/InlineResponse2008.md
+++ /dev/null
@@ -1,12 +0,0 @@
-# InlineResponse2008
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned snapping points | [optional]
-**features** | [**list[InlineResponse2008Features]**](InlineResponse2008Features.md) | Information about the service and request | [optional]
-**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'FeatureCollection']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse2008Features.md b/docs/InlineResponse2008Features.md
deleted file mode 100644
index b1e2cbe1..00000000
--- a/docs/InlineResponse2008Features.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# InlineResponse2008Features
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**geometry** | [**GeoJSONFeatureGeometry**](GeoJSONFeatureGeometry.md) | | [optional]
-**properties** | [**GeoJSONFeatureProperties**](GeoJSONFeatureProperties.md) | | [optional]
-**type** | **str** | GeoJSON type | [optional] [default to 'Feature']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/InlineResponse200Geometry.md b/docs/InlineResponse200Geometry.md
deleted file mode 100644
index 2909a198..00000000
--- a/docs/InlineResponse200Geometry.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# InlineResponse200Geometry
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**coordinates** | **list[list[float]]** | | [optional]
-**type** | **str** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/IsochronesServiceApi.md b/docs/IsochronesServiceApi.md
index 599e4c46..806423e4 100644
--- a/docs/IsochronesServiceApi.md
+++ b/docs/IsochronesServiceApi.md
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**get_default_isochrones**](IsochronesServiceApi.md#get_default_isochrones) | **POST** /v2/isochrones/{profile} | Isochrones Service
# **get_default_isochrones**
-> InlineResponse2005 get_default_isochrones(body, profile)
+> JSONResponse get_default_isochrones(body, profile)
Isochrones Service
@@ -49,7 +49,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2005**](InlineResponse2005.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/JSONExtra.md b/docs/JSONExtra.md
deleted file mode 100644
index dda54d8e..00000000
--- a/docs/JSONExtra.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JSONExtra
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**summary** | [**list[JSONExtraSummary]**](JSONExtraSummary.md) | List representing the summary of the extra info items. | [optional]
-**values** | **list[list[int]]** | A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONExtraSummary.md b/docs/JSONExtraSummary.md
deleted file mode 100644
index 117f5af0..00000000
--- a/docs/JSONExtraSummary.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONExtraSummary
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**amount** | **float** | Category percentage of the entire route. | [optional]
-**distance** | **float** | Cumulative distance of this value. | [optional]
-**value** | **float** | [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/Rte.md b/docs/JSONResponse.md
similarity index 94%
rename from docs/Rte.md
rename to docs/JSONResponse.md
index 2aa77d19..e32ee419 100644
--- a/docs/Rte.md
+++ b/docs/JSONResponse.md
@@ -1,4 +1,4 @@
-# Rte
+# JSONResponse
## Properties
Name | Type | Description | Notes
diff --git a/docs/JSONRouteResponse.md b/docs/JSONRouteResponse.md
deleted file mode 100644
index b87f9e1d..00000000
--- a/docs/JSONRouteResponse.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONRouteResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bbox** | **list[float]** | Bounding box that covers all returned routes | [optional]
-**metadata** | [**JSONRouteResponseMetadata**](JSONRouteResponseMetadata.md) | | [optional]
-**routes** | [**list[JSONRouteResponseRoutes]**](JSONRouteResponseRoutes.md) | A list of routes returned from the request | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseExtras.md b/docs/JSONRouteResponseExtras.md
deleted file mode 100644
index 538cf6e8..00000000
--- a/docs/JSONRouteResponseExtras.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JSONRouteResponseExtras
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**summary** | [**list[JSONExtraSummary]**](JSONExtraSummary.md) | List representing the summary of the extra info items. | [optional]
-**values** | **list[list[int]]** | A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseInstructions.md b/docs/JSONRouteResponseInstructions.md
deleted file mode 100644
index 44f5847c..00000000
--- a/docs/JSONRouteResponseInstructions.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# JSONRouteResponseInstructions
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**distance** | **float** | The distance for the step in metres. | [optional]
-**duration** | **float** | The duration for the step in seconds. | [optional]
-**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
-**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
-**instruction** | **str** | The routing instruction text for the step. | [optional]
-**maneuver** | [**JSONRouteResponseManeuver**](JSONRouteResponseManeuver.md) | | [optional]
-**name** | **str** | The name of the next street. | [optional]
-**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
-**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseLegs.md b/docs/JSONRouteResponseLegs.md
deleted file mode 100644
index 373fdff5..00000000
--- a/docs/JSONRouteResponseLegs.md
+++ /dev/null
@@ -1,26 +0,0 @@
-# JSONRouteResponseLegs
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival** | **datetime** | Arrival date and time | [optional]
-**departure** | **datetime** | Departure date and time | [optional]
-**departure_location** | **str** | The departure location of the leg. | [optional]
-**distance** | **float** | The distance for the leg in metres. | [optional]
-**duration** | **float** | The duration for the leg in seconds. | [optional]
-**feed_id** | **str** | The feed ID this public transport leg based its information from. | [optional]
-**geometry** | **str** | The geometry of the leg. This is an encoded polyline. | [optional]
-**instructions** | [**list[JSONRouteResponseInstructions]**](JSONRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
-**is_in_same_vehicle_as_previous** | **bool** | Whether the legs continues in the same vehicle as the previous one. | [optional]
-**route_desc** | **str** | The route description of the leg (if provided in the GTFS data set). | [optional]
-**route_id** | **str** | The route ID of this public transport leg. | [optional]
-**route_long_name** | **str** | The public transport route name of the leg. | [optional]
-**route_short_name** | **str** | The public transport route name (short version) of the leg. | [optional]
-**route_type** | **int** | The route type of the leg (if provided in the GTFS data set). | [optional]
-**stops** | [**list[JSONRouteResponseStops]**](JSONRouteResponseStops.md) | List containing the stops the along the leg. | [optional]
-**trip_headsign** | **str** | The headsign of the public transport vehicle of the leg. | [optional]
-**trip_id** | **str** | The trip ID of this public transport leg. | [optional]
-**type** | **str** | The type of the leg, possible values are currently 'walk' and 'pt'. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseManeuver.md b/docs/JSONRouteResponseManeuver.md
deleted file mode 100644
index 1085a2de..00000000
--- a/docs/JSONRouteResponseManeuver.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONRouteResponseManeuver
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**bearing_after** | **int** | The azimuth angle (in degrees) of the direction right after the maneuver. | [optional]
-**bearing_before** | **int** | The azimuth angle (in degrees) of the direction right before the maneuver. | [optional]
-**location** | **list[float]** | The coordinate of the point where a maneuver takes place. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseMetadata.md b/docs/JSONRouteResponseMetadata.md
deleted file mode 100644
index 0ab05986..00000000
--- a/docs/JSONRouteResponseMetadata.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# JSONRouteResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**DirectionsService1**](DirectionsService1.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseMetadataEngine.md b/docs/JSONRouteResponseMetadataEngine.md
deleted file mode 100644
index 2cbd9c6d..00000000
--- a/docs/JSONRouteResponseMetadataEngine.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JSONRouteResponseMetadataEngine
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**build_date** | **str** | The date that the service was last updated | [optional]
-**graph_date** | **str** | The date that the graph data was last updated | [optional]
-**version** | **str** | The backend version of the openrouteservice that was queried | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseRoutes.md b/docs/JSONRouteResponseRoutes.md
deleted file mode 100644
index 040c78e2..00000000
--- a/docs/JSONRouteResponseRoutes.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# JSONRouteResponseRoutes
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival** | **datetime** | Arrival date and time | [optional]
-**bbox** | **list[float]** | A bounding box which contains the entire route | [optional]
-**departure** | **datetime** | Departure date and time | [optional]
-**extras** | [**dict(str, JSONRouteResponseExtras)**](JSONRouteResponseExtras.md) | List of extra info objects representing the extra info items that were requested for the route. | [optional]
-**geometry** | **str** | The geometry of the route. For JSON route responses this is an encoded polyline. | [optional]
-**legs** | [**list[JSONRouteResponseLegs]**](JSONRouteResponseLegs.md) | List containing the legs the route consists of. | [optional]
-**segments** | [**list[JSONRouteResponseSegments]**](JSONRouteResponseSegments.md) | List containing the segments and its corresponding steps which make up the route. | [optional]
-**summary** | [**JSONRouteResponseSummary**](JSONRouteResponseSummary.md) | | [optional]
-**warnings** | [**list[JSONRouteResponseWarnings]**](JSONRouteResponseWarnings.md) | List of warnings that have been generated for the route | [optional]
-**way_points** | **list[int]** | List containing the indices of way points corresponding to the *geometry*. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseSegments.md b/docs/JSONRouteResponseSegments.md
deleted file mode 100644
index 091b44c8..00000000
--- a/docs/JSONRouteResponseSegments.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# JSONRouteResponseSegments
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ascent** | **float** | Contains ascent of this segment in metres. | [optional]
-**avgspeed** | **float** | Contains the average speed of this segment in km/h. | [optional]
-**descent** | **float** | Contains descent of this segment in metres. | [optional]
-**detourfactor** | **float** | Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. | [optional]
-**distance** | **float** | Contains the distance of the segment in specified units. | [optional]
-**duration** | **float** | Contains the duration of the segment in seconds. | [optional]
-**percentage** | **float** | Contains the proportion of the route in percent. | [optional]
-**steps** | [**list[JSONRouteResponseInstructions]**](JSONRouteResponseInstructions.md) | List containing the specific steps the segment consists of. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseStops.md b/docs/JSONRouteResponseStops.md
deleted file mode 100644
index d205e8f0..00000000
--- a/docs/JSONRouteResponseStops.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# JSONRouteResponseStops
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**arrival_cancelled** | **bool** | Whether arrival at the stop was cancelled. | [optional]
-**arrival_time** | **datetime** | Arrival time of the stop. | [optional]
-**departure_cancelled** | **bool** | Whether departure at the stop was cancelled. | [optional]
-**departure_time** | **datetime** | Departure time of the stop. | [optional]
-**location** | **list[float]** | The location of the stop. | [optional]
-**name** | **str** | The name of the stop. | [optional]
-**planned_arrival_time** | **datetime** | Planned arrival time of the stop. | [optional]
-**planned_departure_time** | **datetime** | Planned departure time of the stop. | [optional]
-**predicted_arrival_time** | **datetime** | Predicted arrival time of the stop. | [optional]
-**predicted_departure_time** | **datetime** | Predicted departure time of the stop. | [optional]
-**stop_id** | **str** | The ID of the stop. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseSummary.md b/docs/JSONRouteResponseSummary.md
deleted file mode 100644
index 7675c2f2..00000000
--- a/docs/JSONRouteResponseSummary.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# JSONRouteResponseSummary
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**ascent** | **float** | Total ascent in meters. | [optional]
-**descent** | **float** | Total descent in meters. | [optional]
-**distance** | **float** | Total route distance in specified units. | [optional]
-**duration** | **float** | Total duration in seconds. | [optional]
-**fare** | **int** | | [optional]
-**transfers** | **int** | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONRouteResponseWarnings.md b/docs/JSONRouteResponseWarnings.md
deleted file mode 100644
index f74260fb..00000000
--- a/docs/JSONRouteResponseWarnings.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# JSONRouteResponseWarnings
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**code** | **int** | Identification code for the warning | [optional]
-**message** | **str** | The message associated with the warning | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JSONStep.md b/docs/JSONStep.md
deleted file mode 100644
index 0ec9d45a..00000000
--- a/docs/JSONStep.md
+++ /dev/null
@@ -1,17 +0,0 @@
-# JSONStep
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**distance** | **float** | The distance for the step in metres. | [optional]
-**duration** | **float** | The duration for the step in seconds. | [optional]
-**exit_bearings** | **list[int]** | Contains the bearing of the entrance and all passed exits in a roundabout. | [optional]
-**exit_number** | **int** | Only for roundabouts. Contains the number of the exit to take. | [optional]
-**instruction** | **str** | The routing instruction text for the step. | [optional]
-**maneuver** | [**JSONRouteResponseManeuver**](JSONRouteResponseManeuver.md) | | [optional]
-**name** | **str** | The name of the next street. | [optional]
-**type** | **int** | The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. | [optional]
-**way_points** | **list[int]** | List containing the indices of the steps start- and endpoint corresponding to the *geometry*. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/JsonEdge.md b/docs/JsonEdge.md
deleted file mode 100644
index 31c8993d..00000000
--- a/docs/JsonEdge.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# JsonEdge
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**from_id** | **int** | Id of the start point of the edge | [optional]
-**to_id** | **int** | Id of the end point of the edge | [optional]
-**weight** | **float** | Weight of the corresponding edge in the given bounding box | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponse.md b/docs/MatrixResponse.md
deleted file mode 100644
index 5ca1c20f..00000000
--- a/docs/MatrixResponse.md
+++ /dev/null
@@ -1,13 +0,0 @@
-# MatrixResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**destinations** | [**list[MatrixResponseDestinations]**](MatrixResponseDestinations.md) | The individual destinations of the matrix calculations. | [optional]
-**distances** | **list[list[float]]** | The distances of the matrix calculations. | [optional]
-**durations** | **list[list[float]]** | The durations of the matrix calculations. | [optional]
-**metadata** | [**MatrixResponseMetadata**](MatrixResponseMetadata.md) | | [optional]
-**sources** | [**list[MatrixResponseSources]**](MatrixResponseSources.md) | The individual sources of the matrix calculations. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponseDestinations.md b/docs/MatrixResponseDestinations.md
deleted file mode 100644
index 26caf9b5..00000000
--- a/docs/MatrixResponseDestinations.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# MatrixResponseDestinations
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponseMetadata.md b/docs/MatrixResponseMetadata.md
deleted file mode 100644
index d3e92503..00000000
--- a/docs/MatrixResponseMetadata.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# MatrixResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
-**id** | **str** | ID of the request (as passed in by the query) | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**MatrixProfileBody**](MatrixProfileBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixResponseSources.md b/docs/MatrixResponseSources.md
deleted file mode 100644
index 818dc08d..00000000
--- a/docs/MatrixResponseSources.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# MatrixResponseSources
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/MatrixServiceApi.md b/docs/MatrixServiceApi.md
index f2699615..0941359b 100644
--- a/docs/MatrixServiceApi.md
+++ b/docs/MatrixServiceApi.md
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**get_default1**](MatrixServiceApi.md#get_default1) | **POST** /v2/matrix/{profile} | Matrix Service
# **get_default1**
-> InlineResponse2006 get_default1(body, profile)
+> JSONResponse get_default1(body, profile)
Matrix Service
@@ -49,7 +49,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2006**](InlineResponse2006.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/OpenpoiservicePoiResponse.md b/docs/OpenpoiservicePoiResponse.md
deleted file mode 100644
index 7863f7cc..00000000
--- a/docs/OpenpoiservicePoiResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# OpenpoiservicePoiResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**features** | [**list[GeoJSONFeaturesObject]**](GeoJSONFeaturesObject.md) | | [optional]
-**type** | **str** | | [optional] [default to 'FeatureCollection']
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/OptimizationApi.md b/docs/OptimizationApi.md
index 4dab79f7..1e29871e 100644
--- a/docs/OptimizationApi.md
+++ b/docs/OptimizationApi.md
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**optimization_post**](OptimizationApi.md#optimization_post) | **POST** /optimization | Optimization Service
# **optimization_post**
-> InlineResponse2002 optimization_post(body)
+> JSONResponse optimization_post(body)
Optimization Service
@@ -47,7 +47,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2002**](InlineResponse2002.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/PoisApi.md b/docs/PoisApi.md
index 47280d3e..4dd3a87b 100644
--- a/docs/PoisApi.md
+++ b/docs/PoisApi.md
@@ -7,7 +7,7 @@ Method | HTTP request | Description
[**pois_post**](PoisApi.md#pois_post) | **POST** /pois | Pois Service
# **pois_post**
-> OpenpoiservicePoiResponse pois_post(body)
+> JSONResponse pois_post(body)
Pois Service
@@ -47,7 +47,7 @@ Name | Type | Description | Notes
### Return type
-[**OpenpoiservicePoiResponse**](OpenpoiservicePoiResponse.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/docs/Restrictions.md b/docs/Restrictions.md
deleted file mode 100644
index f194b3a1..00000000
--- a/docs/Restrictions.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Restrictions
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**axleload** | **float** | Axleload restriction in tons. | [optional]
-**hazmat** | **bool** | Specifies whether to use appropriate routing for delivering hazardous goods and avoiding water protected areas. Default is `false`. | [optional] [default to False]
-**height** | **float** | Height restriction in metres. | [optional]
-**length** | **float** | Length restriction in metres. | [optional]
-**maximum_incline** | **int** | Specifies the maximum incline as a percentage. `3`, `6` (default), `10`, `15. | [optional] [default to 6]
-**maximum_sloped_kerb** | **float** | Specifies the maximum height of the sloped curb in metres. Values are `0.03`, `0.06` (default), `0.1`. | [optional] [default to 0.6]
-**minimum_width** | **float** | Specifies the minimum width of the footway in metres. | [optional]
-**smoothness_type** | **str** | Specifies the minimum smoothness of the route. Default is `good`. | [optional] [default to 'good']
-**surface_type** | **str** | Specifies the minimum surface type. Default is `sett`. | [optional] [default to 'sett']
-**track_type** | **str** | Specifies the minimum grade of the route. Default is `grade1`. | [optional] [default to 'grade1']
-**weight** | **float** | Weight restriction in tons. | [optional]
-**width** | **float** | Width restriction in metres. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/SnappingResponse.md b/docs/SnappingResponse.md
deleted file mode 100644
index 4499848c..00000000
--- a/docs/SnappingResponse.md
+++ /dev/null
@@ -1,10 +0,0 @@
-# SnappingResponse
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**locations** | [**list[SnappingResponseLocations]**](SnappingResponseLocations.md) | The snapped locations as coordinates and snapping distance. | [optional]
-**metadata** | [**SnappingResponseMetadata**](SnappingResponseMetadata.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/SnappingResponseLocations.md b/docs/SnappingResponseLocations.md
deleted file mode 100644
index 05073e1e..00000000
--- a/docs/SnappingResponseLocations.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# SnappingResponseLocations
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**location** | **list[float]** | {longitude},{latitude} coordinates of the closest accessible point on the routing graph | [optional]
-**name** | **str** | Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. | [optional]
-**snapped_distance** | **float** | Distance between the `source/destination` Location and the used point on the routing graph in meters. | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/SnappingResponseMetadata.md b/docs/SnappingResponseMetadata.md
deleted file mode 100644
index 73c0555a..00000000
--- a/docs/SnappingResponseMetadata.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# SnappingResponseMetadata
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attribution** | **str** | Copyright and attribution information | [optional]
-**engine** | [**JSONRouteResponseMetadataEngine**](JSONRouteResponseMetadataEngine.md) | | [optional]
-**osm_file_md5_hash** | **str** | The MD5 hash of the OSM planet file that was used for generating graphs | [optional]
-**query** | [**ProfileJsonBody**](ProfileJsonBody.md) | | [optional]
-**service** | **str** | The service that was requested | [optional]
-**system_message** | **str** | System message | [optional]
-**timestamp** | **int** | Time that the request was made (UNIX Epoch time) | [optional]
-
-[[Back to Model list]](../README.md#documentation_for_models) [[Back to API list]](../README.md#documentation_for_api_endpoints) [[Back to README]](../README.md)
-
diff --git a/docs/SnappingServiceApi.md b/docs/SnappingServiceApi.md
index dcfa19d7..5480f0da 100644
--- a/docs/SnappingServiceApi.md
+++ b/docs/SnappingServiceApi.md
@@ -9,7 +9,7 @@ Method | HTTP request | Description
[**get_json_snapping**](SnappingServiceApi.md#get_json_snapping) | **POST** /v2/snap/{profile}/json | Snapping Service JSON
# **get_default**
-> InlineResponse2007 get_default(body, profile)
+> JSONResponse get_default(body, profile)
Snapping Service
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2007**](InlineResponse2007.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
[[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)
# **get_geo_json_snapping**
-> InlineResponse2008 get_geo_json_snapping(body, profile)
+> JSONResponse get_geo_json_snapping(body, profile)
Snapping Service GeoJSON
@@ -107,7 +107,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2008**](InlineResponse2008.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
@@ -121,7 +121,7 @@ Name | Type | Description | Notes
[[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)
# **get_json_snapping**
-> InlineResponse2007 get_json_snapping(body, profile)
+> JSONResponse get_json_snapping(body, profile)
Snapping Service JSON
@@ -163,7 +163,7 @@ Name | Type | Description | Notes
### Return type
-[**InlineResponse2007**](InlineResponse2007.md)
+[**JSONResponse**](JSONResponse.md)
### Authorization
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index 19fd174b..aac52036 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -32,56 +32,10 @@
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
-from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
-from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
-from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
-from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
-from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
-from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
-from openrouteservice.models.geocode_response import GeocodeResponse
-from openrouteservice.models.inline_response200 import InlineResponse200
-from openrouteservice.models.inline_response2001 import InlineResponse2001
-from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
-from openrouteservice.models.inline_response2002 import InlineResponse2002
-from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes
-from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
-from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
-from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
-from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
-from openrouteservice.models.inline_response2003 import InlineResponse2003
-from openrouteservice.models.inline_response2003_metadata import InlineResponse2003Metadata
-from openrouteservice.models.inline_response2004 import InlineResponse2004
-from openrouteservice.models.inline_response2004_extras import InlineResponse2004Extras
-from openrouteservice.models.inline_response2004_instructions import InlineResponse2004Instructions
-from openrouteservice.models.inline_response2004_legs import InlineResponse2004Legs
-from openrouteservice.models.inline_response2004_maneuver import InlineResponse2004Maneuver
-from openrouteservice.models.inline_response2004_routes import InlineResponse2004Routes
-from openrouteservice.models.inline_response2004_segments import InlineResponse2004Segments
-from openrouteservice.models.inline_response2004_stops import InlineResponse2004Stops
-from openrouteservice.models.inline_response2004_summary import InlineResponse2004Summary
-from openrouteservice.models.inline_response2004_summary1 import InlineResponse2004Summary1
-from openrouteservice.models.inline_response2004_warnings import InlineResponse2004Warnings
-from openrouteservice.models.inline_response2005 import InlineResponse2005
-from openrouteservice.models.inline_response2005_features import InlineResponse2005Features
-from openrouteservice.models.inline_response2005_geometry import InlineResponse2005Geometry
-from openrouteservice.models.inline_response2005_metadata import InlineResponse2005Metadata
-from openrouteservice.models.inline_response2005_metadata_engine import InlineResponse2005MetadataEngine
-from openrouteservice.models.inline_response2006 import InlineResponse2006
-from openrouteservice.models.inline_response2006_destinations import InlineResponse2006Destinations
-from openrouteservice.models.inline_response2006_metadata import InlineResponse2006Metadata
-from openrouteservice.models.inline_response2006_sources import InlineResponse2006Sources
-from openrouteservice.models.inline_response2007 import InlineResponse2007
-from openrouteservice.models.inline_response2007_locations import InlineResponse2007Locations
-from openrouteservice.models.inline_response2007_metadata import InlineResponse2007Metadata
-from openrouteservice.models.inline_response2008 import InlineResponse2008
-from openrouteservice.models.inline_response2008_features import InlineResponse2008Features
-from openrouteservice.models.inline_response2008_geometry import InlineResponse2008Geometry
-from openrouteservice.models.inline_response2008_properties import InlineResponse2008Properties
-from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
+from openrouteservice.models.json_response import JSONResponse
from openrouteservice.models.matrix_profile_body import MatrixProfileBody
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
-from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
from openrouteservice.models.optimization_breaks import OptimizationBreaks
from openrouteservice.models.optimization_costs import OptimizationCosts
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index 21ce063e..eab71948 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -44,7 +44,7 @@ def get_geo_json_route(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param DirectionsService body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2003
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -67,7 +67,7 @@ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E
:param async_req bool
:param DirectionsService body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2003
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -131,7 +131,7 @@ def get_geo_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2003', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -151,7 +151,7 @@ def get_json_route(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param DirectionsService1 body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2004
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -174,7 +174,7 @@ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param DirectionsService1 body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2004
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -238,7 +238,7 @@ def get_json_route_with_http_info(self, body, profile, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2004', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index d73aabc8..6afc06d1 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -43,7 +43,7 @@ def elevation_line_post(self, body, **kwargs): # noqa: E501
:param async_req bool
:param ElevationLineBody body: Query the elevation of a line in various formats. (required)
- :return: InlineResponse200
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -65,7 +65,7 @@ def elevation_line_post_with_http_info(self, body, **kwargs): # noqa: E501
:param async_req bool
:param ElevationLineBody body: Query the elevation of a line in various formats. (required)
- :return: InlineResponse200
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -123,7 +123,7 @@ def elevation_line_post_with_http_info(self, body, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse200', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -144,7 +144,7 @@ def elevation_point_get(self, geometry, **kwargs): # noqa: E501
:param list[float] geometry: The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295] (required)
:param str format_out: The output format to be returned.
:param str dataset: The elevation dataset to be used.
- :return: InlineResponse2001
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -168,7 +168,7 @@ def elevation_point_get_with_http_info(self, geometry, **kwargs): # noqa: E501
:param list[float] geometry: The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295] (required)
:param str format_out: The output format to be returned.
:param str dataset: The elevation dataset to be used.
- :return: InlineResponse2001
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -227,7 +227,7 @@ def elevation_point_get_with_http_info(self, geometry, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2001', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -246,7 +246,7 @@ def elevation_point_post(self, body, **kwargs): # noqa: E501
:param async_req bool
:param ElevationPointBody body: Query the elevation of a point in various formats. (required)
- :return: InlineResponse2001
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -268,7 +268,7 @@ def elevation_point_post_with_http_info(self, body, **kwargs): # noqa: E501
:param async_req bool
:param ElevationPointBody body: Query the elevation of a point in various formats. (required)
- :return: InlineResponse2001
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -326,7 +326,7 @@ def elevation_point_post_with_http_info(self, body, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2001', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index 9cb19afc..c03b1b7c 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -52,7 +52,7 @@ def geocode_autocomplete_get(self, text, **kwargs): # noqa: E501
:param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -83,7 +83,7 @@ def geocode_autocomplete_get_with_http_info(self, text, **kwargs): # noqa: E501
:param str boundary_country: Restrict results to single country. Possible values are [alpha-2 and alpha-3 country codes](https://en.wikipedia.org/wiki/ISO_3166-1). Example: `DEU` or `DE` for Germany.
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -157,7 +157,7 @@ def geocode_autocomplete_get_with_http_info(self, text, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='GeocodeResponse', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -182,7 +182,7 @@ def geocode_reverse_get(self, point_lon, point_lat, **kwargs): # noqa: E501
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param str boundary_country: Restrict search to country by [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.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -210,7 +210,7 @@ def geocode_reverse_get_with_http_info(self, point_lon, point_lat, **kwargs): #
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `locality`|towns, hamlets, cities| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param str boundary_country: Restrict search to country by [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.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -282,7 +282,7 @@ def geocode_reverse_get_with_http_info(self, point_lon, point_lat, **kwargs): #
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='GeocodeResponse', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -315,7 +315,7 @@ def geocode_search_get(self, text, **kwargs): # noqa: E501
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param int size: Set the number of returned results.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -351,7 +351,7 @@ def geocode_search_get_with_http_info(self, text, **kwargs): # noqa: E501
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param int size: Set the number of returned results.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -435,7 +435,7 @@ def geocode_search_get_with_http_info(self, text, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='GeocodeResponse', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -474,7 +474,7 @@ def geocode_search_structured_get(self, **kwargs): # noqa: E501
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param int size: Set the number of returned results.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -516,7 +516,7 @@ def geocode_search_structured_get_with_http_info(self, **kwargs): # noqa: E501
:param list[str] layers: Restrict search to layers (place type). By default all layers are searched. layer|description| ----|----| `venue`|points of interest, businesses, things with walls| `address`|places with a street address| `street`|streets,roads,highways| `neighbourhood`|social communities, neighbourhoods| `borough`|a local administrative boundary, currently only used for New York City| `localadmin`|local administrative boundaries| `locality`|towns, hamlets, cities| `county`|official governmental area; usually bigger than a locality, almost always smaller than a region| `macrocounty`|a related group of counties. Mostly in Europe.| `region`|states and provinces| `macroregion`|a related group of regions. Mostly in Europe| `country`|places that issue passports, nations, nation-states| `coarse`|alias for simultaneously using all administrative layers (everything except `venue` and `address`)|
:param list[str] sources: Restrict your search to specific sources. Searches all sources by default. You can either use the normal or short name. Sources are [`openstreetmap(osm)`](http://www.openstreetmap.org/), [`openaddresses(oa)`](http://openaddresses.io/), [`whosonfirst(wof)`](https://whosonfirst.org/), [`geonames(gn)`](http://www.geonames.org/).
:param int size: Set the number of returned results.
- :return: GeocodeResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -608,7 +608,7 @@ def geocode_search_structured_get_with_http_info(self, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='GeocodeResponse', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index 4526e634..3d54309f 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -44,7 +44,7 @@ def get_default_isochrones(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param IsochronesProfileBody body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2005
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -67,7 +67,7 @@ def get_default_isochrones_with_http_info(self, body, profile, **kwargs): # noq
:param async_req bool
:param IsochronesProfileBody body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2005
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -131,7 +131,7 @@ def get_default_isochrones_with_http_info(self, body, profile, **kwargs): # noq
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2005', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index 5e3d1b69..a943a212 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -44,7 +44,7 @@ def get_default1(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param MatrixProfileBody body: (required)
:param str profile: Specifies the matrix profile. (required)
- :return: InlineResponse2006
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -67,7 +67,7 @@ def get_default1_with_http_info(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param MatrixProfileBody body: (required)
:param str profile: Specifies the matrix profile. (required)
- :return: InlineResponse2006
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -131,7 +131,7 @@ def get_default1_with_http_info(self, body, profile, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2006', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index c82581ed..aaf57e42 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -43,7 +43,7 @@ def optimization_post(self, body, **kwargs): # noqa: E501
:param async_req bool
:param OptimizationBody body: The request body of the optimization request. (required)
- :return: InlineResponse2002
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -65,7 +65,7 @@ def optimization_post_with_http_info(self, body, **kwargs): # noqa: E501
:param async_req bool
:param OptimizationBody body: The request body of the optimization request. (required)
- :return: InlineResponse2002
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -123,7 +123,7 @@ def optimization_post_with_http_info(self, body, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2002', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index e69f847e..1f46ce5a 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -43,7 +43,7 @@ def pois_post(self, body, **kwargs): # noqa: E501
:param async_req bool
:param OpenpoiservicePoiRequest body: body for a post request (required)
- :return: OpenpoiservicePoiResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -65,7 +65,7 @@ def pois_post_with_http_info(self, body, **kwargs): # noqa: E501
:param async_req bool
:param OpenpoiservicePoiRequest body: body for a post request (required)
- :return: OpenpoiservicePoiResponse
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -123,7 +123,7 @@ def pois_post_with_http_info(self, body, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='OpenpoiservicePoiResponse', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
index 3a2b683c..32f5f3b6 100644
--- a/openrouteservice/api/snapping_service_api.py
+++ b/openrouteservice/api/snapping_service_api.py
@@ -44,7 +44,7 @@ def get_default(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param SnapProfileBody body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2007
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -67,7 +67,7 @@ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param SnapProfileBody body: (required)
:param str profile: Specifies the route profile. (required)
- :return: InlineResponse2007
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -131,7 +131,7 @@ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2007', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -151,7 +151,7 @@ def get_geo_json_snapping(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param ProfileGeojsonBody body: (required)
:param str profile: Specifies the profile. (required)
- :return: InlineResponse2008
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -174,7 +174,7 @@ def get_geo_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa
:param async_req bool
:param ProfileGeojsonBody body: (required)
:param str profile: Specifies the profile. (required)
- :return: InlineResponse2008
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -238,7 +238,7 @@ def get_geo_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2008', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
@@ -258,7 +258,7 @@ def get_json_snapping(self, body, profile, **kwargs): # noqa: E501
:param async_req bool
:param ProfileJsonBody body: (required)
:param str profile: Specifies the profile. (required)
- :return: InlineResponse2007
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -281,7 +281,7 @@ def get_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E5
:param async_req bool
:param ProfileJsonBody body: (required)
:param str profile: Specifies the profile. (required)
- :return: InlineResponse2007
+ :return: JSONResponse
If the method is called asynchronously,
returns the request thread.
"""
@@ -345,7 +345,7 @@ def get_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E5
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='InlineResponse2007', # noqa: E501
+ response_type='JSONResponse', # noqa: E501
auth_settings=auth_settings,
async_req=params.get('async_req'),
_return_http_data_only=params.get('_return_http_data_only'),
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index 884132fd..d3d8fd03 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -19,56 +19,10 @@
from openrouteservice.models.directions_service1 import DirectionsService1
from openrouteservice.models.elevation_line_body import ElevationLineBody
from openrouteservice.models.elevation_point_body import ElevationPointBody
-from openrouteservice.models.geo_json_features_object import GeoJSONFeaturesObject
-from openrouteservice.models.geo_json_geometry_object import GeoJSONGeometryObject
-from openrouteservice.models.geo_json_properties_object import GeoJSONPropertiesObject
-from openrouteservice.models.geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
-from openrouteservice.models.geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
-from openrouteservice.models.geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
-from openrouteservice.models.geocode_response import GeocodeResponse
-from openrouteservice.models.inline_response200 import InlineResponse200
-from openrouteservice.models.inline_response2001 import InlineResponse2001
-from openrouteservice.models.inline_response2001_geometry import InlineResponse2001Geometry
-from openrouteservice.models.inline_response2002 import InlineResponse2002
-from openrouteservice.models.inline_response2002_routes import InlineResponse2002Routes
-from openrouteservice.models.inline_response2002_steps import InlineResponse2002Steps
-from openrouteservice.models.inline_response2002_summary import InlineResponse2002Summary
-from openrouteservice.models.inline_response2002_unassigned import InlineResponse2002Unassigned
-from openrouteservice.models.inline_response2002_violations import InlineResponse2002Violations
-from openrouteservice.models.inline_response2003 import InlineResponse2003
-from openrouteservice.models.inline_response2003_metadata import InlineResponse2003Metadata
-from openrouteservice.models.inline_response2004 import InlineResponse2004
-from openrouteservice.models.inline_response2004_extras import InlineResponse2004Extras
-from openrouteservice.models.inline_response2004_instructions import InlineResponse2004Instructions
-from openrouteservice.models.inline_response2004_legs import InlineResponse2004Legs
-from openrouteservice.models.inline_response2004_maneuver import InlineResponse2004Maneuver
-from openrouteservice.models.inline_response2004_routes import InlineResponse2004Routes
-from openrouteservice.models.inline_response2004_segments import InlineResponse2004Segments
-from openrouteservice.models.inline_response2004_stops import InlineResponse2004Stops
-from openrouteservice.models.inline_response2004_summary import InlineResponse2004Summary
-from openrouteservice.models.inline_response2004_summary1 import InlineResponse2004Summary1
-from openrouteservice.models.inline_response2004_warnings import InlineResponse2004Warnings
-from openrouteservice.models.inline_response2005 import InlineResponse2005
-from openrouteservice.models.inline_response2005_features import InlineResponse2005Features
-from openrouteservice.models.inline_response2005_geometry import InlineResponse2005Geometry
-from openrouteservice.models.inline_response2005_metadata import InlineResponse2005Metadata
-from openrouteservice.models.inline_response2005_metadata_engine import InlineResponse2005MetadataEngine
-from openrouteservice.models.inline_response2006 import InlineResponse2006
-from openrouteservice.models.inline_response2006_destinations import InlineResponse2006Destinations
-from openrouteservice.models.inline_response2006_metadata import InlineResponse2006Metadata
-from openrouteservice.models.inline_response2006_sources import InlineResponse2006Sources
-from openrouteservice.models.inline_response2007 import InlineResponse2007
-from openrouteservice.models.inline_response2007_locations import InlineResponse2007Locations
-from openrouteservice.models.inline_response2007_metadata import InlineResponse2007Metadata
-from openrouteservice.models.inline_response2008 import InlineResponse2008
-from openrouteservice.models.inline_response2008_features import InlineResponse2008Features
-from openrouteservice.models.inline_response2008_geometry import InlineResponse2008Geometry
-from openrouteservice.models.inline_response2008_properties import InlineResponse2008Properties
-from openrouteservice.models.inline_response200_geometry import InlineResponse200Geometry
from openrouteservice.models.isochrones_profile_body import IsochronesProfileBody
+from openrouteservice.models.json_response import JSONResponse
from openrouteservice.models.matrix_profile_body import MatrixProfileBody
from openrouteservice.models.openpoiservice_poi_request import OpenpoiservicePoiRequest
-from openrouteservice.models.openpoiservice_poi_response import OpenpoiservicePoiResponse
from openrouteservice.models.optimization_body import OptimizationBody
from openrouteservice.models.optimization_breaks import OptimizationBreaks
from openrouteservice.models.optimization_costs import OptimizationCosts
diff --git a/openrouteservice/models/geo_json_features_object.py b/openrouteservice/models/geo_json_features_object.py
deleted file mode 100644
index 5d603134..00000000
--- a/openrouteservice/models/geo_json_features_object.py
+++ /dev/null
@@ -1,162 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONFeaturesObject(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'feature_properties': 'GeoJSONPropertiesObject',
- 'geometry': 'GeoJSONGeometryObject',
- 'type': 'str'
- }
-
- attribute_map = {
- 'feature_properties': 'feature_properties',
- 'geometry': 'geometry',
- 'type': 'type'
- }
-
- def __init__(self, feature_properties=None, geometry=None, type='Feature'): # noqa: E501
- """GeoJSONFeaturesObject - a model defined in Swagger""" # noqa: E501
- self._feature_properties = None
- self._geometry = None
- self._type = None
- self.discriminator = None
- if feature_properties is not None:
- self.feature_properties = feature_properties
- if geometry is not None:
- self.geometry = geometry
- if type is not None:
- self.type = type
-
- @property
- def feature_properties(self):
- """Gets the feature_properties of this GeoJSONFeaturesObject. # noqa: E501
-
-
- :return: The feature_properties of this GeoJSONFeaturesObject. # noqa: E501
- :rtype: GeoJSONPropertiesObject
- """
- return self._feature_properties
-
- @feature_properties.setter
- def feature_properties(self, feature_properties):
- """Sets the feature_properties of this GeoJSONFeaturesObject.
-
-
- :param feature_properties: The feature_properties of this GeoJSONFeaturesObject. # noqa: E501
- :type: GeoJSONPropertiesObject
- """
-
- self._feature_properties = feature_properties
-
- @property
- def geometry(self):
- """Gets the geometry of this GeoJSONFeaturesObject. # noqa: E501
-
-
- :return: The geometry of this GeoJSONFeaturesObject. # noqa: E501
- :rtype: GeoJSONGeometryObject
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this GeoJSONFeaturesObject.
-
-
- :param geometry: The geometry of this GeoJSONFeaturesObject. # noqa: E501
- :type: GeoJSONGeometryObject
- """
-
- self._geometry = geometry
-
- @property
- def type(self):
- """Gets the type of this GeoJSONFeaturesObject. # noqa: E501
-
-
- :return: The type of this GeoJSONFeaturesObject. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONFeaturesObject.
-
-
- :param type: The type of this GeoJSONFeaturesObject. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONFeaturesObject, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONFeaturesObject):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_geometry_object.py b/openrouteservice/models/geo_json_geometry_object.py
deleted file mode 100644
index 61db4fbd..00000000
--- a/openrouteservice/models/geo_json_geometry_object.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONGeometryObject(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'coordinates': 'list[float]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'coordinates': 'coordinates',
- 'type': 'type'
- }
-
- def __init__(self, coordinates=None, type='Point'): # noqa: E501
- """GeoJSONGeometryObject - a model defined in Swagger""" # noqa: E501
- self._coordinates = None
- self._type = None
- self.discriminator = None
- if coordinates is not None:
- self.coordinates = coordinates
- if type is not None:
- self.type = type
-
- @property
- def coordinates(self):
- """Gets the coordinates of this GeoJSONGeometryObject. # noqa: E501
-
-
- :return: The coordinates of this GeoJSONGeometryObject. # noqa: E501
- :rtype: list[float]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this GeoJSONGeometryObject.
-
-
- :param coordinates: The coordinates of this GeoJSONGeometryObject. # noqa: E501
- :type: list[float]
- """
-
- self._coordinates = coordinates
-
- @property
- def type(self):
- """Gets the type of this GeoJSONGeometryObject. # noqa: E501
-
-
- :return: The type of this GeoJSONGeometryObject. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeoJSONGeometryObject.
-
-
- :param type: The type of this GeoJSONGeometryObject. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONGeometryObject, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONGeometryObject):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object.py b/openrouteservice/models/geo_json_properties_object.py
deleted file mode 100644
index d8b357ff..00000000
--- a/openrouteservice/models/geo_json_properties_object.py
+++ /dev/null
@@ -1,214 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONPropertiesObject(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'category_ids': 'GeoJSONPropertiesObjectCategoryIds',
- 'distance': 'float',
- 'osm_id': 'float',
- 'osm_tags': 'GeoJSONPropertiesObjectOsmTags',
- 'osm_type': 'float'
- }
-
- attribute_map = {
- 'category_ids': 'category_ids',
- 'distance': 'distance',
- 'osm_id': 'osm_id',
- 'osm_tags': 'osm_tags',
- 'osm_type': 'osm_type'
- }
-
- def __init__(self, category_ids=None, distance=None, osm_id=None, osm_tags=None, osm_type=None): # noqa: E501
- """GeoJSONPropertiesObject - a model defined in Swagger""" # noqa: E501
- self._category_ids = None
- self._distance = None
- self._osm_id = None
- self._osm_tags = None
- self._osm_type = None
- self.discriminator = None
- if category_ids is not None:
- self.category_ids = category_ids
- if distance is not None:
- self.distance = distance
- if osm_id is not None:
- self.osm_id = osm_id
- if osm_tags is not None:
- self.osm_tags = osm_tags
- if osm_type is not None:
- self.osm_type = osm_type
-
- @property
- def category_ids(self):
- """Gets the category_ids of this GeoJSONPropertiesObject. # noqa: E501
-
-
- :return: The category_ids of this GeoJSONPropertiesObject. # noqa: E501
- :rtype: GeoJSONPropertiesObjectCategoryIds
- """
- return self._category_ids
-
- @category_ids.setter
- def category_ids(self, category_ids):
- """Sets the category_ids of this GeoJSONPropertiesObject.
-
-
- :param category_ids: The category_ids of this GeoJSONPropertiesObject. # noqa: E501
- :type: GeoJSONPropertiesObjectCategoryIds
- """
-
- self._category_ids = category_ids
-
- @property
- def distance(self):
- """Gets the distance of this GeoJSONPropertiesObject. # noqa: E501
-
-
- :return: The distance of this GeoJSONPropertiesObject. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this GeoJSONPropertiesObject.
-
-
- :param distance: The distance of this GeoJSONPropertiesObject. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def osm_id(self):
- """Gets the osm_id of this GeoJSONPropertiesObject. # noqa: E501
-
-
- :return: The osm_id of this GeoJSONPropertiesObject. # noqa: E501
- :rtype: float
- """
- return self._osm_id
-
- @osm_id.setter
- def osm_id(self, osm_id):
- """Sets the osm_id of this GeoJSONPropertiesObject.
-
-
- :param osm_id: The osm_id of this GeoJSONPropertiesObject. # noqa: E501
- :type: float
- """
-
- self._osm_id = osm_id
-
- @property
- def osm_tags(self):
- """Gets the osm_tags of this GeoJSONPropertiesObject. # noqa: E501
-
-
- :return: The osm_tags of this GeoJSONPropertiesObject. # noqa: E501
- :rtype: GeoJSONPropertiesObjectOsmTags
- """
- return self._osm_tags
-
- @osm_tags.setter
- def osm_tags(self, osm_tags):
- """Sets the osm_tags of this GeoJSONPropertiesObject.
-
-
- :param osm_tags: The osm_tags of this GeoJSONPropertiesObject. # noqa: E501
- :type: GeoJSONPropertiesObjectOsmTags
- """
-
- self._osm_tags = osm_tags
-
- @property
- def osm_type(self):
- """Gets the osm_type of this GeoJSONPropertiesObject. # noqa: E501
-
-
- :return: The osm_type of this GeoJSONPropertiesObject. # noqa: E501
- :rtype: float
- """
- return self._osm_type
-
- @osm_type.setter
- def osm_type(self, osm_type):
- """Sets the osm_type of this GeoJSONPropertiesObject.
-
-
- :param osm_type: The osm_type of this GeoJSONPropertiesObject. # noqa: E501
- :type: float
- """
-
- self._osm_type = osm_type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONPropertiesObject, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONPropertiesObject):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids.py b/openrouteservice/models/geo_json_properties_object_category_ids.py
deleted file mode 100644
index 407e8461..00000000
--- a/openrouteservice/models/geo_json_properties_object_category_ids.py
+++ /dev/null
@@ -1,110 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONPropertiesObjectCategoryIds(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'category_id': 'GeoJSONPropertiesObjectCategoryIdsCategoryId'
- }
-
- attribute_map = {
- 'category_id': 'category_id'
- }
-
- def __init__(self, category_id=None): # noqa: E501
- """GeoJSONPropertiesObjectCategoryIds - a model defined in Swagger""" # noqa: E501
- self._category_id = None
- self.discriminator = None
- if category_id is not None:
- self.category_id = category_id
-
- @property
- def category_id(self):
- """Gets the category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
-
-
- :return: The category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
- :rtype: GeoJSONPropertiesObjectCategoryIdsCategoryId
- """
- return self._category_id
-
- @category_id.setter
- def category_id(self, category_id):
- """Sets the category_id of this GeoJSONPropertiesObjectCategoryIds.
-
-
- :param category_id: The category_id of this GeoJSONPropertiesObjectCategoryIds. # noqa: E501
- :type: GeoJSONPropertiesObjectCategoryIdsCategoryId
- """
-
- self._category_id = category_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONPropertiesObjectCategoryIds, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONPropertiesObjectCategoryIds):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py b/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
deleted file mode 100644
index 027219d1..00000000
--- a/openrouteservice/models/geo_json_properties_object_category_ids_category_id.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONPropertiesObjectCategoryIdsCategoryId(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'category_group': 'float',
- 'category_name': 'str'
- }
-
- attribute_map = {
- 'category_group': 'category_group',
- 'category_name': 'category_name'
- }
-
- def __init__(self, category_group=None, category_name=None): # noqa: E501
- """GeoJSONPropertiesObjectCategoryIdsCategoryId - a model defined in Swagger""" # noqa: E501
- self._category_group = None
- self._category_name = None
- self.discriminator = None
- if category_group is not None:
- self.category_group = category_group
- if category_name is not None:
- self.category_name = category_name
-
- @property
- def category_group(self):
- """Gets the category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
-
-
- :return: The category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
- :rtype: float
- """
- return self._category_group
-
- @category_group.setter
- def category_group(self, category_group):
- """Sets the category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId.
-
-
- :param category_group: The category_group of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
- :type: float
- """
-
- self._category_group = category_group
-
- @property
- def category_name(self):
- """Gets the category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
-
-
- :return: The category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
- :rtype: str
- """
- return self._category_name
-
- @category_name.setter
- def category_name(self, category_name):
- """Sets the category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId.
-
-
- :param category_name: The category_name of this GeoJSONPropertiesObjectCategoryIdsCategoryId. # noqa: E501
- :type: str
- """
-
- self._category_name = category_name
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONPropertiesObjectCategoryIdsCategoryId, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONPropertiesObjectCategoryIdsCategoryId):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geo_json_properties_object_osm_tags.py b/openrouteservice/models/geo_json_properties_object_osm_tags.py
deleted file mode 100644
index bce8a2b6..00000000
--- a/openrouteservice/models/geo_json_properties_object_osm_tags.py
+++ /dev/null
@@ -1,266 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeoJSONPropertiesObjectOsmTags(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'address': 'str',
- 'distance': 'str',
- 'fee': 'str',
- 'name': 'str',
- 'opening_hours': 'str',
- 'website': 'str',
- 'wheelchair': 'str'
- }
-
- attribute_map = {
- 'address': 'address',
- 'distance': 'distance',
- 'fee': 'fee',
- 'name': 'name',
- 'opening_hours': 'opening_hours',
- 'website': 'website',
- 'wheelchair': 'wheelchair'
- }
-
- def __init__(self, address=None, distance=None, fee=None, name=None, opening_hours=None, website=None, wheelchair=None): # noqa: E501
- """GeoJSONPropertiesObjectOsmTags - a model defined in Swagger""" # noqa: E501
- self._address = None
- self._distance = None
- self._fee = None
- self._name = None
- self._opening_hours = None
- self._website = None
- self._wheelchair = None
- self.discriminator = None
- if address is not None:
- self.address = address
- if distance is not None:
- self.distance = distance
- if fee is not None:
- self.fee = fee
- if name is not None:
- self.name = name
- if opening_hours is not None:
- self.opening_hours = opening_hours
- if website is not None:
- self.website = website
- if wheelchair is not None:
- self.wheelchair = wheelchair
-
- @property
- def address(self):
- """Gets the address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._address
-
- @address.setter
- def address(self, address):
- """Sets the address of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param address: The address of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._address = address
-
- @property
- def distance(self):
- """Gets the distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param distance: The distance of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._distance = distance
-
- @property
- def fee(self):
- """Gets the fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._fee
-
- @fee.setter
- def fee(self, fee):
- """Sets the fee of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param fee: The fee of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._fee = fee
-
- @property
- def name(self):
- """Gets the name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param name: The name of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def opening_hours(self):
- """Gets the opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._opening_hours
-
- @opening_hours.setter
- def opening_hours(self, opening_hours):
- """Sets the opening_hours of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param opening_hours: The opening_hours of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._opening_hours = opening_hours
-
- @property
- def website(self):
- """Gets the website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._website
-
- @website.setter
- def website(self, website):
- """Sets the website of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param website: The website of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._website = website
-
- @property
- def wheelchair(self):
- """Gets the wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
-
-
- :return: The wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :rtype: str
- """
- return self._wheelchair
-
- @wheelchair.setter
- def wheelchair(self, wheelchair):
- """Sets the wheelchair of this GeoJSONPropertiesObjectOsmTags.
-
-
- :param wheelchair: The wheelchair of this GeoJSONPropertiesObjectOsmTags. # noqa: E501
- :type: str
- """
-
- self._wheelchair = wheelchair
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeoJSONPropertiesObjectOsmTags, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeoJSONPropertiesObjectOsmTags):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/geocode_response.py b/openrouteservice/models/geocode_response.py
deleted file mode 100644
index 0960a166..00000000
--- a/openrouteservice/models/geocode_response.py
+++ /dev/null
@@ -1,188 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class GeocodeResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[object]',
- 'geocoding': 'object',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'geocoding': 'geocoding',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, geocoding=None, type=None): # noqa: E501
- """GeocodeResponse - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._geocoding = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if geocoding is not None:
- self.geocoding = geocoding
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this GeocodeResponse. # noqa: E501
-
-
- :return: The bbox of this GeocodeResponse. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this GeocodeResponse.
-
-
- :param bbox: The bbox of this GeocodeResponse. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this GeocodeResponse. # noqa: E501
-
-
- :return: The features of this GeocodeResponse. # noqa: E501
- :rtype: list[object]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this GeocodeResponse.
-
-
- :param features: The features of this GeocodeResponse. # noqa: E501
- :type: list[object]
- """
-
- self._features = features
-
- @property
- def geocoding(self):
- """Gets the geocoding of this GeocodeResponse. # noqa: E501
-
-
- :return: The geocoding of this GeocodeResponse. # noqa: E501
- :rtype: object
- """
- return self._geocoding
-
- @geocoding.setter
- def geocoding(self, geocoding):
- """Sets the geocoding of this GeocodeResponse.
-
-
- :param geocoding: The geocoding of this GeocodeResponse. # noqa: E501
- :type: object
- """
-
- self._geocoding = geocoding
-
- @property
- def type(self):
- """Gets the type of this GeocodeResponse. # noqa: E501
-
-
- :return: The type of this GeocodeResponse. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this GeocodeResponse.
-
-
- :param type: The type of this GeocodeResponse. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(GeocodeResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, GeocodeResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response200.py b/openrouteservice/models/inline_response200.py
deleted file mode 100644
index e0eaa441..00000000
--- a/openrouteservice/models/inline_response200.py
+++ /dev/null
@@ -1,188 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse200(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'geometry': 'InlineResponse200Geometry',
- 'timestamp': 'int',
- 'version': 'str'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'geometry': 'geometry',
- 'timestamp': 'timestamp',
- 'version': 'version'
- }
-
- def __init__(self, attribution=None, geometry=None, timestamp=None, version=None): # noqa: E501
- """InlineResponse200 - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._geometry = None
- self._timestamp = None
- self._version = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if geometry is not None:
- self.geometry = geometry
- if timestamp is not None:
- self.timestamp = timestamp
- if version is not None:
- self.version = version
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse200. # noqa: E501
-
-
- :return: The attribution of this InlineResponse200. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse200.
-
-
- :param attribution: The attribution of this InlineResponse200. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse200. # noqa: E501
-
-
- :return: The geometry of this InlineResponse200. # noqa: E501
- :rtype: InlineResponse200Geometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse200.
-
-
- :param geometry: The geometry of this InlineResponse200. # noqa: E501
- :type: InlineResponse200Geometry
- """
-
- self._geometry = geometry
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse200. # noqa: E501
-
-
- :return: The timestamp of this InlineResponse200. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse200.
-
-
- :param timestamp: The timestamp of this InlineResponse200. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- @property
- def version(self):
- """Gets the version of this InlineResponse200. # noqa: E501
-
-
- :return: The version of this InlineResponse200. # noqa: E501
- :rtype: str
- """
- return self._version
-
- @version.setter
- def version(self, version):
- """Sets the version of this InlineResponse200.
-
-
- :param version: The version of this InlineResponse200. # noqa: E501
- :type: str
- """
-
- self._version = version
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse200, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse200):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2001.py b/openrouteservice/models/inline_response2001.py
deleted file mode 100644
index 95673a1e..00000000
--- a/openrouteservice/models/inline_response2001.py
+++ /dev/null
@@ -1,188 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2001(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'geometry': 'InlineResponse2001Geometry',
- 'timestamp': 'int',
- 'version': 'str'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'geometry': 'geometry',
- 'timestamp': 'timestamp',
- 'version': 'version'
- }
-
- def __init__(self, attribution=None, geometry=None, timestamp=None, version=None): # noqa: E501
- """InlineResponse2001 - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._geometry = None
- self._timestamp = None
- self._version = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if geometry is not None:
- self.geometry = geometry
- if timestamp is not None:
- self.timestamp = timestamp
- if version is not None:
- self.version = version
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse2001. # noqa: E501
-
-
- :return: The attribution of this InlineResponse2001. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse2001.
-
-
- :param attribution: The attribution of this InlineResponse2001. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2001. # noqa: E501
-
-
- :return: The geometry of this InlineResponse2001. # noqa: E501
- :rtype: InlineResponse2001Geometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2001.
-
-
- :param geometry: The geometry of this InlineResponse2001. # noqa: E501
- :type: InlineResponse2001Geometry
- """
-
- self._geometry = geometry
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse2001. # noqa: E501
-
-
- :return: The timestamp of this InlineResponse2001. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse2001.
-
-
- :param timestamp: The timestamp of this InlineResponse2001. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- @property
- def version(self):
- """Gets the version of this InlineResponse2001. # noqa: E501
-
-
- :return: The version of this InlineResponse2001. # noqa: E501
- :rtype: str
- """
- return self._version
-
- @version.setter
- def version(self, version):
- """Sets the version of this InlineResponse2001.
-
-
- :param version: The version of this InlineResponse2001. # noqa: E501
- :type: str
- """
-
- self._version = version
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2001, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2001):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2001_geometry.py b/openrouteservice/models/inline_response2001_geometry.py
deleted file mode 100644
index 865b972b..00000000
--- a/openrouteservice/models/inline_response2001_geometry.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2001Geometry(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'coordinates': 'list[float]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'coordinates': 'coordinates',
- 'type': 'type'
- }
-
- def __init__(self, coordinates=None, type=None): # noqa: E501
- """InlineResponse2001Geometry - a model defined in Swagger""" # noqa: E501
- self._coordinates = None
- self._type = None
- self.discriminator = None
- if coordinates is not None:
- self.coordinates = coordinates
- if type is not None:
- self.type = type
-
- @property
- def coordinates(self):
- """Gets the coordinates of this InlineResponse2001Geometry. # noqa: E501
-
-
- :return: The coordinates of this InlineResponse2001Geometry. # noqa: E501
- :rtype: list[float]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this InlineResponse2001Geometry.
-
-
- :param coordinates: The coordinates of this InlineResponse2001Geometry. # noqa: E501
- :type: list[float]
- """
-
- self._coordinates = coordinates
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2001Geometry. # noqa: E501
-
-
- :return: The type of this InlineResponse2001Geometry. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2001Geometry.
-
-
- :param type: The type of this InlineResponse2001Geometry. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2001Geometry, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2001Geometry):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002.py b/openrouteservice/models/inline_response2002.py
deleted file mode 100644
index 720859eb..00000000
--- a/openrouteservice/models/inline_response2002.py
+++ /dev/null
@@ -1,222 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'code': 'int',
- 'error': 'str',
- 'routes': 'list[InlineResponse2002Routes]',
- 'summary': 'InlineResponse2002Summary',
- 'unassigned': 'list[InlineResponse2002Unassigned]'
- }
-
- attribute_map = {
- 'code': 'code',
- 'error': 'error',
- 'routes': 'routes',
- 'summary': 'summary',
- 'unassigned': 'unassigned'
- }
-
- def __init__(self, code=None, error=None, routes=None, summary=None, unassigned=None): # noqa: E501
- """InlineResponse2002 - a model defined in Swagger""" # noqa: E501
- self._code = None
- self._error = None
- self._routes = None
- self._summary = None
- self._unassigned = None
- self.discriminator = None
- if code is not None:
- self.code = code
- if error is not None:
- self.error = error
- if routes is not None:
- self.routes = routes
- if summary is not None:
- self.summary = summary
- if unassigned is not None:
- self.unassigned = unassigned
-
- @property
- def code(self):
- """Gets the code of this InlineResponse2002. # noqa: E501
-
- status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | # noqa: E501
-
- :return: The code of this InlineResponse2002. # noqa: E501
- :rtype: int
- """
- return self._code
-
- @code.setter
- def code(self, code):
- """Sets the code of this InlineResponse2002.
-
- status code. Possible values: Value | Status | :-----------: | :-----------: | `0` | no error raised | `1` | internal error | `2` | input error | `3` | routing error | # noqa: E501
-
- :param code: The code of this InlineResponse2002. # noqa: E501
- :type: int
- """
-
- self._code = code
-
- @property
- def error(self):
- """Gets the error of this InlineResponse2002. # noqa: E501
-
- error message (present if `code` is different from `0`) # noqa: E501
-
- :return: The error of this InlineResponse2002. # noqa: E501
- :rtype: str
- """
- return self._error
-
- @error.setter
- def error(self, error):
- """Sets the error of this InlineResponse2002.
-
- error message (present if `code` is different from `0`) # noqa: E501
-
- :param error: The error of this InlineResponse2002. # noqa: E501
- :type: str
- """
-
- self._error = error
-
- @property
- def routes(self):
- """Gets the routes of this InlineResponse2002. # noqa: E501
-
- array of `route` objects # noqa: E501
-
- :return: The routes of this InlineResponse2002. # noqa: E501
- :rtype: list[InlineResponse2002Routes]
- """
- return self._routes
-
- @routes.setter
- def routes(self, routes):
- """Sets the routes of this InlineResponse2002.
-
- array of `route` objects # noqa: E501
-
- :param routes: The routes of this InlineResponse2002. # noqa: E501
- :type: list[InlineResponse2002Routes]
- """
-
- self._routes = routes
-
- @property
- def summary(self):
- """Gets the summary of this InlineResponse2002. # noqa: E501
-
-
- :return: The summary of this InlineResponse2002. # noqa: E501
- :rtype: InlineResponse2002Summary
- """
- return self._summary
-
- @summary.setter
- def summary(self, summary):
- """Sets the summary of this InlineResponse2002.
-
-
- :param summary: The summary of this InlineResponse2002. # noqa: E501
- :type: InlineResponse2002Summary
- """
-
- self._summary = summary
-
- @property
- def unassigned(self):
- """Gets the unassigned of this InlineResponse2002. # noqa: E501
-
- array of objects describing unassigned jobs with their `id` and `location` (if provided) # noqa: E501
-
- :return: The unassigned of this InlineResponse2002. # noqa: E501
- :rtype: list[InlineResponse2002Unassigned]
- """
- return self._unassigned
-
- @unassigned.setter
- def unassigned(self, unassigned):
- """Sets the unassigned of this InlineResponse2002.
-
- array of objects describing unassigned jobs with their `id` and `location` (if provided) # noqa: E501
-
- :param unassigned: The unassigned of this InlineResponse2002. # noqa: E501
- :type: list[InlineResponse2002Unassigned]
- """
-
- self._unassigned = unassigned
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002_routes.py b/openrouteservice/models/inline_response2002_routes.py
deleted file mode 100644
index 03688fe7..00000000
--- a/openrouteservice/models/inline_response2002_routes.py
+++ /dev/null
@@ -1,392 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002Routes(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'cost': 'float',
- 'delivery': 'list[int]',
- 'description': 'str',
- 'distance': 'float',
- 'duration': 'float',
- 'geometry': 'str',
- 'pickup': 'list[int]',
- 'service': 'float',
- 'steps': 'list[InlineResponse2002Steps]',
- 'vehicle': 'int',
- 'waiting_time': 'float'
- }
-
- attribute_map = {
- 'cost': 'cost',
- 'delivery': 'delivery',
- 'description': 'description',
- 'distance': 'distance',
- 'duration': 'duration',
- 'geometry': 'geometry',
- 'pickup': 'pickup',
- 'service': 'service',
- 'steps': 'steps',
- 'vehicle': 'vehicle',
- 'waiting_time': 'waiting_time'
- }
-
- def __init__(self, cost=None, delivery=None, description=None, distance=None, duration=None, geometry=None, pickup=None, service=None, steps=None, vehicle=None, waiting_time=None): # noqa: E501
- """InlineResponse2002Routes - a model defined in Swagger""" # noqa: E501
- self._cost = None
- self._delivery = None
- self._description = None
- self._distance = None
- self._duration = None
- self._geometry = None
- self._pickup = None
- self._service = None
- self._steps = None
- self._vehicle = None
- self._waiting_time = None
- self.discriminator = None
- if cost is not None:
- self.cost = cost
- if delivery is not None:
- self.delivery = delivery
- if description is not None:
- self.description = description
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if geometry is not None:
- self.geometry = geometry
- if pickup is not None:
- self.pickup = pickup
- if service is not None:
- self.service = service
- if steps is not None:
- self.steps = steps
- if vehicle is not None:
- self.vehicle = vehicle
- if waiting_time is not None:
- self.waiting_time = waiting_time
-
- @property
- def cost(self):
- """Gets the cost of this InlineResponse2002Routes. # noqa: E501
-
- cost for this route # noqa: E501
-
- :return: The cost of this InlineResponse2002Routes. # noqa: E501
- :rtype: float
- """
- return self._cost
-
- @cost.setter
- def cost(self, cost):
- """Sets the cost of this InlineResponse2002Routes.
-
- cost for this route # noqa: E501
-
- :param cost: The cost of this InlineResponse2002Routes. # noqa: E501
- :type: float
- """
-
- self._cost = cost
-
- @property
- def delivery(self):
- """Gets the delivery of this InlineResponse2002Routes. # noqa: E501
-
- Total delivery for tasks in this route # noqa: E501
-
- :return: The delivery of this InlineResponse2002Routes. # noqa: E501
- :rtype: list[int]
- """
- return self._delivery
-
- @delivery.setter
- def delivery(self, delivery):
- """Sets the delivery of this InlineResponse2002Routes.
-
- Total delivery for tasks in this route # noqa: E501
-
- :param delivery: The delivery of this InlineResponse2002Routes. # noqa: E501
- :type: list[int]
- """
-
- self._delivery = delivery
-
- @property
- def description(self):
- """Gets the description of this InlineResponse2002Routes. # noqa: E501
-
- vehicle description, if provided in input # noqa: E501
-
- :return: The description of this InlineResponse2002Routes. # noqa: E501
- :rtype: str
- """
- return self._description
-
- @description.setter
- def description(self, description):
- """Sets the description of this InlineResponse2002Routes.
-
- vehicle description, if provided in input # noqa: E501
-
- :param description: The description of this InlineResponse2002Routes. # noqa: E501
- :type: str
- """
-
- self._description = description
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2002Routes. # noqa: E501
-
- total route distance. Only provided when using the `-g` flag # noqa: E501
-
- :return: The distance of this InlineResponse2002Routes. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2002Routes.
-
- total route distance. Only provided when using the `-g` flag # noqa: E501
-
- :param distance: The distance of this InlineResponse2002Routes. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2002Routes. # noqa: E501
-
- total travel time for this route # noqa: E501
-
- :return: The duration of this InlineResponse2002Routes. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2002Routes.
-
- total travel time for this route # noqa: E501
-
- :param duration: The duration of this InlineResponse2002Routes. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2002Routes. # noqa: E501
-
- polyline encoded route geometry. Only provided when using the `-g` flag # noqa: E501
-
- :return: The geometry of this InlineResponse2002Routes. # noqa: E501
- :rtype: str
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2002Routes.
-
- polyline encoded route geometry. Only provided when using the `-g` flag # noqa: E501
-
- :param geometry: The geometry of this InlineResponse2002Routes. # noqa: E501
- :type: str
- """
-
- self._geometry = geometry
-
- @property
- def pickup(self):
- """Gets the pickup of this InlineResponse2002Routes. # noqa: E501
-
- total pickup for tasks in this route # noqa: E501
-
- :return: The pickup of this InlineResponse2002Routes. # noqa: E501
- :rtype: list[int]
- """
- return self._pickup
-
- @pickup.setter
- def pickup(self, pickup):
- """Sets the pickup of this InlineResponse2002Routes.
-
- total pickup for tasks in this route # noqa: E501
-
- :param pickup: The pickup of this InlineResponse2002Routes. # noqa: E501
- :type: list[int]
- """
-
- self._pickup = pickup
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2002Routes. # noqa: E501
-
- total service time for this route # noqa: E501
-
- :return: The service of this InlineResponse2002Routes. # noqa: E501
- :rtype: float
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2002Routes.
-
- total service time for this route # noqa: E501
-
- :param service: The service of this InlineResponse2002Routes. # noqa: E501
- :type: float
- """
-
- self._service = service
-
- @property
- def steps(self):
- """Gets the steps of this InlineResponse2002Routes. # noqa: E501
-
- array of `step` objects # noqa: E501
-
- :return: The steps of this InlineResponse2002Routes. # noqa: E501
- :rtype: list[InlineResponse2002Steps]
- """
- return self._steps
-
- @steps.setter
- def steps(self, steps):
- """Sets the steps of this InlineResponse2002Routes.
-
- array of `step` objects # noqa: E501
-
- :param steps: The steps of this InlineResponse2002Routes. # noqa: E501
- :type: list[InlineResponse2002Steps]
- """
-
- self._steps = steps
-
- @property
- def vehicle(self):
- """Gets the vehicle of this InlineResponse2002Routes. # noqa: E501
-
- id of the vehicle assigned to this route # noqa: E501
-
- :return: The vehicle of this InlineResponse2002Routes. # noqa: E501
- :rtype: int
- """
- return self._vehicle
-
- @vehicle.setter
- def vehicle(self, vehicle):
- """Sets the vehicle of this InlineResponse2002Routes.
-
- id of the vehicle assigned to this route # noqa: E501
-
- :param vehicle: The vehicle of this InlineResponse2002Routes. # noqa: E501
- :type: int
- """
-
- self._vehicle = vehicle
-
- @property
- def waiting_time(self):
- """Gets the waiting_time of this InlineResponse2002Routes. # noqa: E501
-
- total waiting time for this route # noqa: E501
-
- :return: The waiting_time of this InlineResponse2002Routes. # noqa: E501
- :rtype: float
- """
- return self._waiting_time
-
- @waiting_time.setter
- def waiting_time(self, waiting_time):
- """Sets the waiting_time of this InlineResponse2002Routes.
-
- total waiting time for this route # noqa: E501
-
- :param waiting_time: The waiting_time of this InlineResponse2002Routes. # noqa: E501
- :type: float
- """
-
- self._waiting_time = waiting_time
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002Routes, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002Routes):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002_steps.py b/openrouteservice/models/inline_response2002_steps.py
deleted file mode 100644
index 0e2ed5b2..00000000
--- a/openrouteservice/models/inline_response2002_steps.py
+++ /dev/null
@@ -1,420 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002Steps(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival': 'float',
- 'description': 'str',
- 'distance': 'float',
- 'duration': 'float',
- 'id': 'int',
- 'load': 'int',
- 'location': 'list[float]',
- 'service': 'float',
- 'setup': 'float',
- 'type': 'str',
- 'violations': 'list[InlineResponse2002Violations]',
- 'waiting_time': 'float'
- }
-
- attribute_map = {
- 'arrival': 'arrival',
- 'description': 'description',
- 'distance': 'distance',
- 'duration': 'duration',
- 'id': 'id',
- 'load': 'load',
- 'location': 'location',
- 'service': 'service',
- 'setup': 'setup',
- 'type': 'type',
- 'violations': 'violations',
- 'waiting_time': 'waiting_time'
- }
-
- def __init__(self, arrival=None, description=None, distance=None, duration=None, id=None, load=None, location=None, service=None, setup=None, type=None, violations=None, waiting_time=None): # noqa: E501
- """InlineResponse2002Steps - a model defined in Swagger""" # noqa: E501
- self._arrival = None
- self._description = None
- self._distance = None
- self._duration = None
- self._id = None
- self._load = None
- self._location = None
- self._service = None
- self._setup = None
- self._type = None
- self._violations = None
- self._waiting_time = None
- self.discriminator = None
- if arrival is not None:
- self.arrival = arrival
- if description is not None:
- self.description = description
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if id is not None:
- self.id = id
- if load is not None:
- self.load = load
- if location is not None:
- self.location = location
- if service is not None:
- self.service = service
- if setup is not None:
- self.setup = setup
- if type is not None:
- self.type = type
- if violations is not None:
- self.violations = violations
- if waiting_time is not None:
- self.waiting_time = waiting_time
-
- @property
- def arrival(self):
- """Gets the arrival of this InlineResponse2002Steps. # noqa: E501
-
- estimated time of arrival at this step in seconds # noqa: E501
-
- :return: The arrival of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._arrival
-
- @arrival.setter
- def arrival(self, arrival):
- """Sets the arrival of this InlineResponse2002Steps.
-
- estimated time of arrival at this step in seconds # noqa: E501
-
- :param arrival: The arrival of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._arrival = arrival
-
- @property
- def description(self):
- """Gets the description of this InlineResponse2002Steps. # noqa: E501
-
- step description, if provided in input # noqa: E501
-
- :return: The description of this InlineResponse2002Steps. # noqa: E501
- :rtype: str
- """
- return self._description
-
- @description.setter
- def description(self, description):
- """Sets the description of this InlineResponse2002Steps.
-
- step description, if provided in input # noqa: E501
-
- :param description: The description of this InlineResponse2002Steps. # noqa: E501
- :type: str
- """
-
- self._description = description
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2002Steps. # noqa: E501
-
- traveled distance upon arrival at this step. Only provided when using the `-g` flag # noqa: E501
-
- :return: The distance of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2002Steps.
-
- traveled distance upon arrival at this step. Only provided when using the `-g` flag # noqa: E501
-
- :param distance: The distance of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2002Steps. # noqa: E501
-
- cumulated travel time upon arrival at this step in seconds # noqa: E501
-
- :return: The duration of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2002Steps.
-
- cumulated travel time upon arrival at this step in seconds # noqa: E501
-
- :param duration: The duration of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def id(self):
- """Gets the id of this InlineResponse2002Steps. # noqa: E501
-
- id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` # noqa: E501
-
- :return: The id of this InlineResponse2002Steps. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse2002Steps.
-
- id of the task performed at this step, only provided if type value is `job`, `pickup`, `delivery` or `break` # noqa: E501
-
- :param id: The id of this InlineResponse2002Steps. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def load(self):
- """Gets the load of this InlineResponse2002Steps. # noqa: E501
-
- vehicle load after step completion (with capacity constraints) # noqa: E501
-
- :return: The load of this InlineResponse2002Steps. # noqa: E501
- :rtype: int
- """
- return self._load
-
- @load.setter
- def load(self, load):
- """Sets the load of this InlineResponse2002Steps.
-
- vehicle load after step completion (with capacity constraints) # noqa: E501
-
- :param load: The load of this InlineResponse2002Steps. # noqa: E501
- :type: int
- """
-
- self._load = load
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2002Steps. # noqa: E501
-
- coordinates array for this step (if provided in input) # noqa: E501
-
- :return: The location of this InlineResponse2002Steps. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2002Steps.
-
- coordinates array for this step (if provided in input) # noqa: E501
-
- :param location: The location of this InlineResponse2002Steps. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2002Steps. # noqa: E501
-
- service time at this step # noqa: E501
-
- :return: The service of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2002Steps.
-
- service time at this step # noqa: E501
-
- :param service: The service of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._service = service
-
- @property
- def setup(self):
- """Gets the setup of this InlineResponse2002Steps. # noqa: E501
-
- setup time at this step # noqa: E501
-
- :return: The setup of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._setup
-
- @setup.setter
- def setup(self, setup):
- """Sets the setup of this InlineResponse2002Steps.
-
- setup time at this step # noqa: E501
-
- :param setup: The setup of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._setup = setup
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2002Steps. # noqa: E501
-
- string that is either `start`, `job` or `end` # noqa: E501
-
- :return: The type of this InlineResponse2002Steps. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2002Steps.
-
- string that is either `start`, `job` or `end` # noqa: E501
-
- :param type: The type of this InlineResponse2002Steps. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- @property
- def violations(self):
- """Gets the violations of this InlineResponse2002Steps. # noqa: E501
-
- array of violation objects for this step # noqa: E501
-
- :return: The violations of this InlineResponse2002Steps. # noqa: E501
- :rtype: list[InlineResponse2002Violations]
- """
- return self._violations
-
- @violations.setter
- def violations(self, violations):
- """Sets the violations of this InlineResponse2002Steps.
-
- array of violation objects for this step # noqa: E501
-
- :param violations: The violations of this InlineResponse2002Steps. # noqa: E501
- :type: list[InlineResponse2002Violations]
- """
-
- self._violations = violations
-
- @property
- def waiting_time(self):
- """Gets the waiting_time of this InlineResponse2002Steps. # noqa: E501
-
- waiting time upon arrival at this step, only provided if `type` value is `job` # noqa: E501
-
- :return: The waiting_time of this InlineResponse2002Steps. # noqa: E501
- :rtype: float
- """
- return self._waiting_time
-
- @waiting_time.setter
- def waiting_time(self, waiting_time):
- """Sets the waiting_time of this InlineResponse2002Steps.
-
- waiting time upon arrival at this step, only provided if `type` value is `job` # noqa: E501
-
- :param waiting_time: The waiting_time of this InlineResponse2002Steps. # noqa: E501
- :type: float
- """
-
- self._waiting_time = waiting_time
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002Steps, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002Steps):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002_summary.py b/openrouteservice/models/inline_response2002_summary.py
deleted file mode 100644
index f936282c..00000000
--- a/openrouteservice/models/inline_response2002_summary.py
+++ /dev/null
@@ -1,420 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002Summary(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'cost': 'float',
- 'delivery': 'float',
- 'distance': 'float',
- 'duration': 'float',
- 'pickup': 'float',
- 'priority': 'float',
- 'routes': 'float',
- 'service': 'float',
- 'setup': 'float',
- 'unassigned': 'int',
- 'violations': 'list[InlineResponse2002Violations]',
- 'waiting_time': 'float'
- }
-
- attribute_map = {
- 'cost': 'cost',
- 'delivery': 'delivery',
- 'distance': 'distance',
- 'duration': 'duration',
- 'pickup': 'pickup',
- 'priority': 'priority',
- 'routes': 'routes',
- 'service': 'service',
- 'setup': 'setup',
- 'unassigned': 'unassigned',
- 'violations': 'violations',
- 'waiting_time': 'waiting_time'
- }
-
- def __init__(self, cost=None, delivery=None, distance=None, duration=None, pickup=None, priority=None, routes=None, service=None, setup=None, unassigned=None, violations=None, waiting_time=None): # noqa: E501
- """InlineResponse2002Summary - a model defined in Swagger""" # noqa: E501
- self._cost = None
- self._delivery = None
- self._distance = None
- self._duration = None
- self._pickup = None
- self._priority = None
- self._routes = None
- self._service = None
- self._setup = None
- self._unassigned = None
- self._violations = None
- self._waiting_time = None
- self.discriminator = None
- if cost is not None:
- self.cost = cost
- if delivery is not None:
- self.delivery = delivery
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if pickup is not None:
- self.pickup = pickup
- if priority is not None:
- self.priority = priority
- if routes is not None:
- self.routes = routes
- if service is not None:
- self.service = service
- if setup is not None:
- self.setup = setup
- if unassigned is not None:
- self.unassigned = unassigned
- if violations is not None:
- self.violations = violations
- if waiting_time is not None:
- self.waiting_time = waiting_time
-
- @property
- def cost(self):
- """Gets the cost of this InlineResponse2002Summary. # noqa: E501
-
- total cost for all routes # noqa: E501
-
- :return: The cost of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._cost
-
- @cost.setter
- def cost(self, cost):
- """Sets the cost of this InlineResponse2002Summary.
-
- total cost for all routes # noqa: E501
-
- :param cost: The cost of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._cost = cost
-
- @property
- def delivery(self):
- """Gets the delivery of this InlineResponse2002Summary. # noqa: E501
-
- Total delivery for all routes # noqa: E501
-
- :return: The delivery of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._delivery
-
- @delivery.setter
- def delivery(self, delivery):
- """Sets the delivery of this InlineResponse2002Summary.
-
- Total delivery for all routes # noqa: E501
-
- :param delivery: The delivery of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._delivery = delivery
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2002Summary. # noqa: E501
-
- total distance for all routes. Only provided when using the `-g` flag with `OSRM` # noqa: E501
-
- :return: The distance of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2002Summary.
-
- total distance for all routes. Only provided when using the `-g` flag with `OSRM` # noqa: E501
-
- :param distance: The distance of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2002Summary. # noqa: E501
-
- total travel time for all routes # noqa: E501
-
- :return: The duration of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2002Summary.
-
- total travel time for all routes # noqa: E501
-
- :param duration: The duration of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def pickup(self):
- """Gets the pickup of this InlineResponse2002Summary. # noqa: E501
-
- Total pickup for all routes # noqa: E501
-
- :return: The pickup of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._pickup
-
- @pickup.setter
- def pickup(self, pickup):
- """Sets the pickup of this InlineResponse2002Summary.
-
- Total pickup for all routes # noqa: E501
-
- :param pickup: The pickup of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._pickup = pickup
-
- @property
- def priority(self):
- """Gets the priority of this InlineResponse2002Summary. # noqa: E501
-
- total priority sum for all assigned tasks # noqa: E501
-
- :return: The priority of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._priority
-
- @priority.setter
- def priority(self, priority):
- """Sets the priority of this InlineResponse2002Summary.
-
- total priority sum for all assigned tasks # noqa: E501
-
- :param priority: The priority of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._priority = priority
-
- @property
- def routes(self):
- """Gets the routes of this InlineResponse2002Summary. # noqa: E501
-
- Number of routes in the solution # noqa: E501
-
- :return: The routes of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._routes
-
- @routes.setter
- def routes(self, routes):
- """Sets the routes of this InlineResponse2002Summary.
-
- Number of routes in the solution # noqa: E501
-
- :param routes: The routes of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._routes = routes
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2002Summary. # noqa: E501
-
- total service time for all routes # noqa: E501
-
- :return: The service of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2002Summary.
-
- total service time for all routes # noqa: E501
-
- :param service: The service of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._service = service
-
- @property
- def setup(self):
- """Gets the setup of this InlineResponse2002Summary. # noqa: E501
-
- Total setup time for all routes # noqa: E501
-
- :return: The setup of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._setup
-
- @setup.setter
- def setup(self, setup):
- """Sets the setup of this InlineResponse2002Summary.
-
- Total setup time for all routes # noqa: E501
-
- :param setup: The setup of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._setup = setup
-
- @property
- def unassigned(self):
- """Gets the unassigned of this InlineResponse2002Summary. # noqa: E501
-
- number of jobs that could not be served # noqa: E501
-
- :return: The unassigned of this InlineResponse2002Summary. # noqa: E501
- :rtype: int
- """
- return self._unassigned
-
- @unassigned.setter
- def unassigned(self, unassigned):
- """Sets the unassigned of this InlineResponse2002Summary.
-
- number of jobs that could not be served # noqa: E501
-
- :param unassigned: The unassigned of this InlineResponse2002Summary. # noqa: E501
- :type: int
- """
-
- self._unassigned = unassigned
-
- @property
- def violations(self):
- """Gets the violations of this InlineResponse2002Summary. # noqa: E501
-
- array of violation objects for all routes # noqa: E501
-
- :return: The violations of this InlineResponse2002Summary. # noqa: E501
- :rtype: list[InlineResponse2002Violations]
- """
- return self._violations
-
- @violations.setter
- def violations(self, violations):
- """Sets the violations of this InlineResponse2002Summary.
-
- array of violation objects for all routes # noqa: E501
-
- :param violations: The violations of this InlineResponse2002Summary. # noqa: E501
- :type: list[InlineResponse2002Violations]
- """
-
- self._violations = violations
-
- @property
- def waiting_time(self):
- """Gets the waiting_time of this InlineResponse2002Summary. # noqa: E501
-
- total waiting time for all routes # noqa: E501
-
- :return: The waiting_time of this InlineResponse2002Summary. # noqa: E501
- :rtype: float
- """
- return self._waiting_time
-
- @waiting_time.setter
- def waiting_time(self, waiting_time):
- """Sets the waiting_time of this InlineResponse2002Summary.
-
- total waiting time for all routes # noqa: E501
-
- :param waiting_time: The waiting_time of this InlineResponse2002Summary. # noqa: E501
- :type: float
- """
-
- self._waiting_time = waiting_time
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002Summary, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002Summary):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002_unassigned.py b/openrouteservice/models/inline_response2002_unassigned.py
deleted file mode 100644
index a0ca920d..00000000
--- a/openrouteservice/models/inline_response2002_unassigned.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002Unassigned(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'id': 'int',
- 'location': 'list[float]'
- }
-
- attribute_map = {
- 'id': 'id',
- 'location': 'location'
- }
-
- def __init__(self, id=None, location=None): # noqa: E501
- """InlineResponse2002Unassigned - a model defined in Swagger""" # noqa: E501
- self._id = None
- self._location = None
- self.discriminator = None
- if id is not None:
- self.id = id
- if location is not None:
- self.location = location
-
- @property
- def id(self):
- """Gets the id of this InlineResponse2002Unassigned. # noqa: E501
-
- The `id` of the unassigned job\" # noqa: E501
-
- :return: The id of this InlineResponse2002Unassigned. # noqa: E501
- :rtype: int
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse2002Unassigned.
-
- The `id` of the unassigned job\" # noqa: E501
-
- :param id: The id of this InlineResponse2002Unassigned. # noqa: E501
- :type: int
- """
-
- self._id = id
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2002Unassigned. # noqa: E501
-
- The `location` of the unassigned job # noqa: E501
-
- :return: The location of this InlineResponse2002Unassigned. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2002Unassigned.
-
- The `location` of the unassigned job # noqa: E501
-
- :param location: The location of this InlineResponse2002Unassigned. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002Unassigned, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002Unassigned):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2002_violations.py b/openrouteservice/models/inline_response2002_violations.py
deleted file mode 100644
index cff17577..00000000
--- a/openrouteservice/models/inline_response2002_violations.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2002Violations(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'cause': 'str',
- 'duration': 'float'
- }
-
- attribute_map = {
- 'cause': 'cause',
- 'duration': 'duration'
- }
-
- def __init__(self, cause=None, duration=None): # noqa: E501
- """InlineResponse2002Violations - a model defined in Swagger""" # noqa: E501
- self._cause = None
- self._duration = None
- self.discriminator = None
- if cause is not None:
- self.cause = cause
- if duration is not None:
- self.duration = duration
-
- @property
- def cause(self):
- """Gets the cause of this InlineResponse2002Violations. # noqa: E501
-
- string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value # noqa: E501
-
- :return: The cause of this InlineResponse2002Violations. # noqa: E501
- :rtype: str
- """
- return self._cause
-
- @cause.setter
- def cause(self, cause):
- """Sets the cause of this InlineResponse2002Violations.
-
- string describing the cause of violation. Possible violation causes are: - \"delay\" if actual service start does not meet a task time window and is late on a time window end - \"lead_time\" if actual service start does not meet a task time window and is early on a time window start - \"load\" if the vehicle load goes over its capacity - \"max_tasks\" if the vehicle has more tasks than its max_tasks value - \"skills\" if the vehicle does not hold all required skills for a task - \"precedence\" if a shipment precedence constraint is not met (pickup without matching delivery, delivery before/without matching pickup) - \"missing_break\" if a vehicle break has been omitted in its custom route - \"max_travel_time\" if the vehicle has more travel time than its max_travel_time value - \"max_load\" if the load during a break exceed its max_load value # noqa: E501
-
- :param cause: The cause of this InlineResponse2002Violations. # noqa: E501
- :type: str
- """
-
- self._cause = cause
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2002Violations. # noqa: E501
-
- Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") # noqa: E501
-
- :return: The duration of this InlineResponse2002Violations. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2002Violations.
-
- Earliness (resp. lateness) if `cause` is \"lead_time\" (resp \"delay\") # noqa: E501
-
- :param duration: The duration of this InlineResponse2002Violations. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2002Violations, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2002Violations):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2003.py b/openrouteservice/models/inline_response2003.py
deleted file mode 100644
index fdc3c2f5..00000000
--- a/openrouteservice/models/inline_response2003.py
+++ /dev/null
@@ -1,190 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2003(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[object]',
- 'metadata': 'InlineResponse2003Metadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
- """InlineResponse2003 - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this InlineResponse2003. # noqa: E501
-
- Bounding box that covers all returned routes # noqa: E501
-
- :return: The bbox of this InlineResponse2003. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this InlineResponse2003.
-
- Bounding box that covers all returned routes # noqa: E501
-
- :param bbox: The bbox of this InlineResponse2003. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this InlineResponse2003. # noqa: E501
-
-
- :return: The features of this InlineResponse2003. # noqa: E501
- :rtype: list[object]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this InlineResponse2003.
-
-
- :param features: The features of this InlineResponse2003. # noqa: E501
- :type: list[object]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2003. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2003. # noqa: E501
- :rtype: InlineResponse2003Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2003.
-
-
- :param metadata: The metadata of this InlineResponse2003. # noqa: E501
- :type: InlineResponse2003Metadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2003. # noqa: E501
-
-
- :return: The type of this InlineResponse2003. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2003.
-
-
- :param type: The type of this InlineResponse2003. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2003, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2003):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2003_metadata.py b/openrouteservice/models/inline_response2003_metadata.py
deleted file mode 100644
index 9d19a48a..00000000
--- a/openrouteservice/models/inline_response2003_metadata.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2003Metadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'InlineResponse2005MetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'DirectionsService1',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """InlineResponse2003Metadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse2003Metadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this InlineResponse2003Metadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse2003Metadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this InlineResponse2003Metadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this InlineResponse2003Metadata. # noqa: E501
-
-
- :return: The engine of this InlineResponse2003Metadata. # noqa: E501
- :rtype: InlineResponse2005MetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this InlineResponse2003Metadata.
-
-
- :param engine: The engine of this InlineResponse2003Metadata. # noqa: E501
- :type: InlineResponse2005MetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this InlineResponse2003Metadata. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this InlineResponse2003Metadata. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse2003Metadata.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this InlineResponse2003Metadata. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this InlineResponse2003Metadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2003Metadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this InlineResponse2003Metadata. # noqa: E501
-
-
- :return: The query of this InlineResponse2003Metadata. # noqa: E501
- :rtype: DirectionsService1
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this InlineResponse2003Metadata.
-
-
- :param query: The query of this InlineResponse2003Metadata. # noqa: E501
- :type: DirectionsService1
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2003Metadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this InlineResponse2003Metadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2003Metadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this InlineResponse2003Metadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this InlineResponse2003Metadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this InlineResponse2003Metadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this InlineResponse2003Metadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this InlineResponse2003Metadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse2003Metadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this InlineResponse2003Metadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse2003Metadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this InlineResponse2003Metadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2003Metadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2003Metadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004.py b/openrouteservice/models/inline_response2004.py
deleted file mode 100644
index 710d8ba3..00000000
--- a/openrouteservice/models/inline_response2004.py
+++ /dev/null
@@ -1,166 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'metadata': 'InlineResponse2003Metadata',
- 'routes': 'list[InlineResponse2004Routes]'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'metadata': 'metadata',
- 'routes': 'routes'
- }
-
- def __init__(self, bbox=None, metadata=None, routes=None): # noqa: E501
- """InlineResponse2004 - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._metadata = None
- self._routes = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if metadata is not None:
- self.metadata = metadata
- if routes is not None:
- self.routes = routes
-
- @property
- def bbox(self):
- """Gets the bbox of this InlineResponse2004. # noqa: E501
-
- Bounding box that covers all returned routes # noqa: E501
-
- :return: The bbox of this InlineResponse2004. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this InlineResponse2004.
-
- Bounding box that covers all returned routes # noqa: E501
-
- :param bbox: The bbox of this InlineResponse2004. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2004. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2004. # noqa: E501
- :rtype: InlineResponse2003Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2004.
-
-
- :param metadata: The metadata of this InlineResponse2004. # noqa: E501
- :type: InlineResponse2003Metadata
- """
-
- self._metadata = metadata
-
- @property
- def routes(self):
- """Gets the routes of this InlineResponse2004. # noqa: E501
-
- A list of routes returned from the request # noqa: E501
-
- :return: The routes of this InlineResponse2004. # noqa: E501
- :rtype: list[InlineResponse2004Routes]
- """
- return self._routes
-
- @routes.setter
- def routes(self, routes):
- """Sets the routes of this InlineResponse2004.
-
- A list of routes returned from the request # noqa: E501
-
- :param routes: The routes of this InlineResponse2004. # noqa: E501
- :type: list[InlineResponse2004Routes]
- """
-
- self._routes = routes
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_extras.py b/openrouteservice/models/inline_response2004_extras.py
deleted file mode 100644
index baed8624..00000000
--- a/openrouteservice/models/inline_response2004_extras.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Extras(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'summary': 'list[InlineResponse2004Summary]',
- 'values': 'list[list[int]]'
- }
-
- attribute_map = {
- 'summary': 'summary',
- 'values': 'values'
- }
-
- def __init__(self, summary=None, values=None): # noqa: E501
- """InlineResponse2004Extras - a model defined in Swagger""" # noqa: E501
- self._summary = None
- self._values = None
- self.discriminator = None
- if summary is not None:
- self.summary = summary
- if values is not None:
- self.values = values
-
- @property
- def summary(self):
- """Gets the summary of this InlineResponse2004Extras. # noqa: E501
-
- List representing the summary of the extra info items. # noqa: E501
-
- :return: The summary of this InlineResponse2004Extras. # noqa: E501
- :rtype: list[InlineResponse2004Summary]
- """
- return self._summary
-
- @summary.setter
- def summary(self, summary):
- """Sets the summary of this InlineResponse2004Extras.
-
- List representing the summary of the extra info items. # noqa: E501
-
- :param summary: The summary of this InlineResponse2004Extras. # noqa: E501
- :type: list[InlineResponse2004Summary]
- """
-
- self._summary = summary
-
- @property
- def values(self):
- """Gets the values of this InlineResponse2004Extras. # noqa: E501
-
- A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
-
- :return: The values of this InlineResponse2004Extras. # noqa: E501
- :rtype: list[list[int]]
- """
- return self._values
-
- @values.setter
- def values(self, values):
- """Sets the values of this InlineResponse2004Extras.
-
- A list of values representing a section of the route. The individual values are: Value 1: Indice of the staring point of the geometry for this section, Value 2: Indice of the end point of the geoemetry for this sections, Value 3: [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) assigned to this section. # noqa: E501
-
- :param values: The values of this InlineResponse2004Extras. # noqa: E501
- :type: list[list[int]]
- """
-
- self._values = values
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Extras, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Extras):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_instructions.py b/openrouteservice/models/inline_response2004_instructions.py
deleted file mode 100644
index 46dca263..00000000
--- a/openrouteservice/models/inline_response2004_instructions.py
+++ /dev/null
@@ -1,334 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Instructions(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'distance': 'float',
- 'duration': 'float',
- 'exit_bearings': 'list[int]',
- 'exit_number': 'int',
- 'instruction': 'str',
- 'maneuver': 'InlineResponse2004Maneuver',
- 'name': 'str',
- 'type': 'int',
- 'way_points': 'list[int]'
- }
-
- attribute_map = {
- 'distance': 'distance',
- 'duration': 'duration',
- 'exit_bearings': 'exit_bearings',
- 'exit_number': 'exit_number',
- 'instruction': 'instruction',
- 'maneuver': 'maneuver',
- 'name': 'name',
- 'type': 'type',
- 'way_points': 'way_points'
- }
-
- def __init__(self, distance=None, duration=None, exit_bearings=None, exit_number=None, instruction=None, maneuver=None, name=None, type=None, way_points=None): # noqa: E501
- """InlineResponse2004Instructions - a model defined in Swagger""" # noqa: E501
- self._distance = None
- self._duration = None
- self._exit_bearings = None
- self._exit_number = None
- self._instruction = None
- self._maneuver = None
- self._name = None
- self._type = None
- self._way_points = None
- self.discriminator = None
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if exit_bearings is not None:
- self.exit_bearings = exit_bearings
- if exit_number is not None:
- self.exit_number = exit_number
- if instruction is not None:
- self.instruction = instruction
- if maneuver is not None:
- self.maneuver = maneuver
- if name is not None:
- self.name = name
- if type is not None:
- self.type = type
- if way_points is not None:
- self.way_points = way_points
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2004Instructions. # noqa: E501
-
- The distance for the step in metres. # noqa: E501
-
- :return: The distance of this InlineResponse2004Instructions. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2004Instructions.
-
- The distance for the step in metres. # noqa: E501
-
- :param distance: The distance of this InlineResponse2004Instructions. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2004Instructions. # noqa: E501
-
- The duration for the step in seconds. # noqa: E501
-
- :return: The duration of this InlineResponse2004Instructions. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2004Instructions.
-
- The duration for the step in seconds. # noqa: E501
-
- :param duration: The duration of this InlineResponse2004Instructions. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def exit_bearings(self):
- """Gets the exit_bearings of this InlineResponse2004Instructions. # noqa: E501
-
- Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
-
- :return: The exit_bearings of this InlineResponse2004Instructions. # noqa: E501
- :rtype: list[int]
- """
- return self._exit_bearings
-
- @exit_bearings.setter
- def exit_bearings(self, exit_bearings):
- """Sets the exit_bearings of this InlineResponse2004Instructions.
-
- Contains the bearing of the entrance and all passed exits in a roundabout. # noqa: E501
-
- :param exit_bearings: The exit_bearings of this InlineResponse2004Instructions. # noqa: E501
- :type: list[int]
- """
-
- self._exit_bearings = exit_bearings
-
- @property
- def exit_number(self):
- """Gets the exit_number of this InlineResponse2004Instructions. # noqa: E501
-
- Only for roundabouts. Contains the number of the exit to take. # noqa: E501
-
- :return: The exit_number of this InlineResponse2004Instructions. # noqa: E501
- :rtype: int
- """
- return self._exit_number
-
- @exit_number.setter
- def exit_number(self, exit_number):
- """Sets the exit_number of this InlineResponse2004Instructions.
-
- Only for roundabouts. Contains the number of the exit to take. # noqa: E501
-
- :param exit_number: The exit_number of this InlineResponse2004Instructions. # noqa: E501
- :type: int
- """
-
- self._exit_number = exit_number
-
- @property
- def instruction(self):
- """Gets the instruction of this InlineResponse2004Instructions. # noqa: E501
-
- The routing instruction text for the step. # noqa: E501
-
- :return: The instruction of this InlineResponse2004Instructions. # noqa: E501
- :rtype: str
- """
- return self._instruction
-
- @instruction.setter
- def instruction(self, instruction):
- """Sets the instruction of this InlineResponse2004Instructions.
-
- The routing instruction text for the step. # noqa: E501
-
- :param instruction: The instruction of this InlineResponse2004Instructions. # noqa: E501
- :type: str
- """
-
- self._instruction = instruction
-
- @property
- def maneuver(self):
- """Gets the maneuver of this InlineResponse2004Instructions. # noqa: E501
-
-
- :return: The maneuver of this InlineResponse2004Instructions. # noqa: E501
- :rtype: InlineResponse2004Maneuver
- """
- return self._maneuver
-
- @maneuver.setter
- def maneuver(self, maneuver):
- """Sets the maneuver of this InlineResponse2004Instructions.
-
-
- :param maneuver: The maneuver of this InlineResponse2004Instructions. # noqa: E501
- :type: InlineResponse2004Maneuver
- """
-
- self._maneuver = maneuver
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2004Instructions. # noqa: E501
-
- The name of the next street. # noqa: E501
-
- :return: The name of this InlineResponse2004Instructions. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2004Instructions.
-
- The name of the next street. # noqa: E501
-
- :param name: The name of this InlineResponse2004Instructions. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2004Instructions. # noqa: E501
-
- The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
-
- :return: The type of this InlineResponse2004Instructions. # noqa: E501
- :rtype: int
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2004Instructions.
-
- The [instruction](https://GIScience.github.io/openrouteservice/documentation/Instruction-Types.html) action for symbolisation purposes. # noqa: E501
-
- :param type: The type of this InlineResponse2004Instructions. # noqa: E501
- :type: int
- """
-
- self._type = type
-
- @property
- def way_points(self):
- """Gets the way_points of this InlineResponse2004Instructions. # noqa: E501
-
- List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
-
- :return: The way_points of this InlineResponse2004Instructions. # noqa: E501
- :rtype: list[int]
- """
- return self._way_points
-
- @way_points.setter
- def way_points(self, way_points):
- """Sets the way_points of this InlineResponse2004Instructions.
-
- List containing the indices of the steps start- and endpoint corresponding to the *geometry*. # noqa: E501
-
- :param way_points: The way_points of this InlineResponse2004Instructions. # noqa: E501
- :type: list[int]
- """
-
- self._way_points = way_points
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Instructions, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Instructions):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_legs.py b/openrouteservice/models/inline_response2004_legs.py
deleted file mode 100644
index 2984ea70..00000000
--- a/openrouteservice/models/inline_response2004_legs.py
+++ /dev/null
@@ -1,588 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Legs(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival': 'datetime',
- 'departure': 'datetime',
- 'departure_location': 'str',
- 'distance': 'float',
- 'duration': 'float',
- 'feed_id': 'str',
- 'geometry': 'str',
- 'instructions': 'list[InlineResponse2004Instructions]',
- 'is_in_same_vehicle_as_previous': 'bool',
- 'route_desc': 'str',
- 'route_id': 'str',
- 'route_long_name': 'str',
- 'route_short_name': 'str',
- 'route_type': 'int',
- 'stops': 'list[InlineResponse2004Stops]',
- 'trip_headsign': 'str',
- 'trip_id': 'str',
- 'type': 'str'
- }
-
- attribute_map = {
- 'arrival': 'arrival',
- 'departure': 'departure',
- 'departure_location': 'departure_location',
- 'distance': 'distance',
- 'duration': 'duration',
- 'feed_id': 'feed_id',
- 'geometry': 'geometry',
- 'instructions': 'instructions',
- 'is_in_same_vehicle_as_previous': 'is_in_same_vehicle_as_previous',
- 'route_desc': 'route_desc',
- 'route_id': 'route_id',
- 'route_long_name': 'route_long_name',
- 'route_short_name': 'route_short_name',
- 'route_type': 'route_type',
- 'stops': 'stops',
- 'trip_headsign': 'trip_headsign',
- 'trip_id': 'trip_id',
- 'type': 'type'
- }
-
- def __init__(self, arrival=None, departure=None, departure_location=None, distance=None, duration=None, feed_id=None, geometry=None, instructions=None, is_in_same_vehicle_as_previous=None, route_desc=None, route_id=None, route_long_name=None, route_short_name=None, route_type=None, stops=None, trip_headsign=None, trip_id=None, type=None): # noqa: E501
- """InlineResponse2004Legs - a model defined in Swagger""" # noqa: E501
- self._arrival = None
- self._departure = None
- self._departure_location = None
- self._distance = None
- self._duration = None
- self._feed_id = None
- self._geometry = None
- self._instructions = None
- self._is_in_same_vehicle_as_previous = None
- self._route_desc = None
- self._route_id = None
- self._route_long_name = None
- self._route_short_name = None
- self._route_type = None
- self._stops = None
- self._trip_headsign = None
- self._trip_id = None
- self._type = None
- self.discriminator = None
- if arrival is not None:
- self.arrival = arrival
- if departure is not None:
- self.departure = departure
- if departure_location is not None:
- self.departure_location = departure_location
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if feed_id is not None:
- self.feed_id = feed_id
- if geometry is not None:
- self.geometry = geometry
- if instructions is not None:
- self.instructions = instructions
- if is_in_same_vehicle_as_previous is not None:
- self.is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
- if route_desc is not None:
- self.route_desc = route_desc
- if route_id is not None:
- self.route_id = route_id
- if route_long_name is not None:
- self.route_long_name = route_long_name
- if route_short_name is not None:
- self.route_short_name = route_short_name
- if route_type is not None:
- self.route_type = route_type
- if stops is not None:
- self.stops = stops
- if trip_headsign is not None:
- self.trip_headsign = trip_headsign
- if trip_id is not None:
- self.trip_id = trip_id
- if type is not None:
- self.type = type
-
- @property
- def arrival(self):
- """Gets the arrival of this InlineResponse2004Legs. # noqa: E501
-
- Arrival date and time # noqa: E501
-
- :return: The arrival of this InlineResponse2004Legs. # noqa: E501
- :rtype: datetime
- """
- return self._arrival
-
- @arrival.setter
- def arrival(self, arrival):
- """Sets the arrival of this InlineResponse2004Legs.
-
- Arrival date and time # noqa: E501
-
- :param arrival: The arrival of this InlineResponse2004Legs. # noqa: E501
- :type: datetime
- """
-
- self._arrival = arrival
-
- @property
- def departure(self):
- """Gets the departure of this InlineResponse2004Legs. # noqa: E501
-
- Departure date and time # noqa: E501
-
- :return: The departure of this InlineResponse2004Legs. # noqa: E501
- :rtype: datetime
- """
- return self._departure
-
- @departure.setter
- def departure(self, departure):
- """Sets the departure of this InlineResponse2004Legs.
-
- Departure date and time # noqa: E501
-
- :param departure: The departure of this InlineResponse2004Legs. # noqa: E501
- :type: datetime
- """
-
- self._departure = departure
-
- @property
- def departure_location(self):
- """Gets the departure_location of this InlineResponse2004Legs. # noqa: E501
-
- The departure location of the leg. # noqa: E501
-
- :return: The departure_location of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._departure_location
-
- @departure_location.setter
- def departure_location(self, departure_location):
- """Sets the departure_location of this InlineResponse2004Legs.
-
- The departure location of the leg. # noqa: E501
-
- :param departure_location: The departure_location of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._departure_location = departure_location
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2004Legs. # noqa: E501
-
- The distance for the leg in metres. # noqa: E501
-
- :return: The distance of this InlineResponse2004Legs. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2004Legs.
-
- The distance for the leg in metres. # noqa: E501
-
- :param distance: The distance of this InlineResponse2004Legs. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2004Legs. # noqa: E501
-
- The duration for the leg in seconds. # noqa: E501
-
- :return: The duration of this InlineResponse2004Legs. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2004Legs.
-
- The duration for the leg in seconds. # noqa: E501
-
- :param duration: The duration of this InlineResponse2004Legs. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def feed_id(self):
- """Gets the feed_id of this InlineResponse2004Legs. # noqa: E501
-
- The feed ID this public transport leg based its information from. # noqa: E501
-
- :return: The feed_id of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._feed_id
-
- @feed_id.setter
- def feed_id(self, feed_id):
- """Sets the feed_id of this InlineResponse2004Legs.
-
- The feed ID this public transport leg based its information from. # noqa: E501
-
- :param feed_id: The feed_id of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._feed_id = feed_id
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2004Legs. # noqa: E501
-
- The geometry of the leg. This is an encoded polyline. # noqa: E501
-
- :return: The geometry of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2004Legs.
-
- The geometry of the leg. This is an encoded polyline. # noqa: E501
-
- :param geometry: The geometry of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._geometry = geometry
-
- @property
- def instructions(self):
- """Gets the instructions of this InlineResponse2004Legs. # noqa: E501
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :return: The instructions of this InlineResponse2004Legs. # noqa: E501
- :rtype: list[InlineResponse2004Instructions]
- """
- return self._instructions
-
- @instructions.setter
- def instructions(self, instructions):
- """Sets the instructions of this InlineResponse2004Legs.
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :param instructions: The instructions of this InlineResponse2004Legs. # noqa: E501
- :type: list[InlineResponse2004Instructions]
- """
-
- self._instructions = instructions
-
- @property
- def is_in_same_vehicle_as_previous(self):
- """Gets the is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
-
- Whether the legs continues in the same vehicle as the previous one. # noqa: E501
-
- :return: The is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
- :rtype: bool
- """
- return self._is_in_same_vehicle_as_previous
-
- @is_in_same_vehicle_as_previous.setter
- def is_in_same_vehicle_as_previous(self, is_in_same_vehicle_as_previous):
- """Sets the is_in_same_vehicle_as_previous of this InlineResponse2004Legs.
-
- Whether the legs continues in the same vehicle as the previous one. # noqa: E501
-
- :param is_in_same_vehicle_as_previous: The is_in_same_vehicle_as_previous of this InlineResponse2004Legs. # noqa: E501
- :type: bool
- """
-
- self._is_in_same_vehicle_as_previous = is_in_same_vehicle_as_previous
-
- @property
- def route_desc(self):
- """Gets the route_desc of this InlineResponse2004Legs. # noqa: E501
-
- The route description of the leg (if provided in the GTFS data set). # noqa: E501
-
- :return: The route_desc of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._route_desc
-
- @route_desc.setter
- def route_desc(self, route_desc):
- """Sets the route_desc of this InlineResponse2004Legs.
-
- The route description of the leg (if provided in the GTFS data set). # noqa: E501
-
- :param route_desc: The route_desc of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._route_desc = route_desc
-
- @property
- def route_id(self):
- """Gets the route_id of this InlineResponse2004Legs. # noqa: E501
-
- The route ID of this public transport leg. # noqa: E501
-
- :return: The route_id of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._route_id
-
- @route_id.setter
- def route_id(self, route_id):
- """Sets the route_id of this InlineResponse2004Legs.
-
- The route ID of this public transport leg. # noqa: E501
-
- :param route_id: The route_id of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._route_id = route_id
-
- @property
- def route_long_name(self):
- """Gets the route_long_name of this InlineResponse2004Legs. # noqa: E501
-
- The public transport route name of the leg. # noqa: E501
-
- :return: The route_long_name of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._route_long_name
-
- @route_long_name.setter
- def route_long_name(self, route_long_name):
- """Sets the route_long_name of this InlineResponse2004Legs.
-
- The public transport route name of the leg. # noqa: E501
-
- :param route_long_name: The route_long_name of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._route_long_name = route_long_name
-
- @property
- def route_short_name(self):
- """Gets the route_short_name of this InlineResponse2004Legs. # noqa: E501
-
- The public transport route name (short version) of the leg. # noqa: E501
-
- :return: The route_short_name of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._route_short_name
-
- @route_short_name.setter
- def route_short_name(self, route_short_name):
- """Sets the route_short_name of this InlineResponse2004Legs.
-
- The public transport route name (short version) of the leg. # noqa: E501
-
- :param route_short_name: The route_short_name of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._route_short_name = route_short_name
-
- @property
- def route_type(self):
- """Gets the route_type of this InlineResponse2004Legs. # noqa: E501
-
- The route type of the leg (if provided in the GTFS data set). # noqa: E501
-
- :return: The route_type of this InlineResponse2004Legs. # noqa: E501
- :rtype: int
- """
- return self._route_type
-
- @route_type.setter
- def route_type(self, route_type):
- """Sets the route_type of this InlineResponse2004Legs.
-
- The route type of the leg (if provided in the GTFS data set). # noqa: E501
-
- :param route_type: The route_type of this InlineResponse2004Legs. # noqa: E501
- :type: int
- """
-
- self._route_type = route_type
-
- @property
- def stops(self):
- """Gets the stops of this InlineResponse2004Legs. # noqa: E501
-
- List containing the stops the along the leg. # noqa: E501
-
- :return: The stops of this InlineResponse2004Legs. # noqa: E501
- :rtype: list[InlineResponse2004Stops]
- """
- return self._stops
-
- @stops.setter
- def stops(self, stops):
- """Sets the stops of this InlineResponse2004Legs.
-
- List containing the stops the along the leg. # noqa: E501
-
- :param stops: The stops of this InlineResponse2004Legs. # noqa: E501
- :type: list[InlineResponse2004Stops]
- """
-
- self._stops = stops
-
- @property
- def trip_headsign(self):
- """Gets the trip_headsign of this InlineResponse2004Legs. # noqa: E501
-
- The headsign of the public transport vehicle of the leg. # noqa: E501
-
- :return: The trip_headsign of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._trip_headsign
-
- @trip_headsign.setter
- def trip_headsign(self, trip_headsign):
- """Sets the trip_headsign of this InlineResponse2004Legs.
-
- The headsign of the public transport vehicle of the leg. # noqa: E501
-
- :param trip_headsign: The trip_headsign of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._trip_headsign = trip_headsign
-
- @property
- def trip_id(self):
- """Gets the trip_id of this InlineResponse2004Legs. # noqa: E501
-
- The trip ID of this public transport leg. # noqa: E501
-
- :return: The trip_id of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._trip_id
-
- @trip_id.setter
- def trip_id(self, trip_id):
- """Sets the trip_id of this InlineResponse2004Legs.
-
- The trip ID of this public transport leg. # noqa: E501
-
- :param trip_id: The trip_id of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._trip_id = trip_id
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2004Legs. # noqa: E501
-
- The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
-
- :return: The type of this InlineResponse2004Legs. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2004Legs.
-
- The type of the leg, possible values are currently 'walk' and 'pt'. # noqa: E501
-
- :param type: The type of this InlineResponse2004Legs. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Legs, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Legs):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_maneuver.py b/openrouteservice/models/inline_response2004_maneuver.py
deleted file mode 100644
index 385b342f..00000000
--- a/openrouteservice/models/inline_response2004_maneuver.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Maneuver(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bearing_after': 'int',
- 'bearing_before': 'int',
- 'location': 'list[float]'
- }
-
- attribute_map = {
- 'bearing_after': 'bearing_after',
- 'bearing_before': 'bearing_before',
- 'location': 'location'
- }
-
- def __init__(self, bearing_after=None, bearing_before=None, location=None): # noqa: E501
- """InlineResponse2004Maneuver - a model defined in Swagger""" # noqa: E501
- self._bearing_after = None
- self._bearing_before = None
- self._location = None
- self.discriminator = None
- if bearing_after is not None:
- self.bearing_after = bearing_after
- if bearing_before is not None:
- self.bearing_before = bearing_before
- if location is not None:
- self.location = location
-
- @property
- def bearing_after(self):
- """Gets the bearing_after of this InlineResponse2004Maneuver. # noqa: E501
-
- The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
-
- :return: The bearing_after of this InlineResponse2004Maneuver. # noqa: E501
- :rtype: int
- """
- return self._bearing_after
-
- @bearing_after.setter
- def bearing_after(self, bearing_after):
- """Sets the bearing_after of this InlineResponse2004Maneuver.
-
- The azimuth angle (in degrees) of the direction right after the maneuver. # noqa: E501
-
- :param bearing_after: The bearing_after of this InlineResponse2004Maneuver. # noqa: E501
- :type: int
- """
-
- self._bearing_after = bearing_after
-
- @property
- def bearing_before(self):
- """Gets the bearing_before of this InlineResponse2004Maneuver. # noqa: E501
-
- The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
-
- :return: The bearing_before of this InlineResponse2004Maneuver. # noqa: E501
- :rtype: int
- """
- return self._bearing_before
-
- @bearing_before.setter
- def bearing_before(self, bearing_before):
- """Sets the bearing_before of this InlineResponse2004Maneuver.
-
- The azimuth angle (in degrees) of the direction right before the maneuver. # noqa: E501
-
- :param bearing_before: The bearing_before of this InlineResponse2004Maneuver. # noqa: E501
- :type: int
- """
-
- self._bearing_before = bearing_before
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2004Maneuver. # noqa: E501
-
- The coordinate of the point where a maneuver takes place. # noqa: E501
-
- :return: The location of this InlineResponse2004Maneuver. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2004Maneuver.
-
- The coordinate of the point where a maneuver takes place. # noqa: E501
-
- :param location: The location of this InlineResponse2004Maneuver. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Maneuver, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Maneuver):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_routes.py b/openrouteservice/models/inline_response2004_routes.py
deleted file mode 100644
index 4612af42..00000000
--- a/openrouteservice/models/inline_response2004_routes.py
+++ /dev/null
@@ -1,362 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Routes(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival': 'datetime',
- 'bbox': 'list[float]',
- 'departure': 'datetime',
- 'extras': 'dict(str, InlineResponse2004Extras)',
- 'geometry': 'str',
- 'legs': 'list[InlineResponse2004Legs]',
- 'segments': 'list[InlineResponse2004Segments]',
- 'summary': 'InlineResponse2004Summary1',
- 'warnings': 'list[InlineResponse2004Warnings]',
- 'way_points': 'list[int]'
- }
-
- attribute_map = {
- 'arrival': 'arrival',
- 'bbox': 'bbox',
- 'departure': 'departure',
- 'extras': 'extras',
- 'geometry': 'geometry',
- 'legs': 'legs',
- 'segments': 'segments',
- 'summary': 'summary',
- 'warnings': 'warnings',
- 'way_points': 'way_points'
- }
-
- def __init__(self, arrival=None, bbox=None, departure=None, extras=None, geometry=None, legs=None, segments=None, summary=None, warnings=None, way_points=None): # noqa: E501
- """InlineResponse2004Routes - a model defined in Swagger""" # noqa: E501
- self._arrival = None
- self._bbox = None
- self._departure = None
- self._extras = None
- self._geometry = None
- self._legs = None
- self._segments = None
- self._summary = None
- self._warnings = None
- self._way_points = None
- self.discriminator = None
- if arrival is not None:
- self.arrival = arrival
- if bbox is not None:
- self.bbox = bbox
- if departure is not None:
- self.departure = departure
- if extras is not None:
- self.extras = extras
- if geometry is not None:
- self.geometry = geometry
- if legs is not None:
- self.legs = legs
- if segments is not None:
- self.segments = segments
- if summary is not None:
- self.summary = summary
- if warnings is not None:
- self.warnings = warnings
- if way_points is not None:
- self.way_points = way_points
-
- @property
- def arrival(self):
- """Gets the arrival of this InlineResponse2004Routes. # noqa: E501
-
- Arrival date and time # noqa: E501
-
- :return: The arrival of this InlineResponse2004Routes. # noqa: E501
- :rtype: datetime
- """
- return self._arrival
-
- @arrival.setter
- def arrival(self, arrival):
- """Sets the arrival of this InlineResponse2004Routes.
-
- Arrival date and time # noqa: E501
-
- :param arrival: The arrival of this InlineResponse2004Routes. # noqa: E501
- :type: datetime
- """
-
- self._arrival = arrival
-
- @property
- def bbox(self):
- """Gets the bbox of this InlineResponse2004Routes. # noqa: E501
-
- A bounding box which contains the entire route # noqa: E501
-
- :return: The bbox of this InlineResponse2004Routes. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this InlineResponse2004Routes.
-
- A bounding box which contains the entire route # noqa: E501
-
- :param bbox: The bbox of this InlineResponse2004Routes. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def departure(self):
- """Gets the departure of this InlineResponse2004Routes. # noqa: E501
-
- Departure date and time # noqa: E501
-
- :return: The departure of this InlineResponse2004Routes. # noqa: E501
- :rtype: datetime
- """
- return self._departure
-
- @departure.setter
- def departure(self, departure):
- """Sets the departure of this InlineResponse2004Routes.
-
- Departure date and time # noqa: E501
-
- :param departure: The departure of this InlineResponse2004Routes. # noqa: E501
- :type: datetime
- """
-
- self._departure = departure
-
- @property
- def extras(self):
- """Gets the extras of this InlineResponse2004Routes. # noqa: E501
-
- List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
-
- :return: The extras of this InlineResponse2004Routes. # noqa: E501
- :rtype: dict(str, InlineResponse2004Extras)
- """
- return self._extras
-
- @extras.setter
- def extras(self, extras):
- """Sets the extras of this InlineResponse2004Routes.
-
- List of extra info objects representing the extra info items that were requested for the route. # noqa: E501
-
- :param extras: The extras of this InlineResponse2004Routes. # noqa: E501
- :type: dict(str, InlineResponse2004Extras)
- """
-
- self._extras = extras
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2004Routes. # noqa: E501
-
- The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
-
- :return: The geometry of this InlineResponse2004Routes. # noqa: E501
- :rtype: str
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2004Routes.
-
- The geometry of the route. For JSON route responses this is an encoded polyline. # noqa: E501
-
- :param geometry: The geometry of this InlineResponse2004Routes. # noqa: E501
- :type: str
- """
-
- self._geometry = geometry
-
- @property
- def legs(self):
- """Gets the legs of this InlineResponse2004Routes. # noqa: E501
-
- List containing the legs the route consists of. # noqa: E501
-
- :return: The legs of this InlineResponse2004Routes. # noqa: E501
- :rtype: list[InlineResponse2004Legs]
- """
- return self._legs
-
- @legs.setter
- def legs(self, legs):
- """Sets the legs of this InlineResponse2004Routes.
-
- List containing the legs the route consists of. # noqa: E501
-
- :param legs: The legs of this InlineResponse2004Routes. # noqa: E501
- :type: list[InlineResponse2004Legs]
- """
-
- self._legs = legs
-
- @property
- def segments(self):
- """Gets the segments of this InlineResponse2004Routes. # noqa: E501
-
- List containing the segments and its corresponding steps which make up the route. # noqa: E501
-
- :return: The segments of this InlineResponse2004Routes. # noqa: E501
- :rtype: list[InlineResponse2004Segments]
- """
- return self._segments
-
- @segments.setter
- def segments(self, segments):
- """Sets the segments of this InlineResponse2004Routes.
-
- List containing the segments and its corresponding steps which make up the route. # noqa: E501
-
- :param segments: The segments of this InlineResponse2004Routes. # noqa: E501
- :type: list[InlineResponse2004Segments]
- """
-
- self._segments = segments
-
- @property
- def summary(self):
- """Gets the summary of this InlineResponse2004Routes. # noqa: E501
-
-
- :return: The summary of this InlineResponse2004Routes. # noqa: E501
- :rtype: InlineResponse2004Summary1
- """
- return self._summary
-
- @summary.setter
- def summary(self, summary):
- """Sets the summary of this InlineResponse2004Routes.
-
-
- :param summary: The summary of this InlineResponse2004Routes. # noqa: E501
- :type: InlineResponse2004Summary1
- """
-
- self._summary = summary
-
- @property
- def warnings(self):
- """Gets the warnings of this InlineResponse2004Routes. # noqa: E501
-
- List of warnings that have been generated for the route # noqa: E501
-
- :return: The warnings of this InlineResponse2004Routes. # noqa: E501
- :rtype: list[InlineResponse2004Warnings]
- """
- return self._warnings
-
- @warnings.setter
- def warnings(self, warnings):
- """Sets the warnings of this InlineResponse2004Routes.
-
- List of warnings that have been generated for the route # noqa: E501
-
- :param warnings: The warnings of this InlineResponse2004Routes. # noqa: E501
- :type: list[InlineResponse2004Warnings]
- """
-
- self._warnings = warnings
-
- @property
- def way_points(self):
- """Gets the way_points of this InlineResponse2004Routes. # noqa: E501
-
- List containing the indices of way points corresponding to the *geometry*. # noqa: E501
-
- :return: The way_points of this InlineResponse2004Routes. # noqa: E501
- :rtype: list[int]
- """
- return self._way_points
-
- @way_points.setter
- def way_points(self, way_points):
- """Sets the way_points of this InlineResponse2004Routes.
-
- List containing the indices of way points corresponding to the *geometry*. # noqa: E501
-
- :param way_points: The way_points of this InlineResponse2004Routes. # noqa: E501
- :type: list[int]
- """
-
- self._way_points = way_points
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Routes, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Routes):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_segments.py b/openrouteservice/models/inline_response2004_segments.py
deleted file mode 100644
index 88c3a458..00000000
--- a/openrouteservice/models/inline_response2004_segments.py
+++ /dev/null
@@ -1,308 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Segments(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'ascent': 'float',
- 'avgspeed': 'float',
- 'descent': 'float',
- 'detourfactor': 'float',
- 'distance': 'float',
- 'duration': 'float',
- 'percentage': 'float',
- 'steps': 'list[InlineResponse2004Instructions]'
- }
-
- attribute_map = {
- 'ascent': 'ascent',
- 'avgspeed': 'avgspeed',
- 'descent': 'descent',
- 'detourfactor': 'detourfactor',
- 'distance': 'distance',
- 'duration': 'duration',
- 'percentage': 'percentage',
- 'steps': 'steps'
- }
-
- def __init__(self, ascent=None, avgspeed=None, descent=None, detourfactor=None, distance=None, duration=None, percentage=None, steps=None): # noqa: E501
- """InlineResponse2004Segments - a model defined in Swagger""" # noqa: E501
- self._ascent = None
- self._avgspeed = None
- self._descent = None
- self._detourfactor = None
- self._distance = None
- self._duration = None
- self._percentage = None
- self._steps = None
- self.discriminator = None
- if ascent is not None:
- self.ascent = ascent
- if avgspeed is not None:
- self.avgspeed = avgspeed
- if descent is not None:
- self.descent = descent
- if detourfactor is not None:
- self.detourfactor = detourfactor
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if percentage is not None:
- self.percentage = percentage
- if steps is not None:
- self.steps = steps
-
- @property
- def ascent(self):
- """Gets the ascent of this InlineResponse2004Segments. # noqa: E501
-
- Contains ascent of this segment in metres. # noqa: E501
-
- :return: The ascent of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._ascent
-
- @ascent.setter
- def ascent(self, ascent):
- """Sets the ascent of this InlineResponse2004Segments.
-
- Contains ascent of this segment in metres. # noqa: E501
-
- :param ascent: The ascent of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._ascent = ascent
-
- @property
- def avgspeed(self):
- """Gets the avgspeed of this InlineResponse2004Segments. # noqa: E501
-
- Contains the average speed of this segment in km/h. # noqa: E501
-
- :return: The avgspeed of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._avgspeed
-
- @avgspeed.setter
- def avgspeed(self, avgspeed):
- """Sets the avgspeed of this InlineResponse2004Segments.
-
- Contains the average speed of this segment in km/h. # noqa: E501
-
- :param avgspeed: The avgspeed of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._avgspeed = avgspeed
-
- @property
- def descent(self):
- """Gets the descent of this InlineResponse2004Segments. # noqa: E501
-
- Contains descent of this segment in metres. # noqa: E501
-
- :return: The descent of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._descent
-
- @descent.setter
- def descent(self, descent):
- """Sets the descent of this InlineResponse2004Segments.
-
- Contains descent of this segment in metres. # noqa: E501
-
- :param descent: The descent of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._descent = descent
-
- @property
- def detourfactor(self):
- """Gets the detourfactor of this InlineResponse2004Segments. # noqa: E501
-
- Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
-
- :return: The detourfactor of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._detourfactor
-
- @detourfactor.setter
- def detourfactor(self, detourfactor):
- """Sets the detourfactor of this InlineResponse2004Segments.
-
- Contains the deviation compared to a straight line that would have the factor `1`. Double the Distance would be a `2`. # noqa: E501
-
- :param detourfactor: The detourfactor of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._detourfactor = detourfactor
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2004Segments. # noqa: E501
-
- Contains the distance of the segment in specified units. # noqa: E501
-
- :return: The distance of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2004Segments.
-
- Contains the distance of the segment in specified units. # noqa: E501
-
- :param distance: The distance of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2004Segments. # noqa: E501
-
- Contains the duration of the segment in seconds. # noqa: E501
-
- :return: The duration of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2004Segments.
-
- Contains the duration of the segment in seconds. # noqa: E501
-
- :param duration: The duration of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def percentage(self):
- """Gets the percentage of this InlineResponse2004Segments. # noqa: E501
-
- Contains the proportion of the route in percent. # noqa: E501
-
- :return: The percentage of this InlineResponse2004Segments. # noqa: E501
- :rtype: float
- """
- return self._percentage
-
- @percentage.setter
- def percentage(self, percentage):
- """Sets the percentage of this InlineResponse2004Segments.
-
- Contains the proportion of the route in percent. # noqa: E501
-
- :param percentage: The percentage of this InlineResponse2004Segments. # noqa: E501
- :type: float
- """
-
- self._percentage = percentage
-
- @property
- def steps(self):
- """Gets the steps of this InlineResponse2004Segments. # noqa: E501
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :return: The steps of this InlineResponse2004Segments. # noqa: E501
- :rtype: list[InlineResponse2004Instructions]
- """
- return self._steps
-
- @steps.setter
- def steps(self, steps):
- """Sets the steps of this InlineResponse2004Segments.
-
- List containing the specific steps the segment consists of. # noqa: E501
-
- :param steps: The steps of this InlineResponse2004Segments. # noqa: E501
- :type: list[InlineResponse2004Instructions]
- """
-
- self._steps = steps
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Segments, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Segments):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_stops.py b/openrouteservice/models/inline_response2004_stops.py
deleted file mode 100644
index de33a8d7..00000000
--- a/openrouteservice/models/inline_response2004_stops.py
+++ /dev/null
@@ -1,392 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Stops(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'arrival_cancelled': 'bool',
- 'arrival_time': 'datetime',
- 'departure_cancelled': 'bool',
- 'departure_time': 'datetime',
- 'location': 'list[float]',
- 'name': 'str',
- 'planned_arrival_time': 'datetime',
- 'planned_departure_time': 'datetime',
- 'predicted_arrival_time': 'datetime',
- 'predicted_departure_time': 'datetime',
- 'stop_id': 'str'
- }
-
- attribute_map = {
- 'arrival_cancelled': 'arrival_cancelled',
- 'arrival_time': 'arrival_time',
- 'departure_cancelled': 'departure_cancelled',
- 'departure_time': 'departure_time',
- 'location': 'location',
- 'name': 'name',
- 'planned_arrival_time': 'planned_arrival_time',
- 'planned_departure_time': 'planned_departure_time',
- 'predicted_arrival_time': 'predicted_arrival_time',
- 'predicted_departure_time': 'predicted_departure_time',
- 'stop_id': 'stop_id'
- }
-
- def __init__(self, arrival_cancelled=None, arrival_time=None, departure_cancelled=None, departure_time=None, location=None, name=None, planned_arrival_time=None, planned_departure_time=None, predicted_arrival_time=None, predicted_departure_time=None, stop_id=None): # noqa: E501
- """InlineResponse2004Stops - a model defined in Swagger""" # noqa: E501
- self._arrival_cancelled = None
- self._arrival_time = None
- self._departure_cancelled = None
- self._departure_time = None
- self._location = None
- self._name = None
- self._planned_arrival_time = None
- self._planned_departure_time = None
- self._predicted_arrival_time = None
- self._predicted_departure_time = None
- self._stop_id = None
- self.discriminator = None
- if arrival_cancelled is not None:
- self.arrival_cancelled = arrival_cancelled
- if arrival_time is not None:
- self.arrival_time = arrival_time
- if departure_cancelled is not None:
- self.departure_cancelled = departure_cancelled
- if departure_time is not None:
- self.departure_time = departure_time
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if planned_arrival_time is not None:
- self.planned_arrival_time = planned_arrival_time
- if planned_departure_time is not None:
- self.planned_departure_time = planned_departure_time
- if predicted_arrival_time is not None:
- self.predicted_arrival_time = predicted_arrival_time
- if predicted_departure_time is not None:
- self.predicted_departure_time = predicted_departure_time
- if stop_id is not None:
- self.stop_id = stop_id
-
- @property
- def arrival_cancelled(self):
- """Gets the arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
-
- Whether arrival at the stop was cancelled. # noqa: E501
-
- :return: The arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
- :rtype: bool
- """
- return self._arrival_cancelled
-
- @arrival_cancelled.setter
- def arrival_cancelled(self, arrival_cancelled):
- """Sets the arrival_cancelled of this InlineResponse2004Stops.
-
- Whether arrival at the stop was cancelled. # noqa: E501
-
- :param arrival_cancelled: The arrival_cancelled of this InlineResponse2004Stops. # noqa: E501
- :type: bool
- """
-
- self._arrival_cancelled = arrival_cancelled
-
- @property
- def arrival_time(self):
- """Gets the arrival_time of this InlineResponse2004Stops. # noqa: E501
-
- Arrival time of the stop. # noqa: E501
-
- :return: The arrival_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._arrival_time
-
- @arrival_time.setter
- def arrival_time(self, arrival_time):
- """Sets the arrival_time of this InlineResponse2004Stops.
-
- Arrival time of the stop. # noqa: E501
-
- :param arrival_time: The arrival_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._arrival_time = arrival_time
-
- @property
- def departure_cancelled(self):
- """Gets the departure_cancelled of this InlineResponse2004Stops. # noqa: E501
-
- Whether departure at the stop was cancelled. # noqa: E501
-
- :return: The departure_cancelled of this InlineResponse2004Stops. # noqa: E501
- :rtype: bool
- """
- return self._departure_cancelled
-
- @departure_cancelled.setter
- def departure_cancelled(self, departure_cancelled):
- """Sets the departure_cancelled of this InlineResponse2004Stops.
-
- Whether departure at the stop was cancelled. # noqa: E501
-
- :param departure_cancelled: The departure_cancelled of this InlineResponse2004Stops. # noqa: E501
- :type: bool
- """
-
- self._departure_cancelled = departure_cancelled
-
- @property
- def departure_time(self):
- """Gets the departure_time of this InlineResponse2004Stops. # noqa: E501
-
- Departure time of the stop. # noqa: E501
-
- :return: The departure_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._departure_time
-
- @departure_time.setter
- def departure_time(self, departure_time):
- """Sets the departure_time of this InlineResponse2004Stops.
-
- Departure time of the stop. # noqa: E501
-
- :param departure_time: The departure_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._departure_time = departure_time
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2004Stops. # noqa: E501
-
- The location of the stop. # noqa: E501
-
- :return: The location of this InlineResponse2004Stops. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2004Stops.
-
- The location of the stop. # noqa: E501
-
- :param location: The location of this InlineResponse2004Stops. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2004Stops. # noqa: E501
-
- The name of the stop. # noqa: E501
-
- :return: The name of this InlineResponse2004Stops. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2004Stops.
-
- The name of the stop. # noqa: E501
-
- :param name: The name of this InlineResponse2004Stops. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def planned_arrival_time(self):
- """Gets the planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
-
- Planned arrival time of the stop. # noqa: E501
-
- :return: The planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._planned_arrival_time
-
- @planned_arrival_time.setter
- def planned_arrival_time(self, planned_arrival_time):
- """Sets the planned_arrival_time of this InlineResponse2004Stops.
-
- Planned arrival time of the stop. # noqa: E501
-
- :param planned_arrival_time: The planned_arrival_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._planned_arrival_time = planned_arrival_time
-
- @property
- def planned_departure_time(self):
- """Gets the planned_departure_time of this InlineResponse2004Stops. # noqa: E501
-
- Planned departure time of the stop. # noqa: E501
-
- :return: The planned_departure_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._planned_departure_time
-
- @planned_departure_time.setter
- def planned_departure_time(self, planned_departure_time):
- """Sets the planned_departure_time of this InlineResponse2004Stops.
-
- Planned departure time of the stop. # noqa: E501
-
- :param planned_departure_time: The planned_departure_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._planned_departure_time = planned_departure_time
-
- @property
- def predicted_arrival_time(self):
- """Gets the predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
-
- Predicted arrival time of the stop. # noqa: E501
-
- :return: The predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._predicted_arrival_time
-
- @predicted_arrival_time.setter
- def predicted_arrival_time(self, predicted_arrival_time):
- """Sets the predicted_arrival_time of this InlineResponse2004Stops.
-
- Predicted arrival time of the stop. # noqa: E501
-
- :param predicted_arrival_time: The predicted_arrival_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._predicted_arrival_time = predicted_arrival_time
-
- @property
- def predicted_departure_time(self):
- """Gets the predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
-
- Predicted departure time of the stop. # noqa: E501
-
- :return: The predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
- :rtype: datetime
- """
- return self._predicted_departure_time
-
- @predicted_departure_time.setter
- def predicted_departure_time(self, predicted_departure_time):
- """Sets the predicted_departure_time of this InlineResponse2004Stops.
-
- Predicted departure time of the stop. # noqa: E501
-
- :param predicted_departure_time: The predicted_departure_time of this InlineResponse2004Stops. # noqa: E501
- :type: datetime
- """
-
- self._predicted_departure_time = predicted_departure_time
-
- @property
- def stop_id(self):
- """Gets the stop_id of this InlineResponse2004Stops. # noqa: E501
-
- The ID of the stop. # noqa: E501
-
- :return: The stop_id of this InlineResponse2004Stops. # noqa: E501
- :rtype: str
- """
- return self._stop_id
-
- @stop_id.setter
- def stop_id(self, stop_id):
- """Sets the stop_id of this InlineResponse2004Stops.
-
- The ID of the stop. # noqa: E501
-
- :param stop_id: The stop_id of this InlineResponse2004Stops. # noqa: E501
- :type: str
- """
-
- self._stop_id = stop_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Stops, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Stops):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_summary.py b/openrouteservice/models/inline_response2004_summary.py
deleted file mode 100644
index a556bc58..00000000
--- a/openrouteservice/models/inline_response2004_summary.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Summary(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'amount': 'float',
- 'distance': 'float',
- 'value': 'float'
- }
-
- attribute_map = {
- 'amount': 'amount',
- 'distance': 'distance',
- 'value': 'value'
- }
-
- def __init__(self, amount=None, distance=None, value=None): # noqa: E501
- """InlineResponse2004Summary - a model defined in Swagger""" # noqa: E501
- self._amount = None
- self._distance = None
- self._value = None
- self.discriminator = None
- if amount is not None:
- self.amount = amount
- if distance is not None:
- self.distance = distance
- if value is not None:
- self.value = value
-
- @property
- def amount(self):
- """Gets the amount of this InlineResponse2004Summary. # noqa: E501
-
- Category percentage of the entire route. # noqa: E501
-
- :return: The amount of this InlineResponse2004Summary. # noqa: E501
- :rtype: float
- """
- return self._amount
-
- @amount.setter
- def amount(self, amount):
- """Sets the amount of this InlineResponse2004Summary.
-
- Category percentage of the entire route. # noqa: E501
-
- :param amount: The amount of this InlineResponse2004Summary. # noqa: E501
- :type: float
- """
-
- self._amount = amount
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2004Summary. # noqa: E501
-
- Cumulative distance of this value. # noqa: E501
-
- :return: The distance of this InlineResponse2004Summary. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2004Summary.
-
- Cumulative distance of this value. # noqa: E501
-
- :param distance: The distance of this InlineResponse2004Summary. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def value(self):
- """Gets the value of this InlineResponse2004Summary. # noqa: E501
-
- [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
-
- :return: The value of this InlineResponse2004Summary. # noqa: E501
- :rtype: float
- """
- return self._value
-
- @value.setter
- def value(self, value):
- """Sets the value of this InlineResponse2004Summary.
-
- [Value](https://GIScience.github.io/openrouteservice/documentation/extra-info/Extra-Info.html) of a info category. # noqa: E501
-
- :param value: The value of this InlineResponse2004Summary. # noqa: E501
- :type: float
- """
-
- self._value = value
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Summary, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Summary):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_summary1.py b/openrouteservice/models/inline_response2004_summary1.py
deleted file mode 100644
index 42553d66..00000000
--- a/openrouteservice/models/inline_response2004_summary1.py
+++ /dev/null
@@ -1,248 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Summary1(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'ascent': 'float',
- 'descent': 'float',
- 'distance': 'float',
- 'duration': 'float',
- 'fare': 'int',
- 'transfers': 'int'
- }
-
- attribute_map = {
- 'ascent': 'ascent',
- 'descent': 'descent',
- 'distance': 'distance',
- 'duration': 'duration',
- 'fare': 'fare',
- 'transfers': 'transfers'
- }
-
- def __init__(self, ascent=None, descent=None, distance=None, duration=None, fare=None, transfers=None): # noqa: E501
- """InlineResponse2004Summary1 - a model defined in Swagger""" # noqa: E501
- self._ascent = None
- self._descent = None
- self._distance = None
- self._duration = None
- self._fare = None
- self._transfers = None
- self.discriminator = None
- if ascent is not None:
- self.ascent = ascent
- if descent is not None:
- self.descent = descent
- if distance is not None:
- self.distance = distance
- if duration is not None:
- self.duration = duration
- if fare is not None:
- self.fare = fare
- if transfers is not None:
- self.transfers = transfers
-
- @property
- def ascent(self):
- """Gets the ascent of this InlineResponse2004Summary1. # noqa: E501
-
- Total ascent in meters. # noqa: E501
-
- :return: The ascent of this InlineResponse2004Summary1. # noqa: E501
- :rtype: float
- """
- return self._ascent
-
- @ascent.setter
- def ascent(self, ascent):
- """Sets the ascent of this InlineResponse2004Summary1.
-
- Total ascent in meters. # noqa: E501
-
- :param ascent: The ascent of this InlineResponse2004Summary1. # noqa: E501
- :type: float
- """
-
- self._ascent = ascent
-
- @property
- def descent(self):
- """Gets the descent of this InlineResponse2004Summary1. # noqa: E501
-
- Total descent in meters. # noqa: E501
-
- :return: The descent of this InlineResponse2004Summary1. # noqa: E501
- :rtype: float
- """
- return self._descent
-
- @descent.setter
- def descent(self, descent):
- """Sets the descent of this InlineResponse2004Summary1.
-
- Total descent in meters. # noqa: E501
-
- :param descent: The descent of this InlineResponse2004Summary1. # noqa: E501
- :type: float
- """
-
- self._descent = descent
-
- @property
- def distance(self):
- """Gets the distance of this InlineResponse2004Summary1. # noqa: E501
-
- Total route distance in specified units. # noqa: E501
-
- :return: The distance of this InlineResponse2004Summary1. # noqa: E501
- :rtype: float
- """
- return self._distance
-
- @distance.setter
- def distance(self, distance):
- """Sets the distance of this InlineResponse2004Summary1.
-
- Total route distance in specified units. # noqa: E501
-
- :param distance: The distance of this InlineResponse2004Summary1. # noqa: E501
- :type: float
- """
-
- self._distance = distance
-
- @property
- def duration(self):
- """Gets the duration of this InlineResponse2004Summary1. # noqa: E501
-
- Total duration in seconds. # noqa: E501
-
- :return: The duration of this InlineResponse2004Summary1. # noqa: E501
- :rtype: float
- """
- return self._duration
-
- @duration.setter
- def duration(self, duration):
- """Sets the duration of this InlineResponse2004Summary1.
-
- Total duration in seconds. # noqa: E501
-
- :param duration: The duration of this InlineResponse2004Summary1. # noqa: E501
- :type: float
- """
-
- self._duration = duration
-
- @property
- def fare(self):
- """Gets the fare of this InlineResponse2004Summary1. # noqa: E501
-
-
- :return: The fare of this InlineResponse2004Summary1. # noqa: E501
- :rtype: int
- """
- return self._fare
-
- @fare.setter
- def fare(self, fare):
- """Sets the fare of this InlineResponse2004Summary1.
-
-
- :param fare: The fare of this InlineResponse2004Summary1. # noqa: E501
- :type: int
- """
-
- self._fare = fare
-
- @property
- def transfers(self):
- """Gets the transfers of this InlineResponse2004Summary1. # noqa: E501
-
-
- :return: The transfers of this InlineResponse2004Summary1. # noqa: E501
- :rtype: int
- """
- return self._transfers
-
- @transfers.setter
- def transfers(self, transfers):
- """Sets the transfers of this InlineResponse2004Summary1.
-
-
- :param transfers: The transfers of this InlineResponse2004Summary1. # noqa: E501
- :type: int
- """
-
- self._transfers = transfers
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Summary1, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Summary1):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2004_warnings.py b/openrouteservice/models/inline_response2004_warnings.py
deleted file mode 100644
index c0214c33..00000000
--- a/openrouteservice/models/inline_response2004_warnings.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2004Warnings(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'code': 'int',
- 'message': 'str'
- }
-
- attribute_map = {
- 'code': 'code',
- 'message': 'message'
- }
-
- def __init__(self, code=None, message=None): # noqa: E501
- """InlineResponse2004Warnings - a model defined in Swagger""" # noqa: E501
- self._code = None
- self._message = None
- self.discriminator = None
- if code is not None:
- self.code = code
- if message is not None:
- self.message = message
-
- @property
- def code(self):
- """Gets the code of this InlineResponse2004Warnings. # noqa: E501
-
- Identification code for the warning # noqa: E501
-
- :return: The code of this InlineResponse2004Warnings. # noqa: E501
- :rtype: int
- """
- return self._code
-
- @code.setter
- def code(self, code):
- """Sets the code of this InlineResponse2004Warnings.
-
- Identification code for the warning # noqa: E501
-
- :param code: The code of this InlineResponse2004Warnings. # noqa: E501
- :type: int
- """
-
- self._code = code
-
- @property
- def message(self):
- """Gets the message of this InlineResponse2004Warnings. # noqa: E501
-
- The message associated with the warning # noqa: E501
-
- :return: The message of this InlineResponse2004Warnings. # noqa: E501
- :rtype: str
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this InlineResponse2004Warnings.
-
- The message associated with the warning # noqa: E501
-
- :param message: The message of this InlineResponse2004Warnings. # noqa: E501
- :type: str
- """
-
- self._message = message
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2004Warnings, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2004Warnings):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2005.py b/openrouteservice/models/inline_response2005.py
deleted file mode 100644
index be33215f..00000000
--- a/openrouteservice/models/inline_response2005.py
+++ /dev/null
@@ -1,190 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2005(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[InlineResponse2005Features]',
- 'metadata': 'InlineResponse2005Metadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type=None): # noqa: E501
- """InlineResponse2005 - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this InlineResponse2005. # noqa: E501
-
- Bounding box that covers all returned isochrones # noqa: E501
-
- :return: The bbox of this InlineResponse2005. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this InlineResponse2005.
-
- Bounding box that covers all returned isochrones # noqa: E501
-
- :param bbox: The bbox of this InlineResponse2005. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this InlineResponse2005. # noqa: E501
-
-
- :return: The features of this InlineResponse2005. # noqa: E501
- :rtype: list[InlineResponse2005Features]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this InlineResponse2005.
-
-
- :param features: The features of this InlineResponse2005. # noqa: E501
- :type: list[InlineResponse2005Features]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2005. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2005. # noqa: E501
- :rtype: InlineResponse2005Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2005.
-
-
- :param metadata: The metadata of this InlineResponse2005. # noqa: E501
- :type: InlineResponse2005Metadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2005. # noqa: E501
-
-
- :return: The type of this InlineResponse2005. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2005.
-
-
- :param type: The type of this InlineResponse2005. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2005, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2005):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2005_features.py b/openrouteservice/models/inline_response2005_features.py
deleted file mode 100644
index 1b439f6f..00000000
--- a/openrouteservice/models/inline_response2005_features.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2005Features(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'geometry': 'InlineResponse2005Geometry',
- 'type': 'str'
- }
-
- attribute_map = {
- 'geometry': 'geometry',
- 'type': 'type'
- }
-
- def __init__(self, geometry=None, type=None): # noqa: E501
- """InlineResponse2005Features - a model defined in Swagger""" # noqa: E501
- self._geometry = None
- self._type = None
- self.discriminator = None
- if geometry is not None:
- self.geometry = geometry
- if type is not None:
- self.type = type
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2005Features. # noqa: E501
-
-
- :return: The geometry of this InlineResponse2005Features. # noqa: E501
- :rtype: InlineResponse2005Geometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2005Features.
-
-
- :param geometry: The geometry of this InlineResponse2005Features. # noqa: E501
- :type: InlineResponse2005Geometry
- """
-
- self._geometry = geometry
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2005Features. # noqa: E501
-
-
- :return: The type of this InlineResponse2005Features. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2005Features.
-
-
- :param type: The type of this InlineResponse2005Features. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2005Features, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2005Features):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2005_metadata.py b/openrouteservice/models/inline_response2005_metadata.py
deleted file mode 100644
index 04a4d31a..00000000
--- a/openrouteservice/models/inline_response2005_metadata.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2005Metadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'InlineResponse2005MetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'IsochronesProfileBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """InlineResponse2005Metadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse2005Metadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this InlineResponse2005Metadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse2005Metadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this InlineResponse2005Metadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this InlineResponse2005Metadata. # noqa: E501
-
-
- :return: The engine of this InlineResponse2005Metadata. # noqa: E501
- :rtype: InlineResponse2005MetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this InlineResponse2005Metadata.
-
-
- :param engine: The engine of this InlineResponse2005Metadata. # noqa: E501
- :type: InlineResponse2005MetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this InlineResponse2005Metadata. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this InlineResponse2005Metadata. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse2005Metadata.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this InlineResponse2005Metadata. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this InlineResponse2005Metadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2005Metadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this InlineResponse2005Metadata. # noqa: E501
-
-
- :return: The query of this InlineResponse2005Metadata. # noqa: E501
- :rtype: IsochronesProfileBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this InlineResponse2005Metadata.
-
-
- :param query: The query of this InlineResponse2005Metadata. # noqa: E501
- :type: IsochronesProfileBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2005Metadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this InlineResponse2005Metadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2005Metadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this InlineResponse2005Metadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this InlineResponse2005Metadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this InlineResponse2005Metadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this InlineResponse2005Metadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this InlineResponse2005Metadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse2005Metadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this InlineResponse2005Metadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse2005Metadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this InlineResponse2005Metadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2005Metadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2005Metadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2005_metadata_engine.py b/openrouteservice/models/inline_response2005_metadata_engine.py
deleted file mode 100644
index e405cef1..00000000
--- a/openrouteservice/models/inline_response2005_metadata_engine.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2005MetadataEngine(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'build_date': 'str',
- 'graph_date': 'str',
- 'version': 'str'
- }
-
- attribute_map = {
- 'build_date': 'build_date',
- 'graph_date': 'graph_date',
- 'version': 'version'
- }
-
- def __init__(self, build_date=None, graph_date=None, version=None): # noqa: E501
- """InlineResponse2005MetadataEngine - a model defined in Swagger""" # noqa: E501
- self._build_date = None
- self._graph_date = None
- self._version = None
- self.discriminator = None
- if build_date is not None:
- self.build_date = build_date
- if graph_date is not None:
- self.graph_date = graph_date
- if version is not None:
- self.version = version
-
- @property
- def build_date(self):
- """Gets the build_date of this InlineResponse2005MetadataEngine. # noqa: E501
-
- The date that the service was last updated # noqa: E501
-
- :return: The build_date of this InlineResponse2005MetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._build_date
-
- @build_date.setter
- def build_date(self, build_date):
- """Sets the build_date of this InlineResponse2005MetadataEngine.
-
- The date that the service was last updated # noqa: E501
-
- :param build_date: The build_date of this InlineResponse2005MetadataEngine. # noqa: E501
- :type: str
- """
-
- self._build_date = build_date
-
- @property
- def graph_date(self):
- """Gets the graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
-
- The date that the graph data was last updated # noqa: E501
-
- :return: The graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._graph_date
-
- @graph_date.setter
- def graph_date(self, graph_date):
- """Sets the graph_date of this InlineResponse2005MetadataEngine.
-
- The date that the graph data was last updated # noqa: E501
-
- :param graph_date: The graph_date of this InlineResponse2005MetadataEngine. # noqa: E501
- :type: str
- """
-
- self._graph_date = graph_date
-
- @property
- def version(self):
- """Gets the version of this InlineResponse2005MetadataEngine. # noqa: E501
-
- The backend version of the openrouteservice that was queried # noqa: E501
-
- :return: The version of this InlineResponse2005MetadataEngine. # noqa: E501
- :rtype: str
- """
- return self._version
-
- @version.setter
- def version(self, version):
- """Sets the version of this InlineResponse2005MetadataEngine.
-
- The backend version of the openrouteservice that was queried # noqa: E501
-
- :param version: The version of this InlineResponse2005MetadataEngine. # noqa: E501
- :type: str
- """
-
- self._version = version
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2005MetadataEngine, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2005MetadataEngine):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2006.py b/openrouteservice/models/inline_response2006.py
deleted file mode 100644
index 7e0d9c17..00000000
--- a/openrouteservice/models/inline_response2006.py
+++ /dev/null
@@ -1,222 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2006(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'destinations': 'list[InlineResponse2006Destinations]',
- 'distances': 'list[list[float]]',
- 'durations': 'list[list[float]]',
- 'metadata': 'InlineResponse2006Metadata',
- 'sources': 'list[InlineResponse2006Sources]'
- }
-
- attribute_map = {
- 'destinations': 'destinations',
- 'distances': 'distances',
- 'durations': 'durations',
- 'metadata': 'metadata',
- 'sources': 'sources'
- }
-
- def __init__(self, destinations=None, distances=None, durations=None, metadata=None, sources=None): # noqa: E501
- """InlineResponse2006 - a model defined in Swagger""" # noqa: E501
- self._destinations = None
- self._distances = None
- self._durations = None
- self._metadata = None
- self._sources = None
- self.discriminator = None
- if destinations is not None:
- self.destinations = destinations
- if distances is not None:
- self.distances = distances
- if durations is not None:
- self.durations = durations
- if metadata is not None:
- self.metadata = metadata
- if sources is not None:
- self.sources = sources
-
- @property
- def destinations(self):
- """Gets the destinations of this InlineResponse2006. # noqa: E501
-
- The individual destinations of the matrix calculations. # noqa: E501
-
- :return: The destinations of this InlineResponse2006. # noqa: E501
- :rtype: list[InlineResponse2006Destinations]
- """
- return self._destinations
-
- @destinations.setter
- def destinations(self, destinations):
- """Sets the destinations of this InlineResponse2006.
-
- The individual destinations of the matrix calculations. # noqa: E501
-
- :param destinations: The destinations of this InlineResponse2006. # noqa: E501
- :type: list[InlineResponse2006Destinations]
- """
-
- self._destinations = destinations
-
- @property
- def distances(self):
- """Gets the distances of this InlineResponse2006. # noqa: E501
-
- The distances of the matrix calculations. # noqa: E501
-
- :return: The distances of this InlineResponse2006. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._distances
-
- @distances.setter
- def distances(self, distances):
- """Sets the distances of this InlineResponse2006.
-
- The distances of the matrix calculations. # noqa: E501
-
- :param distances: The distances of this InlineResponse2006. # noqa: E501
- :type: list[list[float]]
- """
-
- self._distances = distances
-
- @property
- def durations(self):
- """Gets the durations of this InlineResponse2006. # noqa: E501
-
- The durations of the matrix calculations. # noqa: E501
-
- :return: The durations of this InlineResponse2006. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._durations
-
- @durations.setter
- def durations(self, durations):
- """Sets the durations of this InlineResponse2006.
-
- The durations of the matrix calculations. # noqa: E501
-
- :param durations: The durations of this InlineResponse2006. # noqa: E501
- :type: list[list[float]]
- """
-
- self._durations = durations
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2006. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2006. # noqa: E501
- :rtype: InlineResponse2006Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2006.
-
-
- :param metadata: The metadata of this InlineResponse2006. # noqa: E501
- :type: InlineResponse2006Metadata
- """
-
- self._metadata = metadata
-
- @property
- def sources(self):
- """Gets the sources of this InlineResponse2006. # noqa: E501
-
- The individual sources of the matrix calculations. # noqa: E501
-
- :return: The sources of this InlineResponse2006. # noqa: E501
- :rtype: list[InlineResponse2006Sources]
- """
- return self._sources
-
- @sources.setter
- def sources(self, sources):
- """Sets the sources of this InlineResponse2006.
-
- The individual sources of the matrix calculations. # noqa: E501
-
- :param sources: The sources of this InlineResponse2006. # noqa: E501
- :type: list[InlineResponse2006Sources]
- """
-
- self._sources = sources
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2006, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2006):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2006_destinations.py b/openrouteservice/models/inline_response2006_destinations.py
deleted file mode 100644
index 228044f9..00000000
--- a/openrouteservice/models/inline_response2006_destinations.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2006Destinations(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """InlineResponse2006Destinations - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2006Destinations. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this InlineResponse2006Destinations. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2006Destinations.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this InlineResponse2006Destinations. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2006Destinations. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this InlineResponse2006Destinations. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2006Destinations.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this InlineResponse2006Destinations. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this InlineResponse2006Destinations. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this InlineResponse2006Destinations. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this InlineResponse2006Destinations.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this InlineResponse2006Destinations. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2006Destinations, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2006Destinations):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2006_metadata.py b/openrouteservice/models/inline_response2006_metadata.py
deleted file mode 100644
index 10c64e96..00000000
--- a/openrouteservice/models/inline_response2006_metadata.py
+++ /dev/null
@@ -1,304 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2006Metadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'InlineResponse2005MetadataEngine',
- 'id': 'str',
- 'osm_file_md5_hash': 'str',
- 'query': 'MatrixProfileBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'id': 'id',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, id=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """InlineResponse2006Metadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._id = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if id is not None:
- self.id = id
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse2006Metadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this InlineResponse2006Metadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse2006Metadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this InlineResponse2006Metadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this InlineResponse2006Metadata. # noqa: E501
-
-
- :return: The engine of this InlineResponse2006Metadata. # noqa: E501
- :rtype: InlineResponse2005MetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this InlineResponse2006Metadata.
-
-
- :param engine: The engine of this InlineResponse2006Metadata. # noqa: E501
- :type: InlineResponse2005MetadataEngine
- """
-
- self._engine = engine
-
- @property
- def id(self):
- """Gets the id of this InlineResponse2006Metadata. # noqa: E501
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :return: The id of this InlineResponse2006Metadata. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this InlineResponse2006Metadata.
-
- ID of the request (as passed in by the query) # noqa: E501
-
- :param id: The id of this InlineResponse2006Metadata. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this InlineResponse2006Metadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2006Metadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this InlineResponse2006Metadata. # noqa: E501
-
-
- :return: The query of this InlineResponse2006Metadata. # noqa: E501
- :rtype: MatrixProfileBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this InlineResponse2006Metadata.
-
-
- :param query: The query of this InlineResponse2006Metadata. # noqa: E501
- :type: MatrixProfileBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2006Metadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this InlineResponse2006Metadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2006Metadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this InlineResponse2006Metadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this InlineResponse2006Metadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this InlineResponse2006Metadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this InlineResponse2006Metadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this InlineResponse2006Metadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse2006Metadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this InlineResponse2006Metadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse2006Metadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this InlineResponse2006Metadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2006Metadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2006Metadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2006_sources.py b/openrouteservice/models/inline_response2006_sources.py
deleted file mode 100644
index a7a4a3e0..00000000
--- a/openrouteservice/models/inline_response2006_sources.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2006Sources(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """InlineResponse2006Sources - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2006Sources. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this InlineResponse2006Sources. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2006Sources.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this InlineResponse2006Sources. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2006Sources. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this InlineResponse2006Sources. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2006Sources.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this InlineResponse2006Sources. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this InlineResponse2006Sources. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this InlineResponse2006Sources. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this InlineResponse2006Sources.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this InlineResponse2006Sources. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2006Sources, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2006Sources):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2007.py b/openrouteservice/models/inline_response2007.py
deleted file mode 100644
index 25217860..00000000
--- a/openrouteservice/models/inline_response2007.py
+++ /dev/null
@@ -1,138 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2007(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'locations': 'list[InlineResponse2007Locations]',
- 'metadata': 'InlineResponse2007Metadata'
- }
-
- attribute_map = {
- 'locations': 'locations',
- 'metadata': 'metadata'
- }
-
- def __init__(self, locations=None, metadata=None): # noqa: E501
- """InlineResponse2007 - a model defined in Swagger""" # noqa: E501
- self._locations = None
- self._metadata = None
- self.discriminator = None
- if locations is not None:
- self.locations = locations
- if metadata is not None:
- self.metadata = metadata
-
- @property
- def locations(self):
- """Gets the locations of this InlineResponse2007. # noqa: E501
-
- The snapped locations as coordinates and snapping distance. # noqa: E501
-
- :return: The locations of this InlineResponse2007. # noqa: E501
- :rtype: list[InlineResponse2007Locations]
- """
- return self._locations
-
- @locations.setter
- def locations(self, locations):
- """Sets the locations of this InlineResponse2007.
-
- The snapped locations as coordinates and snapping distance. # noqa: E501
-
- :param locations: The locations of this InlineResponse2007. # noqa: E501
- :type: list[InlineResponse2007Locations]
- """
-
- self._locations = locations
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2007. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2007. # noqa: E501
- :rtype: InlineResponse2007Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2007.
-
-
- :param metadata: The metadata of this InlineResponse2007. # noqa: E501
- :type: InlineResponse2007Metadata
- """
-
- self._metadata = metadata
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2007, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2007):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2007_locations.py b/openrouteservice/models/inline_response2007_locations.py
deleted file mode 100644
index d67d7adf..00000000
--- a/openrouteservice/models/inline_response2007_locations.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2007Locations(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'location': 'list[float]',
- 'name': 'str',
- 'snapped_distance': 'float'
- }
-
- attribute_map = {
- 'location': 'location',
- 'name': 'name',
- 'snapped_distance': 'snapped_distance'
- }
-
- def __init__(self, location=None, name=None, snapped_distance=None): # noqa: E501
- """InlineResponse2007Locations - a model defined in Swagger""" # noqa: E501
- self._location = None
- self._name = None
- self._snapped_distance = None
- self.discriminator = None
- if location is not None:
- self.location = location
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
-
- @property
- def location(self):
- """Gets the location of this InlineResponse2007Locations. # noqa: E501
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :return: The location of this InlineResponse2007Locations. # noqa: E501
- :rtype: list[float]
- """
- return self._location
-
- @location.setter
- def location(self, location):
- """Sets the location of this InlineResponse2007Locations.
-
- {longitude},{latitude} coordinates of the closest accessible point on the routing graph # noqa: E501
-
- :param location: The location of this InlineResponse2007Locations. # noqa: E501
- :type: list[float]
- """
-
- self._location = location
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2007Locations. # noqa: E501
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this InlineResponse2007Locations. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2007Locations.
-
- Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this InlineResponse2007Locations. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this InlineResponse2007Locations. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this InlineResponse2007Locations. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this InlineResponse2007Locations.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this InlineResponse2007Locations. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2007Locations, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2007Locations):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2007_metadata.py b/openrouteservice/models/inline_response2007_metadata.py
deleted file mode 100644
index bde57dfd..00000000
--- a/openrouteservice/models/inline_response2007_metadata.py
+++ /dev/null
@@ -1,276 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2007Metadata(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'attribution': 'str',
- 'engine': 'InlineResponse2005MetadataEngine',
- 'osm_file_md5_hash': 'str',
- 'query': 'ProfileJsonBody',
- 'service': 'str',
- 'system_message': 'str',
- 'timestamp': 'int'
- }
-
- attribute_map = {
- 'attribution': 'attribution',
- 'engine': 'engine',
- 'osm_file_md5_hash': 'osm_file_md5_hash',
- 'query': 'query',
- 'service': 'service',
- 'system_message': 'system_message',
- 'timestamp': 'timestamp'
- }
-
- def __init__(self, attribution=None, engine=None, osm_file_md5_hash=None, query=None, service=None, system_message=None, timestamp=None): # noqa: E501
- """InlineResponse2007Metadata - a model defined in Swagger""" # noqa: E501
- self._attribution = None
- self._engine = None
- self._osm_file_md5_hash = None
- self._query = None
- self._service = None
- self._system_message = None
- self._timestamp = None
- self.discriminator = None
- if attribution is not None:
- self.attribution = attribution
- if engine is not None:
- self.engine = engine
- if osm_file_md5_hash is not None:
- self.osm_file_md5_hash = osm_file_md5_hash
- if query is not None:
- self.query = query
- if service is not None:
- self.service = service
- if system_message is not None:
- self.system_message = system_message
- if timestamp is not None:
- self.timestamp = timestamp
-
- @property
- def attribution(self):
- """Gets the attribution of this InlineResponse2007Metadata. # noqa: E501
-
- Copyright and attribution information # noqa: E501
-
- :return: The attribution of this InlineResponse2007Metadata. # noqa: E501
- :rtype: str
- """
- return self._attribution
-
- @attribution.setter
- def attribution(self, attribution):
- """Sets the attribution of this InlineResponse2007Metadata.
-
- Copyright and attribution information # noqa: E501
-
- :param attribution: The attribution of this InlineResponse2007Metadata. # noqa: E501
- :type: str
- """
-
- self._attribution = attribution
-
- @property
- def engine(self):
- """Gets the engine of this InlineResponse2007Metadata. # noqa: E501
-
-
- :return: The engine of this InlineResponse2007Metadata. # noqa: E501
- :rtype: InlineResponse2005MetadataEngine
- """
- return self._engine
-
- @engine.setter
- def engine(self, engine):
- """Sets the engine of this InlineResponse2007Metadata.
-
-
- :param engine: The engine of this InlineResponse2007Metadata. # noqa: E501
- :type: InlineResponse2005MetadataEngine
- """
-
- self._engine = engine
-
- @property
- def osm_file_md5_hash(self):
- """Gets the osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :return: The osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
- :rtype: str
- """
- return self._osm_file_md5_hash
-
- @osm_file_md5_hash.setter
- def osm_file_md5_hash(self, osm_file_md5_hash):
- """Sets the osm_file_md5_hash of this InlineResponse2007Metadata.
-
- The MD5 hash of the OSM planet file that was used for generating graphs # noqa: E501
-
- :param osm_file_md5_hash: The osm_file_md5_hash of this InlineResponse2007Metadata. # noqa: E501
- :type: str
- """
-
- self._osm_file_md5_hash = osm_file_md5_hash
-
- @property
- def query(self):
- """Gets the query of this InlineResponse2007Metadata. # noqa: E501
-
-
- :return: The query of this InlineResponse2007Metadata. # noqa: E501
- :rtype: ProfileJsonBody
- """
- return self._query
-
- @query.setter
- def query(self, query):
- """Sets the query of this InlineResponse2007Metadata.
-
-
- :param query: The query of this InlineResponse2007Metadata. # noqa: E501
- :type: ProfileJsonBody
- """
-
- self._query = query
-
- @property
- def service(self):
- """Gets the service of this InlineResponse2007Metadata. # noqa: E501
-
- The service that was requested # noqa: E501
-
- :return: The service of this InlineResponse2007Metadata. # noqa: E501
- :rtype: str
- """
- return self._service
-
- @service.setter
- def service(self, service):
- """Sets the service of this InlineResponse2007Metadata.
-
- The service that was requested # noqa: E501
-
- :param service: The service of this InlineResponse2007Metadata. # noqa: E501
- :type: str
- """
-
- self._service = service
-
- @property
- def system_message(self):
- """Gets the system_message of this InlineResponse2007Metadata. # noqa: E501
-
- System message # noqa: E501
-
- :return: The system_message of this InlineResponse2007Metadata. # noqa: E501
- :rtype: str
- """
- return self._system_message
-
- @system_message.setter
- def system_message(self, system_message):
- """Sets the system_message of this InlineResponse2007Metadata.
-
- System message # noqa: E501
-
- :param system_message: The system_message of this InlineResponse2007Metadata. # noqa: E501
- :type: str
- """
-
- self._system_message = system_message
-
- @property
- def timestamp(self):
- """Gets the timestamp of this InlineResponse2007Metadata. # noqa: E501
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :return: The timestamp of this InlineResponse2007Metadata. # noqa: E501
- :rtype: int
- """
- return self._timestamp
-
- @timestamp.setter
- def timestamp(self, timestamp):
- """Sets the timestamp of this InlineResponse2007Metadata.
-
- Time that the request was made (UNIX Epoch time) # noqa: E501
-
- :param timestamp: The timestamp of this InlineResponse2007Metadata. # noqa: E501
- :type: int
- """
-
- self._timestamp = timestamp
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2007Metadata, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2007Metadata):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2008.py b/openrouteservice/models/inline_response2008.py
deleted file mode 100644
index ea5818aa..00000000
--- a/openrouteservice/models/inline_response2008.py
+++ /dev/null
@@ -1,194 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2008(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'bbox': 'list[float]',
- 'features': 'list[InlineResponse2008Features]',
- 'metadata': 'InlineResponse2007Metadata',
- 'type': 'str'
- }
-
- attribute_map = {
- 'bbox': 'bbox',
- 'features': 'features',
- 'metadata': 'metadata',
- 'type': 'type'
- }
-
- def __init__(self, bbox=None, features=None, metadata=None, type='FeatureCollection'): # noqa: E501
- """InlineResponse2008 - a model defined in Swagger""" # noqa: E501
- self._bbox = None
- self._features = None
- self._metadata = None
- self._type = None
- self.discriminator = None
- if bbox is not None:
- self.bbox = bbox
- if features is not None:
- self.features = features
- if metadata is not None:
- self.metadata = metadata
- if type is not None:
- self.type = type
-
- @property
- def bbox(self):
- """Gets the bbox of this InlineResponse2008. # noqa: E501
-
- Bounding box that covers all returned snapping points # noqa: E501
-
- :return: The bbox of this InlineResponse2008. # noqa: E501
- :rtype: list[float]
- """
- return self._bbox
-
- @bbox.setter
- def bbox(self, bbox):
- """Sets the bbox of this InlineResponse2008.
-
- Bounding box that covers all returned snapping points # noqa: E501
-
- :param bbox: The bbox of this InlineResponse2008. # noqa: E501
- :type: list[float]
- """
-
- self._bbox = bbox
-
- @property
- def features(self):
- """Gets the features of this InlineResponse2008. # noqa: E501
-
- Information about the service and request # noqa: E501
-
- :return: The features of this InlineResponse2008. # noqa: E501
- :rtype: list[InlineResponse2008Features]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this InlineResponse2008.
-
- Information about the service and request # noqa: E501
-
- :param features: The features of this InlineResponse2008. # noqa: E501
- :type: list[InlineResponse2008Features]
- """
-
- self._features = features
-
- @property
- def metadata(self):
- """Gets the metadata of this InlineResponse2008. # noqa: E501
-
-
- :return: The metadata of this InlineResponse2008. # noqa: E501
- :rtype: InlineResponse2007Metadata
- """
- return self._metadata
-
- @metadata.setter
- def metadata(self, metadata):
- """Sets the metadata of this InlineResponse2008.
-
-
- :param metadata: The metadata of this InlineResponse2008. # noqa: E501
- :type: InlineResponse2007Metadata
- """
-
- self._metadata = metadata
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2008. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this InlineResponse2008. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2008.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this InlineResponse2008. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2008, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2008):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2008_features.py b/openrouteservice/models/inline_response2008_features.py
deleted file mode 100644
index 04b1e203..00000000
--- a/openrouteservice/models/inline_response2008_features.py
+++ /dev/null
@@ -1,164 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2008Features(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'geometry': 'InlineResponse2008Geometry',
- 'properties': 'InlineResponse2008Properties',
- 'type': 'str'
- }
-
- attribute_map = {
- 'geometry': 'geometry',
- 'properties': 'properties',
- 'type': 'type'
- }
-
- def __init__(self, geometry=None, properties=None, type='Feature'): # noqa: E501
- """InlineResponse2008Features - a model defined in Swagger""" # noqa: E501
- self._geometry = None
- self._properties = None
- self._type = None
- self.discriminator = None
- if geometry is not None:
- self.geometry = geometry
- if properties is not None:
- self.properties = properties
- if type is not None:
- self.type = type
-
- @property
- def geometry(self):
- """Gets the geometry of this InlineResponse2008Features. # noqa: E501
-
-
- :return: The geometry of this InlineResponse2008Features. # noqa: E501
- :rtype: InlineResponse2008Geometry
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this InlineResponse2008Features.
-
-
- :param geometry: The geometry of this InlineResponse2008Features. # noqa: E501
- :type: InlineResponse2008Geometry
- """
-
- self._geometry = geometry
-
- @property
- def properties(self):
- """Gets the properties of this InlineResponse2008Features. # noqa: E501
-
-
- :return: The properties of this InlineResponse2008Features. # noqa: E501
- :rtype: InlineResponse2008Properties
- """
- return self._properties
-
- @properties.setter
- def properties(self, properties):
- """Sets the properties of this InlineResponse2008Features.
-
-
- :param properties: The properties of this InlineResponse2008Features. # noqa: E501
- :type: InlineResponse2008Properties
- """
-
- self._properties = properties
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2008Features. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this InlineResponse2008Features. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2008Features.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this InlineResponse2008Features. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2008Features, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2008Features):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2008_geometry.py b/openrouteservice/models/inline_response2008_geometry.py
deleted file mode 100644
index 19a58619..00000000
--- a/openrouteservice/models/inline_response2008_geometry.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2008Geometry(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'coordinates': 'list[float]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'coordinates': 'coordinates',
- 'type': 'type'
- }
-
- def __init__(self, coordinates=None, type='Point'): # noqa: E501
- """InlineResponse2008Geometry - a model defined in Swagger""" # noqa: E501
- self._coordinates = None
- self._type = None
- self.discriminator = None
- if coordinates is not None:
- self.coordinates = coordinates
- if type is not None:
- self.type = type
-
- @property
- def coordinates(self):
- """Gets the coordinates of this InlineResponse2008Geometry. # noqa: E501
-
- Lon/Lat coordinates of the snapped location # noqa: E501
-
- :return: The coordinates of this InlineResponse2008Geometry. # noqa: E501
- :rtype: list[float]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this InlineResponse2008Geometry.
-
- Lon/Lat coordinates of the snapped location # noqa: E501
-
- :param coordinates: The coordinates of this InlineResponse2008Geometry. # noqa: E501
- :type: list[float]
- """
-
- self._coordinates = coordinates
-
- @property
- def type(self):
- """Gets the type of this InlineResponse2008Geometry. # noqa: E501
-
- GeoJSON type # noqa: E501
-
- :return: The type of this InlineResponse2008Geometry. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse2008Geometry.
-
- GeoJSON type # noqa: E501
-
- :param type: The type of this InlineResponse2008Geometry. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2008Geometry, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2008Geometry):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2008_properties.py b/openrouteservice/models/inline_response2008_properties.py
deleted file mode 100644
index 1f52e0c7..00000000
--- a/openrouteservice/models/inline_response2008_properties.py
+++ /dev/null
@@ -1,168 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse2008Properties(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'name': 'str',
- 'snapped_distance': 'float',
- 'source_id': 'int'
- }
-
- attribute_map = {
- 'name': 'name',
- 'snapped_distance': 'snapped_distance',
- 'source_id': 'source_id'
- }
-
- def __init__(self, name=None, snapped_distance=None, source_id=None): # noqa: E501
- """InlineResponse2008Properties - a model defined in Swagger""" # noqa: E501
- self._name = None
- self._snapped_distance = None
- self._source_id = None
- self.discriminator = None
- if name is not None:
- self.name = name
- if snapped_distance is not None:
- self.snapped_distance = snapped_distance
- if source_id is not None:
- self.source_id = source_id
-
- @property
- def name(self):
- """Gets the name of this InlineResponse2008Properties. # noqa: E501
-
- \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :return: The name of this InlineResponse2008Properties. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this InlineResponse2008Properties.
-
- \"Name of the street the closest accessible point is situated on. Only for `resolve_locations=true` and only if name is available. # noqa: E501
-
- :param name: The name of this InlineResponse2008Properties. # noqa: E501
- :type: str
- """
-
- self._name = name
-
- @property
- def snapped_distance(self):
- """Gets the snapped_distance of this InlineResponse2008Properties. # noqa: E501
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :return: The snapped_distance of this InlineResponse2008Properties. # noqa: E501
- :rtype: float
- """
- return self._snapped_distance
-
- @snapped_distance.setter
- def snapped_distance(self, snapped_distance):
- """Sets the snapped_distance of this InlineResponse2008Properties.
-
- Distance between the `source/destination` Location and the used point on the routing graph in meters. # noqa: E501
-
- :param snapped_distance: The snapped_distance of this InlineResponse2008Properties. # noqa: E501
- :type: float
- """
-
- self._snapped_distance = snapped_distance
-
- @property
- def source_id(self):
- """Gets the source_id of this InlineResponse2008Properties. # noqa: E501
-
- Index of the requested location # noqa: E501
-
- :return: The source_id of this InlineResponse2008Properties. # noqa: E501
- :rtype: int
- """
- return self._source_id
-
- @source_id.setter
- def source_id(self, source_id):
- """Sets the source_id of this InlineResponse2008Properties.
-
- Index of the requested location # noqa: E501
-
- :param source_id: The source_id of this InlineResponse2008Properties. # noqa: E501
- :type: int
- """
-
- self._source_id = source_id
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse2008Properties, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2008Properties):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response200_geometry.py b/openrouteservice/models/inline_response200_geometry.py
deleted file mode 100644
index 7f8561e1..00000000
--- a/openrouteservice/models/inline_response200_geometry.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class InlineResponse200Geometry(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'coordinates': 'list[list[float]]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'coordinates': 'coordinates',
- 'type': 'type'
- }
-
- def __init__(self, coordinates=None, type=None): # noqa: E501
- """InlineResponse200Geometry - a model defined in Swagger""" # noqa: E501
- self._coordinates = None
- self._type = None
- self.discriminator = None
- if coordinates is not None:
- self.coordinates = coordinates
- if type is not None:
- self.type = type
-
- @property
- def coordinates(self):
- """Gets the coordinates of this InlineResponse200Geometry. # noqa: E501
-
-
- :return: The coordinates of this InlineResponse200Geometry. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this InlineResponse200Geometry.
-
-
- :param coordinates: The coordinates of this InlineResponse200Geometry. # noqa: E501
- :type: list[list[float]]
- """
-
- self._coordinates = coordinates
-
- @property
- def type(self):
- """Gets the type of this InlineResponse200Geometry. # noqa: E501
-
-
- :return: The type of this InlineResponse200Geometry. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this InlineResponse200Geometry.
-
-
- :param type: The type of this InlineResponse200Geometry. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(InlineResponse200Geometry, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse200Geometry):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/inline_response2005_geometry.py b/openrouteservice/models/json_response.py
similarity index 72%
rename from openrouteservice/models/inline_response2005_geometry.py
rename to openrouteservice/models/json_response.py
index dd3bd304..3bea3522 100644
--- a/openrouteservice/models/inline_response2005_geometry.py
+++ b/openrouteservice/models/json_response.py
@@ -15,7 +15,7 @@
import six
-class InlineResponse2005Geometry(object):
+class JSONResponse(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -28,40 +28,14 @@ class InlineResponse2005Geometry(object):
and the value is json key in definition.
"""
swagger_types = {
- 'empty': 'bool'
}
attribute_map = {
- 'empty': 'empty'
}
- def __init__(self, empty=None): # noqa: E501
- """InlineResponse2005Geometry - a model defined in Swagger""" # noqa: E501
- self._empty = None
+ def __init__(self): # noqa: E501
+ """JSONResponse - a model defined in Swagger""" # noqa: E501
self.discriminator = None
- if empty is not None:
- self.empty = empty
-
- @property
- def empty(self):
- """Gets the empty of this InlineResponse2005Geometry. # noqa: E501
-
-
- :return: The empty of this InlineResponse2005Geometry. # noqa: E501
- :rtype: bool
- """
- return self._empty
-
- @empty.setter
- def empty(self, empty):
- """Sets the empty of this InlineResponse2005Geometry.
-
-
- :param empty: The empty of this InlineResponse2005Geometry. # noqa: E501
- :type: bool
- """
-
- self._empty = empty
def to_dict(self):
"""Returns the model properties as a dict"""
@@ -84,7 +58,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(InlineResponse2005Geometry, dict):
+ if issubclass(JSONResponse, dict):
for key, value in self.items():
result[key] = value
@@ -100,7 +74,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, InlineResponse2005Geometry):
+ if not isinstance(other, JSONResponse):
return False
return self.__dict__ == other.__dict__
diff --git a/openrouteservice/models/openpoiservice_poi_response.py b/openrouteservice/models/openpoiservice_poi_response.py
deleted file mode 100644
index 3a11919b..00000000
--- a/openrouteservice/models/openpoiservice_poi_response.py
+++ /dev/null
@@ -1,136 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class OpenpoiservicePoiResponse(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'features': 'list[GeoJSONFeaturesObject]',
- 'type': 'str'
- }
-
- attribute_map = {
- 'features': 'features',
- 'type': 'type'
- }
-
- def __init__(self, features=None, type='FeatureCollection'): # noqa: E501
- """OpenpoiservicePoiResponse - a model defined in Swagger""" # noqa: E501
- self._features = None
- self._type = None
- self.discriminator = None
- if features is not None:
- self.features = features
- if type is not None:
- self.type = type
-
- @property
- def features(self):
- """Gets the features of this OpenpoiservicePoiResponse. # noqa: E501
-
-
- :return: The features of this OpenpoiservicePoiResponse. # noqa: E501
- :rtype: list[GeoJSONFeaturesObject]
- """
- return self._features
-
- @features.setter
- def features(self, features):
- """Sets the features of this OpenpoiservicePoiResponse.
-
-
- :param features: The features of this OpenpoiservicePoiResponse. # noqa: E501
- :type: list[GeoJSONFeaturesObject]
- """
-
- self._features = features
-
- @property
- def type(self):
- """Gets the type of this OpenpoiservicePoiResponse. # noqa: E501
-
-
- :return: The type of this OpenpoiservicePoiResponse. # noqa: E501
- :rtype: str
- """
- return self._type
-
- @type.setter
- def type(self, type):
- """Sets the type of this OpenpoiservicePoiResponse.
-
-
- :param type: The type of this OpenpoiservicePoiResponse. # noqa: E501
- :type: str
- """
-
- self._type = type
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(OpenpoiservicePoiResponse, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, OpenpoiservicePoiResponse):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
From 643c790b5b4db45b97c28ab71721fa7a0b2ca01f Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Mon, 11 Mar 2024 15:02:21 +0100
Subject: [PATCH 07/38] test: update tests to not use InlineResponse classes
---
test/test_directions_service_api.py | 2 +-
test/test_elevation_api.py | 6 +++---
test/test_geocode_api.py | 6 +++---
test/test_isochrones_service_api.py | 2 +-
test/test_matrix_service_api.py | 2 +-
test/test_optimization_api.py | 2 +-
test/test_pois_api.py | 4 ++--
7 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/test/test_directions_service_api.py b/test/test_directions_service_api.py
index 50043dad..35d1a4a7 100644
--- a/test/test_directions_service_api.py
+++ b/test/test_directions_service_api.py
@@ -43,7 +43,7 @@ def test_get_geo_json_route(self):
)
profile = 'driving-car'
response = self.api.get_geo_json_route(body, profile)
- self.assertEqual(response.bbox, [8.681423, 49.414599, 8.690123, 49.420514])
+ self.assertEqual(response["bbox"], [8.681423, 49.414599, 8.690123, 49.420514])
#def test_get_gpx_route(self):
# """Test case for get_gpx_route
diff --git a/test/test_elevation_api.py b/test/test_elevation_api.py
index 8aa84390..39caf814 100644
--- a/test/test_elevation_api.py
+++ b/test/test_elevation_api.py
@@ -43,7 +43,7 @@ def test_elevation_line_post(self):
geometry="u`rgFswjpAKD"
)
response = self.api.elevation_line_post(body)
- self.assertEqual(response.geometry.coordinates[0], [13.3313, 38.10843, 72.0])
+ self.assertEqual(response["geometry"]["coordinates"][0], [13.3313, 38.10843, 72.0])
def test_elevation_point_get(self):
"""Test case for elevation_point_get
@@ -51,7 +51,7 @@ def test_elevation_point_get(self):
Elevation Point Service # noqa: E501
"""
response = self.api.elevation_point_get(geometry=[13.331273, 38.10849])
- self.assertEqual(response.geometry.coordinates, [13.331273,38.10849,72])
+ self.assertEqual(response["geometry"]["coordinates"], [13.331273,38.10849,72])
def test_elevation_point_post(self):
"""Test case for elevation_point_post
@@ -64,7 +64,7 @@ def test_elevation_point_post(self):
)
response = self.api.elevation_point_post(body)
- self.assertEqual(response.geometry.coordinates, [13.331273,38.10849,72])
+ self.assertEqual(response["geometry"]["coordinates"], [13.331273,38.10849,72])
if __name__ == '__main__':
diff --git a/test/test_geocode_api.py b/test/test_geocode_api.py
index c67602a7..e6471373 100644
--- a/test/test_geocode_api.py
+++ b/test/test_geocode_api.py
@@ -41,7 +41,7 @@ def test_geocode_autocomplete_get(self):
text = "Toky"
response = self.api.geocode_autocomplete_get(text)
self.assertIsNotNone(response)
- self.assertEqual(len(response.features), 10)
+ self.assertEqual(len(response["features"]), 10)
def test_geocode_reverse_get(self):
"""Test case for geocode_reverse_get
@@ -52,7 +52,7 @@ def test_geocode_reverse_get(self):
lat = 48.858268
response = self.api.geocode_reverse_get(lon, lat)
self.assertIsNotNone(response)
- self.assertEqual(len(response.features), 10)
+ self.assertEqual(len(response["features"]), 10)
def test_geocode_search_get(self):
"""Test case for geocode_search_get
@@ -62,7 +62,7 @@ def test_geocode_search_get(self):
text = "Namibian Brewery"
response = self.api.geocode_search_get(text)
self.assertIsNotNone(response)
- self.assertEqual(len(response.features), 10)
+ self.assertEqual(len(response["features"]), 10)
def test_geocode_search_structured_get(self):
"""Test case for geocode_search_structured_get
diff --git a/test/test_isochrones_service_api.py b/test/test_isochrones_service_api.py
index 966524c6..8414d1ee 100644
--- a/test/test_isochrones_service_api.py
+++ b/test/test_isochrones_service_api.py
@@ -44,7 +44,7 @@ def test_get_default_isochrones(self):
)
profile = 'driving-car'
response = self.api.get_default_isochrones(body, profile)
- self.assertEqual(len(response.features), 4)
+ self.assertEqual(len(response["features"]), 4)
if __name__ == '__main__':
diff --git a/test/test_matrix_service_api.py b/test/test_matrix_service_api.py
index 69944e48..90b047cc 100644
--- a/test/test_matrix_service_api.py
+++ b/test/test_matrix_service_api.py
@@ -44,7 +44,7 @@ def test_get_default(self):
profile = 'driving-car' # str | Specifies the matrix profile.
response = self.api.get_default1(body, profile)
- self.assertEqual(len(response.destinations), 4)
+ self.assertEqual(len(response["destinations"]), 4)
if __name__ == '__main__':
diff --git a/test/test_optimization_api.py b/test/test_optimization_api.py
index f88c92cc..24cc9c24 100644
--- a/test/test_optimization_api.py
+++ b/test/test_optimization_api.py
@@ -43,7 +43,7 @@ def test_optimization_post(self):
vehicles=[{"id":1,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[1,14],"time_window":[28800,43200]},{"id":2,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[2,14],"time_window":[28800,43200]}]
)
response = self.api.optimization_post(body)
- self.assertEqual(response.code, 0)
+ self.assertEqual(response["code"], 0)
if __name__ == '__main__':
diff --git a/test/test_pois_api.py b/test/test_pois_api.py
index d8cf61dd..77aaef9a 100644
--- a/test/test_pois_api.py
+++ b/test/test_pois_api.py
@@ -51,7 +51,7 @@ def test_pois_post(self):
response = self.api.pois_post(body)
self.assertIsNotNone(response)
- self.assertEqual(response.type, "FeatureCollection")
+ self.assertEqual(response["type"], "FeatureCollection")
body.filters = ors.PoisFilters(
smoking=['yes']
@@ -59,7 +59,7 @@ def test_pois_post(self):
response2 = self.api.pois_post(body)
self.assertIsNotNone(response2)
- self.assertGreaterEqual(len(response.features), len(response2.features))
+ self.assertGreaterEqual(len(response["features"]), len(response2["features"]))
if __name__ == '__main__':
unittest.main()
From 337ac145c973bf839d0400eefe92f619aa531388 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Fri, 15 Mar 2024 12:46:05 +0100
Subject: [PATCH 08/38] feat: add apiClient utility function
This function simlifies the creation of the generic ApiClient which is
used by the Service Apis.
---
openrouteservice/utility.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/openrouteservice/utility.py b/openrouteservice/utility.py
index b672ca29..5af22875 100644
--- a/openrouteservice/utility.py
+++ b/openrouteservice/utility.py
@@ -1,3 +1,16 @@
+from openrouteservice.configuration import Configuration
+from openrouteservice.api_client import ApiClient
+
+def apiClient(apiKey: str, host: str = None) -> ApiClient:
+ configuration = Configuration()
+ configuration.api_key['Authorization'] = apiKey
+
+ if(host):
+ configuration.host = host
+
+ return ApiClient(configuration)
+
+
def decode_polyline(polyline, is3d=False):
"""Decodes a Polyline string into a GeoJSON geometry.
:param polyline: An encoded polyline, only the geometry.
From f1033fdafe23275e7568205ef78b43833d4b1d9e Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Fri, 15 Mar 2024 12:51:12 +0100
Subject: [PATCH 09/38] refactor: use apiClient method to configure client
The apiClient mehtod simplifies the creation of the ApiClient class.
---
test/test_directions_service_api.py | 6 ++----
test/test_elevation_api.py | 6 ++----
test/test_geocode_api.py | 6 ++----
test/test_isochrones_service_api.py | 5 ++---
test/test_matrix_service_api.py | 6 ++----
test/test_optimization_api.py | 5 ++---
test/test_pois_api.py | 5 ++---
test/test_snapping_service_api.py | 5 ++---
8 files changed, 16 insertions(+), 28 deletions(-)
diff --git a/test/test_directions_service_api.py b/test/test_directions_service_api.py
index 35d1a4a7..e781f65b 100644
--- a/test/test_directions_service_api.py
+++ b/test/test_directions_service_api.py
@@ -18,7 +18,7 @@
import openrouteservice
from openrouteservice.api.directions_service_api import DirectionsServiceApi # noqa: E501
from openrouteservice.rest import ApiException
-
+from openrouteservice import apiClient
class TestDirectionsServiceApi(unittest.TestCase):
"""DirectionsServiceApi unit test stubs"""
@@ -26,9 +26,7 @@ class TestDirectionsServiceApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = DirectionsServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = DirectionsServiceApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_elevation_api.py b/test/test_elevation_api.py
index 39caf814..8e3d9cb2 100644
--- a/test/test_elevation_api.py
+++ b/test/test_elevation_api.py
@@ -18,7 +18,7 @@
import openrouteservice
from openrouteservice.api.elevation_api import ElevationApi # noqa: E501
from openrouteservice.rest import ApiException
-
+from openrouteservice import apiClient
class TestElevationApi(unittest.TestCase):
"""ElevationApi unit test stubs"""
@@ -26,9 +26,7 @@ class TestElevationApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = ElevationApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = ElevationApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_geocode_api.py b/test/test_geocode_api.py
index e6471373..f180286c 100644
--- a/test/test_geocode_api.py
+++ b/test/test_geocode_api.py
@@ -18,7 +18,7 @@
import openrouteservice
from openrouteservice.api.geocode_api import GeocodeApi # noqa: E501
from openrouteservice.rest import ApiException
-
+from openrouteservice import apiClient
class TestGeocodeApi(unittest.TestCase):
"""GeocodeApi unit test stubs"""
@@ -26,9 +26,7 @@ class TestGeocodeApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = GeocodeApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = GeocodeApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_isochrones_service_api.py b/test/test_isochrones_service_api.py
index 8414d1ee..8c200df3 100644
--- a/test/test_isochrones_service_api.py
+++ b/test/test_isochrones_service_api.py
@@ -18,6 +18,7 @@
import openrouteservice
from openrouteservice.api.isochrones_service_api import IsochronesServiceApi # noqa: E501
from openrouteservice.rest import ApiException
+from openrouteservice import apiClient
class TestIsochronesServiceApi(unittest.TestCase):
@@ -26,9 +27,7 @@ class TestIsochronesServiceApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = IsochronesServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = IsochronesServiceApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_matrix_service_api.py b/test/test_matrix_service_api.py
index 90b047cc..740330fd 100644
--- a/test/test_matrix_service_api.py
+++ b/test/test_matrix_service_api.py
@@ -18,7 +18,7 @@
import openrouteservice
from openrouteservice.api.matrix_service_api import MatrixServiceApi # noqa: E501
from openrouteservice.rest import ApiException
-
+from openrouteservice import apiClient
class TestMatrixServiceApi(unittest.TestCase):
"""MatrixServiceApi unit test stubs"""
@@ -26,9 +26,7 @@ class TestMatrixServiceApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = MatrixServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = MatrixServiceApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_optimization_api.py b/test/test_optimization_api.py
index 24cc9c24..2e4d3c9a 100644
--- a/test/test_optimization_api.py
+++ b/test/test_optimization_api.py
@@ -18,6 +18,7 @@
import openrouteservice
from openrouteservice.api.optimization_api import OptimizationApi # noqa: E501
from openrouteservice.rest import ApiException
+from openrouteservice import apiClient
class TestOptimizationApi(unittest.TestCase):
@@ -26,9 +27,7 @@ class TestOptimizationApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = OptimizationApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = OptimizationApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_pois_api.py b/test/test_pois_api.py
index 77aaef9a..2732d76b 100644
--- a/test/test_pois_api.py
+++ b/test/test_pois_api.py
@@ -18,6 +18,7 @@
import openrouteservice as ors
from openrouteservice.api.pois_api import PoisApi # noqa: E501
from openrouteservice.rest import ApiException
+from openrouteservice import apiClient
class TestPoisApi(unittest.TestCase):
@@ -26,9 +27,7 @@ class TestPoisApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = ors.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = PoisApi(ors.ApiClient(configuration)) # noqa: E501
+ self.api = PoisApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
diff --git a/test/test_snapping_service_api.py b/test/test_snapping_service_api.py
index ebdfcee5..8b67510d 100644
--- a/test/test_snapping_service_api.py
+++ b/test/test_snapping_service_api.py
@@ -18,6 +18,7 @@
import openrouteservice
from openrouteservice.api.snapping_service_api import SnappingServiceApi # noqa: E501
from openrouteservice.rest import ApiException
+from openrouteservice import apiClient
class TestSnappingServiceApi(unittest.TestCase):
@@ -26,9 +27,7 @@ class TestSnappingServiceApi(unittest.TestCase):
def setUp(self):
cfg = configparser.ConfigParser()
cfg.read('tests-config.ini')
- configuration = openrouteservice.Configuration()
- configuration.api_key['Authorization'] = cfg['ORS']['apiKey']
- self.api = SnappingServiceApi(openrouteservice.ApiClient(configuration)) # noqa: E501
+ self.api = SnappingServiceApi(apiClient(cfg['ORS']['apiKey'])) # noqa: E501
def tearDown(self):
pass
From 10cc5cb3798dfa9134a8781a254ee7f07c8ad354 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Mon, 18 Mar 2024 13:14:10 +0100
Subject: [PATCH 10/38] feat: make apiKey optional in apiClient helper
---
openrouteservice/utility.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/openrouteservice/utility.py b/openrouteservice/utility.py
index 5af22875..6c8fa6ba 100644
--- a/openrouteservice/utility.py
+++ b/openrouteservice/utility.py
@@ -1,12 +1,17 @@
from openrouteservice.configuration import Configuration
from openrouteservice.api_client import ApiClient
-def apiClient(apiKey: str, host: str = None) -> ApiClient:
+def apiClient(apiKey: str = None, host: str = None) -> ApiClient:
configuration = Configuration()
- configuration.api_key['Authorization'] = apiKey
+
+ if(apiKey):
+ configuration.api_key['Authorization'] = apiKey
if(host):
configuration.host = host
+
+ if not(host or apiKey):
+ raise ValueError('apiKey is required when using api.openrouteservice.org as a host. Please specify an apiKey or use a different host.')
return ApiClient(configuration)
From a49120a6effb5f139c7195cf50366470b161816b Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 19 Mar 2024 14:32:11 +0100
Subject: [PATCH 11/38] refactor: examples to use most recent client
---
README.md | 15 +-
examples/Avoid_ConstructionSites.html | 12828 ---------------------
examples/Avoid_ConstructionSites.ipynb | 4577 +++++---
examples/Dieselgate_Routing.html | 8445 --------------
examples/Dieselgate_Routing.ipynb | 389 +-
examples/Routing_Optimization_Idai.html | 9291 ---------------
examples/Routing_Optimization_Idai.ipynb | 790 +-
examples/ortools_pubcrawl.html | 9826 ----------------
examples/ortools_pubcrawl.ipynb | 1682 +--
9 files changed, 3354 insertions(+), 44489 deletions(-)
delete mode 100644 examples/Avoid_ConstructionSites.html
delete mode 100644 examples/Dieselgate_Routing.html
delete mode 100644 examples/Routing_Optimization_Idai.html
delete mode 100644 examples/ortools_pubcrawl.html
diff --git a/README.md b/README.md
index b06852fb..2d64b0ca 100644
--- a/README.md
+++ b/README.md
@@ -59,12 +59,10 @@ These examples show common usages of this library.
import openrouteservice as ors
from pprint import pprint
-# Configure API key authorization:
-configuration = ors.Configuration()
-configuration.api_key['Authorization'] = "YOUR_API_KEY"
-
# create an instance of the API class
-directionsApi = ors.DirectionsServiceApi(ors.ApiClient(configuration))
+directionsApi = ors.DirectionsServiceApi(
+ ors.apiClient(apiKey="YOUR_API_KEY") # set your api key here
+)
# create request body
body = ors.DirectionsService(
@@ -85,11 +83,10 @@ except ors.rest.ApiException as e:
import openrouteservice as ors
from pprint import pprint
-# Configure host
-configuration = ors.Configuration()
-configuration.host = "http://localhost:8080/ors"
+isochronesApi = ors.IsochronesServiceApi(
+ ors.apiClient(host="http://localhost:8080/ors") # set host to your local instance
+)
-isochronesApi = ors.IsochronesServiceApi(ors.ApiClient(configuration))
body = ors.IsochronesProfileBody(
locations=[[8.681495,49.41461],[8.686507,49.41943]],
range=[300]
diff --git a/examples/Avoid_ConstructionSites.html b/examples/Avoid_ConstructionSites.html
deleted file mode 100644
index 1d642a98..00000000
--- a/examples/Avoid_ConstructionSites.html
+++ /dev/null
@@ -1,12828 +0,0 @@
-
-
-
-
-
-Avoid_ConstructionSites
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Rostock is beautiful, but, as in most other pan-European cities, there are a lot of construction sites.
-Wouldn't it be great if we could plan our trip avoiding these sites and consequently save lots of time!?
We take the open data from the Rostock authorities.
-It's hard (to impossible) to find construction site polygons, so these are points, and we need to buffer them to
-a polygon to be able to avoid them when they cross a street.
-
For the investigatory in you: yes, no CRS is specified on the link (shame on you, Rostock!).
-It's fair enough to assume it comes in WGS84 lat/long though (my reasoning:
-they show Leaflet maps plus GeoJSON is generally a web exchange format, and many web clients (Google Maps, Leaflet)
-won't take CRS other than WGS84).
-Since degrees are not the most convenient unit to work with, let's first define a function which does the buffering job
-with UTM32N projected coordinates:
-
-
-
-
-
-
-
-
-
In [2]:
-
-
-
url='https://geo.sv.rostock.de/download/opendata/baustellen/baustellen.json'
-
-
-defcreate_buffer_polygon(point_in,resolution=10,radius=10):
- convert=pyproj.Transformer.from_crs("epsg:4326",'epsg:32632')# WGS84 to UTM32N
- convert_back=pyproj.Transformer.from_crs('epsg:32632',"epsg:4326")# UTM32N to WGS84
- point_in_proj=convert.transform(*point_in)
- point_buffer_proj=Point(point_in_proj).buffer(radius,resolution=resolution)# 10 m buffer
-
- # Iterate over all points in buffer and build polygon
- poly_wgs=[]
- forpointinpoint_buffer_proj.exterior.coords:
- poly_wgs.append(convert_back.transform(*point))# Transform back to WGS84
-
- returnpoly_wgs
-
-
-
-
-
-
-
-
-
-
-
In [3]:
-
-
-
# Set up the fundamentals
-api_key='your-api-key'# Individual api key
-configuration=ors.Configuration()
-configuration.api_key['Authorization']=api_key
-
-rostock_json=requests.get(url).json()# Get data as JSON
-
-map_params={'tiles':'Stamen Toner',
- 'location':([54.13207,12.101612]),
- 'zoom_start':12}
-map1=folium.Map(**map_params)
-
-# Populate a construction site buffer polygon list
-sites_poly=[]
-forsite_datainrostock_json['features']:
- site_coords=site_data['geometry']['coordinates']
- folium.features.Marker(list(reversed(site_coords)),
- popup='Construction point<br>{0}'.format(site_coords)).add_to(map1)
-
- # Create buffer polygons around construction sites with 10 m radius and low resolution
- site_poly_coords=create_buffer_polygon(site_coords,
- resolution=2,# low resolution to keep polygons lean
- radius=10)
- sites_poly.append(site_poly_coords)
-
- site_poly_coords=[(y,x)forx,yinsite_poly_coords]# Reverse coords for folium/Leaflet
- folium.vector_layers.Polygon(locations=site_poly_coords,
- color='#ffd699',
- fill_color='#ffd699',
- fill_opacity=0.2,
- weight=3).add_to(map1)
-
-map1
-
-
-
-
-
-
-
-
-
-
-
Out[3]:
-
-
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
That's a lot of construction sites in Rostock! If you dig into the properties of the JSON, you'll see that those
-are kept up-to-date though. Seems like an annoying place to ride a car...
-
Anyways, as you might know, a GET request can only contain so many characters. Unfortunately, > 80 polygons are more
-than a GET can take (that's why we set resolution = 2).
-Because there's no POST endpoint available currently, we'll have to work around it:
-
One sensible thing one could do, is to eliminate construction zones which are not in the immediate surrounding of the
-route of interest.
-Hence, we can request a route without construction sites, take a reasonable buffer,
-filter construction sites within the buffer and try again.
-
Let's try this:
-
-
-
-
-
-
-
-
-
In [4]:
-
-
-
# GeoJSON style function
-defstyle_function(color):
- returnlambdafeature:dict(color=color,
- weight=3,
- opacity=0.5)
-
-
-# Create new map to start from scratch
-map_params.update({'location':([54.091389,12.096686]),
- 'zoom_start':13})
-map2=folium.Map(**map_params)
-
-api_instance=ors.DirectionsServiceApi(ors.ApiClient(configuration))
-body=ors.DirectionsService(
- coordinates=[[12.108259,54.081919],[12.072063,54.103684]],
- preference='shortest',
- instructions=False
-)
-api_response=api_instance.get_geo_json_route(body,'driving-car')
-route_normal=ors.todict(api_response)
-
-
-folium.features.GeoJson(data=route_normal,
- name='Route without construction sites',
- style_function=style_function('#FF0000'),
- overlay=True).add_to(map2)
-
-# Buffer route with 0.009 degrees (really, just too lazy to project again...)
-route_buffer=LineString(route_normal['features'][0]['geometry']['coordinates']).buffer(0.009)
-folium.features.GeoJson(data=geometry.mapping(route_buffer),
- name='Route Buffer',
- style_function=style_function('#FFFF00'),
- overlay=True).add_to(map2)
-
-# Plot which construction sites fall into the buffer Polygon
-sites_buffer_poly=[]
-forsite_polyinsites_poly:
- poly=Polygon(site_poly)
- ifroute_buffer.intersects(poly):
- folium.features.Marker(list(reversed(poly.centroid.coords[0]))).add_to(map2)
- sites_buffer_poly.append(poly)
-
-map2
-
-
-
-
-
-
-
-
-
-
-
Out[4]:
-
-
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
Finally, we can try to request a route using avoid_polygons, which conveniently takes a GeoJSON as input.
-
-
-
-
-
-
-
-
-
In [5]:
-
-
-
# Add the site polygons to the request parameters
-body=ors.DirectionsService(
- coordinates=[[12.108259,54.081919],[12.072063,54.103684]],
- preference='shortest',
- instructions=False,
- options={'avoid_polygons':geometry.mapping(MultiPolygon(sites_buffer_poly)),}
-)
-
-api_response=api_instance.get_geo_json_route(body,'driving-car')
-route_detour=ors.todict(api_response)
-
-folium.features.GeoJson(data=route_detour,
- name='Route with construction sites',
- style_function=style_function('#00FF00'),
- overlay=True).add_to(map2)
-
-map2.add_child(folium.map.LayerControl())
-map2
-
-
-
-
-
-
-
-
-
-
-
Out[5]:
-
-
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
-
Note: This request might fail sometime in the future, as the JSON is loaded dynamically and changes a few times
-a week.
-Thus the amount of sites within the buffer can exceed the GET limit (which is between 15-20 site polygons approx).
Note: All notebooks need the environment dependencies as well as an openrouteservice API key to run
-
-
From the year 2019 on, Berlin will impose the Diesel ban. The following streets will be affected: Leipziger Straße, Reinhardstraße, Friedrichstraße, Brückenstraße, Kapweg, Alt-Moabit, Stromstraße und Leonorenstraße.
-
As a showcase, we'll have a look how the frequent visits of Angela Merkel to the German Currywurst Museum (solely inferred from superficial research) will change its route from 2019. You'll find remarkable similarities.
-
-
-
-
-
-
-
-
-
In [1]:
-
-
-
importopenrouteserviceasors
-importfolium
-fromshapely.geometryimportLineString,mapping
-fromshapely.opsimportunary_union
-
-defstyle_function(color):# To style data
- returnlambdafeature:dict(color=color,opacity=0.5,weight=4)
-
Coming soon: The shortest route for a Diesel driver, which must avoid the blackish areas. Then, affected cars can't cross Friedrichstraße anymore. See for yourself:
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
Now, here it should be noted, that our dear Chancellor would have to drive a detour of more than 1.5 times the current distance, imposing 50% more pollution on Berlin's residents, just to enjoy the history of the Currywurst. Click on the routes to see for yourself.
Routing optimization generally solves the Vehicle Routing Problem
-(a simple example being the more widely known Traveling Salesman Problem).
-A more complex example would be the distribution of goods by a fleet of multiple vehicles to dozens of locations,
-where each vehicle has certain time windows in which it can operate and each delivery location has certain time windows
-in which it can be served (e.g. opening times of a supermarket).
-
In this example we'll look at a real-world scenario of distributing medical goods during disaster response
-following one of the worst tropical cyclones ever been recorded in Africa: Cyclone Idai.
In this scenario, a humanitarian organization shipped much needed medical goods to Beira, Mozambique, which were then
-dispatched to local vehicles to be delivered across the region.
-The supplies included vaccinations and medications for water-borne diseases such as Malaria and Cholera,
-so distribution efficiency was critical to contain disastrous epidemics.
-
We'll solve this complex problem with the optimization endpoint of openrouteservice.
In total 20 sites were identified in need of the medical supplies, while 3 vehicles were scheduled for delivery.
-Let's assume there was only one type of goods, e.g. standard moving boxes full of one medication.
-(In reality there were dozens of different good types, which can be modelled with the same workflow,
-but that'd unnecessarily bloat this example).
-
The vehicles were all located in the port of Beira and had the same following constraints:
-
-
operation time windows from 8:00 to 20:00
-
loading capacity of 300 [arbitrary unit]
-
-
The delivery locations were mostly located in the Beira region, but some extended ~ 200 km to the north of Beira.
-Their needs range from 10 to 148 units of the arbitrary medication goods
-(consult the file located at ../resources/data/idai_health_sites.csv). Let's look at it in a map.
-
-
-
-
-
-
-
-
-
In [4]:
-
-
-
# First define the map centered around Beira
-m=folium.Map(location=[-18.63680,34.79430],tiles='cartodbpositron',zoom_start=8)
-
-# Next load the delivery locations from CSV file at ../resources/data/idai_health_sites.csv
-# ID, Lat, Lon, Open_From, Open_To, Needed_Amount
-deliveries_data=pd.read_csv(
- 'data/idai_health_sites.csv',
- index_col="ID",
- parse_dates=["Open_From","Open_To"]
-)
-
-# Plot the locations on the map with more info in the ToolTip
-forlocationindeliveries_data.itertuples():
- tooltip=folium.map.Tooltip("<h4><b>ID {}</b></p><p>Supplies needed: <b>{}</b></p>".format(
- location.Index,location.Needed_Amount
- ))
-
- folium.Marker(
- location=[location.Lat,location.Lon],
- tooltip=tooltip,
- icon=BeautifyIcon(
- icon_shape='marker',
- number=int(location.Index),
- spin=True,
- text_color='red',
- background_color="#FFF",
- inner_icon_style="font-size:12px;padding-top:-5px;"
- )
- ).add_to(m)
-
-# The vehicles are all located at the port of Beira
-depot=[-19.818474,34.835447]
-
-folium.Marker(
- location=depot,
- icon=folium.Icon(color="green",icon="bus",prefix='fa'),
- setZIndexOffset=1000
-).add_to(m)
-
-m
-
-
-
-
-
-
-
-
-
-
-
Out[4]:
-
-
Make this Notebook Trusted to load map: File -> Trust Notebook
Now that we have described the setup sufficiently, we can start to set up our actual Vehicle Routing Problem.
-For this example we're using the FOSS library of Vroom, which has
-recently seen support for
-openrouteservice and is available through our APIs.
-
To properly describe the problem in algorithmic terms, we have to provide the following information:
-
-
vehicles start/end address: vehicle depot in Beira's port
-
vehicle capacity: 300
-
vehicle operational times: 08:00 - 20:00
-
service location: delivery location
-
service time windows: individual delivery location's time window
-
service amount: individual delivery location's needs
-
-
We defined all these parameters either in code above or in the data sheet located in
-../resources/data/idai_health_sites.csv.
-Now we have to only wrap this information into our code and send a request to openrouteservice optimization service at
-https://api.openrouteservice.org/optimization.
# Only extract relevant fields from the response
-extract_fields=['distance','amount','duration']
-data=[{key:getattr(route,key)forkeyinextract_fields}forrouteinresult.routes]
-
-vehicles_df=pd.DataFrame(data)
-vehicles_df.index.name='vehicle'
-vehicles_df
-
-
-
-
-
-
-
-
-
-
-
Out[7]:
-
-
-
-
-
-
-
-
distance
-
amount
-
duration
-
-
-
vehicle
-
-
-
-
-
-
-
-
0
-
474009.0
-
[290]
-
28365.0
-
-
-
1
-
333880.0
-
[295]
-
27028.0
-
-
-
2
-
476172.0
-
[295]
-
23679.0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
So every vehicle's capacity is almost fully exploited. That's good.
-How about a look at the individual service stations:
-
-
-
-
-
-
-
-
-
In [8]:
-
-
-
# Create a list to display the schedule for all vehicles
-stations=list()
-forrouteinresult.routes:
- vehicle=list()
- forstepinroute.steps:
- vehicle.append(
- [
- step.jobifstep.jobelse"Depot",# Station ID
- step.arrival,# Arrival time
- step.arrival+(step.serviceifstep.serviceelse0),# Departure time
-
- ]
- )
- stations.append(vehicle)
-
-
-
-
-
-
-
-
-
-
-
-
-
Now we can look at each individual vehicle's timetable:
It's this of the year again (or will be in 6 months):
-the freshmen pour into the institute and as the diligent student council you are, you want to welcome them for their
-geo adventure with a stately pub crawl to prepare them for the challenges lying ahead.
-
We want to give you the opportunity to route the pack of rookies in a fairly optimal way:
-
-
-
-
-
-
-
-
-
In [6]:
-
-
-
importfolium
-fromshapelyimportwkt,geometry
-
-
-
-
-
-
-
-
-
-
-
-
-
Now we're ready to start our most optimally planned pub crawl ever through hipster Kreuzberg!
-It will also be the most un-hipster pub crawl ever, as we'll cover ground with a taxi.
-At least it's safer than biking half-delirious.
-
First the basic parameters: API key and the district polygon to limit our pub search.
-The Well Known Text was prepared in QGIS from Berlin authority's
-WFS
-(QGIS field calculator has a geom_to_wkt method).
-BTW, Berlin, hope you don't wonder why your feature services are so slow... Simplify is the magic word, simplify.
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
Now it's time to see which are the lucky bars to host a bunch of increasingly drunk geos.
-We use the Places API,
-where we can pass a GeoJSON as object right into.
-As we want to crawl only bars and not churches, we have to limit the query to category ID's which represent pubs.
-We can get the mapping easily when passing category_list:
Here is a nicer list.
-If you look for pub, you'll find it under sustenance : 560 with ID 569.
-Chucking that into a query, yields:
-
-
-
-
-
-
-
-
-
In [10]:
-
-
-
aoi_json=geometry.mapping(geometry.shape(aoi_geom))
-
-poisApi=ors.PoisApi(ors.ApiClient(configuration))
-body=ors.OpenpoiservicePoiRequest(
- request='pois',
- geometry=ors.PoisGeometry(geojson=aoi_json),
- filters=ors.PoisFilters(category_ids=[569]),
- sortby='distance'
-)
-pubs=poisApi.pois_post(body).features
-
-# Amount of pubs in Kreuzberg
-print("\nAmount of pubs: {}".format(len(pubs)))
-
-
-
-
-
-
-
-
-
-
-
-
-
----------------------------------------------------------------------------
-KeyboardInterrupt Traceback (most recent call last)
-/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb Cell 11 line 1
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=2'>3</a> poisApi = ors.PoisApi(ors.ApiClient(configuration))
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=3'>4</a> body = ors.OpenpoiservicePoiRequest(
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=4'>5</a> request='pois',
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=5'>6</a> geometry=ors.PoisGeometry(geojson=aoi_json),
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=6'>7</a> filters=ors.PoisFilters(category_ids=[569]),
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=7'>8</a> sortby='distance'
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=8'>9</a> )
----> <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=9'>10</a> pubs = poisApi.pois_post(body).features
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=11'>12</a> # Amount of pubs in Kreuzberg
- <a href='vscode-notebook-cell:/home/jstolze/Code/ors-clients/openrouteservice-py/examples/ortools_pubcrawl.ipynb#X15sZmlsZQ%3D%3D?line=12'>13</a> print("\nAmount of pubs: {}".format(len(pubs)))
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:54, in PoisApi.pois_post(self, body, **kwargs)
- 52 return self.pois_post_with_http_info(body, **kwargs) # noqa: E501
- 53 else:
----> 54 (data) = self.pois_post_with_http_info(body, **kwargs) # noqa: E501
- 55 return data
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/api/pois_api.py:118, in PoisApi.pois_post_with_http_info(self, body, **kwargs)
- 115 # Authentication setting
- 116 auth_settings = ['ApiKeyAuth'] # noqa: E501
---> 118 return self.api_client.call_api(
- 119 '/pois', 'POST',
- 120 path_params,
- 121 query_params,
- 122 header_params,
- 123 body=body_params,
- 124 post_params=form_params,
- 125 files=local_var_files,
- 126 response_type='OpenpoiservicePoiResponse', # noqa: E501
- 127 auth_settings=auth_settings,
- 128 async_req=params.get('async_req'),
- 129 _return_http_data_only=params.get('_return_http_data_only'),
- 130 _preload_content=params.get('_preload_content', True),
- 131 _request_timeout=params.get('_request_timeout'),
- 132 collection_formats=collection_formats)
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:316, in ApiClient.call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, async_req, _return_http_data_only, collection_formats, _preload_content, _request_timeout)
- 279 """Makes the HTTP request (synchronous) and returns deserialized data.
- 280
- 281 To make an async request, set the async_req parameter.
- (...)
- 313 then the method will return the response directly.
- 314 """
- 315 if not async_req:
---> 316 return self.__call_api(resource_path, method,
- 317 path_params, query_params, header_params,
- 318 body, post_params, files,
- 319 response_type, auth_settings,
- 320 _return_http_data_only, collection_formats,
- 321 _preload_content, _request_timeout)
- 322 else:
- 323 thread = self.pool.apply_async(self.__call_api, (resource_path,
- 324 method, path_params, query_params,
- 325 header_params, body,
- (...)
- 329 collection_formats,
- 330 _preload_content, _request_timeout))
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:148, in ApiClient.__call_api(self, resource_path, method, path_params, query_params, header_params, body, post_params, files, response_type, auth_settings, _return_http_data_only, collection_formats, _preload_content, _request_timeout)
- 145 url = self.configuration.host + resource_path
- 147 # perform request and return response
---> 148 response_data = self.request(
- 149 method, url, query_params=query_params, headers=header_params,
- 150 post_params=post_params, body=body,
- 151 _preload_content=_preload_content,
- 152 _request_timeout=_request_timeout)
- 154 self.last_response = response_data
- 156 return_data = response_data
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/api_client.py:358, in ApiClient.request(self, method, url, query_params, headers, post_params, body, _preload_content, _request_timeout)
- 350 return self.rest_client.OPTIONS(url,
- 351 query_params=query_params,
- 352 headers=headers,
- (...)
- 355 _request_timeout=_request_timeout,
- 356 body=body)
- 357 elif method == "POST":
---> 358 return self.rest_client.POST(url,
- 359 query_params=query_params,
- 360 headers=headers,
- 361 post_params=post_params,
- 362 _preload_content=_preload_content,
- 363 _request_timeout=_request_timeout,
- 364 body=body)
- 365 elif method == "PUT":
- 366 return self.rest_client.PUT(url,
- 367 query_params=query_params,
- 368 headers=headers,
- (...)
- 371 _request_timeout=_request_timeout,
- 372 body=body)
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:263, in RESTClientObject.POST(self, url, headers, query_params, post_params, body, _preload_content, _request_timeout)
- 261 def POST(self, url, headers=None, query_params=None, post_params=None,
- 262 body=None, _preload_content=True, _request_timeout=None):
---> 263 return self.request("POST", url,
- 264 headers=headers,
- 265 query_params=query_params,
- 266 post_params=post_params,
- 267 _preload_content=_preload_content,
- 268 _request_timeout=_request_timeout,
- 269 body=body)
-
-File ~/.local/lib/python3.10/site-packages/openrouteservice/rest.py:161, in RESTClientObject.request(self, method, url, query_params, headers, body, post_params, _preload_content, _request_timeout)
- 159 if body is not None:
- 160 request_body = json.dumps(body)
---> 161 r = self.pool_manager.request(
- 162 method, url,
- 163 body=request_body,
- 164 preload_content=_preload_content,
- 165 timeout=timeout,
- 166 headers=headers)
- 167 elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
- 168 r = self.pool_manager.request(
- 169 method, url,
- 170 fields=post_params,
- (...)
- 173 timeout=timeout,
- 174 headers=headers)
-
-File ~/.local/lib/python3.10/site-packages/urllib3/request.py:78, in RequestMethods.request(self, method, url, fields, headers, **urlopen_kw)
- 74 return self.request_encode_url(
- 75 method, url, fields=fields, headers=headers, **urlopen_kw
- 76 )
- 77 else:
----> 78 return self.request_encode_body(
- 79 method, url, fields=fields, headers=headers, **urlopen_kw
- 80 )
-
-File ~/.local/lib/python3.10/site-packages/urllib3/request.py:170, in RequestMethods.request_encode_body(self, method, url, fields, headers, encode_multipart, multipart_boundary, **urlopen_kw)
- 167 extra_kw["headers"].update(headers)
- 168 extra_kw.update(urlopen_kw)
---> 170 return self.urlopen(method, url, **extra_kw)
-
-File ~/.local/lib/python3.10/site-packages/urllib3/poolmanager.py:376, in PoolManager.urlopen(self, method, url, redirect, **kw)
- 374 response = conn.urlopen(method, url, **kw)
- 375 else:
---> 376 response = conn.urlopen(method, u.request_uri, **kw)
- 378 redirect_location = redirect and response.get_redirect_location()
- 379 if not redirect_location:
-
-File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:714, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
- 711 self._prepare_proxy(conn)
- 713 # Make the request on the httplib connection object.
---> 714 httplib_response = self._make_request(
- 715 conn,
- 716 method,
- 717 url,
- 718 timeout=timeout_obj,
- 719 body=body,
- 720 headers=headers,
- 721 chunked=chunked,
- 722 )
- 724 # If we're going to release the connection in ``finally:``, then
- 725 # the response doesn't need to know about the connection. Otherwise
- 726 # it will also try to release it and we'll have a double-release
- 727 # mess.
- 728 response_conn = conn if not release_conn else None
-
-File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:466, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 461 httplib_response = conn.getresponse()
- 462 except BaseException as e:
- 463 # Remove the TypeError from the exception chain in
- 464 # Python 3 (including for exceptions like SystemExit).
- 465 # Otherwise it looks like a bug in the code.
---> 466 six.raise_from(e, None)
- 467 except (SocketTimeout, BaseSSLError, SocketError) as e:
- 468 self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
-
-File <string>:3, in raise_from(value, from_value)
-
-File ~/.local/lib/python3.10/site-packages/urllib3/connectionpool.py:461, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
- 458 except TypeError:
- 459 # Python 3
- 460 try:
---> 461 httplib_response = conn.getresponse()
- 462 except BaseException as e:
- 463 # Remove the TypeError from the exception chain in
- 464 # Python 3 (including for exceptions like SystemExit).
- 465 # Otherwise it looks like a bug in the code.
- 466 six.raise_from(e, None)
-
-File /usr/lib/python3.10/http/client.py:1375, in HTTPConnection.getresponse(self)
- 1373 try:
- 1374 try:
--> 1375 response.begin()
- 1376 except ConnectionError:
- 1377 self.close()
-
-File /usr/lib/python3.10/http/client.py:318, in HTTPResponse.begin(self)
- 316 # read until we get a non-100 response
- 317 while True:
---> 318 version, status, reason = self._read_status()
- 319 if status != CONTINUE:
- 320 break
-
-File /usr/lib/python3.10/http/client.py:279, in HTTPResponse._read_status(self)
- 278 def _read_status(self):
---> 279 line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
- 280 if len(line) > _MAXLINE:
- 281 raise LineTooLong("status line")
-
-File /usr/lib/python3.10/socket.py:705, in SocketIO.readinto(self, b)
- 703 while True:
- 704 try:
---> 705 return self._sock.recv_into(b)
- 706 except timeout:
- 707 self._timeout_occurred = True
-
-File /usr/lib/python3.10/ssl.py:1274, in SSLSocket.recv_into(self, buffer, nbytes, flags)
- 1270 if flags != 0:
- 1271 raise ValueError(
- 1272 "non-zero flags not allowed in calls to recv_into() on %s" %
- 1273 self.__class__)
--> 1274 return self.read(nbytes, buffer)
- 1275 else:
- 1276 return super().recv_into(buffer, nbytes, flags)
-
-File /usr/lib/python3.10/ssl.py:1130, in SSLSocket.read(self, len, buffer)
- 1128 try:
- 1129 if buffer is not None:
--> 1130 return self._sslobj.read(len, buffer)
- 1131 else:
- 1132 return self._sslobj.read(len)
-
-KeyboardInterrupt:
-
-
-
-
-
-
-
-
-
-
-
-
Nearly 100 bars in one night might be a stretch, even for such a resilient species.
-Coincidentally, the rate of smokers is disproportionally high within the undergrad geo community.
-So, we really would like to hang out in smoker bars:
-
-
-
-
-
-
-
-
-
In [ ]:
-
-
-
body.filters.smoking=['yes']# Filter out smoker bars
-pubs_smoker=poisApi.pois_post(body).features
-
-print("\nAmount of smoker pubs: {}".format(len(pubs_smoker)))
-
-
-
-
-
-
-
-
-
-
-
-
-
-Amount of smoker pubs: 23
-
-
-
-
-
-
-
-
-
-
-
-
-
A bit better. Let's see where they are.
-
Optionally, use the Geocoding API to get representable names.
-Note, it'll be 25 API calls.
-Means, you can only run one per minute.
Make this Notebook Trusted to load map: File -> Trust Notebook
-
-
-
-
-
-
-
-
-
-
-
-
Ok, we have an idea where we go.
-But, not in which order.
-To determine the optimal route, we first have to know the distance between all pubs.
-We can conveniently solve this with the Matrix API.
-
-
I'd have like to do this example for biking/walking, but I realized too late that we restricted matrix calls to 5x5 locations for those profiles...
Check, 23x23. So, we got the durations now in pubs_matrix.durations.
-Then there's finally the great entrance of ortools.
-
Note, this is a local search.
-
-
-
-
-
-
-
-
-
In [ ]:
-
-
-
fromortools.constraint_solverimportpywrapcp
-
-tsp_size=len(pubs_addresses)
-num_routes=1
-start=0# arbitrary start location
-coords_aoi=[(y,x)forx,yinaoi_coords]# swap (x,y) to (y,x)
-
-optimal_coords=[]
-
-iftsp_size>0:
-
- # Old Stuff kept for reference
- # routing = pywrapcp.RoutingModel(tsp_size, num_routes, start)
-
- # New Way according to ortools v7.0 docs (https://developers.google.com/optimization/support/release_notes#announcing-the-release-of-or-tools-v70)
- # manager = pywrapcp.RoutingIndexManager(num_locations, num_vehicles, depot)
- # routing = pywrapcp.RoutingModel(manager)
-
- # Adaption according to old and new way
- manager=pywrapcp.RoutingIndexManager(tsp_size,num_routes,start)
- routing=pywrapcp.RoutingModel(manager)
-
-
- # Create the distance callback, which takes two arguments (the from and to node indices)
- # and returns the distance between these nodes.
- defdistance_callback(from_index,to_index):
-"""Returns the distance between the two nodes."""
- # Convert from routing variable Index to distance matrix NodeIndex.
- from_node=manager.IndexToNode(from_index)
- to_node=manager.IndexToNode(to_index)
- returnint(pubs_matrix.durations[from_node][to_node])
-
-
- # Since v7.0, this also needs to be wrapped:
- transit_callback_index=routing.RegisterTransitCallback(distance_callback)
-
- routing.SetArcCostEvaluatorOfAllVehicles(transit_callback_index)
- # Solve, returns a solution if any.
- assignment=routing.Solve()
- ifassignment:
- # Total cost of the 'optimal' solution.
- print("Total duration: "+str(round(assignment.ObjectiveValue(),3)/60)+" minutes\n")
- index=routing.Start(start)# Index of the variable for the starting node.
- route=''
- # while not routing.IsEnd(index):
- fornodeinrange(routing.nodes()):
- # IndexToNode has been moved from the RoutingModel to the RoutingIndexManager
- optimal_coords.append(pubs_coords[manager.IndexToNode(index)])
- route+=str(pubs_addresses[manager.IndexToNode(index)])+' -> '
- index=assignment.Value(routing.NextVar(index))
- route+=str(pubs_addresses[manager.IndexToNode(index)])
- optimal_coords.append(pubs_coords[manager.IndexToNode(index)])
- print("Route:\n"+route)
-
Make this Notebook Trusted to load map: File -> Trust Notebook
"
- ],
- "text/plain": [
- ""
- ]
- },
- "execution_count": 11,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"def style_function(color):\n",
" return lambda feature: dict(color=color,\n",
@@ -1959,7 +324,7 @@
")\n",
"profile = 'driving-car'\n",
"\n",
- "directionsApi = ors.DirectionsServiceApi(ors.ApiClient(configuration))\n",
+ "directionsApi = ors.DirectionsServiceApi(ors.apiClient(api_key))\n",
"random_route = directionsApi.get_geo_json_route(body, profile)\n",
"\n",
"folium.features.GeoJson(data=ors.todict(random_route),\n",
@@ -1990,16 +355,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Duration optimal route: 51.857 mins\n",
- "Duration random route: 139.505 mins\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"optimal_duration = 0\n",
"random_duration = 0\n",
@@ -2039,7 +395,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.12"
+ "version": "3.11.6"
}
},
"nbformat": 4,
From 62cf6cb93368ca702b680e43ea9924f68a68b56a Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Tue, 19 Mar 2024 15:23:06 +0000
Subject: [PATCH 12/38] Generated update. Please review before merging.
---
.gitignore | 72 ++++++++++++++++++++++++++++++++++------
.swagger-codegen/VERSION | 2 +-
tests-config.ini | 2 ++
3 files changed, 64 insertions(+), 12 deletions(-)
create mode 100644 tests-config.ini
diff --git a/.gitignore b/.gitignore
index 7c5d3aff..a655050c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1,64 @@
-# IDE
-.vscode
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
-# Vitepress
-/**/node_modules
-.vitepress/cache
+# C extensions
+*.so
-# Python
-/**/__pycache__
-dist
-*.egg-info
+# Distribution / packaging
+.Python
+env/
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+*.egg-info/
+.installed.cfg
+*.egg
-# Secrets
-tests-config.ini
+# PyInstaller
+# Usually these files are written by a python script from a template
+# before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*,cover
+.hypothesis/
+venv/
+.python-version
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+#Ipython Notebook
+.ipynb_checkpoints
diff --git a/.swagger-codegen/VERSION b/.swagger-codegen/VERSION
index 248908e6..27dedc56 100644
--- a/.swagger-codegen/VERSION
+++ b/.swagger-codegen/VERSION
@@ -1 +1 @@
-3.0.54
\ No newline at end of file
+3.0.53-SNAPSHOT
\ No newline at end of file
diff --git a/tests-config.ini b/tests-config.ini
new file mode 100644
index 00000000..687d42a3
--- /dev/null
+++ b/tests-config.ini
@@ -0,0 +1,2 @@
+[ORS]\n
+apiKey = 5b3ce3597851110001cf624825699ac758834a3488254c37444a8a92\n
From 07a851e1c4d515565be3aa1fff2f7fb1c0dcef92 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Tue, 19 Mar 2024 15:42:31 +0000
Subject: [PATCH 13/38] Generated update. Please review before merging.
---
.gitignore | 14 ++++++++++++++
README.md | 2 +-
openrouteservice/api_client.py | 2 +-
openrouteservice/configuration.py | 2 +-
pyproject.toml | 2 +-
setup.py | 2 +-
6 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/.gitignore b/.gitignore
index a655050c..6c2747b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -62,3 +62,17 @@ target/
#Ipython Notebook
.ipynb_checkpoints
+
+# IDE
+.vscode
+.idea
+
+# API Key
+openrouteservice-py/tests-config.ini
+
+# node_modules
+openrouteservice-js/node_modules
+
+# Generated and used during building
+client_version.txt
+openrouteservice_ignore_paths.yaml
diff --git a/README.md b/README.md
index 2d64b0ca..53916b04 100644
--- a/README.md
+++ b/README.md
@@ -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 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 7.1.1 | 7.1.1.post1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 1af6d6fa..384d9fe4 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -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/python'
+ self.user_agent = 'Swagger-Codegen/7.1.1.post1/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index 4ff470ea..9bc071b0 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -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".\
+ "SDK Package Version: 7.1.1.post1".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/pyproject.toml b/pyproject.toml
index 0128dfa4..f10c3342 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "orspytest"
-version = "7.1.1"
+version = "7.1.1.post1"
authors = [
{name = "HeiGIT gGmbH", email = "support@smartmobility.heigit.org"},
]
diff --git a/setup.py b/setup.py
index e07bf922..ca254394 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "7.1.1"
+VERSION = "7.1.1.post1"
# To install the library, run the following
#
# python setup.py install
From bfcd5090cf69dc9c50b82548a447e8bbc9361e70 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 19 Mar 2024 17:13:57 +0100
Subject: [PATCH 14/38] refactor: add newline to trigger ci/cd
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index 6c2747b3..e1780506 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,3 +76,4 @@ openrouteservice-js/node_modules
# Generated and used during building
client_version.txt
openrouteservice_ignore_paths.yaml
+
From ffda12ac8fbe0203d5b5a4aefba915e46dfab192 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 19 Mar 2024 17:15:44 +0100
Subject: [PATCH 15/38] feat: add newline to pyproject.toml
---
pyproject.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyproject.toml b/pyproject.toml
index f10c3342..4dd90cfa 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -29,4 +29,4 @@ dependencies = [
"Homepage" = "https://openrouteservice.org/"
"Forum" = "https://ask.openrouteservice.org/c/sdks"
"API Documentation" = "https://openrouteservice.org/documentation/"
-"API Terms of service" = "https://openrouteservice.org/terms-of-service/"
\ No newline at end of file
+"API Terms of service" = "https://openrouteservice.org/terms-of-service/"
From c64c69779718f68b4994b1eeac44a2d7465869b9 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:46:36 +0100
Subject: [PATCH 16/38] feat: Integrate poetry into the pyproject.toml
---
poetry.lock | 425 +++++++++++++++++++++++++++++++++++++++++++++++++
pyproject.toml | 45 ++++--
2 files changed, 453 insertions(+), 17 deletions(-)
create mode 100644 poetry.lock
diff --git a/poetry.lock b/poetry.lock
new file mode 100644
index 00000000..d181ede8
--- /dev/null
+++ b/poetry.lock
@@ -0,0 +1,425 @@
+# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
+
+[[package]]
+name = "cachetools"
+version = "5.3.3"
+description = "Extensible memoizing collections and decorators"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "cachetools-5.3.3-py3-none-any.whl", hash = "sha256:0abad1021d3f8325b2fc1d2e9c8b9c9d57b04c3932657a72465447332c24d945"},
+ {file = "cachetools-5.3.3.tar.gz", hash = "sha256:ba29e2dfa0b8b556606f097407ed1aa62080ee108ab0dc5ec9d6a723a007d105"},
+]
+
+[[package]]
+name = "certifi"
+version = "2024.2.2"
+description = "Python package for providing Mozilla's CA Bundle."
+optional = false
+python-versions = ">=3.6"
+files = [
+ {file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"},
+ {file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"},
+]
+
+[[package]]
+name = "chardet"
+version = "5.2.0"
+description = "Universal encoding detector for Python 3"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970"},
+ {file = "chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"},
+]
+
+[[package]]
+name = "colorama"
+version = "0.4.6"
+description = "Cross-platform colored terminal text."
+optional = false
+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
+files = [
+ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
+ {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
+]
+
+[[package]]
+name = "coverage"
+version = "7.4.4"
+description = "Code coverage measurement for Python"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "coverage-7.4.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0be5efd5127542ef31f165de269f77560d6cdef525fffa446de6f7e9186cfb2"},
+ {file = "coverage-7.4.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ccd341521be3d1b3daeb41960ae94a5e87abe2f46f17224ba5d6f2b8398016cf"},
+ {file = "coverage-7.4.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:09fa497a8ab37784fbb20ab699c246053ac294d13fc7eb40ec007a5043ec91f8"},
+ {file = "coverage-7.4.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b1a93009cb80730c9bca5d6d4665494b725b6e8e157c1cb7f2db5b4b122ea562"},
+ {file = "coverage-7.4.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:690db6517f09336559dc0b5f55342df62370a48f5469fabf502db2c6d1cffcd2"},
+ {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:09c3255458533cb76ef55da8cc49ffab9e33f083739c8bd4f58e79fecfe288f7"},
+ {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8ce1415194b4a6bd0cdcc3a1dfbf58b63f910dcb7330fe15bdff542c56949f87"},
+ {file = "coverage-7.4.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b91cbc4b195444e7e258ba27ac33769c41b94967919f10037e6355e998af255c"},
+ {file = "coverage-7.4.4-cp310-cp310-win32.whl", hash = "sha256:598825b51b81c808cb6f078dcb972f96af96b078faa47af7dfcdf282835baa8d"},
+ {file = "coverage-7.4.4-cp310-cp310-win_amd64.whl", hash = "sha256:09ef9199ed6653989ebbcaacc9b62b514bb63ea2f90256e71fea3ed74bd8ff6f"},
+ {file = "coverage-7.4.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:0f9f50e7ef2a71e2fae92774c99170eb8304e3fdf9c8c3c7ae9bab3e7229c5cf"},
+ {file = "coverage-7.4.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:623512f8ba53c422fcfb2ce68362c97945095b864cda94a92edbaf5994201083"},
+ {file = "coverage-7.4.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0513b9508b93da4e1716744ef6ebc507aff016ba115ffe8ecff744d1322a7b63"},
+ {file = "coverage-7.4.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40209e141059b9370a2657c9b15607815359ab3ef9918f0196b6fccce8d3230f"},
+ {file = "coverage-7.4.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8a2b2b78c78293782fd3767d53e6474582f62443d0504b1554370bde86cc8227"},
+ {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:73bfb9c09951125d06ee473bed216e2c3742f530fc5acc1383883125de76d9cd"},
+ {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:1f384c3cc76aeedce208643697fb3e8437604b512255de6d18dae3f27655a384"},
+ {file = "coverage-7.4.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:54eb8d1bf7cacfbf2a3186019bcf01d11c666bd495ed18717162f7eb1e9dd00b"},
+ {file = "coverage-7.4.4-cp311-cp311-win32.whl", hash = "sha256:cac99918c7bba15302a2d81f0312c08054a3359eaa1929c7e4b26ebe41e9b286"},
+ {file = "coverage-7.4.4-cp311-cp311-win_amd64.whl", hash = "sha256:b14706df8b2de49869ae03a5ccbc211f4041750cd4a66f698df89d44f4bd30ec"},
+ {file = "coverage-7.4.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:201bef2eea65e0e9c56343115ba3814e896afe6d36ffd37bab783261db430f76"},
+ {file = "coverage-7.4.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:41c9c5f3de16b903b610d09650e5e27adbfa7f500302718c9ffd1c12cf9d6818"},
+ {file = "coverage-7.4.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d898fe162d26929b5960e4e138651f7427048e72c853607f2b200909794ed978"},
+ {file = "coverage-7.4.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3ea79bb50e805cd6ac058dfa3b5c8f6c040cb87fe83de10845857f5535d1db70"},
+ {file = "coverage-7.4.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ce4b94265ca988c3f8e479e741693d143026632672e3ff924f25fab50518dd51"},
+ {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:00838a35b882694afda09f85e469c96367daa3f3f2b097d846a7216993d37f4c"},
+ {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:fdfafb32984684eb03c2d83e1e51f64f0906b11e64482df3c5db936ce3839d48"},
+ {file = "coverage-7.4.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:69eb372f7e2ece89f14751fbcbe470295d73ed41ecd37ca36ed2eb47512a6ab9"},
+ {file = "coverage-7.4.4-cp312-cp312-win32.whl", hash = "sha256:137eb07173141545e07403cca94ab625cc1cc6bc4c1e97b6e3846270e7e1fea0"},
+ {file = "coverage-7.4.4-cp312-cp312-win_amd64.whl", hash = "sha256:d71eec7d83298f1af3326ce0ff1d0ea83c7cb98f72b577097f9083b20bdaf05e"},
+ {file = "coverage-7.4.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d5ae728ff3b5401cc320d792866987e7e7e880e6ebd24433b70a33b643bb0384"},
+ {file = "coverage-7.4.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cc4f1358cb0c78edef3ed237ef2c86056206bb8d9140e73b6b89fbcfcbdd40e1"},
+ {file = "coverage-7.4.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8130a2aa2acb8788e0b56938786c33c7c98562697bf9f4c7d6e8e5e3a0501e4a"},
+ {file = "coverage-7.4.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cf271892d13e43bc2b51e6908ec9a6a5094a4df1d8af0bfc360088ee6c684409"},
+ {file = "coverage-7.4.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a4cdc86d54b5da0df6d3d3a2f0b710949286094c3a6700c21e9015932b81447e"},
+ {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:ae71e7ddb7a413dd60052e90528f2f65270aad4b509563af6d03d53e979feafd"},
+ {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:38dd60d7bf242c4ed5b38e094baf6401faa114fc09e9e6632374388a404f98e7"},
+ {file = "coverage-7.4.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:aa5b1c1bfc28384f1f53b69a023d789f72b2e0ab1b3787aae16992a7ca21056c"},
+ {file = "coverage-7.4.4-cp38-cp38-win32.whl", hash = "sha256:dfa8fe35a0bb90382837b238fff375de15f0dcdb9ae68ff85f7a63649c98527e"},
+ {file = "coverage-7.4.4-cp38-cp38-win_amd64.whl", hash = "sha256:b2991665420a803495e0b90a79233c1433d6ed77ef282e8e152a324bbbc5e0c8"},
+ {file = "coverage-7.4.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3b799445b9f7ee8bf299cfaed6f5b226c0037b74886a4e11515e569b36fe310d"},
+ {file = "coverage-7.4.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b4d33f418f46362995f1e9d4f3a35a1b6322cb959c31d88ae56b0298e1c22357"},
+ {file = "coverage-7.4.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aadacf9a2f407a4688d700e4ebab33a7e2e408f2ca04dbf4aef17585389eff3e"},
+ {file = "coverage-7.4.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7c95949560050d04d46b919301826525597f07b33beba6187d04fa64d47ac82e"},
+ {file = "coverage-7.4.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff7687ca3d7028d8a5f0ebae95a6e4827c5616b31a4ee1192bdfde697db110d4"},
+ {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:5fc1de20b2d4a061b3df27ab9b7c7111e9a710f10dc2b84d33a4ab25065994ec"},
+ {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:c74880fc64d4958159fbd537a091d2a585448a8f8508bf248d72112723974cbd"},
+ {file = "coverage-7.4.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:742a76a12aa45b44d236815d282b03cfb1de3b4323f3e4ec933acfae08e54ade"},
+ {file = "coverage-7.4.4-cp39-cp39-win32.whl", hash = "sha256:d89d7b2974cae412400e88f35d86af72208e1ede1a541954af5d944a8ba46c57"},
+ {file = "coverage-7.4.4-cp39-cp39-win_amd64.whl", hash = "sha256:9ca28a302acb19b6af89e90f33ee3e1906961f94b54ea37de6737b7ca9d8827c"},
+ {file = "coverage-7.4.4-pp38.pp39.pp310-none-any.whl", hash = "sha256:b2c5edc4ac10a7ef6605a966c58929ec6c1bd0917fb8c15cb3363f65aa40e677"},
+ {file = "coverage-7.4.4.tar.gz", hash = "sha256:c901df83d097649e257e803be22592aedfd5182f07b3cc87d640bbb9afd50f49"},
+]
+
+[package.dependencies]
+tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""}
+
+[package.extras]
+toml = ["tomli"]
+
+[[package]]
+name = "distlib"
+version = "0.3.8"
+description = "Distribution utilities"
+optional = false
+python-versions = "*"
+files = [
+ {file = "distlib-0.3.8-py2.py3-none-any.whl", hash = "sha256:034db59a0b96f8ca18035f36290806a9a6e6bd9d1ff91e45a7f172eb17e51784"},
+ {file = "distlib-0.3.8.tar.gz", hash = "sha256:1530ea13e350031b6312d8580ddb6b27a104275a31106523b8f123787f494f64"},
+]
+
+[[package]]
+name = "exceptiongroup"
+version = "1.2.0"
+description = "Backport of PEP 654 (exception groups)"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"},
+ {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"},
+]
+
+[package.extras]
+test = ["pytest (>=6)"]
+
+[[package]]
+name = "execnet"
+version = "2.0.2"
+description = "execnet: rapid multi-Python deployment"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "execnet-2.0.2-py3-none-any.whl", hash = "sha256:88256416ae766bc9e8895c76a87928c0012183da3cc4fc18016e6f050e025f41"},
+ {file = "execnet-2.0.2.tar.gz", hash = "sha256:cc59bc4423742fd71ad227122eb0dd44db51efb3dc4095b45ac9a08c770096af"},
+]
+
+[package.extras]
+testing = ["hatch", "pre-commit", "pytest", "tox"]
+
+[[package]]
+name = "filelock"
+version = "3.13.1"
+description = "A platform independent file lock."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "filelock-3.13.1-py3-none-any.whl", hash = "sha256:57dbda9b35157b05fb3e58ee91448612eb674172fab98ee235ccb0b5bee19a1c"},
+ {file = "filelock-3.13.1.tar.gz", hash = "sha256:521f5f56c50f8426f5e03ad3b281b490a87ef15bc6c526f168290f0c7148d44e"},
+]
+
+[package.extras]
+docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.24)"]
+testing = ["covdefaults (>=2.3)", "coverage (>=7.3.2)", "diff-cover (>=8)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-timeout (>=2.2)"]
+typing = ["typing-extensions (>=4.8)"]
+
+[[package]]
+name = "iniconfig"
+version = "2.0.0"
+description = "brain-dead simple config-ini parsing"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"},
+ {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"},
+]
+
+[[package]]
+name = "packaging"
+version = "24.0"
+description = "Core utilities for Python packages"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"},
+ {file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"},
+]
+
+[[package]]
+name = "platformdirs"
+version = "4.2.0"
+description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "platformdirs-4.2.0-py3-none-any.whl", hash = "sha256:0614df2a2f37e1a662acbd8e2b25b92ccf8632929bc6d43467e17fe89c75e068"},
+ {file = "platformdirs-4.2.0.tar.gz", hash = "sha256:ef0cc731df711022c174543cb70a9b5bd22e5a9337c8624ef2c2ceb8ddad8768"},
+]
+
+[package.extras]
+docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
+test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"]
+
+[[package]]
+name = "pluggy"
+version = "1.4.0"
+description = "plugin and hook calling mechanisms for python"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pluggy-1.4.0-py3-none-any.whl", hash = "sha256:7db9f7b503d67d1c5b95f59773ebb58a8c1c288129a88665838012cfb07b8981"},
+ {file = "pluggy-1.4.0.tar.gz", hash = "sha256:8c85c2876142a764e5b7548e7d9a0e0ddb46f5185161049a79b7e974454223be"},
+]
+
+[package.extras]
+dev = ["pre-commit", "tox"]
+testing = ["pytest", "pytest-benchmark"]
+
+[[package]]
+name = "py"
+version = "1.11.0"
+description = "library with cross-python path, ini-parsing, io, code, log facilities"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
+files = [
+ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"},
+ {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"},
+]
+
+[[package]]
+name = "pyproject-api"
+version = "1.6.1"
+description = "API to interact with the python pyproject.toml based projects"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pyproject_api-1.6.1-py3-none-any.whl", hash = "sha256:4c0116d60476b0786c88692cf4e325a9814965e2469c5998b830bba16b183675"},
+ {file = "pyproject_api-1.6.1.tar.gz", hash = "sha256:1817dc018adc0d1ff9ca1ed8c60e1623d5aaca40814b953af14a9cf9a5cae538"},
+]
+
+[package.dependencies]
+packaging = ">=23.1"
+tomli = {version = ">=2.0.1", markers = "python_version < \"3.11\""}
+
+[package.extras]
+docs = ["furo (>=2023.8.19)", "sphinx (<7.2)", "sphinx-autodoc-typehints (>=1.24)"]
+testing = ["covdefaults (>=2.3)", "pytest (>=7.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.11.1)", "setuptools (>=68.1.2)", "wheel (>=0.41.2)"]
+
+[[package]]
+name = "pytest"
+version = "8.1.1"
+description = "pytest: simple powerful testing with Python"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "pytest-8.1.1-py3-none-any.whl", hash = "sha256:2a8386cfc11fa9d2c50ee7b2a57e7d898ef90470a7a34c4b949ff59662bb78b7"},
+ {file = "pytest-8.1.1.tar.gz", hash = "sha256:ac978141a75948948817d360297b7aae0fcb9d6ff6bc9ec6d514b85d5a65c044"},
+]
+
+[package.dependencies]
+colorama = {version = "*", markers = "sys_platform == \"win32\""}
+exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""}
+iniconfig = "*"
+packaging = "*"
+pluggy = ">=1.4,<2.0"
+tomli = {version = ">=1", markers = "python_version < \"3.11\""}
+
+[package.extras]
+testing = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"]
+
+[[package]]
+name = "pytest-cov"
+version = "4.1.0"
+description = "Pytest plugin for measuring coverage."
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "pytest-cov-4.1.0.tar.gz", hash = "sha256:3904b13dfbfec47f003b8e77fd5b589cd11904a21ddf1ab38a64f204d6a10ef6"},
+ {file = "pytest_cov-4.1.0-py3-none-any.whl", hash = "sha256:6ba70b9e97e69fcc3fb45bfeab2d0a138fb65c4d0d6a41ef33983ad114be8c3a"},
+]
+
+[package.dependencies]
+coverage = {version = ">=5.2.1", extras = ["toml"]}
+pytest = ">=4.6"
+
+[package.extras]
+testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"]
+
+[[package]]
+name = "pytest-xdist"
+version = "3.5.0"
+description = "pytest xdist plugin for distributed testing, most importantly across multiple CPUs"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "pytest-xdist-3.5.0.tar.gz", hash = "sha256:cbb36f3d67e0c478baa57fa4edc8843887e0f6cfc42d677530a36d7472b32d8a"},
+ {file = "pytest_xdist-3.5.0-py3-none-any.whl", hash = "sha256:d075629c7e00b611df89f490a5063944bee7a4362a5ff11c7cc7824a03dfce24"},
+]
+
+[package.dependencies]
+execnet = ">=1.1"
+pytest = ">=6.2.0"
+
+[package.extras]
+psutil = ["psutil (>=3.0)"]
+setproctitle = ["setproctitle"]
+testing = ["filelock"]
+
+[[package]]
+name = "python-dateutil"
+version = "2.9.0.post0"
+description = "Extensions to the standard Python datetime module"
+optional = false
+python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
+files = [
+ {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"},
+ {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"},
+]
+
+[package.dependencies]
+six = ">=1.5"
+
+[[package]]
+name = "randomize"
+version = "0.14"
+description = "Randomize the order of the tests within a unittest.TestCase class"
+optional = false
+python-versions = "*"
+files = [
+ {file = "randomize-0.14-py2.py3-none-any.whl", hash = "sha256:79c72c1465060e7d22d8fa147fa0452550db83bf0bcf8c0b0694277ebc6f6ff6"},
+ {file = "randomize-0.14.tar.gz", hash = "sha256:fe977435ed8f9786c891a0299c99a710751b748d4ddc23ff85fb5eba73983b6b"},
+]
+
+[[package]]
+name = "six"
+version = "1.16.0"
+description = "Python 2 and 3 compatibility utilities"
+optional = false
+python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
+files = [
+ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
+ {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
+]
+
+[[package]]
+name = "tomli"
+version = "2.0.1"
+description = "A lil' TOML parser"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
+ {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
+]
+
+[[package]]
+name = "tox"
+version = "4.14.1"
+description = "tox is a generic virtualenv management and test command line tool"
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "tox-4.14.1-py3-none-any.whl", hash = "sha256:b03754b6ee6dadc70f2611da82b4ed8f625fcafd247e15d1d0cb056f90a06d3b"},
+ {file = "tox-4.14.1.tar.gz", hash = "sha256:f0ad758c3bbf7e237059c929d3595479363c3cdd5a06ac3e49d1dd020ffbee45"},
+]
+
+[package.dependencies]
+cachetools = ">=5.3.2"
+chardet = ">=5.2"
+colorama = ">=0.4.6"
+filelock = ">=3.13.1"
+packaging = ">=23.2"
+platformdirs = ">=4.1"
+pluggy = ">=1.3"
+pyproject-api = ">=1.6.1"
+tomli = {version = ">=2.0.1", markers = "python_version < \"3.11\""}
+virtualenv = ">=20.25"
+
+[package.extras]
+docs = ["furo (>=2023.9.10)", "sphinx (>=7.2.6)", "sphinx-argparse-cli (>=1.11.1)", "sphinx-autodoc-typehints (>=1.25.2)", "sphinx-copybutton (>=0.5.2)", "sphinx-inline-tabs (>=2023.4.21)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.11)"]
+testing = ["build[virtualenv] (>=1.0.3)", "covdefaults (>=2.3)", "detect-test-pollution (>=1.2)", "devpi-process (>=1)", "diff-cover (>=8.0.2)", "distlib (>=0.3.8)", "flaky (>=3.7)", "hatch-vcs (>=0.4)", "hatchling (>=1.21)", "psutil (>=5.9.7)", "pytest (>=7.4.4)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)", "pytest-xdist (>=3.5)", "re-assert (>=1.1)", "time-machine (>=2.13)", "wheel (>=0.42)"]
+
+[[package]]
+name = "urllib3"
+version = "2.2.1"
+description = "HTTP library with thread-safe connection pooling, file post, and more."
+optional = false
+python-versions = ">=3.8"
+files = [
+ {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"},
+ {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"},
+]
+
+[package.extras]
+brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"]
+h2 = ["h2 (>=4,<5)"]
+socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"]
+zstd = ["zstandard (>=0.18.0)"]
+
+[[package]]
+name = "virtualenv"
+version = "20.25.1"
+description = "Virtual Python Environment builder"
+optional = false
+python-versions = ">=3.7"
+files = [
+ {file = "virtualenv-20.25.1-py3-none-any.whl", hash = "sha256:961c026ac520bac5f69acb8ea063e8a4f071bcc9457b9c1f28f6b085c511583a"},
+ {file = "virtualenv-20.25.1.tar.gz", hash = "sha256:e08e13ecdca7a0bd53798f356d5831434afa5b07b93f0abdf0797b7a06ffe197"},
+]
+
+[package.dependencies]
+distlib = ">=0.3.7,<1"
+filelock = ">=3.12.2,<4"
+platformdirs = ">=3.9.1,<5"
+
+[package.extras]
+docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"]
+test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"]
+
+[metadata]
+lock-version = "2.0"
+python-versions = ">=3.8, <4.0"
+content-hash = "34d7287c4b27570a1498fe4fd4c371f48fe8fde30b18ee4be5ac65d03935395d"
diff --git a/pyproject.toml b/pyproject.toml
index 4dd90cfa..fec6eaad 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,32 +1,43 @@
[build-system]
-requires = ["setuptools", "setuptools-scm"]
-build-backend = "setuptools.build_meta"
+requires = ["poetry-core>=1.8.2"]
+build-backend = "poetry.core.masonry.api"
-[project]
-name = "orspytest"
+[tool.poetry]
+name = "openrouteservice"
version = "7.1.1.post1"
-authors = [
- {name = "HeiGIT gGmbH", email = "support@smartmobility.heigit.org"},
-]
+authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
-requires-python = ">=3.7"
keywords = ["routing","accessibility","router","OSM","ORS","openrouteservice","openstreetmap","isochrone","POI","elevation","DEM","swagger"]
-license = {text = "Apache 2.0"}
+license = "Apache 2.0"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
-dependencies = [
- "urllib3 >= 1.15",
- "six >= 1.10",
- "certifi",
- "python-dateutil"
-]
-[project.urls]
-"Homepage" = "https://openrouteservice.org/"
+[tool.poetry.dependencies]
+python = ">=3.8, <4.0"
+urllib3 = "^2.2.1"
+six = "^1.16.0"
+certifi = "^2024.2.2"
+python-dateutil = "^2.9.0.post0"
+
+[tool.poetry.dev-dependencies]
+pytest = "^8.1.1"
+pytest-cov = "^4.1.0"
+coverage = "^7.4.4"
+pytest-xdist = "^3.5.0"
+pluggy = "^1.4.0"
+py = "^1.11.0"
+randomize = "^0.14"
+tox = "^4.14.1"
+
+[tool.pytest.ini_options]
+addopts = "--cov=openrouteservice --cov-report xml --cov-report term-missing --cov-fail-under 50 -n auto"
+
+[tool.poetry.urls]
+homepage = "https://openrouteservice.org/"
"Forum" = "https://ask.openrouteservice.org/c/sdks"
"API Documentation" = "https://openrouteservice.org/documentation/"
"API Terms of service" = "https://openrouteservice.org/terms-of-service/"
From e953b3324e3d510b858f05c3a9878982df9c5756 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:46:56 +0100
Subject: [PATCH 17/38] ci: Adjust the tox and the ci tests to use poetry
---
.github/workflows/ci-tests.yml | 45 ++++++++++++++++++++++------------
tox.ini | 20 +++++++++------
2 files changed, 42 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index d107e74e..c5fbffb6 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -9,11 +9,21 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9" ]
- poetry-version: [ "1.5.1" ]
+ config:
+ - python-version: '3.7'
+ tox: py37
+ - python-version: '3.8'
+ tox: py38
+ - python-version: '3.9'
+ tox: py39
+ - python-version: '3.10'
+ tox: py310
+ - python-version: '3.11'
+ tox: py311
+ poetry-version: [ "1.8.2" ]
os: [ ubuntu-20.04, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
- name: Python ${{ matrix.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
+ name: Python ${{ matrix.config.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
defaults:
run:
shell: bash
@@ -21,20 +31,25 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
+ - uses: actions/checkout@v4
+ - name: Install poetry
+ run: pipx install poetry
+ - name: Install Python ${{ matrix.config.python-version }}
+ uses: actions/setup-python@v5
with:
- python-version: ${{ matrix.python-version }}
- cache: 'pip'
- - name: Install dependencies
- run: pip install -r requirements.txt
- - name: Install test dependencies
- run: pip install -r test-requirements.txt
- - name: Install tox
- run: pip install tox
+ python-version: ${{ matrix.config.python-version }}
+ cache: 'poetry'
+ - name: Install packages
+ run: poetry install --no-root
+ - name: Load cached tox
+ uses: actions/cache@v3
+ with:
+ path: .tox
+ key: tox-${{ matrix.os }}-poetry-${{ matrix.poetry-version }}-python-${{ matrix.config.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Setup API Key
env:
ORS_API_KEY: ${{ secrets.ORS_API_KEY }}
run: printf "[ORS]\napiKey = $ORS_API_KEY\n" > tests-config.ini
- - name: Run tests
- run: python -m tox
+ - name: Run tox
+ run: |
+ poetry run tox -e pytest-${{ matrix.config.tox }}
diff --git a/tox.ini b/tox.ini
index a310bec9..559f71b2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,10 +1,14 @@
[tox]
-envlist = py3
+env_list = pytest-{py37,py38,py39,py310,py311}
-[testenv]
-deps=-r{toxinidir}/requirements.txt
- -r{toxinidir}/test-requirements.txt
-
-commands=
- nosetests \
- []
+[testenv:pytest-{py37,py38,py39,py310,py311}]
+base_python =
+ py37: python3.8
+ py38: python3.8
+ py39: python3.9
+ py310: python3.10
+ py311: python3.11
+commands =
+ poetry install -v --no-interaction --no-root
+ pytest --cov=openrouteservice --cov-report xml --cov-report term-missing --cov-fail-under 50 -n auto
+allowlist_externals = poetry
From 1297a985696ecf884c9bae11a819fe7419f31b77 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:49:41 +0100
Subject: [PATCH 18/38] fix: Fix wrong python version identifier
---
tox.ini | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tox.ini b/tox.ini
index 559f71b2..d4882045 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,7 +3,7 @@ env_list = pytest-{py37,py38,py39,py310,py311}
[testenv:pytest-{py37,py38,py39,py310,py311}]
base_python =
- py37: python3.8
+ py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
From a06b996d6c21cb7bf22aad4b9792181677ee37fd Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:50:34 +0100
Subject: [PATCH 19/38] chore: Update to latest ubuntu image
---
.github/workflows/ci-tests.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index c5fbffb6..8e22fefb 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -21,7 +21,7 @@ jobs:
- python-version: '3.11'
tox: py311
poetry-version: [ "1.8.2" ]
- os: [ ubuntu-20.04, macos-latest, windows-latest ]
+ os: [ ubuntu-22.04, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
name: Python ${{ matrix.config.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
defaults:
From 76b54e55ec31671386077e9d8705586067773c0c Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:51:43 +0100
Subject: [PATCH 20/38] chore: Remove python 3.7
---
.github/workflows/ci-tests.yml | 2 --
tox.ini | 3 +--
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index 8e22fefb..88a32629 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -10,8 +10,6 @@ jobs:
fail-fast: false
matrix:
config:
- - python-version: '3.7'
- tox: py37
- python-version: '3.8'
tox: py38
- python-version: '3.9'
diff --git a/tox.ini b/tox.ini
index d4882045..10a9e81f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,8 @@
[tox]
-env_list = pytest-{py37,py38,py39,py310,py311}
+env_list = pytest-{py38,py39,py310,py311}
[testenv:pytest-{py37,py38,py39,py310,py311}]
base_python =
- py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
From e0a863e9b755fff7693d1268ac8bfcd78ed971b1 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 17:55:06 +0100
Subject: [PATCH 21/38] fix: Add pytet to allowlist
---
tox.ini | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tox.ini b/tox.ini
index 10a9e81f..c6379fa9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,4 +10,6 @@ base_python =
commands =
poetry install -v --no-interaction --no-root
pytest --cov=openrouteservice --cov-report xml --cov-report term-missing --cov-fail-under 50 -n auto
-allowlist_externals = poetry
+allowlist_externals =
+ poetry
+ pytest
From 7742aa33b55181702cd32480ec282cecce3701cb Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 18:06:28 +0100
Subject: [PATCH 22/38] chore: Remove old test requirements
---
test-requirements.txt | 5 -----
1 file changed, 5 deletions(-)
delete mode 100644 test-requirements.txt
diff --git a/test-requirements.txt b/test-requirements.txt
deleted file mode 100644
index d88e2832..00000000
--- a/test-requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-coverage>=4.0.3
-nose-py3>=1.6.2
-pluggy>=0.3.1
-py>=1.4.31
-randomize>=0.13
From f15d6fe989c4f3144d2992a67fcdc16c44388dc8 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 18:06:44 +0100
Subject: [PATCH 23/38] ci: Adjust the production pipeline
---
.github/workflows/ci-production.yml | 74 ++++++++++++++---------------
1 file changed, 35 insertions(+), 39 deletions(-)
diff --git a/.github/workflows/ci-production.yml b/.github/workflows/ci-production.yml
index 8216d075..fc80fd3a 100644
--- a/.github/workflows/ci-production.yml
+++ b/.github/workflows/ci-production.yml
@@ -14,11 +14,13 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11", "pypy3.8", "pypy3.9" ]
- poetry-version: [ "latest" ]
- os: [ ubuntu-20.04, macos-latest, windows-latest ]
+ config:
+ - python-version: '3.11'
+ tox: py311
+ poetry-version: [ "1.8.2" ]
+ os: [ ubuntu-22.04, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
- name: Python ${{ matrix.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
+ name: Python ${{ matrix.config.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
defaults:
run:
shell: bash
@@ -26,48 +28,42 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- - name: Set up Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
+ - uses: actions/checkout@v4
+ - name: Install poetry
+ run: pipx install poetry
+ - name: Install Python ${{ matrix.config.python-version }}
+ uses: actions/setup-python@v5
with:
- python-version: ${{ matrix.python-version }}
- cache: 'pip'
- - name: Update pip
- run: |
- python -m pip install --upgrade pip
- - name: Run Poetry action
- uses: abatilo/actions-poetry@v2
- with:
- poetry-version: ${{ matrix.poetry-version }}
- - name: View poetry --version
- run: poetry --version
- - name: Install dependencies
- run: poetry install
- - name: Run tests
- run: poetry run pytest
- - name: Upload coverage to Codecov
- uses: codecov/codecov-action@v1
+ python-version: ${{ matrix.config.python-version }}
+ cache: 'poetry'
+ - name: Install packages
+ run: poetry install --no-root
+ - name: Load cached tox
+ uses: actions/cache@v3
with:
- token: ${{ secrets.CODECOV_TOKEN }}
- flags: unittests
- env_vars: OS,PYTHON
- name: codecov-umbrella
- fail_ci_if_error: true
- verbose: true
+ path: .tox
+ key: tox-${{ matrix.os }}-poetry-${{ matrix.poetry-version }}-python-${{ matrix.config.python-version }}-${{ hashFiles('**/poetry.lock') }}
+ - name: Setup API Key
+ env:
+ ORS_API_KEY: ${{ secrets.ORS_API_KEY }}
+ run: printf "[ORS]\napiKey = $ORS_API_KEY\n" > tests-config.ini
+ - name: Run tox
+ run: |
+ poetry run tox -e pytest-${{ matrix.config.tox }}
+
build-and-publish:
name: Build and publish Python distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-20.04
- needs:
- - pytest
+ needs: pytest
steps:
- - uses: actions/checkout@v2
- - name: Set up base Python 3.9
- uses: actions/setup-python@v2
- with:
- python-version: 3.9
- - name: Python Poetry Action
- uses: abatilo/actions-poetry@v2
+ - uses: actions/checkout@v4
+ - name: Install poetry
+ run: pipx install poetry
+ - name: Install Python ${{ matrix.config.python-version }}
+ uses: actions/setup-python@v5
with:
- poetry-version: latest
+ python-version: ${{ matrix.config.python-version }}
+ cache: 'poetry'
- name: Publish distribution 📦 with test.pypi.org
if: startsWith(github.ref, 'refs/tags/v')
run: |
From 56ec3634c1f4b4d73e7e980f440ae7d35348ba43 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 18:10:56 +0100
Subject: [PATCH 24/38] chore: Remove unneeded files
---
requirements.txt | 5 -----
setup.py | 39 ---------------------------------------
2 files changed, 44 deletions(-)
delete mode 100644 requirements.txt
delete mode 100644 setup.py
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index bafdc075..00000000
--- a/requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-certifi >= 14.05.14
-six >= 1.10
-python_dateutil >= 2.5.3
-setuptools >= 21.0.0
-urllib3 >= 1.15.1
diff --git a/setup.py b/setup.py
deleted file mode 100644
index ca254394..00000000
--- a/setup.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-from setuptools import setup, find_packages # noqa: H301
-
-NAME = "openrouteservice"
-VERSION = "7.1.1.post1"
-# To install the library, run the following
-#
-# python setup.py install
-#
-# prerequisite: setuptools
-# http://pypi.python.org/pypi/setuptools
-
-REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
-
-setup(
- name=NAME,
- version=VERSION,
- description="Openrouteservice",
- author_email="support@smartmobility.heigit.org",
- url="https://openrouteservice.org",
- keywords=["routing","accessibility","router","OSM","ORS","openrouteservice","openstreetmap","isochrone","POI","elevation","DEM","swagger"],
- install_requires=REQUIRES,
- packages=find_packages(),
- include_package_data=True,
- long_description="""\
- Python client for requests to openrouteservice API services
- """
-)
From 78c4e084ca68c677f49923e2d58be4febe2a9778 Mon Sep 17 00:00:00 2001
From: Julian Psotta
Date: Tue, 19 Mar 2024 18:12:16 +0100
Subject: [PATCH 25/38] chore: Remove double checkout action
---
.github/workflows/ci-production.yml | 3 +--
.github/workflows/ci-tests.yml | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/ci-production.yml b/.github/workflows/ci-production.yml
index fc80fd3a..6a4c7498 100644
--- a/.github/workflows/ci-production.yml
+++ b/.github/workflows/ci-production.yml
@@ -25,10 +25,9 @@ jobs:
run:
shell: bash
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
- - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Install Python ${{ matrix.config.python-version }}
diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml
index 88a32629..88b637ad 100644
--- a/.github/workflows/ci-tests.yml
+++ b/.github/workflows/ci-tests.yml
@@ -26,10 +26,9 @@ jobs:
run:
shell: bash
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
- - uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Install Python ${{ matrix.config.python-version }}
From 8c7d8dd770757c74a2d4dd34a929b93b018f7220 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 26 Mar 2024 14:38:01 +0100
Subject: [PATCH 26/38] feat: workflow for deploying to testpypi
Deploys on push to generated-client branch to testpypi
---
.github/workflows/ci-test-pypi.yml | 68 ++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
create mode 100644 .github/workflows/ci-test-pypi.yml
diff --git a/.github/workflows/ci-test-pypi.yml b/.github/workflows/ci-test-pypi.yml
new file mode 100644
index 00000000..c4eceede
--- /dev/null
+++ b/.github/workflows/ci-test-pypi.yml
@@ -0,0 +1,68 @@
+name: Test and deploy to TestPyPI | generated-client branch
+
+on:
+ push:
+ branches:
+ - generated-client
+
+jobs:
+ pytest:
+ strategy:
+ fail-fast: false
+ matrix:
+ config:
+ - python-version: '3.11'
+ tox: py311
+ poetry-version: [ "1.8.2" ]
+ os: [ ubuntu-22.04, macos-latest, windows-latest ]
+ runs-on: ${{ matrix.os }}
+ name: Python ${{ matrix.config.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
+ defaults:
+ run:
+ shell: bash
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - name: Install poetry
+ run: pipx install poetry
+ - name: Install Python ${{ matrix.config.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.config.python-version }}
+ cache: 'poetry'
+ - name: Install packages
+ run: poetry install --no-root
+ - name: Load cached tox
+ uses: actions/cache@v3
+ with:
+ path: .tox
+ key: tox-${{ matrix.os }}-poetry-${{ matrix.poetry-version }}-python-${{ matrix.config.python-version }}-${{ hashFiles('**/poetry.lock') }}
+ - name: Setup API Key
+ env:
+ ORS_API_KEY: ${{ secrets.ORS_API_KEY }}
+ run: printf "[ORS]\napiKey = $ORS_API_KEY\n" > tests-config.ini
+ - name: Run tox
+ run: |
+ poetry run tox -e pytest-${{ matrix.config.tox }}
+
+ build-and-publish:
+ name: Build and publish Python distributions 📦 to TestPyPI
+ runs-on: ubuntu-20.04
+ needs: pytest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install poetry
+ run: pipx install poetry
+ - name: Install Python ${{ matrix.config.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.config.python-version }}
+ cache: 'poetry'
+ - name: Publish distribution 📦 with test.pypi.org
+ if: startsWith(github.ref, 'refs/tags/v')
+ run: |
+ poetry config repositories.testpypi https://test.pypi.org/legacy/
+ poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
+ poetry build
+ poetry publish -r testpypi
From 88e7ca98e6fef0f014895a36c903d4d1aca9c9b4 Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 26 Mar 2024 14:51:43 +0100
Subject: [PATCH 27/38] build: rebuild client using latest templates
---
.gitignore | 1 -
README.md | 7 +-
docs/DirectionsService1.md | 35 -
docs/DirectionsServiceApi.md | 8 +-
...onsService.md => DirectionsServiceBody.md} | 2 +-
examples/Avoid_ConstructionSites.ipynb | 4 +-
examples/Dieselgate_Routing.ipynb | 6 +-
examples/ortools_pubcrawl.ipynb | 2 +-
openrouteservice/__init__.py | 3 +-
.../api/directions_service_api.py | 8 +-
openrouteservice/api_client.py | 2 +-
openrouteservice/configuration.py | 2 +-
openrouteservice/models/__init__.py | 3 +-
.../models/directions_service1.py | 875 ------------------
..._service.py => directions_service_body.py} | 224 ++---
pyproject.toml | 2 +-
setup.py | 39 +
test/test_directions_service_api.py | 4 +-
18 files changed, 176 insertions(+), 1051 deletions(-)
delete mode 100644 docs/DirectionsService1.md
rename docs/{DirectionsService.md => DirectionsServiceBody.md} (99%)
delete mode 100644 openrouteservice/models/directions_service1.py
rename openrouteservice/models/{directions_service.py => directions_service_body.py} (81%)
create mode 100644 setup.py
diff --git a/.gitignore b/.gitignore
index e1780506..6c2747b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,4 +76,3 @@ openrouteservice-js/node_modules
# Generated and used during building
client_version.txt
openrouteservice_ignore_paths.yaml
-
diff --git a/README.md b/README.md
index 53916b04..644d7848 100644
--- a/README.md
+++ b/README.md
@@ -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)
@@ -65,7 +65,7 @@ directionsApi = ors.DirectionsServiceApi(
)
# create request body
-body = ors.DirectionsService(
+body = ors.DirectionsServiceBody(
coordinates=[[8.34234,48.23424],[8.34423,48.26424]]
)
@@ -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)
diff --git a/docs/DirectionsService1.md b/docs/DirectionsService1.md
deleted file mode 100644
index 675ee163..00000000
--- a/docs/DirectionsService1.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# DirectionsService1
-
-## 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)
-
diff --git a/docs/DirectionsServiceApi.md b/docs/DirectionsServiceApi.md
index bc220177..9ff96796 100644
--- a/docs/DirectionsServiceApi.md
+++ b/docs/DirectionsServiceApi.md
@@ -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:
@@ -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
@@ -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:
@@ -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
diff --git a/docs/DirectionsService.md b/docs/DirectionsServiceBody.md
similarity index 99%
rename from docs/DirectionsService.md
rename to docs/DirectionsServiceBody.md
index 2980e80b..d8e2e61c 100644
--- a/docs/DirectionsService.md
+++ b/docs/DirectionsServiceBody.md
@@ -1,4 +1,4 @@
-# DirectionsService
+# DirectionsServiceBody
## Properties
Name | Type | Description | Notes
diff --git a/examples/Avoid_ConstructionSites.ipynb b/examples/Avoid_ConstructionSites.ipynb
index 04e47851..77e64aa4 100644
--- a/examples/Avoid_ConstructionSites.ipynb
+++ b/examples/Avoid_ConstructionSites.ipynb
@@ -5724,7 +5724,7 @@
"map2 = folium.Map(**map_params)\n",
"\n",
"api_instance = ors.DirectionsServiceApi(ors.apiClient(apiKey=api_key))\n",
- "body = ors.DirectionsService(\n",
+ "body = ors.DirectionsServiceBody(\n",
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
" preference='shortest',\n",
" instructions=False\n",
@@ -6157,7 +6157,7 @@
],
"source": [
"# Add the site polygons to the request parameters\n",
- "body = ors.DirectionsService(\n",
+ "body = ors.DirectionsServiceBody(\n",
" coordinates=[[12.108259, 54.081919],[12.072063, 54.103684]],\n",
" preference='shortest',\n",
" instructions=False,\n",
diff --git a/examples/Dieselgate_Routing.ipynb b/examples/Dieselgate_Routing.ipynb
index b8219f50..4d466774 100644
--- a/examples/Dieselgate_Routing.ipynb
+++ b/examples/Dieselgate_Routing.ipynb
@@ -228,7 +228,7 @@
"\n",
"# Request route\n",
"coordinates = [[13.372582, 52.520295], [13.391476, 52.508856]]\n",
- "body = ors.DirectionsService(\n",
+ "body = ors.DirectionsServiceBody(\n",
" coordinates=coordinates,\n",
" preference='shortest',\n",
" geometry=True\n",
@@ -549,7 +549,7 @@
"# Affected streets\n",
"buffer = []\n",
"for street in avoid_streets:\n",
- " body = ors.DirectionsService(\n",
+ " body = ors.DirectionsServiceBody(\n",
" coordinates=street['coords'],\n",
" preference='shortest',\n",
" geometry=True\n",
@@ -911,7 +911,7 @@
}
],
"source": [
- "body = ors.DirectionsService(\n",
+ "body = ors.DirectionsServiceBody(\n",
" coordinates=coordinates,\n",
" preference='shortest',\n",
" instructions=False,\n",
diff --git a/examples/ortools_pubcrawl.ipynb b/examples/ortools_pubcrawl.ipynb
index d7724d2b..b4cc3f3c 100644
--- a/examples/ortools_pubcrawl.ipynb
+++ b/examples/ortools_pubcrawl.ipynb
@@ -318,7 +318,7 @@
"\n",
"# See what a 'random' tour would have been\n",
"pubs_coords.append(pubs_coords[0])\n",
- "body = ors.DirectionsService(\n",
+ "body = ors.DirectionsServiceBody(\n",
" coordinates=pubs_coords,\n",
" geometry=True\n",
")\n",
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index aac52036..e3b51622 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -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
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index eab71948..4a1fc794 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -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,
@@ -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,
@@ -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,
@@ -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,
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 384d9fe4..a9aff6b3 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -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()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index 9bc071b0..cd7000e6 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -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)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index d3d8fd03..5a166f3a 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -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
diff --git a/openrouteservice/models/directions_service1.py b/openrouteservice/models/directions_service1.py
deleted file mode 100644
index 328c2998..00000000
--- a/openrouteservice/models/directions_service1.py
+++ /dev/null
@@ -1,875 +0,0 @@
-# coding: utf-8
-
-"""
- Openrouteservice
-
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
-
- OpenAPI spec version: 7.1.1
- Contact: support@smartmobility.heigit.org
- Generated by: https://github.com/swagger-api/swagger-codegen.git
-"""
-
-import pprint
-import re # noqa: F401
-
-import six
-
-class DirectionsService1(object):
- """NOTE: This class is auto generated by the swagger code generator program.
-
- Do not edit the class manually.
- """
- """
- Attributes:
- swagger_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- swagger_types = {
- 'alternative_routes': 'AlternativeRoutes',
- 'attributes': 'list[str]',
- 'bearings': 'list[list[float]]',
- 'continue_straight': 'bool',
- 'coordinates': 'list[list[float]]',
- 'elevation': 'bool',
- 'extra_info': 'list[str]',
- 'geometry': 'bool',
- 'geometry_simplify': 'bool',
- 'id': 'str',
- 'ignore_transfers': 'bool',
- 'instructions': 'bool',
- 'instructions_format': 'str',
- 'language': 'str',
- 'maneuvers': 'bool',
- 'maximum_speed': 'float',
- 'options': 'RouteOptions',
- 'preference': 'str',
- 'radiuses': 'list[float]',
- 'roundabout_exits': 'bool',
- 'schedule': 'bool',
- 'schedule_duration': 'str',
- 'schedule_rows': 'int',
- 'skip_segments': 'list[int]',
- 'suppress_warnings': 'bool',
- 'units': 'str',
- 'walking_time': 'str'
- }
-
- attribute_map = {
- 'alternative_routes': 'alternative_routes',
- 'attributes': 'attributes',
- 'bearings': 'bearings',
- 'continue_straight': 'continue_straight',
- 'coordinates': 'coordinates',
- 'elevation': 'elevation',
- 'extra_info': 'extra_info',
- 'geometry': 'geometry',
- 'geometry_simplify': 'geometry_simplify',
- 'id': 'id',
- 'ignore_transfers': 'ignore_transfers',
- 'instructions': 'instructions',
- 'instructions_format': 'instructions_format',
- 'language': 'language',
- 'maneuvers': 'maneuvers',
- 'maximum_speed': 'maximum_speed',
- 'options': 'options',
- 'preference': 'preference',
- 'radiuses': 'radiuses',
- 'roundabout_exits': 'roundabout_exits',
- 'schedule': 'schedule',
- 'schedule_duration': 'schedule_duration',
- 'schedule_rows': 'schedule_rows',
- 'skip_segments': 'skip_segments',
- 'suppress_warnings': 'suppress_warnings',
- 'units': 'units',
- 'walking_time': 'walking_time'
- }
-
- def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time='PT15M'): # noqa: E501
- """DirectionsService1 - a model defined in Swagger""" # noqa: E501
- self._alternative_routes = None
- self._attributes = None
- self._bearings = None
- self._continue_straight = None
- self._coordinates = None
- self._elevation = None
- self._extra_info = None
- self._geometry = None
- self._geometry_simplify = None
- self._id = None
- self._ignore_transfers = None
- self._instructions = None
- self._instructions_format = None
- self._language = None
- self._maneuvers = None
- self._maximum_speed = None
- self._options = None
- self._preference = None
- self._radiuses = None
- self._roundabout_exits = None
- self._schedule = None
- self._schedule_duration = None
- self._schedule_rows = None
- self._skip_segments = None
- self._suppress_warnings = None
- self._units = None
- self._walking_time = None
- self.discriminator = None
- if alternative_routes is not None:
- self.alternative_routes = alternative_routes
- if attributes is not None:
- self.attributes = attributes
- if bearings is not None:
- self.bearings = bearings
- if continue_straight is not None:
- self.continue_straight = continue_straight
- self.coordinates = coordinates
- if elevation is not None:
- self.elevation = elevation
- if extra_info is not None:
- self.extra_info = extra_info
- if geometry is not None:
- self.geometry = geometry
- if geometry_simplify is not None:
- self.geometry_simplify = geometry_simplify
- if id is not None:
- self.id = id
- if ignore_transfers is not None:
- self.ignore_transfers = ignore_transfers
- if instructions is not None:
- self.instructions = instructions
- if instructions_format is not None:
- self.instructions_format = instructions_format
- if language is not None:
- self.language = language
- if maneuvers is not None:
- self.maneuvers = maneuvers
- if maximum_speed is not None:
- self.maximum_speed = maximum_speed
- if options is not None:
- self.options = options
- if preference is not None:
- self.preference = preference
- if radiuses is not None:
- self.radiuses = radiuses
- if roundabout_exits is not None:
- self.roundabout_exits = roundabout_exits
- if schedule is not None:
- self.schedule = schedule
- if schedule_duration is not None:
- self.schedule_duration = schedule_duration
- if schedule_rows is not None:
- self.schedule_rows = schedule_rows
- if skip_segments is not None:
- self.skip_segments = skip_segments
- if suppress_warnings is not None:
- self.suppress_warnings = suppress_warnings
- if units is not None:
- self.units = units
- if walking_time is not None:
- self.walking_time = walking_time
-
- @property
- def alternative_routes(self):
- """Gets the alternative_routes of this DirectionsService1. # noqa: E501
-
-
- :return: The alternative_routes of this DirectionsService1. # noqa: E501
- :rtype: AlternativeRoutes
- """
- return self._alternative_routes
-
- @alternative_routes.setter
- def alternative_routes(self, alternative_routes):
- """Sets the alternative_routes of this DirectionsService1.
-
-
- :param alternative_routes: The alternative_routes of this DirectionsService1. # noqa: E501
- :type: AlternativeRoutes
- """
-
- self._alternative_routes = alternative_routes
-
- @property
- def attributes(self):
- """Gets the attributes of this DirectionsService1. # noqa: E501
-
- List of route attributes # noqa: E501
-
- :return: The attributes of this DirectionsService1. # noqa: E501
- :rtype: list[str]
- """
- return self._attributes
-
- @attributes.setter
- def attributes(self, attributes):
- """Sets the attributes of this DirectionsService1.
-
- List of route attributes # noqa: E501
-
- :param attributes: The attributes of this DirectionsService1. # noqa: E501
- :type: list[str]
- """
- allowed_values = ["avgspeed", "detourfactor", "percentage"] # noqa: E501
- if not set(attributes).issubset(set(allowed_values)):
- raise ValueError(
- "Invalid values for `attributes` [{0}], must be a subset of [{1}]" # noqa: E501
- .format(", ".join(map(str, set(attributes) - set(allowed_values))), # noqa: E501
- ", ".join(map(str, allowed_values)))
- )
-
- self._attributes = attributes
-
- @property
- def bearings(self):
- """Gets the bearings of this DirectionsService1. # noqa: E501
-
- 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]`. # noqa: E501
-
- :return: The bearings of this DirectionsService1. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._bearings
-
- @bearings.setter
- def bearings(self, bearings):
- """Sets the bearings of this DirectionsService1.
-
- 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]`. # noqa: E501
-
- :param bearings: The bearings of this DirectionsService1. # noqa: E501
- :type: list[list[float]]
- """
-
- self._bearings = bearings
-
- @property
- def continue_straight(self):
- """Gets the continue_straight of this DirectionsService1. # noqa: E501
-
- Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
-
- :return: The continue_straight of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._continue_straight
-
- @continue_straight.setter
- def continue_straight(self, continue_straight):
- """Sets the continue_straight of this DirectionsService1.
-
- Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
-
- :param continue_straight: The continue_straight of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._continue_straight = continue_straight
-
- @property
- def coordinates(self):
- """Gets the coordinates of this DirectionsService1. # noqa: E501
-
- The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
-
- :return: The coordinates of this DirectionsService1. # noqa: E501
- :rtype: list[list[float]]
- """
- return self._coordinates
-
- @coordinates.setter
- def coordinates(self, coordinates):
- """Sets the coordinates of this DirectionsService1.
-
- The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
-
- :param coordinates: The coordinates of this DirectionsService1. # noqa: E501
- :type: list[list[float]]
- """
- if coordinates is None:
- raise ValueError("Invalid value for `coordinates`, must not be `None`") # noqa: E501
-
- self._coordinates = coordinates
-
- @property
- def elevation(self):
- """Gets the elevation of this DirectionsService1. # noqa: E501
-
- Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
-
- :return: The elevation of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._elevation
-
- @elevation.setter
- def elevation(self, elevation):
- """Sets the elevation of this DirectionsService1.
-
- Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
-
- :param elevation: The elevation of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._elevation = elevation
-
- @property
- def extra_info(self):
- """Gets the extra_info of this DirectionsService1. # noqa: E501
-
- The extra info items to include in the response # noqa: E501
-
- :return: The extra_info of this DirectionsService1. # noqa: E501
- :rtype: list[str]
- """
- return self._extra_info
-
- @extra_info.setter
- def extra_info(self, extra_info):
- """Sets the extra_info of this DirectionsService1.
-
- The extra info items to include in the response # noqa: E501
-
- :param extra_info: The extra_info of this DirectionsService1. # noqa: E501
- :type: list[str]
- """
- allowed_values = ["steepness", "suitability", "surface", "waycategory", "waytype", "tollways", "traildifficulty", "osmid", "roadaccessrestrictions", "countryinfo", "green", "noise", "csv", "shadow"] # noqa: E501
- if not set(extra_info).issubset(set(allowed_values)):
- raise ValueError(
- "Invalid values for `extra_info` [{0}], must be a subset of [{1}]" # noqa: E501
- .format(", ".join(map(str, set(extra_info) - set(allowed_values))), # noqa: E501
- ", ".join(map(str, allowed_values)))
- )
-
- self._extra_info = extra_info
-
- @property
- def geometry(self):
- """Gets the geometry of this DirectionsService1. # noqa: E501
-
- Specifies whether to return geometry. # noqa: E501
-
- :return: The geometry of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._geometry
-
- @geometry.setter
- def geometry(self, geometry):
- """Sets the geometry of this DirectionsService1.
-
- Specifies whether to return geometry. # noqa: E501
-
- :param geometry: The geometry of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._geometry = geometry
-
- @property
- def geometry_simplify(self):
- """Gets the geometry_simplify of this DirectionsService1. # noqa: E501
-
- Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
-
- :return: The geometry_simplify of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._geometry_simplify
-
- @geometry_simplify.setter
- def geometry_simplify(self, geometry_simplify):
- """Sets the geometry_simplify of this DirectionsService1.
-
- Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
-
- :param geometry_simplify: The geometry_simplify of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._geometry_simplify = geometry_simplify
-
- @property
- def id(self):
- """Gets the id of this DirectionsService1. # noqa: E501
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :return: The id of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._id
-
- @id.setter
- def id(self, id):
- """Sets the id of this DirectionsService1.
-
- Arbitrary identification string of the request reflected in the meta information. # noqa: E501
-
- :param id: The id of this DirectionsService1. # noqa: E501
- :type: str
- """
-
- self._id = id
-
- @property
- def ignore_transfers(self):
- """Gets the ignore_transfers of this DirectionsService1. # noqa: E501
-
- Specifies if transfers as criterion should be ignored. # noqa: E501
-
- :return: The ignore_transfers of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._ignore_transfers
-
- @ignore_transfers.setter
- def ignore_transfers(self, ignore_transfers):
- """Sets the ignore_transfers of this DirectionsService1.
-
- Specifies if transfers as criterion should be ignored. # noqa: E501
-
- :param ignore_transfers: The ignore_transfers of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._ignore_transfers = ignore_transfers
-
- @property
- def instructions(self):
- """Gets the instructions of this DirectionsService1. # noqa: E501
-
- Specifies whether to return instructions. # noqa: E501
-
- :return: The instructions of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._instructions
-
- @instructions.setter
- def instructions(self, instructions):
- """Sets the instructions of this DirectionsService1.
-
- Specifies whether to return instructions. # noqa: E501
-
- :param instructions: The instructions of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._instructions = instructions
-
- @property
- def instructions_format(self):
- """Gets the instructions_format of this DirectionsService1. # noqa: E501
-
- Select html for more verbose instructions. # noqa: E501
-
- :return: The instructions_format of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._instructions_format
-
- @instructions_format.setter
- def instructions_format(self, instructions_format):
- """Sets the instructions_format of this DirectionsService1.
-
- Select html for more verbose instructions. # noqa: E501
-
- :param instructions_format: The instructions_format of this DirectionsService1. # noqa: E501
- :type: str
- """
- allowed_values = ["html", "text"] # noqa: E501
- if instructions_format not in allowed_values:
- raise ValueError(
- "Invalid value for `instructions_format` ({0}), must be one of {1}" # noqa: E501
- .format(instructions_format, allowed_values)
- )
-
- self._instructions_format = instructions_format
-
- @property
- def language(self):
- """Gets the language of this DirectionsService1. # noqa: E501
-
- Language for the route instructions. # noqa: E501
-
- :return: The language of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._language
-
- @language.setter
- def language(self, language):
- """Sets the language of this DirectionsService1.
-
- Language for the route instructions. # noqa: E501
-
- :param language: The language of this DirectionsService1. # noqa: E501
- :type: str
- """
- allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
- if language not in allowed_values:
- raise ValueError(
- "Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
- .format(language, allowed_values)
- )
-
- self._language = language
-
- @property
- def maneuvers(self):
- """Gets the maneuvers of this DirectionsService1. # noqa: E501
-
- Specifies whether the maneuver object is included into the step object or not. # noqa: E501
-
- :return: The maneuvers of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._maneuvers
-
- @maneuvers.setter
- def maneuvers(self, maneuvers):
- """Sets the maneuvers of this DirectionsService1.
-
- Specifies whether the maneuver object is included into the step object or not. # noqa: E501
-
- :param maneuvers: The maneuvers of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._maneuvers = maneuvers
-
- @property
- def maximum_speed(self):
- """Gets the maximum_speed of this DirectionsService1. # noqa: E501
-
- The maximum speed specified by user. # noqa: E501
-
- :return: The maximum_speed of this DirectionsService1. # noqa: E501
- :rtype: float
- """
- return self._maximum_speed
-
- @maximum_speed.setter
- def maximum_speed(self, maximum_speed):
- """Sets the maximum_speed of this DirectionsService1.
-
- The maximum speed specified by user. # noqa: E501
-
- :param maximum_speed: The maximum_speed of this DirectionsService1. # noqa: E501
- :type: float
- """
-
- self._maximum_speed = maximum_speed
-
- @property
- def options(self):
- """Gets the options of this DirectionsService1. # noqa: E501
-
-
- :return: The options of this DirectionsService1. # noqa: E501
- :rtype: RouteOptions
- """
- return self._options
-
- @options.setter
- def options(self, options):
- """Sets the options of this DirectionsService1.
-
-
- :param options: The options of this DirectionsService1. # noqa: E501
- :type: RouteOptions
- """
-
- self._options = options
-
- @property
- def preference(self):
- """Gets the preference of this DirectionsService1. # noqa: E501
-
- Specifies the route preference # noqa: E501
-
- :return: The preference of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._preference
-
- @preference.setter
- def preference(self, preference):
- """Sets the preference of this DirectionsService1.
-
- Specifies the route preference # noqa: E501
-
- :param preference: The preference of this DirectionsService1. # noqa: E501
- :type: str
- """
- allowed_values = ["fastest", "shortest", "recommended"] # noqa: E501
- if preference not in allowed_values:
- raise ValueError(
- "Invalid value for `preference` ({0}), must be one of {1}" # noqa: E501
- .format(preference, allowed_values)
- )
-
- self._preference = preference
-
- @property
- def radiuses(self):
- """Gets the radiuses of this DirectionsService1. # noqa: E501
-
- 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. # noqa: E501
-
- :return: The radiuses of this DirectionsService1. # noqa: E501
- :rtype: list[float]
- """
- return self._radiuses
-
- @radiuses.setter
- def radiuses(self, radiuses):
- """Sets the radiuses of this DirectionsService1.
-
- 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. # noqa: E501
-
- :param radiuses: The radiuses of this DirectionsService1. # noqa: E501
- :type: list[float]
- """
-
- self._radiuses = radiuses
-
- @property
- def roundabout_exits(self):
- """Gets the roundabout_exits of this DirectionsService1. # noqa: E501
-
- Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
-
- :return: The roundabout_exits of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._roundabout_exits
-
- @roundabout_exits.setter
- def roundabout_exits(self, roundabout_exits):
- """Sets the roundabout_exits of this DirectionsService1.
-
- Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
-
- :param roundabout_exits: The roundabout_exits of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._roundabout_exits = roundabout_exits
-
- @property
- def schedule(self):
- """Gets the schedule of this DirectionsService1. # noqa: E501
-
- If true, return a public transport schedule starting at for the next minutes. # noqa: E501
-
- :return: The schedule of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._schedule
-
- @schedule.setter
- def schedule(self, schedule):
- """Sets the schedule of this DirectionsService1.
-
- If true, return a public transport schedule starting at for the next minutes. # noqa: E501
-
- :param schedule: The schedule of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._schedule = schedule
-
- @property
- def schedule_duration(self):
- """Gets the schedule_duration of this DirectionsService1. # noqa: E501
-
- 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 # noqa: E501
-
- :return: The schedule_duration of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._schedule_duration
-
- @schedule_duration.setter
- def schedule_duration(self, schedule_duration):
- """Sets the schedule_duration of this DirectionsService1.
-
- 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 # noqa: E501
-
- :param schedule_duration: The schedule_duration of this DirectionsService1. # noqa: E501
- :type: str
- """
-
- self._schedule_duration = schedule_duration
-
- @property
- def schedule_rows(self):
- """Gets the schedule_rows of this DirectionsService1. # noqa: E501
-
- The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
-
- :return: The schedule_rows of this DirectionsService1. # noqa: E501
- :rtype: int
- """
- return self._schedule_rows
-
- @schedule_rows.setter
- def schedule_rows(self, schedule_rows):
- """Sets the schedule_rows of this DirectionsService1.
-
- The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
-
- :param schedule_rows: The schedule_rows of this DirectionsService1. # noqa: E501
- :type: int
- """
-
- self._schedule_rows = schedule_rows
-
- @property
- def skip_segments(self):
- """Gets the skip_segments of this DirectionsService1. # noqa: E501
-
- 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. # noqa: E501
-
- :return: The skip_segments of this DirectionsService1. # noqa: E501
- :rtype: list[int]
- """
- return self._skip_segments
-
- @skip_segments.setter
- def skip_segments(self, skip_segments):
- """Sets the skip_segments of this DirectionsService1.
-
- 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. # noqa: E501
-
- :param skip_segments: The skip_segments of this DirectionsService1. # noqa: E501
- :type: list[int]
- """
-
- self._skip_segments = skip_segments
-
- @property
- def suppress_warnings(self):
- """Gets the suppress_warnings of this DirectionsService1. # noqa: E501
-
- Suppress warning messages in the response # noqa: E501
-
- :return: The suppress_warnings of this DirectionsService1. # noqa: E501
- :rtype: bool
- """
- return self._suppress_warnings
-
- @suppress_warnings.setter
- def suppress_warnings(self, suppress_warnings):
- """Sets the suppress_warnings of this DirectionsService1.
-
- Suppress warning messages in the response # noqa: E501
-
- :param suppress_warnings: The suppress_warnings of this DirectionsService1. # noqa: E501
- :type: bool
- """
-
- self._suppress_warnings = suppress_warnings
-
- @property
- def units(self):
- """Gets the units of this DirectionsService1. # noqa: E501
-
- Specifies the distance unit. # noqa: E501
-
- :return: The units of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._units
-
- @units.setter
- def units(self, units):
- """Sets the units of this DirectionsService1.
-
- Specifies the distance unit. # noqa: E501
-
- :param units: The units of this DirectionsService1. # noqa: E501
- :type: str
- """
- allowed_values = ["m", "km", "mi"] # noqa: E501
- if units not in allowed_values:
- raise ValueError(
- "Invalid value for `units` ({0}), must be one of {1}" # noqa: E501
- .format(units, allowed_values)
- )
-
- self._units = units
-
- @property
- def walking_time(self):
- """Gets the walking_time of this DirectionsService1. # noqa: E501
-
- 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 # noqa: E501
-
- :return: The walking_time of this DirectionsService1. # noqa: E501
- :rtype: str
- """
- return self._walking_time
-
- @walking_time.setter
- def walking_time(self, walking_time):
- """Sets the walking_time of this DirectionsService1.
-
- 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 # noqa: E501
-
- :param walking_time: The walking_time of this DirectionsService1. # noqa: E501
- :type: str
- """
-
- self._walking_time = walking_time
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.swagger_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
- if issubclass(DirectionsService1, dict):
- for key, value in self.items():
- result[key] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, DirectionsService1):
- return False
-
- return self.__dict__ == other.__dict__
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- return not self == other
diff --git a/openrouteservice/models/directions_service.py b/openrouteservice/models/directions_service_body.py
similarity index 81%
rename from openrouteservice/models/directions_service.py
rename to openrouteservice/models/directions_service_body.py
index 28488572..f553d2cd 100644
--- a/openrouteservice/models/directions_service.py
+++ b/openrouteservice/models/directions_service_body.py
@@ -15,7 +15,7 @@
import six
-class DirectionsService(object):
+class DirectionsServiceBody(object):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
@@ -88,7 +88,7 @@ class DirectionsService(object):
}
def __init__(self, alternative_routes=None, attributes=None, bearings=None, continue_straight=False, coordinates=None, elevation=None, extra_info=None, geometry=True, geometry_simplify=False, id=None, ignore_transfers=False, instructions=True, instructions_format='text', language='en', maneuvers=False, maximum_speed=None, options=None, preference='recommended', radiuses=None, roundabout_exits=False, schedule=False, schedule_duration=None, schedule_rows=None, skip_segments=None, suppress_warnings=None, units='m', walking_time='PT15M'): # noqa: E501
- """DirectionsService - a model defined in Swagger""" # noqa: E501
+ """DirectionsServiceBody - a model defined in Swagger""" # noqa: E501
self._alternative_routes = None
self._attributes = None
self._bearings = None
@@ -173,20 +173,20 @@ def __init__(self, alternative_routes=None, attributes=None, bearings=None, cont
@property
def alternative_routes(self):
- """Gets the alternative_routes of this DirectionsService. # noqa: E501
+ """Gets the alternative_routes of this DirectionsServiceBody. # noqa: E501
- :return: The alternative_routes of this DirectionsService. # noqa: E501
+ :return: The alternative_routes of this DirectionsServiceBody. # noqa: E501
:rtype: AlternativeRoutes
"""
return self._alternative_routes
@alternative_routes.setter
def alternative_routes(self, alternative_routes):
- """Sets the alternative_routes of this DirectionsService.
+ """Sets the alternative_routes of this DirectionsServiceBody.
- :param alternative_routes: The alternative_routes of this DirectionsService. # noqa: E501
+ :param alternative_routes: The alternative_routes of this DirectionsServiceBody. # noqa: E501
:type: AlternativeRoutes
"""
@@ -194,22 +194,22 @@ def alternative_routes(self, alternative_routes):
@property
def attributes(self):
- """Gets the attributes of this DirectionsService. # noqa: E501
+ """Gets the attributes of this DirectionsServiceBody. # noqa: E501
List of route attributes # noqa: E501
- :return: The attributes of this DirectionsService. # noqa: E501
+ :return: The attributes of this DirectionsServiceBody. # noqa: E501
:rtype: list[str]
"""
return self._attributes
@attributes.setter
def attributes(self, attributes):
- """Sets the attributes of this DirectionsService.
+ """Sets the attributes of this DirectionsServiceBody.
List of route attributes # noqa: E501
- :param attributes: The attributes of this DirectionsService. # noqa: E501
+ :param attributes: The attributes of this DirectionsServiceBody. # noqa: E501
:type: list[str]
"""
allowed_values = ["avgspeed", "detourfactor", "percentage"] # noqa: E501
@@ -224,22 +224,22 @@ def attributes(self, attributes):
@property
def bearings(self):
- """Gets the bearings of this DirectionsService. # noqa: E501
+ """Gets the bearings of this DirectionsServiceBody. # noqa: E501
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]`. # noqa: E501
- :return: The bearings of this DirectionsService. # noqa: E501
+ :return: The bearings of this DirectionsServiceBody. # noqa: E501
:rtype: list[list[float]]
"""
return self._bearings
@bearings.setter
def bearings(self, bearings):
- """Sets the bearings of this DirectionsService.
+ """Sets the bearings of this DirectionsServiceBody.
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]`. # noqa: E501
- :param bearings: The bearings of this DirectionsService. # noqa: E501
+ :param bearings: The bearings of this DirectionsServiceBody. # noqa: E501
:type: list[list[float]]
"""
@@ -247,22 +247,22 @@ def bearings(self, bearings):
@property
def continue_straight(self):
- """Gets the continue_straight of this DirectionsService. # noqa: E501
+ """Gets the continue_straight of this DirectionsServiceBody. # noqa: E501
Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
- :return: The continue_straight of this DirectionsService. # noqa: E501
+ :return: The continue_straight of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._continue_straight
@continue_straight.setter
def continue_straight(self, continue_straight):
- """Sets the continue_straight of this DirectionsService.
+ """Sets the continue_straight of this DirectionsServiceBody.
Forces the route to keep going straight at waypoints restricting uturns there even if it would be faster. # noqa: E501
- :param continue_straight: The continue_straight of this DirectionsService. # noqa: E501
+ :param continue_straight: The continue_straight of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -270,22 +270,22 @@ def continue_straight(self, continue_straight):
@property
def coordinates(self):
- """Gets the coordinates of this DirectionsService. # noqa: E501
+ """Gets the coordinates of this DirectionsServiceBody. # noqa: E501
The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
- :return: The coordinates of this DirectionsService. # noqa: E501
+ :return: The coordinates of this DirectionsServiceBody. # noqa: E501
:rtype: list[list[float]]
"""
return self._coordinates
@coordinates.setter
def coordinates(self, coordinates):
- """Sets the coordinates of this DirectionsService.
+ """Sets the coordinates of this DirectionsServiceBody.
The waypoints to use for the route as an array of `longitude/latitude` pairs in WGS 84 (EPSG:4326) # noqa: E501
- :param coordinates: The coordinates of this DirectionsService. # noqa: E501
+ :param coordinates: The coordinates of this DirectionsServiceBody. # noqa: E501
:type: list[list[float]]
"""
if coordinates is None:
@@ -295,22 +295,22 @@ def coordinates(self, coordinates):
@property
def elevation(self):
- """Gets the elevation of this DirectionsService. # noqa: E501
+ """Gets the elevation of this DirectionsServiceBody. # noqa: E501
Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
- :return: The elevation of this DirectionsService. # noqa: E501
+ :return: The elevation of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._elevation
@elevation.setter
def elevation(self, elevation):
- """Sets the elevation of this DirectionsService.
+ """Sets the elevation of this DirectionsServiceBody.
Specifies whether to return elevation values for points. Please note that elevation also gets encoded for json response encoded polyline. # noqa: E501
- :param elevation: The elevation of this DirectionsService. # noqa: E501
+ :param elevation: The elevation of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -318,22 +318,22 @@ def elevation(self, elevation):
@property
def extra_info(self):
- """Gets the extra_info of this DirectionsService. # noqa: E501
+ """Gets the extra_info of this DirectionsServiceBody. # noqa: E501
The extra info items to include in the response # noqa: E501
- :return: The extra_info of this DirectionsService. # noqa: E501
+ :return: The extra_info of this DirectionsServiceBody. # noqa: E501
:rtype: list[str]
"""
return self._extra_info
@extra_info.setter
def extra_info(self, extra_info):
- """Sets the extra_info of this DirectionsService.
+ """Sets the extra_info of this DirectionsServiceBody.
The extra info items to include in the response # noqa: E501
- :param extra_info: The extra_info of this DirectionsService. # noqa: E501
+ :param extra_info: The extra_info of this DirectionsServiceBody. # noqa: E501
:type: list[str]
"""
allowed_values = ["steepness", "suitability", "surface", "waycategory", "waytype", "tollways", "traildifficulty", "osmid", "roadaccessrestrictions", "countryinfo", "green", "noise", "csv", "shadow"] # noqa: E501
@@ -348,22 +348,22 @@ def extra_info(self, extra_info):
@property
def geometry(self):
- """Gets the geometry of this DirectionsService. # noqa: E501
+ """Gets the geometry of this DirectionsServiceBody. # noqa: E501
Specifies whether to return geometry. # noqa: E501
- :return: The geometry of this DirectionsService. # noqa: E501
+ :return: The geometry of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._geometry
@geometry.setter
def geometry(self, geometry):
- """Sets the geometry of this DirectionsService.
+ """Sets the geometry of this DirectionsServiceBody.
Specifies whether to return geometry. # noqa: E501
- :param geometry: The geometry of this DirectionsService. # noqa: E501
+ :param geometry: The geometry of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -371,22 +371,22 @@ def geometry(self, geometry):
@property
def geometry_simplify(self):
- """Gets the geometry_simplify of this DirectionsService. # noqa: E501
+ """Gets the geometry_simplify of this DirectionsServiceBody. # noqa: E501
Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
- :return: The geometry_simplify of this DirectionsService. # noqa: E501
+ :return: The geometry_simplify of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._geometry_simplify
@geometry_simplify.setter
def geometry_simplify(self, geometry_simplify):
- """Sets the geometry_simplify of this DirectionsService.
+ """Sets the geometry_simplify of this DirectionsServiceBody.
Specifies whether to simplify the geometry. Simplify geometry cannot be applied to routes with more than **one segment** and when `extra_info` is required. # noqa: E501
- :param geometry_simplify: The geometry_simplify of this DirectionsService. # noqa: E501
+ :param geometry_simplify: The geometry_simplify of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -394,22 +394,22 @@ def geometry_simplify(self, geometry_simplify):
@property
def id(self):
- """Gets the id of this DirectionsService. # noqa: E501
+ """Gets the id of this DirectionsServiceBody. # noqa: E501
Arbitrary identification string of the request reflected in the meta information. # noqa: E501
- :return: The id of this DirectionsService. # noqa: E501
+ :return: The id of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
- """Sets the id of this DirectionsService.
+ """Sets the id of this DirectionsServiceBody.
Arbitrary identification string of the request reflected in the meta information. # noqa: E501
- :param id: The id of this DirectionsService. # noqa: E501
+ :param id: The id of this DirectionsServiceBody. # noqa: E501
:type: str
"""
@@ -417,22 +417,22 @@ def id(self, id):
@property
def ignore_transfers(self):
- """Gets the ignore_transfers of this DirectionsService. # noqa: E501
+ """Gets the ignore_transfers of this DirectionsServiceBody. # noqa: E501
Specifies if transfers as criterion should be ignored. # noqa: E501
- :return: The ignore_transfers of this DirectionsService. # noqa: E501
+ :return: The ignore_transfers of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._ignore_transfers
@ignore_transfers.setter
def ignore_transfers(self, ignore_transfers):
- """Sets the ignore_transfers of this DirectionsService.
+ """Sets the ignore_transfers of this DirectionsServiceBody.
Specifies if transfers as criterion should be ignored. # noqa: E501
- :param ignore_transfers: The ignore_transfers of this DirectionsService. # noqa: E501
+ :param ignore_transfers: The ignore_transfers of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -440,22 +440,22 @@ def ignore_transfers(self, ignore_transfers):
@property
def instructions(self):
- """Gets the instructions of this DirectionsService. # noqa: E501
+ """Gets the instructions of this DirectionsServiceBody. # noqa: E501
Specifies whether to return instructions. # noqa: E501
- :return: The instructions of this DirectionsService. # noqa: E501
+ :return: The instructions of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._instructions
@instructions.setter
def instructions(self, instructions):
- """Sets the instructions of this DirectionsService.
+ """Sets the instructions of this DirectionsServiceBody.
Specifies whether to return instructions. # noqa: E501
- :param instructions: The instructions of this DirectionsService. # noqa: E501
+ :param instructions: The instructions of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -463,22 +463,22 @@ def instructions(self, instructions):
@property
def instructions_format(self):
- """Gets the instructions_format of this DirectionsService. # noqa: E501
+ """Gets the instructions_format of this DirectionsServiceBody. # noqa: E501
Select html for more verbose instructions. # noqa: E501
- :return: The instructions_format of this DirectionsService. # noqa: E501
+ :return: The instructions_format of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._instructions_format
@instructions_format.setter
def instructions_format(self, instructions_format):
- """Sets the instructions_format of this DirectionsService.
+ """Sets the instructions_format of this DirectionsServiceBody.
Select html for more verbose instructions. # noqa: E501
- :param instructions_format: The instructions_format of this DirectionsService. # noqa: E501
+ :param instructions_format: The instructions_format of this DirectionsServiceBody. # noqa: E501
:type: str
"""
allowed_values = ["html", "text"] # noqa: E501
@@ -492,22 +492,22 @@ def instructions_format(self, instructions_format):
@property
def language(self):
- """Gets the language of this DirectionsService. # noqa: E501
+ """Gets the language of this DirectionsServiceBody. # noqa: E501
Language for the route instructions. # noqa: E501
- :return: The language of this DirectionsService. # noqa: E501
+ :return: The language of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._language
@language.setter
def language(self, language):
- """Sets the language of this DirectionsService.
+ """Sets the language of this DirectionsServiceBody.
Language for the route instructions. # noqa: E501
- :param language: The language of this DirectionsService. # noqa: E501
+ :param language: The language of this DirectionsServiceBody. # noqa: E501
:type: str
"""
allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
@@ -521,22 +521,22 @@ def language(self, language):
@property
def maneuvers(self):
- """Gets the maneuvers of this DirectionsService. # noqa: E501
+ """Gets the maneuvers of this DirectionsServiceBody. # noqa: E501
Specifies whether the maneuver object is included into the step object or not. # noqa: E501
- :return: The maneuvers of this DirectionsService. # noqa: E501
+ :return: The maneuvers of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._maneuvers
@maneuvers.setter
def maneuvers(self, maneuvers):
- """Sets the maneuvers of this DirectionsService.
+ """Sets the maneuvers of this DirectionsServiceBody.
Specifies whether the maneuver object is included into the step object or not. # noqa: E501
- :param maneuvers: The maneuvers of this DirectionsService. # noqa: E501
+ :param maneuvers: The maneuvers of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -544,22 +544,22 @@ def maneuvers(self, maneuvers):
@property
def maximum_speed(self):
- """Gets the maximum_speed of this DirectionsService. # noqa: E501
+ """Gets the maximum_speed of this DirectionsServiceBody. # noqa: E501
The maximum speed specified by user. # noqa: E501
- :return: The maximum_speed of this DirectionsService. # noqa: E501
+ :return: The maximum_speed of this DirectionsServiceBody. # noqa: E501
:rtype: float
"""
return self._maximum_speed
@maximum_speed.setter
def maximum_speed(self, maximum_speed):
- """Sets the maximum_speed of this DirectionsService.
+ """Sets the maximum_speed of this DirectionsServiceBody.
The maximum speed specified by user. # noqa: E501
- :param maximum_speed: The maximum_speed of this DirectionsService. # noqa: E501
+ :param maximum_speed: The maximum_speed of this DirectionsServiceBody. # noqa: E501
:type: float
"""
@@ -567,20 +567,20 @@ def maximum_speed(self, maximum_speed):
@property
def options(self):
- """Gets the options of this DirectionsService. # noqa: E501
+ """Gets the options of this DirectionsServiceBody. # noqa: E501
- :return: The options of this DirectionsService. # noqa: E501
+ :return: The options of this DirectionsServiceBody. # noqa: E501
:rtype: RouteOptions
"""
return self._options
@options.setter
def options(self, options):
- """Sets the options of this DirectionsService.
+ """Sets the options of this DirectionsServiceBody.
- :param options: The options of this DirectionsService. # noqa: E501
+ :param options: The options of this DirectionsServiceBody. # noqa: E501
:type: RouteOptions
"""
@@ -588,22 +588,22 @@ def options(self, options):
@property
def preference(self):
- """Gets the preference of this DirectionsService. # noqa: E501
+ """Gets the preference of this DirectionsServiceBody. # noqa: E501
Specifies the route preference # noqa: E501
- :return: The preference of this DirectionsService. # noqa: E501
+ :return: The preference of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._preference
@preference.setter
def preference(self, preference):
- """Sets the preference of this DirectionsService.
+ """Sets the preference of this DirectionsServiceBody.
Specifies the route preference # noqa: E501
- :param preference: The preference of this DirectionsService. # noqa: E501
+ :param preference: The preference of this DirectionsServiceBody. # noqa: E501
:type: str
"""
allowed_values = ["fastest", "shortest", "recommended"] # noqa: E501
@@ -617,22 +617,22 @@ def preference(self, preference):
@property
def radiuses(self):
- """Gets the radiuses of this DirectionsService. # noqa: E501
+ """Gets the radiuses of this DirectionsServiceBody. # noqa: E501
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. # noqa: E501
- :return: The radiuses of this DirectionsService. # noqa: E501
+ :return: The radiuses of this DirectionsServiceBody. # noqa: E501
:rtype: list[float]
"""
return self._radiuses
@radiuses.setter
def radiuses(self, radiuses):
- """Sets the radiuses of this DirectionsService.
+ """Sets the radiuses of this DirectionsServiceBody.
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. # noqa: E501
- :param radiuses: The radiuses of this DirectionsService. # noqa: E501
+ :param radiuses: The radiuses of this DirectionsServiceBody. # noqa: E501
:type: list[float]
"""
@@ -640,22 +640,22 @@ def radiuses(self, radiuses):
@property
def roundabout_exits(self):
- """Gets the roundabout_exits of this DirectionsService. # noqa: E501
+ """Gets the roundabout_exits of this DirectionsServiceBody. # noqa: E501
Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
- :return: The roundabout_exits of this DirectionsService. # noqa: E501
+ :return: The roundabout_exits of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._roundabout_exits
@roundabout_exits.setter
def roundabout_exits(self, roundabout_exits):
- """Sets the roundabout_exits of this DirectionsService.
+ """Sets the roundabout_exits of this DirectionsServiceBody.
Provides bearings of the entrance and all passed roundabout exits. Adds the `exit_bearings` array to the step object in the response. # noqa: E501
- :param roundabout_exits: The roundabout_exits of this DirectionsService. # noqa: E501
+ :param roundabout_exits: The roundabout_exits of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -663,22 +663,22 @@ def roundabout_exits(self, roundabout_exits):
@property
def schedule(self):
- """Gets the schedule of this DirectionsService. # noqa: E501
+ """Gets the schedule of this DirectionsServiceBody. # noqa: E501
If true, return a public transport schedule starting at for the next minutes. # noqa: E501
- :return: The schedule of this DirectionsService. # noqa: E501
+ :return: The schedule of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._schedule
@schedule.setter
def schedule(self, schedule):
- """Sets the schedule of this DirectionsService.
+ """Sets the schedule of this DirectionsServiceBody.
If true, return a public transport schedule starting at for the next minutes. # noqa: E501
- :param schedule: The schedule of this DirectionsService. # noqa: E501
+ :param schedule: The schedule of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -686,22 +686,22 @@ def schedule(self, schedule):
@property
def schedule_duration(self):
- """Gets the schedule_duration of this DirectionsService. # noqa: E501
+ """Gets the schedule_duration of this DirectionsServiceBody. # noqa: E501
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 # noqa: E501
- :return: The schedule_duration of this DirectionsService. # noqa: E501
+ :return: The schedule_duration of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._schedule_duration
@schedule_duration.setter
def schedule_duration(self, schedule_duration):
- """Sets the schedule_duration of this DirectionsService.
+ """Sets the schedule_duration of this DirectionsServiceBody.
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 # noqa: E501
- :param schedule_duration: The schedule_duration of this DirectionsService. # noqa: E501
+ :param schedule_duration: The schedule_duration of this DirectionsServiceBody. # noqa: E501
:type: str
"""
@@ -709,22 +709,22 @@ def schedule_duration(self, schedule_duration):
@property
def schedule_rows(self):
- """Gets the schedule_rows of this DirectionsService. # noqa: E501
+ """Gets the schedule_rows of this DirectionsServiceBody. # noqa: E501
The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
- :return: The schedule_rows of this DirectionsService. # noqa: E501
+ :return: The schedule_rows of this DirectionsServiceBody. # noqa: E501
:rtype: int
"""
return self._schedule_rows
@schedule_rows.setter
def schedule_rows(self, schedule_rows):
- """Sets the schedule_rows of this DirectionsService.
+ """Sets the schedule_rows of this DirectionsServiceBody.
The maximum amount of entries that should be returned when requesting a schedule. # noqa: E501
- :param schedule_rows: The schedule_rows of this DirectionsService. # noqa: E501
+ :param schedule_rows: The schedule_rows of this DirectionsServiceBody. # noqa: E501
:type: int
"""
@@ -732,22 +732,22 @@ def schedule_rows(self, schedule_rows):
@property
def skip_segments(self):
- """Gets the skip_segments of this DirectionsService. # noqa: E501
+ """Gets the skip_segments of this DirectionsServiceBody. # noqa: E501
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. # noqa: E501
- :return: The skip_segments of this DirectionsService. # noqa: E501
+ :return: The skip_segments of this DirectionsServiceBody. # noqa: E501
:rtype: list[int]
"""
return self._skip_segments
@skip_segments.setter
def skip_segments(self, skip_segments):
- """Sets the skip_segments of this DirectionsService.
+ """Sets the skip_segments of this DirectionsServiceBody.
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. # noqa: E501
- :param skip_segments: The skip_segments of this DirectionsService. # noqa: E501
+ :param skip_segments: The skip_segments of this DirectionsServiceBody. # noqa: E501
:type: list[int]
"""
@@ -755,22 +755,22 @@ def skip_segments(self, skip_segments):
@property
def suppress_warnings(self):
- """Gets the suppress_warnings of this DirectionsService. # noqa: E501
+ """Gets the suppress_warnings of this DirectionsServiceBody. # noqa: E501
Suppress warning messages in the response # noqa: E501
- :return: The suppress_warnings of this DirectionsService. # noqa: E501
+ :return: The suppress_warnings of this DirectionsServiceBody. # noqa: E501
:rtype: bool
"""
return self._suppress_warnings
@suppress_warnings.setter
def suppress_warnings(self, suppress_warnings):
- """Sets the suppress_warnings of this DirectionsService.
+ """Sets the suppress_warnings of this DirectionsServiceBody.
Suppress warning messages in the response # noqa: E501
- :param suppress_warnings: The suppress_warnings of this DirectionsService. # noqa: E501
+ :param suppress_warnings: The suppress_warnings of this DirectionsServiceBody. # noqa: E501
:type: bool
"""
@@ -778,22 +778,22 @@ def suppress_warnings(self, suppress_warnings):
@property
def units(self):
- """Gets the units of this DirectionsService. # noqa: E501
+ """Gets the units of this DirectionsServiceBody. # noqa: E501
Specifies the distance unit. # noqa: E501
- :return: The units of this DirectionsService. # noqa: E501
+ :return: The units of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._units
@units.setter
def units(self, units):
- """Sets the units of this DirectionsService.
+ """Sets the units of this DirectionsServiceBody.
Specifies the distance unit. # noqa: E501
- :param units: The units of this DirectionsService. # noqa: E501
+ :param units: The units of this DirectionsServiceBody. # noqa: E501
:type: str
"""
allowed_values = ["m", "km", "mi"] # noqa: E501
@@ -807,22 +807,22 @@ def units(self, units):
@property
def walking_time(self):
- """Gets the walking_time of this DirectionsService. # noqa: E501
+ """Gets the walking_time of this DirectionsServiceBody. # noqa: E501
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 # noqa: E501
- :return: The walking_time of this DirectionsService. # noqa: E501
+ :return: The walking_time of this DirectionsServiceBody. # noqa: E501
:rtype: str
"""
return self._walking_time
@walking_time.setter
def walking_time(self, walking_time):
- """Sets the walking_time of this DirectionsService.
+ """Sets the walking_time of this DirectionsServiceBody.
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 # noqa: E501
- :param walking_time: The walking_time of this DirectionsService. # noqa: E501
+ :param walking_time: The walking_time of this DirectionsServiceBody. # noqa: E501
:type: str
"""
@@ -849,7 +849,7 @@ def to_dict(self):
))
else:
result[attr] = value
- if issubclass(DirectionsService, dict):
+ if issubclass(DirectionsServiceBody, dict):
for key, value in self.items():
result[key] = value
@@ -865,7 +865,7 @@ def __repr__(self):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, DirectionsService):
+ if not isinstance(other, DirectionsServiceBody):
return False
return self.__dict__ == other.__dict__
diff --git a/pyproject.toml b/pyproject.toml
index fec6eaad..afdbdd1e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "7.1.1.post1"
+version = "7.1.1.post2"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
new file mode 100644
index 00000000..648e0fb1
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,39 @@
+# coding: utf-8
+
+"""
+ Openrouteservice
+
+ This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+
+ OpenAPI spec version: 7.1.1
+ Contact: support@smartmobility.heigit.org
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
+"""
+
+from setuptools import setup, find_packages # noqa: H301
+
+NAME = "openrouteservice"
+VERSION = "7.1.1.post2"
+# To install the library, run the following
+#
+# python setup.py install
+#
+# prerequisite: setuptools
+# http://pypi.python.org/pypi/setuptools
+
+REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"]
+
+setup(
+ name=NAME,
+ version=VERSION,
+ description="Openrouteservice",
+ author_email="support@smartmobility.heigit.org",
+ url="https://openrouteservice.org",
+ keywords=["routing","accessibility","router","OSM","ORS","openrouteservice","openstreetmap","isochrone","POI","elevation","DEM","swagger"],
+ install_requires=REQUIRES,
+ packages=find_packages(),
+ include_package_data=True,
+ long_description="""\
+ Python client for requests to openrouteservice API services
+ """
+)
diff --git a/test/test_directions_service_api.py b/test/test_directions_service_api.py
index e781f65b..4b662cc0 100644
--- a/test/test_directions_service_api.py
+++ b/test/test_directions_service_api.py
@@ -36,7 +36,7 @@ def test_get_geo_json_route(self):
Directions Service GeoJSON # noqa: E501
"""
- body = openrouteservice.DirectionsService(
+ body = openrouteservice.DirectionsServiceBody(
coordinates=[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]]
)
profile = 'driving-car'
@@ -61,7 +61,7 @@ def test_get_json_route(self):
Directions Service JSON # noqa: E501
"""
- body = openrouteservice.DirectionsService1(
+ body = openrouteservice.DirectionsServiceBody(
coordinates=[[8.681495,49.41461],[8.686507,49.41943],[8.687872,49.420318]]
)
profile = 'driving-car'
From d5a7be0cbd9789c8dda7b64b9572478f8dd41eab Mon Sep 17 00:00:00 2001
From: Jakob Stolze
Date: Tue, 2 Apr 2024 14:48:19 +0200
Subject: [PATCH 28/38] test: deploy on testpypi on every commit
---
.github/workflows/ci-test-pypi.yml | 68 ------------------------------
1 file changed, 68 deletions(-)
delete mode 100644 .github/workflows/ci-test-pypi.yml
diff --git a/.github/workflows/ci-test-pypi.yml b/.github/workflows/ci-test-pypi.yml
deleted file mode 100644
index c4eceede..00000000
--- a/.github/workflows/ci-test-pypi.yml
+++ /dev/null
@@ -1,68 +0,0 @@
-name: Test and deploy to TestPyPI | generated-client branch
-
-on:
- push:
- branches:
- - generated-client
-
-jobs:
- pytest:
- strategy:
- fail-fast: false
- matrix:
- config:
- - python-version: '3.11'
- tox: py311
- poetry-version: [ "1.8.2" ]
- os: [ ubuntu-22.04, macos-latest, windows-latest ]
- runs-on: ${{ matrix.os }}
- name: Python ${{ matrix.config.python-version }} / Poetry ${{ matrix.poetry-version }} / ${{ matrix.os }}
- defaults:
- run:
- shell: bash
- steps:
- - uses: actions/checkout@v4
- with:
- fetch-depth: 0
- - name: Install poetry
- run: pipx install poetry
- - name: Install Python ${{ matrix.config.python-version }}
- uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.config.python-version }}
- cache: 'poetry'
- - name: Install packages
- run: poetry install --no-root
- - name: Load cached tox
- uses: actions/cache@v3
- with:
- path: .tox
- key: tox-${{ matrix.os }}-poetry-${{ matrix.poetry-version }}-python-${{ matrix.config.python-version }}-${{ hashFiles('**/poetry.lock') }}
- - name: Setup API Key
- env:
- ORS_API_KEY: ${{ secrets.ORS_API_KEY }}
- run: printf "[ORS]\napiKey = $ORS_API_KEY\n" > tests-config.ini
- - name: Run tox
- run: |
- poetry run tox -e pytest-${{ matrix.config.tox }}
-
- build-and-publish:
- name: Build and publish Python distributions 📦 to TestPyPI
- runs-on: ubuntu-20.04
- needs: pytest
- steps:
- - uses: actions/checkout@v4
- - name: Install poetry
- run: pipx install poetry
- - name: Install Python ${{ matrix.config.python-version }}
- uses: actions/setup-python@v5
- with:
- python-version: ${{ matrix.config.python-version }}
- cache: 'poetry'
- - name: Publish distribution 📦 with test.pypi.org
- if: startsWith(github.ref, 'refs/tags/v')
- run: |
- poetry config repositories.testpypi https://test.pypi.org/legacy/
- poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_API_TOKEN }}
- poetry build
- poetry publish -r testpypi
From c01eb66910eb0f625bf3cec2b10329ae0d40a815 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Fri, 5 Apr 2024 09:22:47 +0000
Subject: [PATCH 29/38] Generated update. Please review before merging.
---
requirements.txt | 5 +++++
test-requirements.txt | 5 +++++
2 files changed, 10 insertions(+)
create mode 100644 requirements.txt
create mode 100644 test-requirements.txt
diff --git a/requirements.txt b/requirements.txt
new file mode 100644
index 00000000..bafdc075
--- /dev/null
+++ b/requirements.txt
@@ -0,0 +1,5 @@
+certifi >= 14.05.14
+six >= 1.10
+python_dateutil >= 2.5.3
+setuptools >= 21.0.0
+urllib3 >= 1.15.1
diff --git a/test-requirements.txt b/test-requirements.txt
new file mode 100644
index 00000000..d88e2832
--- /dev/null
+++ b/test-requirements.txt
@@ -0,0 +1,5 @@
+coverage>=4.0.3
+nose-py3>=1.6.2
+pluggy>=0.3.1
+py>=1.4.31
+randomize>=0.13
From d52eecfc7ad12a5526fd055e22d62f7e6e14cd87 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Fri, 5 Apr 2024 09:28:26 +0000
Subject: [PATCH 30/38] Generated update. Please review before merging.
---
requirements.txt | 5 -----
test-requirements.txt | 5 -----
2 files changed, 10 deletions(-)
delete mode 100644 requirements.txt
delete mode 100644 test-requirements.txt
diff --git a/requirements.txt b/requirements.txt
deleted file mode 100644
index bafdc075..00000000
--- a/requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-certifi >= 14.05.14
-six >= 1.10
-python_dateutil >= 2.5.3
-setuptools >= 21.0.0
-urllib3 >= 1.15.1
diff --git a/test-requirements.txt b/test-requirements.txt
deleted file mode 100644
index d88e2832..00000000
--- a/test-requirements.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-coverage>=4.0.3
-nose-py3>=1.6.2
-pluggy>=0.3.1
-py>=1.4.31
-randomize>=0.13
From d912f543cf5b6bffa1b7f15cf743003ecbd2f48d Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Fri, 5 Apr 2024 09:47:45 +0000
Subject: [PATCH 31/38] Generated update. Please review before merging.
---
README.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 644d7848..72a9324d 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ By using this library, you agree to the ORS [terms and conditions](https://openr
## Requirements.
-Python 2.7 and 3.4+
+Python 3.8+
## Installation & Usage
### pip install
@@ -22,7 +22,7 @@ Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
```sh
-pip install ors-py
+pip install openrouteservice
```
Then import the package:
@@ -49,10 +49,10 @@ Please follow the [installation procedure](#installation--usage) before running
### Examples
These examples show common usages of this library.
-- [Avoid construction sites dynamically](examples/Avoid_ConstructionSites.ipynb)
-- [Dieselgate Routing](examples/Dieselgate_Routing.ipynb)
-- [Route optimization of pub crawl](examples/ortools_pubcrawl.ipynb)
-- [Routing optimization in humanitarian context](examples/Routing_Optimization_Idai.ipynb)
+- [Avoid construction sites dynamically](https://openrouteservice.org/example-avoid-obstacles-while-routing/)
+- [Dieselgate Routing](https://openrouteservice.org/dieselgate-avoid-berlin-banned-diesel-streets/)
+- [Route optimization of pub crawl](https://openrouteservice.org/example-optimize-pub-crawl-with-ors/)
+- [Routing optimization in humanitarian context](https://openrouteservice.org/disaster-optimization/)
### Basic example
```python
From f3f2c9c3fa7f58b7d4b9525b00e448da76cbf675 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Mon, 8 Apr 2024 13:09:10 +0000
Subject: [PATCH 32/38] Generated update. Please review before merging.
---
README.md | 2 +-
openrouteservice/api_client.py | 2 +-
openrouteservice/configuration.py | 2 +-
pyproject.toml | 2 +-
setup.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 72a9324d..29d419f5 100644
--- a/README.md
+++ b/README.md
@@ -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.post2 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 7.1.1 | 7.1.1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index a9aff6b3..1af6d6fa 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -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.post2/python'
+ self.user_agent = 'Swagger-Codegen/7.1.1/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index cd7000e6..4ff470ea 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -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.post2".\
+ "SDK Package Version: 7.1.1".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/pyproject.toml b/pyproject.toml
index afdbdd1e..375eeb36 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "7.1.1.post2"
+version = "7.1.1"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
index 648e0fb1..e07bf922 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "7.1.1.post2"
+VERSION = "7.1.1"
# To install the library, run the following
#
# python setup.py install
From 67b4a534cc0c521b53026d8c1db5c3109ded4434 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Wed, 10 Apr 2024 10:37:45 +0000
Subject: [PATCH 33/38] Generated update. Please review before merging.
---
.gitignore | 4 ++++
README.md | 2 +-
docs/RouteOptions.md | 2 +-
openrouteservice/__init__.py | 4 ++--
openrouteservice/api/directions_service_api.py | 4 ++--
openrouteservice/api/elevation_api.py | 4 ++--
openrouteservice/api/geocode_api.py | 4 ++--
openrouteservice/api/isochrones_service_api.py | 4 ++--
openrouteservice/api/matrix_service_api.py | 4 ++--
openrouteservice/api/optimization_api.py | 4 ++--
openrouteservice/api/pois_api.py | 4 ++--
openrouteservice/api/snapping_service_api.py | 4 ++--
openrouteservice/api_client.py | 6 +++---
openrouteservice/configuration.py | 8 ++++----
openrouteservice/models/__init__.py | 4 ++--
openrouteservice/models/alternative_routes.py | 4 ++--
openrouteservice/models/directions_service_body.py | 4 ++--
openrouteservice/models/elevation_line_body.py | 4 ++--
openrouteservice/models/elevation_point_body.py | 4 ++--
openrouteservice/models/isochrones_profile_body.py | 4 ++--
openrouteservice/models/json_response.py | 4 ++--
openrouteservice/models/matrix_profile_body.py | 4 ++--
openrouteservice/models/openpoiservice_poi_request.py | 4 ++--
openrouteservice/models/optimization_body.py | 4 ++--
openrouteservice/models/optimization_breaks.py | 4 ++--
openrouteservice/models/optimization_costs.py | 4 ++--
openrouteservice/models/optimization_jobs.py | 4 ++--
openrouteservice/models/optimization_matrices.py | 4 ++--
.../models/optimization_matrices_cyclingelectric.py | 4 ++--
openrouteservice/models/optimization_options.py | 4 ++--
openrouteservice/models/optimization_steps.py | 4 ++--
openrouteservice/models/optimization_vehicles.py | 4 ++--
openrouteservice/models/pois_filters.py | 4 ++--
openrouteservice/models/pois_geometry.py | 4 ++--
openrouteservice/models/profile_geojson_body.py | 4 ++--
openrouteservice/models/profile_json_body.py | 4 ++--
openrouteservice/models/profile_parameters.py | 4 ++--
.../models/profile_parameters_restrictions.py | 4 ++--
openrouteservice/models/profile_weightings.py | 4 ++--
openrouteservice/models/round_trip_route_options.py | 4 ++--
openrouteservice/models/route_options.py | 8 ++++----
openrouteservice/models/route_options_avoid_polygons.py | 4 ++--
openrouteservice/models/snap_profile_body.py | 4 ++--
openrouteservice/rest.py | 4 ++--
pyproject.toml | 2 +-
setup.py | 6 +++---
46 files changed, 97 insertions(+), 93 deletions(-)
diff --git a/.gitignore b/.gitignore
index 6c2747b3..b27e6160 100644
--- a/.gitignore
+++ b/.gitignore
@@ -72,6 +72,10 @@ openrouteservice-py/tests-config.ini
# node_modules
openrouteservice-js/node_modules
+node_modules/
+
+# Vitepress
+.vitepress/cache
# Generated and used during building
client_version.txt
diff --git a/README.md b/README.md
index 29d419f5..80a8a0cd 100644
--- a/README.md
+++ b/README.md
@@ -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 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 8.0.0 | 8.0.0 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/docs/RouteOptions.md b/docs/RouteOptions.md
index a3a1ea17..aa0dff38 100644
--- a/docs/RouteOptions.md
+++ b/docs/RouteOptions.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**avoid_borders** | **str** | Specify which type of border crossing to avoid | [optional]
-**avoid_countries** | **list[str]** | List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. | [optional]
+**avoid_countries** | **list[str]** | List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://giscience.github.io/openrouteservice/technical-details/country-list). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. | [optional]
**avoid_features** | **list[str]** | List of features to avoid. | [optional]
**avoid_polygons** | [**RouteOptionsAvoidPolygons**](RouteOptionsAvoidPolygons.md) | | [optional]
**profile_params** | [**ProfileParameters**](ProfileParameters.md) | | [optional]
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index e3b51622..cca38af9 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -5,9 +5,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index 4a1fc794..e1292071 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index 6afc06d1..be791937 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index c03b1b7c..0bfbdad4 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index 3d54309f..0133cbb4 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index a943a212..4da4e5dc 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index aaf57e42..f5102835 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index 1f46ce5a..bb723ab3 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
index 32f5f3b6..0d5cf8b2 100644
--- a/openrouteservice/api/snapping_service_api.py
+++ b/openrouteservice/api/snapping_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 1af6d6fa..7c3f09f7 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -2,9 +2,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -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/python'
+ self.user_agent = 'Swagger-Codegen/8.0.0/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index 4ff470ea..f8034a03 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -246,6 +246,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 7.1.1\n"\
- "SDK Package Version: 7.1.1".\
+ "Version of the API: 8.0.0\n"\
+ "SDK Package Version: 8.0.0".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index 5a166f3a..4a37a493 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -4,9 +4,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
index f25e7eb8..93a89fe4 100644
--- a/openrouteservice/models/alternative_routes.py
+++ b/openrouteservice/models/alternative_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/directions_service_body.py b/openrouteservice/models/directions_service_body.py
index f553d2cd..8c52a3e0 100644
--- a/openrouteservice/models/directions_service_body.py
+++ b/openrouteservice/models/directions_service_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
index eca62ebd..625ce861 100644
--- a/openrouteservice/models/elevation_line_body.py
+++ b/openrouteservice/models/elevation_line_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
index 933d13d6..e65f2fa8 100644
--- a/openrouteservice/models/elevation_point_body.py
+++ b/openrouteservice/models/elevation_point_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
index d15b22e4..18af4400 100644
--- a/openrouteservice/models/isochrones_profile_body.py
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_response.py b/openrouteservice/models/json_response.py
index 3bea3522..ec92ccc9 100644
--- a/openrouteservice/models/json_response.py
+++ b/openrouteservice/models/json_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
index b5719f8f..b859ad3d 100644
--- a/openrouteservice/models/matrix_profile_body.py
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
index cd65d1b5..0d08a2e7 100644
--- a/openrouteservice/models/openpoiservice_poi_request.py
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
index 6501fd1e..42ff06d2 100644
--- a/openrouteservice/models/optimization_body.py
+++ b/openrouteservice/models/optimization_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_breaks.py b/openrouteservice/models/optimization_breaks.py
index 07a3b031..607fe8a4 100644
--- a/openrouteservice/models/optimization_breaks.py
+++ b/openrouteservice/models/optimization_breaks.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_costs.py b/openrouteservice/models/optimization_costs.py
index 55ed5e42..cefe3b72 100644
--- a/openrouteservice/models/optimization_costs.py
+++ b/openrouteservice/models/optimization_costs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
index 9ecf56dd..44ad4dfa 100644
--- a/openrouteservice/models/optimization_jobs.py
+++ b/openrouteservice/models/optimization_jobs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices.py b/openrouteservice/models/optimization_matrices.py
index d7255e64..9b5b22cd 100644
--- a/openrouteservice/models/optimization_matrices.py
+++ b/openrouteservice/models/optimization_matrices.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices_cyclingelectric.py b/openrouteservice/models/optimization_matrices_cyclingelectric.py
index 69eb0088..9a371884 100644
--- a/openrouteservice/models/optimization_matrices_cyclingelectric.py
+++ b/openrouteservice/models/optimization_matrices_cyclingelectric.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
index 4154f264..3979077d 100644
--- a/openrouteservice/models/optimization_options.py
+++ b/openrouteservice/models/optimization_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_steps.py b/openrouteservice/models/optimization_steps.py
index 9da3d7fa..3b40053a 100644
--- a/openrouteservice/models/optimization_steps.py
+++ b/openrouteservice/models/optimization_steps.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
index 4da86f10..e65b810e 100644
--- a/openrouteservice/models/optimization_vehicles.py
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
index 9d0d6cd1..a8553059 100644
--- a/openrouteservice/models/pois_filters.py
+++ b/openrouteservice/models/pois_filters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
index 71f01f4b..9b119d9a 100644
--- a/openrouteservice/models/pois_geometry.py
+++ b/openrouteservice/models/pois_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_geojson_body.py b/openrouteservice/models/profile_geojson_body.py
index c056540f..f159ee38 100644
--- a/openrouteservice/models/profile_geojson_body.py
+++ b/openrouteservice/models/profile_geojson_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_json_body.py b/openrouteservice/models/profile_json_body.py
index 605c42a8..ef63d031 100644
--- a/openrouteservice/models/profile_json_body.py
+++ b/openrouteservice/models/profile_json_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
index 642a0729..966c8b9f 100644
--- a/openrouteservice/models/profile_parameters.py
+++ b/openrouteservice/models/profile_parameters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
index a7c0a1dc..7717f06f 100644
--- a/openrouteservice/models/profile_parameters_restrictions.py
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
index b64fd509..a4182adb 100644
--- a/openrouteservice/models/profile_weightings.py
+++ b/openrouteservice/models/profile_weightings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
index 5b344ef5..a323b5e9 100644
--- a/openrouteservice/models/round_trip_route_options.py
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
index 0db18af6..f600ade6 100644
--- a/openrouteservice/models/route_options.py
+++ b/openrouteservice/models/route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -105,7 +105,7 @@ def avoid_borders(self, avoid_borders):
def avoid_countries(self):
"""Gets the avoid_countries of this RouteOptions. # noqa: E501
- List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
+ List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://giscience.github.io/openrouteservice/technical-details/country-list). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
:return: The avoid_countries of this RouteOptions. # noqa: E501
:rtype: list[str]
@@ -116,7 +116,7 @@ def avoid_countries(self):
def avoid_countries(self, avoid_countries):
"""Sets the avoid_countries of this RouteOptions.
- List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://GIScience.github.io/openrouteservice/documentation/routing-options/Country-List.html). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
+ List of countries to exclude from matrix with `driving-*` profiles. Can be used together with `'avoid_borders': 'controlled'`. `[ 11, 193 ]` would exclude Austria and Switzerland. List of countries and application examples can be found [here](https://giscience.github.io/openrouteservice/technical-details/country-list). Also, ISO standard country codes cna be used in place of the numerical ids, for example, DE or DEU for Germany. # noqa: E501
:param avoid_countries: The avoid_countries of this RouteOptions. # noqa: E501
:type: list[str]
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
index 63f5bb9f..a0290441 100644
--- a/openrouteservice/models/route_options_avoid_polygons.py
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/snap_profile_body.py b/openrouteservice/models/snap_profile_body.py
index ee0f3d4f..4e0c3826 100644
--- a/openrouteservice/models/snap_profile_body.py
+++ b/openrouteservice/models/snap_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
index 29aa8d6e..2cac6cdf 100644
--- a/openrouteservice/rest.py
+++ b/openrouteservice/rest.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/pyproject.toml b/pyproject.toml
index 375eeb36..73320c7c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "7.1.1"
+version = "8.0.0"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
index e07bf922..03ada803 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 7.1.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 7.1.1
+ OpenAPI spec version: 8.0.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "7.1.1"
+VERSION = "8.0.0"
# To install the library, run the following
#
# python setup.py install
From 8d52e2659d49b40c894733464a942f2fc17e8d99 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Wed, 10 Apr 2024 12:02:02 +0000
Subject: [PATCH 34/38] Generated update. Please review before merging.
---
docs/ElevationApi.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/ElevationApi.md b/docs/ElevationApi.md
index 7515c32d..df459633 100644
--- a/docs/ElevationApi.md
+++ b/docs/ElevationApi.md
@@ -13,7 +13,7 @@ Method | HTTP request | Description
Elevation Line Service
-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 * Google's Encoded polyline 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]] }' ```
+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 * Google's Encoded polyline 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]] }' ```
### Example
```python
From 5f9ddd655a9aea39a05639f79ba95ab672bd7a65 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Wed, 10 Apr 2024 12:46:18 +0000
Subject: [PATCH 35/38] Generated update. Please review before merging.
---
README.md | 7 ++++++-
docs/DirectionsServiceApi.md | 19 +++++--------------
docs/ElevationApi.md | 27 ++++++---------------------
docs/GeocodeApi.md | 35 +++++++----------------------------
docs/IsochronesServiceApi.md | 11 ++++-------
docs/MatrixServiceApi.md | 11 ++++-------
docs/OptimizationApi.md | 11 ++++-------
docs/PoisApi.md | 11 ++++-------
docs/SnappingServiceApi.md | 27 ++++++---------------------
9 files changed, 46 insertions(+), 113 deletions(-)
diff --git a/README.md b/README.md
index 80a8a0cd..71a5d7b0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,9 @@
-# openrouteservice
+# openrouteservice-py
+> [!IMPORTANT]
+> 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.
+>
+> Please migrate your project to the new SDK to be able to access all new features of the openrouteservice!
+
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.
| API Version | Package version | Build package |
diff --git a/docs/DirectionsServiceApi.md b/docs/DirectionsServiceApi.md
index 9ff96796..909a36b5 100644
--- a/docs/DirectionsServiceApi.md
+++ b/docs/DirectionsServiceApi.md
@@ -1,5 +1,8 @@
# openrouteservice.DirectionsServiceApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -22,14 +25,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.
@@ -78,14 +75,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.DirectionsServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.DirectionsServiceBody() # DirectionsServiceBody |
profile = 'profile_example' # str | Specifies the route profile.
diff --git a/docs/ElevationApi.md b/docs/ElevationApi.md
index df459633..cc2ac52a 100644
--- a/docs/ElevationApi.md
+++ b/docs/ElevationApi.md
@@ -1,5 +1,8 @@
# openrouteservice.ElevationApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -23,14 +26,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.ElevationLineBody() # ElevationLineBody | Query the elevation of a line in various formats.
try:
@@ -77,14 +74,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
geometry = [3.4] # list[float] | The point to be queried, in comma-separated lon,lat values, e.g. [13.349762, 38.11295]
format_out = 'geojson' # str | The output format to be returned. (optional) (default to geojson)
dataset = 'srtm' # str | The elevation dataset to be used. (optional) (default to srtm)
@@ -135,14 +126,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.ElevationApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.ElevationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.ElevationPointBody() # ElevationPointBody | Query the elevation of a point in various formats.
try:
diff --git a/docs/GeocodeApi.md b/docs/GeocodeApi.md
index d8cf1907..65fd1037 100644
--- a/docs/GeocodeApi.md
+++ b/docs/GeocodeApi.md
@@ -1,5 +1,8 @@
# openrouteservice.GeocodeApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -24,14 +27,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
text = 'text_example' # str | Name of location, street address or postal code.
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)
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
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
point_lon = 3.4 # float | Longitude of the coordinate to query.
point_lat = 48.858268 # float | Latitude of the coordinate to query. (default to 48.858268)
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
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
text = 'text_example' # str | Name of location, street address or postal code.
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)
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
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.GeocodeApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.GeocodeApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
address = 'address_example' # str | Search for full address with house number or only a street name. (optional)
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)
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)
diff --git a/docs/IsochronesServiceApi.md b/docs/IsochronesServiceApi.md
index 806423e4..145ad14e 100644
--- a/docs/IsochronesServiceApi.md
+++ b/docs/IsochronesServiceApi.md
@@ -1,5 +1,8 @@
# openrouteservice.IsochronesServiceApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.IsochronesServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.IsochronesServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.IsochronesProfileBody() # IsochronesProfileBody |
profile = 'profile_example' # str | Specifies the route profile.
diff --git a/docs/MatrixServiceApi.md b/docs/MatrixServiceApi.md
index 0941359b..483d3637 100644
--- a/docs/MatrixServiceApi.md
+++ b/docs/MatrixServiceApi.md
@@ -1,5 +1,8 @@
# openrouteservice.MatrixServiceApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.MatrixServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.MatrixServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.MatrixProfileBody() # MatrixProfileBody |
profile = 'profile_example' # str | Specifies the matrix profile.
diff --git a/docs/OptimizationApi.md b/docs/OptimizationApi.md
index 1e29871e..38413d8b 100644
--- a/docs/OptimizationApi.md
+++ b/docs/OptimizationApi.md
@@ -1,5 +1,8 @@
# openrouteservice.OptimizationApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.OptimizationApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.OptimizationApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.OptimizationBody() # OptimizationBody | The request body of the optimization request.
try:
diff --git a/docs/PoisApi.md b/docs/PoisApi.md
index 4dd3a87b..3119299d 100644
--- a/docs/PoisApi.md
+++ b/docs/PoisApi.md
@@ -1,5 +1,8 @@
# openrouteservice.PoisApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -21,14 +24,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.PoisApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.PoisApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.OpenpoiservicePoiRequest() # OpenpoiservicePoiRequest | body for a post request
try:
diff --git a/docs/SnappingServiceApi.md b/docs/SnappingServiceApi.md
index 5480f0da..a0d7d8ec 100644
--- a/docs/SnappingServiceApi.md
+++ b/docs/SnappingServiceApi.md
@@ -1,5 +1,8 @@
# openrouteservice.SnappingServiceApi
+> [!NOTE]
+> This documentation is automatically generated. Code examples might not work out of the box as not all required parameters are passed.
+
All URIs are relative to *https://api.openrouteservice.org*
Method | HTTP request | Description
@@ -23,14 +26,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.SnapProfileBody() # SnapProfileBody |
profile = 'profile_example' # str | Specifies the route profile.
@@ -79,14 +76,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.ProfileGeojsonBody() # ProfileGeojsonBody |
profile = 'profile_example' # str | Specifies the profile.
@@ -135,14 +126,8 @@ import openrouteservice
from openrouteservice.rest import ApiException
from pprint import pprint
-# Configure API key authorization: ApiKeyAuth
-configuration = openrouteservice.Configuration()
-configuration.api_key['Authorization'] = 'YOUR_API_KEY'
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['Authorization'] = 'Bearer'
-
# create an instance of the API class
-api_instance = openrouteservice.SnappingServiceApi(openrouteservice.ApiClient(configuration))
+api_instance = openrouteservice.SnappingServiceApi(openrouteservice.apiClient(apiKey='YOUR_API_KEY'))
body = openrouteservice.ProfileJsonBody() # ProfileJsonBody |
profile = 'profile_example' # str | Specifies the profile.
From a094f7d1281aed2e665a45de199aa512a6b9df0e Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Fri, 7 Jun 2024 12:51:11 +0000
Subject: [PATCH 36/38] Generated update for version 8.0.1. Please review
before merging.
---
README.md | 2 +-
openrouteservice/__init__.py | 4 ++--
openrouteservice/api/directions_service_api.py | 4 ++--
openrouteservice/api/elevation_api.py | 4 ++--
openrouteservice/api/geocode_api.py | 4 ++--
openrouteservice/api/isochrones_service_api.py | 4 ++--
openrouteservice/api/matrix_service_api.py | 4 ++--
openrouteservice/api/optimization_api.py | 4 ++--
openrouteservice/api/pois_api.py | 4 ++--
openrouteservice/api/snapping_service_api.py | 4 ++--
openrouteservice/api_client.py | 6 +++---
openrouteservice/configuration.py | 8 ++++----
openrouteservice/models/__init__.py | 4 ++--
openrouteservice/models/alternative_routes.py | 4 ++--
openrouteservice/models/directions_service_body.py | 4 ++--
openrouteservice/models/elevation_line_body.py | 4 ++--
openrouteservice/models/elevation_point_body.py | 4 ++--
openrouteservice/models/isochrones_profile_body.py | 4 ++--
openrouteservice/models/json_response.py | 4 ++--
openrouteservice/models/matrix_profile_body.py | 4 ++--
openrouteservice/models/openpoiservice_poi_request.py | 4 ++--
openrouteservice/models/optimization_body.py | 4 ++--
openrouteservice/models/optimization_breaks.py | 4 ++--
openrouteservice/models/optimization_costs.py | 4 ++--
openrouteservice/models/optimization_jobs.py | 4 ++--
openrouteservice/models/optimization_matrices.py | 4 ++--
.../models/optimization_matrices_cyclingelectric.py | 4 ++--
openrouteservice/models/optimization_options.py | 4 ++--
openrouteservice/models/optimization_steps.py | 4 ++--
openrouteservice/models/optimization_vehicles.py | 4 ++--
openrouteservice/models/pois_filters.py | 4 ++--
openrouteservice/models/pois_geometry.py | 4 ++--
openrouteservice/models/profile_geojson_body.py | 4 ++--
openrouteservice/models/profile_json_body.py | 4 ++--
openrouteservice/models/profile_parameters.py | 4 ++--
.../models/profile_parameters_restrictions.py | 4 ++--
openrouteservice/models/profile_weightings.py | 4 ++--
openrouteservice/models/round_trip_route_options.py | 4 ++--
openrouteservice/models/route_options.py | 4 ++--
openrouteservice/models/route_options_avoid_polygons.py | 4 ++--
openrouteservice/models/snap_profile_body.py | 4 ++--
openrouteservice/rest.py | 4 ++--
pyproject.toml | 2 +-
setup.py | 6 +++---
44 files changed, 90 insertions(+), 90 deletions(-)
diff --git a/README.md b/README.md
index 71a5d7b0..3ee51538 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]
| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
-| 8.0.0 | 8.0.0 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 8.0.1 | 8.0.1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index cca38af9..1ba63409 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -5,9 +5,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index e1292071..b9a6a938 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index be791937..ee8b324a 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index 0bfbdad4..b7cb9551 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index 0133cbb4..8d384227 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index 4da4e5dc..87312e54 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index f5102835..1d7c4d47 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index bb723ab3..adc5e764 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
index 0d5cf8b2..bf49d589 100644
--- a/openrouteservice/api/snapping_service_api.py
+++ b/openrouteservice/api/snapping_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 7c3f09f7..ba2695de 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -2,9 +2,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -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/8.0.0/python'
+ self.user_agent = 'Swagger-Codegen/8.0.1/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index f8034a03..c9009906 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -246,6 +246,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 8.0.0\n"\
- "SDK Package Version: 8.0.0".\
+ "Version of the API: 8.0.1\n"\
+ "SDK Package Version: 8.0.1".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index 4a37a493..3abbe97d 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -4,9 +4,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
index 93a89fe4..33a1b0d9 100644
--- a/openrouteservice/models/alternative_routes.py
+++ b/openrouteservice/models/alternative_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/directions_service_body.py b/openrouteservice/models/directions_service_body.py
index 8c52a3e0..4096a9b3 100644
--- a/openrouteservice/models/directions_service_body.py
+++ b/openrouteservice/models/directions_service_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
index 625ce861..593c3b6d 100644
--- a/openrouteservice/models/elevation_line_body.py
+++ b/openrouteservice/models/elevation_line_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
index e65f2fa8..731ba966 100644
--- a/openrouteservice/models/elevation_point_body.py
+++ b/openrouteservice/models/elevation_point_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
index 18af4400..734a2e87 100644
--- a/openrouteservice/models/isochrones_profile_body.py
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_response.py b/openrouteservice/models/json_response.py
index ec92ccc9..c7665b9e 100644
--- a/openrouteservice/models/json_response.py
+++ b/openrouteservice/models/json_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
index b859ad3d..233ee9fc 100644
--- a/openrouteservice/models/matrix_profile_body.py
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
index 0d08a2e7..a5a020fa 100644
--- a/openrouteservice/models/openpoiservice_poi_request.py
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
index 42ff06d2..40728d47 100644
--- a/openrouteservice/models/optimization_body.py
+++ b/openrouteservice/models/optimization_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_breaks.py b/openrouteservice/models/optimization_breaks.py
index 607fe8a4..2ee120e5 100644
--- a/openrouteservice/models/optimization_breaks.py
+++ b/openrouteservice/models/optimization_breaks.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_costs.py b/openrouteservice/models/optimization_costs.py
index cefe3b72..e5a02a73 100644
--- a/openrouteservice/models/optimization_costs.py
+++ b/openrouteservice/models/optimization_costs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
index 44ad4dfa..9fe1a8ea 100644
--- a/openrouteservice/models/optimization_jobs.py
+++ b/openrouteservice/models/optimization_jobs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices.py b/openrouteservice/models/optimization_matrices.py
index 9b5b22cd..ffcd9cef 100644
--- a/openrouteservice/models/optimization_matrices.py
+++ b/openrouteservice/models/optimization_matrices.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices_cyclingelectric.py b/openrouteservice/models/optimization_matrices_cyclingelectric.py
index 9a371884..2aa6d7a3 100644
--- a/openrouteservice/models/optimization_matrices_cyclingelectric.py
+++ b/openrouteservice/models/optimization_matrices_cyclingelectric.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
index 3979077d..b6af6589 100644
--- a/openrouteservice/models/optimization_options.py
+++ b/openrouteservice/models/optimization_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_steps.py b/openrouteservice/models/optimization_steps.py
index 3b40053a..0d7de3fd 100644
--- a/openrouteservice/models/optimization_steps.py
+++ b/openrouteservice/models/optimization_steps.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
index e65b810e..85625bd3 100644
--- a/openrouteservice/models/optimization_vehicles.py
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
index a8553059..7cecb898 100644
--- a/openrouteservice/models/pois_filters.py
+++ b/openrouteservice/models/pois_filters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
index 9b119d9a..38aa41ca 100644
--- a/openrouteservice/models/pois_geometry.py
+++ b/openrouteservice/models/pois_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_geojson_body.py b/openrouteservice/models/profile_geojson_body.py
index f159ee38..bca12ab5 100644
--- a/openrouteservice/models/profile_geojson_body.py
+++ b/openrouteservice/models/profile_geojson_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_json_body.py b/openrouteservice/models/profile_json_body.py
index ef63d031..2e4de8c4 100644
--- a/openrouteservice/models/profile_json_body.py
+++ b/openrouteservice/models/profile_json_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
index 966c8b9f..a85c7aec 100644
--- a/openrouteservice/models/profile_parameters.py
+++ b/openrouteservice/models/profile_parameters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
index 7717f06f..dd7576f5 100644
--- a/openrouteservice/models/profile_parameters_restrictions.py
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
index a4182adb..79c17819 100644
--- a/openrouteservice/models/profile_weightings.py
+++ b/openrouteservice/models/profile_weightings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
index a323b5e9..0566f135 100644
--- a/openrouteservice/models/round_trip_route_options.py
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
index f600ade6..f25f6d51 100644
--- a/openrouteservice/models/route_options.py
+++ b/openrouteservice/models/route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
index a0290441..5f5b88e5 100644
--- a/openrouteservice/models/route_options_avoid_polygons.py
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/snap_profile_body.py b/openrouteservice/models/snap_profile_body.py
index 4e0c3826..3d81c96d 100644
--- a/openrouteservice/models/snap_profile_body.py
+++ b/openrouteservice/models/snap_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
index 2cac6cdf..082cffa2 100644
--- a/openrouteservice/rest.py
+++ b/openrouteservice/rest.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/pyproject.toml b/pyproject.toml
index 73320c7c..829ca479 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "8.0.0"
+version = "8.0.1"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
index 03ada803..f453fbbc 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.0
+ OpenAPI spec version: 8.0.1
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "8.0.0"
+VERSION = "8.0.1"
# To install the library, run the following
#
# python setup.py install
From faa4f44b1460d5d20fc9f4e65c4a9b9e3f379bcc Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Thu, 18 Jul 2024 13:08:38 +0000
Subject: [PATCH 37/38] Generated update for version 8.1.0. Please review
before merging.
---
README.md | 2 +-
docs/SnappingServiceApi.md | 6 +++---
openrouteservice/__init__.py | 4 ++--
openrouteservice/api/directions_service_api.py | 4 ++--
openrouteservice/api/elevation_api.py | 4 ++--
openrouteservice/api/geocode_api.py | 4 ++--
openrouteservice/api/isochrones_service_api.py | 4 ++--
openrouteservice/api/matrix_service_api.py | 4 ++--
openrouteservice/api/optimization_api.py | 4 ++--
openrouteservice/api/pois_api.py | 4 ++--
openrouteservice/api/snapping_service_api.py | 16 ++++++++--------
openrouteservice/api_client.py | 6 +++---
openrouteservice/configuration.py | 8 ++++----
openrouteservice/models/__init__.py | 4 ++--
openrouteservice/models/alternative_routes.py | 4 ++--
.../models/directions_service_body.py | 4 ++--
openrouteservice/models/elevation_line_body.py | 4 ++--
openrouteservice/models/elevation_point_body.py | 4 ++--
.../models/isochrones_profile_body.py | 4 ++--
openrouteservice/models/json_response.py | 4 ++--
openrouteservice/models/matrix_profile_body.py | 4 ++--
.../models/openpoiservice_poi_request.py | 4 ++--
openrouteservice/models/optimization_body.py | 4 ++--
openrouteservice/models/optimization_breaks.py | 4 ++--
openrouteservice/models/optimization_costs.py | 4 ++--
openrouteservice/models/optimization_jobs.py | 4 ++--
openrouteservice/models/optimization_matrices.py | 4 ++--
.../optimization_matrices_cyclingelectric.py | 4 ++--
openrouteservice/models/optimization_options.py | 4 ++--
openrouteservice/models/optimization_steps.py | 4 ++--
openrouteservice/models/optimization_vehicles.py | 4 ++--
openrouteservice/models/pois_filters.py | 4 ++--
openrouteservice/models/pois_geometry.py | 4 ++--
openrouteservice/models/profile_geojson_body.py | 4 ++--
openrouteservice/models/profile_json_body.py | 4 ++--
openrouteservice/models/profile_parameters.py | 4 ++--
.../models/profile_parameters_restrictions.py | 4 ++--
openrouteservice/models/profile_weightings.py | 4 ++--
.../models/round_trip_route_options.py | 4 ++--
openrouteservice/models/route_options.py | 4 ++--
.../models/route_options_avoid_polygons.py | 4 ++--
openrouteservice/models/snap_profile_body.py | 4 ++--
openrouteservice/rest.py | 4 ++--
pyproject.toml | 2 +-
setup.py | 6 +++---
45 files changed, 99 insertions(+), 99 deletions(-)
diff --git a/README.md b/README.md
index 3ee51538..4de960ef 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]
| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
-| 8.0.1 | 8.0.1 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 8.1.0 | 8.1.0 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/docs/SnappingServiceApi.md b/docs/SnappingServiceApi.md
index a0d7d8ec..06529aa9 100644
--- a/docs/SnappingServiceApi.md
+++ b/docs/SnappingServiceApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
Snapping Service
-Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
+Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
### Example
```python
@@ -66,7 +66,7 @@ Name | Type | Description | Notes
Snapping Service GeoJSON
-Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0).
+Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0).
### Example
```python
@@ -116,7 +116,7 @@ Name | Type | Description | Notes
Snapping Service JSON
-Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
+Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned.
### Example
```python
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index 1ba63409..3355d24f 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -5,9 +5,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index b9a6a938..295bb145 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index ee8b324a..404d07e4 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index b7cb9551..a40d993d 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index 8d384227..a4964add 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index 87312e54..b1563117 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index 1d7c4d47..08440e88 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index adc5e764..4cee77bd 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
index bf49d589..e0b9ddbc 100644
--- a/openrouteservice/api/snapping_service_api.py
+++ b/openrouteservice/api/snapping_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -35,7 +35,7 @@ def __init__(self, api_client=None):
def get_default(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service # noqa: E501
- Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_default(body, profile, async_req=True)
@@ -58,7 +58,7 @@ def get_default(self, body, profile, **kwargs): # noqa: E501
def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service # noqa: E501
- Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_default_with_http_info(body, profile, async_req=True)
@@ -142,7 +142,7 @@ def get_default_with_http_info(self, body, profile, **kwargs): # noqa: E501
def get_geo_json_snapping(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service GeoJSON # noqa: E501
- Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
+ Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_geo_json_snapping(body, profile, async_req=True)
@@ -165,7 +165,7 @@ def get_geo_json_snapping(self, body, profile, **kwargs): # noqa: E501
def get_geo_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service GeoJSON # noqa: E501
- Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
+ Returns a GeoJSON FeatureCollection of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, it is omitted from the features array. The features provide the 'source_id' property, to match the results with the input location array (IDs start at 0). # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_geo_json_snapping_with_http_info(body, profile, async_req=True)
@@ -249,7 +249,7 @@ def get_geo_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa
def get_json_snapping(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service JSON # noqa: E501
- Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_json_snapping(body, profile, async_req=True)
@@ -272,7 +272,7 @@ def get_json_snapping(self, body, profile, **kwargs): # noqa: E501
def get_json_snapping_with_http_info(self, body, profile, **kwargs): # noqa: E501
"""Snapping Service JSON # noqa: E501
- Returns a list of points snapped to the nearest edge in the graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
+ Returns a list of points snapped to the nearest edge in the routing graph. In case an appropriate snapping point cannot be found within the specified search radius, \"null\" is returned. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_json_snapping_with_http_info(body, profile, async_req=True)
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index ba2695de..436cc9ec 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -2,9 +2,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -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/8.0.1/python'
+ self.user_agent = 'Swagger-Codegen/8.1.0/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index c9009906..35efaaaa 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -246,6 +246,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 8.0.1\n"\
- "SDK Package Version: 8.0.1".\
+ "Version of the API: 8.1.0\n"\
+ "SDK Package Version: 8.1.0".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index 3abbe97d..943c6ac4 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -4,9 +4,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
index 33a1b0d9..24b04d71 100644
--- a/openrouteservice/models/alternative_routes.py
+++ b/openrouteservice/models/alternative_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/directions_service_body.py b/openrouteservice/models/directions_service_body.py
index 4096a9b3..4c08fee7 100644
--- a/openrouteservice/models/directions_service_body.py
+++ b/openrouteservice/models/directions_service_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
index 593c3b6d..8461be00 100644
--- a/openrouteservice/models/elevation_line_body.py
+++ b/openrouteservice/models/elevation_line_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
index 731ba966..a471cded 100644
--- a/openrouteservice/models/elevation_point_body.py
+++ b/openrouteservice/models/elevation_point_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
index 734a2e87..052c6e85 100644
--- a/openrouteservice/models/isochrones_profile_body.py
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_response.py b/openrouteservice/models/json_response.py
index c7665b9e..e0a5b8c2 100644
--- a/openrouteservice/models/json_response.py
+++ b/openrouteservice/models/json_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
index 233ee9fc..6bb63215 100644
--- a/openrouteservice/models/matrix_profile_body.py
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
index a5a020fa..a255ebb5 100644
--- a/openrouteservice/models/openpoiservice_poi_request.py
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
index 40728d47..57cc4df6 100644
--- a/openrouteservice/models/optimization_body.py
+++ b/openrouteservice/models/optimization_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_breaks.py b/openrouteservice/models/optimization_breaks.py
index 2ee120e5..71a38636 100644
--- a/openrouteservice/models/optimization_breaks.py
+++ b/openrouteservice/models/optimization_breaks.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_costs.py b/openrouteservice/models/optimization_costs.py
index e5a02a73..d65f0721 100644
--- a/openrouteservice/models/optimization_costs.py
+++ b/openrouteservice/models/optimization_costs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
index 9fe1a8ea..297a7ea2 100644
--- a/openrouteservice/models/optimization_jobs.py
+++ b/openrouteservice/models/optimization_jobs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices.py b/openrouteservice/models/optimization_matrices.py
index ffcd9cef..582f3e31 100644
--- a/openrouteservice/models/optimization_matrices.py
+++ b/openrouteservice/models/optimization_matrices.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices_cyclingelectric.py b/openrouteservice/models/optimization_matrices_cyclingelectric.py
index 2aa6d7a3..8462b28f 100644
--- a/openrouteservice/models/optimization_matrices_cyclingelectric.py
+++ b/openrouteservice/models/optimization_matrices_cyclingelectric.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
index b6af6589..f9c20a1b 100644
--- a/openrouteservice/models/optimization_options.py
+++ b/openrouteservice/models/optimization_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_steps.py b/openrouteservice/models/optimization_steps.py
index 0d7de3fd..e78b1ee6 100644
--- a/openrouteservice/models/optimization_steps.py
+++ b/openrouteservice/models/optimization_steps.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
index 85625bd3..9a1337f7 100644
--- a/openrouteservice/models/optimization_vehicles.py
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
index 7cecb898..b1af8a72 100644
--- a/openrouteservice/models/pois_filters.py
+++ b/openrouteservice/models/pois_filters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
index 38aa41ca..3492490d 100644
--- a/openrouteservice/models/pois_geometry.py
+++ b/openrouteservice/models/pois_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_geojson_body.py b/openrouteservice/models/profile_geojson_body.py
index bca12ab5..b6d49611 100644
--- a/openrouteservice/models/profile_geojson_body.py
+++ b/openrouteservice/models/profile_geojson_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_json_body.py b/openrouteservice/models/profile_json_body.py
index 2e4de8c4..786e4c5e 100644
--- a/openrouteservice/models/profile_json_body.py
+++ b/openrouteservice/models/profile_json_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
index a85c7aec..6b1e43f7 100644
--- a/openrouteservice/models/profile_parameters.py
+++ b/openrouteservice/models/profile_parameters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
index dd7576f5..e5158d07 100644
--- a/openrouteservice/models/profile_parameters_restrictions.py
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
index 79c17819..560c6d40 100644
--- a/openrouteservice/models/profile_weightings.py
+++ b/openrouteservice/models/profile_weightings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
index 0566f135..c7f77048 100644
--- a/openrouteservice/models/round_trip_route_options.py
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
index f25f6d51..027b5d1a 100644
--- a/openrouteservice/models/route_options.py
+++ b/openrouteservice/models/route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
index 5f5b88e5..8449e970 100644
--- a/openrouteservice/models/route_options_avoid_polygons.py
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/snap_profile_body.py b/openrouteservice/models/snap_profile_body.py
index 3d81c96d..87da66ca 100644
--- a/openrouteservice/models/snap_profile_body.py
+++ b/openrouteservice/models/snap_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
index 082cffa2..d3ef9f72 100644
--- a/openrouteservice/rest.py
+++ b/openrouteservice/rest.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/pyproject.toml b/pyproject.toml
index 829ca479..cd28c821 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "8.0.1"
+version = "8.1.0"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
index f453fbbc..727c8f62 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.0.1. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.0.1
+ OpenAPI spec version: 8.1.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "8.0.1"
+VERSION = "8.1.0"
# To install the library, run the following
#
# python setup.py install
From 1d50279b0ce619c59f48c650ea1881eb8baa3ae8 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Tue, 3 Dec 2024 13:57:51 +0000
Subject: [PATCH 38/38] Generated update for version 8.2.0. Please review
before merging.
---
README.md | 2 +-
openrouteservice/__init__.py | 4 ++--
openrouteservice/api/directions_service_api.py | 4 ++--
openrouteservice/api/elevation_api.py | 4 ++--
openrouteservice/api/geocode_api.py | 4 ++--
openrouteservice/api/isochrones_service_api.py | 4 ++--
openrouteservice/api/matrix_service_api.py | 4 ++--
openrouteservice/api/optimization_api.py | 4 ++--
openrouteservice/api/pois_api.py | 4 ++--
openrouteservice/api/snapping_service_api.py | 4 ++--
openrouteservice/api_client.py | 6 +++---
openrouteservice/configuration.py | 8 ++++----
openrouteservice/models/__init__.py | 4 ++--
openrouteservice/models/alternative_routes.py | 4 ++--
openrouteservice/models/directions_service_body.py | 6 +++---
openrouteservice/models/elevation_line_body.py | 4 ++--
openrouteservice/models/elevation_point_body.py | 4 ++--
openrouteservice/models/isochrones_profile_body.py | 4 ++--
openrouteservice/models/json_response.py | 4 ++--
openrouteservice/models/matrix_profile_body.py | 4 ++--
openrouteservice/models/openpoiservice_poi_request.py | 4 ++--
openrouteservice/models/optimization_body.py | 4 ++--
openrouteservice/models/optimization_breaks.py | 4 ++--
openrouteservice/models/optimization_costs.py | 4 ++--
openrouteservice/models/optimization_jobs.py | 4 ++--
openrouteservice/models/optimization_matrices.py | 4 ++--
.../models/optimization_matrices_cyclingelectric.py | 4 ++--
openrouteservice/models/optimization_options.py | 4 ++--
openrouteservice/models/optimization_steps.py | 4 ++--
openrouteservice/models/optimization_vehicles.py | 4 ++--
openrouteservice/models/pois_filters.py | 4 ++--
openrouteservice/models/pois_geometry.py | 4 ++--
openrouteservice/models/profile_geojson_body.py | 4 ++--
openrouteservice/models/profile_json_body.py | 4 ++--
openrouteservice/models/profile_parameters.py | 4 ++--
.../models/profile_parameters_restrictions.py | 4 ++--
openrouteservice/models/profile_weightings.py | 4 ++--
openrouteservice/models/round_trip_route_options.py | 4 ++--
openrouteservice/models/route_options.py | 4 ++--
openrouteservice/models/route_options_avoid_polygons.py | 4 ++--
openrouteservice/models/snap_profile_body.py | 4 ++--
openrouteservice/rest.py | 4 ++--
pyproject.toml | 2 +-
setup.py | 6 +++---
44 files changed, 91 insertions(+), 91 deletions(-)
diff --git a/README.md b/README.md
index 4de960ef..ad651576 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ The openrouteservice library gives you painless access to the [openrouteservice]
| API Version | Package version | Build package |
| -------------- | ------------------ | ------------------ |
-| 8.1.0 | 8.1.0 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
+| 8.2.0 | 8.2.0 | io.swagger.codegen.v3.generators.python.PythonClientCodegen |
For further details, please visit:
- our [homepage](https://openrouteservice.org)
diff --git a/openrouteservice/__init__.py b/openrouteservice/__init__.py
index 3355d24f..652a6a21 100644
--- a/openrouteservice/__init__.py
+++ b/openrouteservice/__init__.py
@@ -5,9 +5,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/directions_service_api.py b/openrouteservice/api/directions_service_api.py
index 295bb145..193cfe3d 100644
--- a/openrouteservice/api/directions_service_api.py
+++ b/openrouteservice/api/directions_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/elevation_api.py b/openrouteservice/api/elevation_api.py
index 404d07e4..f7115e5a 100644
--- a/openrouteservice/api/elevation_api.py
+++ b/openrouteservice/api/elevation_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/geocode_api.py b/openrouteservice/api/geocode_api.py
index a40d993d..f2a0747f 100644
--- a/openrouteservice/api/geocode_api.py
+++ b/openrouteservice/api/geocode_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/isochrones_service_api.py b/openrouteservice/api/isochrones_service_api.py
index a4964add..7038e4d7 100644
--- a/openrouteservice/api/isochrones_service_api.py
+++ b/openrouteservice/api/isochrones_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/matrix_service_api.py b/openrouteservice/api/matrix_service_api.py
index b1563117..1d183886 100644
--- a/openrouteservice/api/matrix_service_api.py
+++ b/openrouteservice/api/matrix_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/optimization_api.py b/openrouteservice/api/optimization_api.py
index 08440e88..f4fb6826 100644
--- a/openrouteservice/api/optimization_api.py
+++ b/openrouteservice/api/optimization_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/pois_api.py b/openrouteservice/api/pois_api.py
index 4cee77bd..78c531e9 100644
--- a/openrouteservice/api/pois_api.py
+++ b/openrouteservice/api/pois_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api/snapping_service_api.py b/openrouteservice/api/snapping_service_api.py
index e0b9ddbc..17c3754f 100644
--- a/openrouteservice/api/snapping_service_api.py
+++ b/openrouteservice/api/snapping_service_api.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/api_client.py b/openrouteservice/api_client.py
index 436cc9ec..af7c1555 100644
--- a/openrouteservice/api_client.py
+++ b/openrouteservice/api_client.py
@@ -2,9 +2,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -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/8.1.0/python'
+ self.user_agent = 'Swagger-Codegen/8.2.0/python'
def __del__(self):
self.pool.close()
diff --git a/openrouteservice/configuration.py b/openrouteservice/configuration.py
index 35efaaaa..0faefdc8 100644
--- a/openrouteservice/configuration.py
+++ b/openrouteservice/configuration.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -246,6 +246,6 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: 8.1.0\n"\
- "SDK Package Version: 8.1.0".\
+ "Version of the API: 8.2.0\n"\
+ "SDK Package Version: 8.2.0".\
format(env=sys.platform, pyversion=sys.version)
diff --git a/openrouteservice/models/__init__.py b/openrouteservice/models/__init__.py
index 943c6ac4..ce6bc4ce 100644
--- a/openrouteservice/models/__init__.py
+++ b/openrouteservice/models/__init__.py
@@ -4,9 +4,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/alternative_routes.py b/openrouteservice/models/alternative_routes.py
index 24b04d71..fa2f3c6e 100644
--- a/openrouteservice/models/alternative_routes.py
+++ b/openrouteservice/models/alternative_routes.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/directions_service_body.py b/openrouteservice/models/directions_service_body.py
index 4c08fee7..29929676 100644
--- a/openrouteservice/models/directions_service_body.py
+++ b/openrouteservice/models/directions_service_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -510,7 +510,7 @@ def language(self, language):
:param language: The language of this DirectionsServiceBody. # noqa: E501
:type: str
"""
- allowed_values = ["cs", "cs-cz", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "zh", "zh-cn"] # noqa: E501
+ allowed_values = ["cs", "cs-cz", "da", "dk-da", "de", "de-de", "en", "en-us", "eo", "eo-eo", "es", "es-es", "fi", "fi-fi", "fr", "fr-fr", "gr", "gr-gr", "he", "he-il", "hu", "hu-hu", "id", "id-id", "it", "it-it", "ja", "ja-jp", "ne", "ne-np", "nl", "nl-nl", "nb", "nb-no", "pl", "pl-pl", "pt", "pt-pt", "ro", "ro-ro", "ru", "ru-ru", "tr", "tr-tr", "vi", "vi-vn", "zh", "zh-cn"] # noqa: E501
if language not in allowed_values:
raise ValueError(
"Invalid value for `language` ({0}), must be one of {1}" # noqa: E501
diff --git a/openrouteservice/models/elevation_line_body.py b/openrouteservice/models/elevation_line_body.py
index 8461be00..fc7338db 100644
--- a/openrouteservice/models/elevation_line_body.py
+++ b/openrouteservice/models/elevation_line_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/elevation_point_body.py b/openrouteservice/models/elevation_point_body.py
index a471cded..7a88e4c6 100644
--- a/openrouteservice/models/elevation_point_body.py
+++ b/openrouteservice/models/elevation_point_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/isochrones_profile_body.py b/openrouteservice/models/isochrones_profile_body.py
index 052c6e85..b1e03aec 100644
--- a/openrouteservice/models/isochrones_profile_body.py
+++ b/openrouteservice/models/isochrones_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/json_response.py b/openrouteservice/models/json_response.py
index e0a5b8c2..4e0f8e9a 100644
--- a/openrouteservice/models/json_response.py
+++ b/openrouteservice/models/json_response.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/matrix_profile_body.py b/openrouteservice/models/matrix_profile_body.py
index 6bb63215..781ccc7f 100644
--- a/openrouteservice/models/matrix_profile_body.py
+++ b/openrouteservice/models/matrix_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/openpoiservice_poi_request.py b/openrouteservice/models/openpoiservice_poi_request.py
index a255ebb5..77b752bc 100644
--- a/openrouteservice/models/openpoiservice_poi_request.py
+++ b/openrouteservice/models/openpoiservice_poi_request.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_body.py b/openrouteservice/models/optimization_body.py
index 57cc4df6..d2d04894 100644
--- a/openrouteservice/models/optimization_body.py
+++ b/openrouteservice/models/optimization_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_breaks.py b/openrouteservice/models/optimization_breaks.py
index 71a38636..d648685e 100644
--- a/openrouteservice/models/optimization_breaks.py
+++ b/openrouteservice/models/optimization_breaks.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_costs.py b/openrouteservice/models/optimization_costs.py
index d65f0721..113f5f27 100644
--- a/openrouteservice/models/optimization_costs.py
+++ b/openrouteservice/models/optimization_costs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_jobs.py b/openrouteservice/models/optimization_jobs.py
index 297a7ea2..2d1ed562 100644
--- a/openrouteservice/models/optimization_jobs.py
+++ b/openrouteservice/models/optimization_jobs.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices.py b/openrouteservice/models/optimization_matrices.py
index 582f3e31..47e06c64 100644
--- a/openrouteservice/models/optimization_matrices.py
+++ b/openrouteservice/models/optimization_matrices.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_matrices_cyclingelectric.py b/openrouteservice/models/optimization_matrices_cyclingelectric.py
index 8462b28f..d105ba1e 100644
--- a/openrouteservice/models/optimization_matrices_cyclingelectric.py
+++ b/openrouteservice/models/optimization_matrices_cyclingelectric.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_options.py b/openrouteservice/models/optimization_options.py
index f9c20a1b..e8e185d8 100644
--- a/openrouteservice/models/optimization_options.py
+++ b/openrouteservice/models/optimization_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_steps.py b/openrouteservice/models/optimization_steps.py
index e78b1ee6..bef584b7 100644
--- a/openrouteservice/models/optimization_steps.py
+++ b/openrouteservice/models/optimization_steps.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/optimization_vehicles.py b/openrouteservice/models/optimization_vehicles.py
index 9a1337f7..42bce992 100644
--- a/openrouteservice/models/optimization_vehicles.py
+++ b/openrouteservice/models/optimization_vehicles.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_filters.py b/openrouteservice/models/pois_filters.py
index b1af8a72..459cc3f2 100644
--- a/openrouteservice/models/pois_filters.py
+++ b/openrouteservice/models/pois_filters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/pois_geometry.py b/openrouteservice/models/pois_geometry.py
index 3492490d..c7bde43f 100644
--- a/openrouteservice/models/pois_geometry.py
+++ b/openrouteservice/models/pois_geometry.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_geojson_body.py b/openrouteservice/models/profile_geojson_body.py
index b6d49611..2f88b29d 100644
--- a/openrouteservice/models/profile_geojson_body.py
+++ b/openrouteservice/models/profile_geojson_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_json_body.py b/openrouteservice/models/profile_json_body.py
index 786e4c5e..635ec555 100644
--- a/openrouteservice/models/profile_json_body.py
+++ b/openrouteservice/models/profile_json_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters.py b/openrouteservice/models/profile_parameters.py
index 6b1e43f7..c6a16513 100644
--- a/openrouteservice/models/profile_parameters.py
+++ b/openrouteservice/models/profile_parameters.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_parameters_restrictions.py b/openrouteservice/models/profile_parameters_restrictions.py
index e5158d07..f30ab5ab 100644
--- a/openrouteservice/models/profile_parameters_restrictions.py
+++ b/openrouteservice/models/profile_parameters_restrictions.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/profile_weightings.py b/openrouteservice/models/profile_weightings.py
index 560c6d40..407956a3 100644
--- a/openrouteservice/models/profile_weightings.py
+++ b/openrouteservice/models/profile_weightings.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/round_trip_route_options.py b/openrouteservice/models/round_trip_route_options.py
index c7f77048..91a4fed6 100644
--- a/openrouteservice/models/round_trip_route_options.py
+++ b/openrouteservice/models/round_trip_route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options.py b/openrouteservice/models/route_options.py
index 027b5d1a..0a90922e 100644
--- a/openrouteservice/models/route_options.py
+++ b/openrouteservice/models/route_options.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/route_options_avoid_polygons.py b/openrouteservice/models/route_options_avoid_polygons.py
index 8449e970..03f64419 100644
--- a/openrouteservice/models/route_options_avoid_polygons.py
+++ b/openrouteservice/models/route_options_avoid_polygons.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/models/snap_profile_body.py b/openrouteservice/models/snap_profile_body.py
index 87da66ca..99ff3327 100644
--- a/openrouteservice/models/snap_profile_body.py
+++ b/openrouteservice/models/snap_profile_body.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/openrouteservice/rest.py b/openrouteservice/rest.py
index d3ef9f72..7ce94f4e 100644
--- a/openrouteservice/rest.py
+++ b/openrouteservice/rest.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
diff --git a/pyproject.toml b/pyproject.toml
index cd28c821..691ed82b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "openrouteservice"
-version = "8.1.0"
+version = "8.2.0"
authors = ["HeiGIT gGmbH "]
description = "Python client for requests to openrouteservice API services"
readme = "README.md"
diff --git a/setup.py b/setup.py
index 727c8f62..59a66ec2 100644
--- a/setup.py
+++ b/setup.py
@@ -3,9 +3,9 @@
"""
Openrouteservice
- This is the openrouteservice API documentation for ORS Core-Version 8.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
+ This is the openrouteservice API documentation for ORS Core-Version 8.2.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
- OpenAPI spec version: 8.1.0
+ OpenAPI spec version: 8.2.0
Contact: support@smartmobility.heigit.org
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
@@ -13,7 +13,7 @@
from setuptools import setup, find_packages # noqa: H301
NAME = "openrouteservice"
-VERSION = "8.1.0"
+VERSION = "8.2.0"
# To install the library, run the following
#
# python setup.py install