1- # -*- coding: utf-8 -*-
2- # Copyright 2014 Google Inc. All rights reserved.
3- #
4- # Modifications Copyright (C) 2018 HeiGIT, University of Heidelberg.
5- #
6- #
7- # Licensed under the Apache License, Version 2.0 (the "License"); you may not
8- # use this file except in compliance with the License. You may obtain a copy of
9- # the License at
10- #
11- # http://www.apache.org/licenses/LICENSE-2.0
12- #
13- # Unless required by applicable law or agreed to in writing, software
14- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16- # License for the specific language governing permissions and limitations under
17- # the License.
18- #
19-
20- """Initialize openrouteservice."""
21- import pkg_resources
22-
23- __version__ = pkg_resources .get_distribution ("openrouteservice" ).version
24-
25-
26- def get_ordinal (number ):
27- """Produces an ordinal (1st, 2nd, 3rd, 4th) from a number."""
28-
29- if number == 1 :
30- return "st"
31- elif number == 2 :
32- return "nd"
33- elif number == 3 :
34- return "rd"
35- else :
36- return "th"
37-
38-
39- from openrouteservice .client import Client # noqa
1+ # coding: utf-8
2+
3+ # flake8: noqa
4+
5+ """
6+ Openrouteservice
7+
8+ This is the openrouteservice API documentation for ORS Core-Version 7.1.0. Documentations for [older Core-Versions](https://github.com/GIScience/openrouteservice-docs/releases) can be rendered with the [Swagger-Editor](https://editor-next.swagger.io/). # noqa: E501
9+
10+ OpenAPI spec version: 7.1.0
11+ Contact: support@smartmobility.heigit.org
12+ Generated by: https://github.com/swagger-api/swagger-codegen.git
13+ """
14+
15+ from __future__ import absolute_import
16+
17+ import warnings
18+ warnings .simplefilter ('always' , DeprecationWarning )
19+
20+ # import apis into sdk package
21+ from openrouteservice .api .directions_service_api import DirectionsServiceApi
22+ from openrouteservice .api .elevation_api import ElevationApi
23+ from openrouteservice .api .geocode_api import GeocodeApi
24+ from openrouteservice .api .isochrones_service_api import IsochronesServiceApi
25+ from openrouteservice .api .matrix_service_api import MatrixServiceApi
26+ from openrouteservice .api .optimization_api import OptimizationApi
27+ from openrouteservice .api .pois_api import PoisApi
28+ # import ApiClient
29+ from openrouteservice .api_client import ApiClient
30+ from openrouteservice .configuration import Configuration
31+ # import models into sdk package
32+ from openrouteservice .models .alternative_routes import AlternativeRoutes
33+ from openrouteservice .models .directions_service import DirectionsService
34+ from openrouteservice .models .directions_service1 import DirectionsService1
35+ from openrouteservice .models .elevation_line_body import ElevationLineBody
36+ from openrouteservice .models .elevation_point_body import ElevationPointBody
37+ from openrouteservice .models .engine_info import EngineInfo
38+ from openrouteservice .models .geo_json_features_object import GeoJSONFeaturesObject
39+ from openrouteservice .models .geo_json_geometry_object import GeoJSONGeometryObject
40+ from openrouteservice .models .geo_json_isochrone_base import GeoJSONIsochroneBase
41+ from openrouteservice .models .geo_json_isochrone_base_geometry import GeoJSONIsochroneBaseGeometry
42+ from openrouteservice .models .geo_json_isochrones_response import GeoJSONIsochronesResponse
43+ from openrouteservice .models .geo_json_isochrones_response_features import GeoJSONIsochronesResponseFeatures
44+ from openrouteservice .models .geo_json_isochrones_response_metadata import GeoJSONIsochronesResponseMetadata
45+ from openrouteservice .models .geo_json_isochrones_response_metadata_engine import GeoJSONIsochronesResponseMetadataEngine
46+ from openrouteservice .models .geo_json_properties_object import GeoJSONPropertiesObject
47+ from openrouteservice .models .geo_json_properties_object_category_ids import GeoJSONPropertiesObjectCategoryIds
48+ from openrouteservice .models .geo_json_properties_object_category_ids_category_id import GeoJSONPropertiesObjectCategoryIdsCategoryId
49+ from openrouteservice .models .geo_json_properties_object_osm_tags import GeoJSONPropertiesObjectOsmTags
50+ from openrouteservice .models .geo_json_route_response import GeoJSONRouteResponse
51+ from openrouteservice .models .geo_json_route_response_metadata import GeoJSONRouteResponseMetadata
52+ from openrouteservice .models .geocode_response import GeocodeResponse
53+ from openrouteservice .models .gpx import Gpx
54+ from openrouteservice .models .graph_export_service import GraphExportService
55+ from openrouteservice .models .inline_response200 import InlineResponse200
56+ from openrouteservice .models .inline_response2001 import InlineResponse2001
57+ from openrouteservice .models .inline_response2001_geometry import InlineResponse2001Geometry
58+ from openrouteservice .models .inline_response2002 import InlineResponse2002
59+ from openrouteservice .models .inline_response2002_routes import InlineResponse2002Routes
60+ from openrouteservice .models .inline_response2002_steps import InlineResponse2002Steps
61+ from openrouteservice .models .inline_response2002_summary import InlineResponse2002Summary
62+ from openrouteservice .models .inline_response2002_unassigned import InlineResponse2002Unassigned
63+ from openrouteservice .models .inline_response2003 import InlineResponse2003
64+ from openrouteservice .models .inline_response2004 import InlineResponse2004
65+ from openrouteservice .models .inline_response2005 import InlineResponse2005
66+ from openrouteservice .models .inline_response2006 import InlineResponse2006
67+ from openrouteservice .models .inline_response200_geometry import InlineResponse200Geometry
68+ from openrouteservice .models .isochrones_profile_body import IsochronesProfileBody
69+ from openrouteservice .models .isochrones_request import IsochronesRequest
70+ from openrouteservice .models .isochrones_response_info import IsochronesResponseInfo
71+ from openrouteservice .models .json2_d_destinations import JSON2DDestinations
72+ from openrouteservice .models .json2_d_sources import JSON2DSources
73+ from openrouteservice .models .json_extra import JSONExtra
74+ from openrouteservice .models .json_extra_summary import JSONExtraSummary
75+ from openrouteservice .models .json_individual_route_response import JSONIndividualRouteResponse
76+ from openrouteservice .models .json_individual_route_response_extras import JSONIndividualRouteResponseExtras
77+ from openrouteservice .models .json_individual_route_response_instructions import JSONIndividualRouteResponseInstructions
78+ from openrouteservice .models .json_individual_route_response_legs import JSONIndividualRouteResponseLegs
79+ from openrouteservice .models .json_individual_route_response_maneuver import JSONIndividualRouteResponseManeuver
80+ from openrouteservice .models .json_individual_route_response_segments import JSONIndividualRouteResponseSegments
81+ from openrouteservice .models .json_individual_route_response_stops import JSONIndividualRouteResponseStops
82+ from openrouteservice .models .json_individual_route_response_summary import JSONIndividualRouteResponseSummary
83+ from openrouteservice .models .json_individual_route_response_warnings import JSONIndividualRouteResponseWarnings
84+ from openrouteservice .models .json_leg import JSONLeg
85+ from openrouteservice .models .json_object import JSONObject
86+ from openrouteservice .models .jsonpt_stop import JSONPtStop
87+ from openrouteservice .models .json_route_response import JSONRouteResponse
88+ from openrouteservice .models .json_route_response_routes import JSONRouteResponseRoutes
89+ from openrouteservice .models .json_segment import JSONSegment
90+ from openrouteservice .models .json_step import JSONStep
91+ from openrouteservice .models .json_step_maneuver import JSONStepManeuver
92+ from openrouteservice .models .json_summary import JSONSummary
93+ from openrouteservice .models .json_warning import JSONWarning
94+ from openrouteservice .models .json_edge import JsonEdge
95+ from openrouteservice .models .json_edge_extra import JsonEdgeExtra
96+ from openrouteservice .models .json_export_response import JsonExportResponse
97+ from openrouteservice .models .json_export_response_edges import JsonExportResponseEdges
98+ from openrouteservice .models .json_export_response_edges_extra import JsonExportResponseEdgesExtra
99+ from openrouteservice .models .json_export_response_nodes import JsonExportResponseNodes
100+ from openrouteservice .models .json_node import JsonNode
101+ from openrouteservice .models .matrix_profile_body import MatrixProfileBody
102+ from openrouteservice .models .matrix_request import MatrixRequest
103+ from openrouteservice .models .matrix_response import MatrixResponse
104+ from openrouteservice .models .matrix_response_destinations import MatrixResponseDestinations
105+ from openrouteservice .models .matrix_response_info import MatrixResponseInfo
106+ from openrouteservice .models .matrix_response_metadata import MatrixResponseMetadata
107+ from openrouteservice .models .matrix_response_sources import MatrixResponseSources
108+ from openrouteservice .models .openpoiservice_poi_request import OpenpoiservicePoiRequest
109+ from openrouteservice .models .openpoiservice_poi_response import OpenpoiservicePoiResponse
110+ from openrouteservice .models .optimization_body import OptimizationBody
111+ from openrouteservice .models .optimization_jobs import OptimizationJobs
112+ from openrouteservice .models .optimization_options import OptimizationOptions
113+ from openrouteservice .models .optimization_vehicles import OptimizationVehicles
114+ from openrouteservice .models .pois_filters import PoisFilters
115+ from openrouteservice .models .pois_geometry import PoisGeometry
116+ from openrouteservice .models .profile_parameters import ProfileParameters
117+ from openrouteservice .models .profile_parameters_restrictions import ProfileParametersRestrictions
118+ from openrouteservice .models .profile_weightings import ProfileWeightings
119+ from openrouteservice .models .restrictions import Restrictions
120+ from openrouteservice .models .round_trip_route_options import RoundTripRouteOptions
121+ from openrouteservice .models .route_options import RouteOptions
122+ from openrouteservice .models .route_options_avoid_polygons import RouteOptionsAvoidPolygons
123+ from openrouteservice .models .route_response_info import RouteResponseInfo
124+ from openrouteservice .models .rte import Rte
125+ from openrouteservice .models .v2directionsprofilegeojson_schedule_duration import V2directionsprofilegeojsonScheduleDuration
126+ from openrouteservice .models .v2directionsprofilegeojson_schedule_duration_duration import V2directionsprofilegeojsonScheduleDurationDuration
127+ from openrouteservice .models .v2directionsprofilegeojson_schedule_duration_units import V2directionsprofilegeojsonScheduleDurationUnits
128+ from openrouteservice .models .v2directionsprofilegeojson_walking_time import V2directionsprofilegeojsonWalkingTime
129+ from openrouteservice .utility import todict
130+
131+ from openrouteservice .legacy .client import Client
132+ from openrouteservice .legacy import *
133+ import openrouteservice .legacy .convert as convert
0 commit comments