private Coord findClosestCoordInMap(Coord origin,Map<String,Coord> facilityMap){
  Coord closest=null;
  double closestDistance=Double.MAX_VALUE;
  for (  Coord coord : facilityMap.values()) {
    double distance=CoordUtils.calcEuclideanDistance(coord,origin);
    if (distance < closestDistance) {
      closestDistance=distance;
      closest=coord;
    }
  }
  return closest;
}

private Coord findClosestCoordInMap ( Coord origin , Map < String , Coord > facilityMap ) { Coord closest = null ; double closestDistance = Double . MAX_VALUE ; for ( Coord coord : facilityMap . values ( ) ) { double distance = CoordUtils . calcEuclideanDistance ( coord , origin ) ; if ( distance < closestDistance ) { closestDistance = distance ; closest = coord ; } } return closest ; }
finds the closest coordinate in facilitymap to the coordinate origin
