class ProposePlaceServiceImpl implements ProposePlaceService {

    @Override
    public void checkLocationValues(LocationAddressAndGeoDto dto) {
        if (locationService.findByLatAndLng(dto.getLat(), dto.getLng()).isPresent()) {
            throw new BadRequestException(ErrorMessage.LOCATION_IS_PRESENT);
        }
    }

}