Added distance computation for favorite spots and sorting