The Turkish city of Istanbul lost out to Tokyo in the final round of bidding for the right to host the 2020 Olympic Games.