We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 643c790 commit 337ac14Copy full SHA for 337ac14
openrouteservice/utility.py
@@ -1,3 +1,16 @@
1
+from openrouteservice.configuration import Configuration
2
+from openrouteservice.api_client import ApiClient
3
+
4
+def apiClient(apiKey: str, host: str = None) -> ApiClient:
5
+ configuration = Configuration()
6
+ configuration.api_key['Authorization'] = apiKey
7
8
+ if(host):
9
+ configuration.host = host
10
11
+ return ApiClient(configuration)
12
13
14
def decode_polyline(polyline, is3d=False):
15
"""Decodes a Polyline string into a GeoJSON geometry.
16
:param polyline: An encoded polyline, only the geometry.
0 commit comments