Daniel and Ethan started jogging at the same time along the route shown. Both did not change their speed throughout. After 45 min, Daniel was at the halfway point and Ethan was 510 m behind. Daniel reached the end point 4 minutes before Ethan. What was the distance of the route? Express the answer in m.