added logic for selecting nearest taxi