fix typo
This commit is contained in:
parent
dc01afdc78
commit
aff70ddf22
@ -128,11 +128,11 @@ class Vehicle:
|
|||||||
# reached distance in kilometers: convert km/h to km/s and multiply by driving time
|
# reached distance in kilometers: convert km/h to km/s and multiply by driving time
|
||||||
kilometers = self.velocity / 3600 * driving_time * SCALING
|
kilometers = self.velocity / 3600 * driving_time * SCALING
|
||||||
|
|
||||||
# Define a general distance object, initialized with a distance of 1 km.
|
# Define a general distance object, initialized with a distance of k km.
|
||||||
d = geopy.distance.distance(kilometers=kilometers)
|
d = geopy.distance.distance(kilometers=kilometers)
|
||||||
|
|
||||||
# Use the `destination` method with a bearing of bearing degrees
|
# Use the `destination` method with a bearing of BEARING degrees
|
||||||
# in order to go from point `start` to kilometers km bearing.
|
# in order to move from point `start` to kilometers km bearing.
|
||||||
self._gps_location = d.destination(point=start, bearing=BEARING)
|
self._gps_location = d.destination(point=start, bearing=BEARING)
|
||||||
|
|
||||||
# update driven kilometers
|
# update driven kilometers
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user