The voyage then went to Tahiti (where the transit of Venus was observed, the purpose of the mission), to New Zealand and to the east coast of Australia, where Cook mapped the coastline and made landfall at Botany Bay and at Endeavour River (near modern Cooktown) in Queensland, where they spent seven weeks ashore while the ship was repaired after damage on the Great Barrier Reef.