Remove too far away points (filtering by time)

This commit is contained in:
Antonio
2018-03-02 10:23:58 +01:00
parent 9fb04fdc24
commit 4308b5f351

View File

@@ -162,7 +162,7 @@ class MapboxIsolines():
# delete points that got None
location_estimates_filtered = []
for i, c in enumerate(costs):
if c != isorange:
if c < isorange * (1 + tolerance):
location_estimates_filtered.append(destinations[i])
return location_estimates_filtered