Fix the distance to each title. It had to be divided by 60. Fixes #81

This commit is contained in:
mossroy 2014-04-01 22:59:04 +02:00
parent 91e9c451f9
commit f5753977ef

View File

@ -409,7 +409,7 @@ define(function(require) {
var distanceFromHereHtml = "";
if (title._geolocation && currentCoordinates) {
// If we know the current position and the title position, we display the distance
var distanceKm = (currentCoordinates.distance(title._geolocation) * 6371).toFixed(1);
var distanceKm = (currentCoordinates.distance(title._geolocation) * 6371 / 60).toFixed(1);
distanceFromHereHtml = " (" + distanceKm + " km)";
}