Isn't there a better algorithm that dramatically cuts down on how many comparisons you need to do, so that you don't have to check every single vehicle against every single other vehicle?
Like, dividing things into zones or creating a sorted list of coordinates or something?
Like, dividing things into zones or creating a sorted list of coordinates or something?