public Double getDistance(String fromLocation, String toLocation) { return links.get(fromLocation, toLocation); }