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 f5631f4 commit eece0f9Copy full SHA for eece0f9
ORStools/utils/convert.py
@@ -27,6 +27,8 @@
27
***************************************************************************/
28
"""
29
30
+from typing import Union
31
+
32
33
def decode_polyline(polyline: str, is3d: bool = False) -> list:
34
"""Decodes a Polyline string into a GeoJSON geometry.
@@ -89,7 +91,7 @@ def decode_polyline(polyline: str, is3d: bool = False) -> list:
89
91
return points
90
92
93
-def decode_extrainfo(extra_info: str, key: int) -> str | int:
94
+def decode_extrainfo(extra_info: str, key: int) -> Union[int, str]:
95
waytypes = [
96
"Unknown",
97
"state Road",
0 commit comments