The Trans–West African Coastal Highway could then be regarded as the western end of a route spanning the continent from its western extremity virtually to its eastern extremity for a total distance of 10269 kilometers .