Don't require latitude and longitude for boundary box mode
Remove legacy code that calculated and populated distances in PHP, as opposed to SQL