Selecting an optimal location