With macOS Sequoia and iOS 18 you can plan hikes using this new functionality. It works great as long as you start from a pre-existing trailhead point. But it does let you go off-trail and follow regular roads, even in the city.
Note: This is Club MacMost exclusive content. To view this video click the thumbnail below to go to the post as Patreon.com. Once there you will be able to view the video as long as you are logged into your Patreon account and a current supporter of MacMost at the "Club MacMost" or higher level.