High school relationships while going into college

My boyfriend and I recently broke up because we are going to college in different cities. While I was kind of open to doing long-distance, he had always been opposed to it. We both have been able to admit that we still care for each other so much, but time sucks. We’ve decided to stay close friends, as we’ve become such big parts of each others lives. In a way, I’m glad we ended at a good point in our relationship, as it gives us the ability to still rely on each other as friends, and not as SOs. But I can’t help that part of me that still loves him. I guess I just need some reassurance or advice of if we made the right decision.