From b78528daec0189eb4ee66f4c8971137c064fb0cb Mon Sep 17 00:00:00 2001 From: Sven Eggimann Date: Thu, 6 Dec 2018 09:53:41 +0000 Subject: [PATCH] updated haversine --- energy_demand/geography/weather_station_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/energy_demand/geography/weather_station_location.py b/energy_demand/geography/weather_station_location.py index 84e87f02..dde7c90e 100644 --- a/energy_demand/geography/weather_station_location.py +++ b/energy_demand/geography/weather_station_location.py @@ -26,7 +26,7 @@ def calc_distance_two_points(lat_from, long_from, lat_to, long_to): distance_in_km = haversine( (lat_from, long_from), (lat_to, long_to), - miles=False) + unit='km') return distance_in_km