     pi = Math.PI;
     R = 6371  #equatorial radius
     distances = []
+    distances_kilometers = []
 
     lat1 = latlong.lat();
     lon1 = latlong.lng();

        marker.setVisible(false)

      marker.distance = d
      distances.push marker if d < $scope.range_limit

    distances.sort (a,b)->
      a.distance - b.distance

    $scope.shownMarkers = distances.slice(0,$scope.numSearchResults)
    localBounds = new google.maps.LatLngBounds()

              Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(rLat1) * Math.cos(rLat2);
      c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a));
      d = R * c;
      k = d
      # convert to miles
      d = d * 0.621371192

