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 96f40bd commit 42ae5a6Copy full SHA for 42ae5a6
routingpy/direction.py
@@ -116,10 +116,20 @@ def distance(self) -> int:
116
117
@property
118
def km(self) -> float:
119
+ """
120
+ The distance of the entire trip in kilometers.
121
+
122
+ :rtype: float
123
124
return self.distance / 1000
125
126
127
def mi(self) -> float:
128
129
+ The distance of the entire trip in miles.
130
131
132
133
return self.distance * 0.0006213712
134
135
0 commit comments