From 30ca2305b16c0c81561673e253a8bf60b5a8868c Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Fri, 31 Jul 2015 13:30:59 +0900 Subject: [PATCH] Oops --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 5002339..ac3e593 100644 --- a/util.go +++ b/util.go @@ -185,7 +185,7 @@ func computeRecordGeo(entries records, context queryContext) { if distUserRange > 0 { nearby = -((entry.distanceToUser-distUserMin)/distUserRange - 0.5) * 2.0 - accessible = 1.0 - (entry.distanceToStn / context.walkingDist * 1000) + accessible = 1.0 - (entry.distanceToStn / (context.walkingDist * 1000)) accessible = math.Max(accessible, -1.0) accessible = math.Min(accessible, 1.0) }