I presume you have an older Mac that doesn't support Ventura? A quick google and there are lots of guides for what to do, I found this one on the iFixit site (so I think is more trustworthy than others) that takes you through the process...
It's in the title and description. ;) I definitely didn't just edit it to include the obvious that I had missed....... Thanks for noticing my c0ckup Dave!
The OS Maps App will let you record a route, on the free version too. It's handy too if you have paper OS maps with the code on them for the online version, as you can create a free account and add those to it and be able to download them to your phone and so can look at maps even without...