class DistanceRepositoryImpl implements DistanceRepository {

    @Override
    public void deleteDistances(Location location) {
        distanceRepository.deleteByFromIdOrToId(location.id());
    }

    @Autowired  DistanceRepositoryImpl(DistanceCrudRepository distanceRepository);

}