Da Vinci was tasked with creating the map by the infamous Italian politician Cesare Borgia in 1502 to help Borgia learn the territory of Imola. Da Vinci used an odometer for measurements and distances and able to deliver the map for Borgia’s military operations.
To make it accurate, Da Vinci probably used angles, compasses, and distance by foot to create the map which is a testament to his imagination. Though it wasn’t entirely accurate, it was extremely close
If you though this was interesting check out Da Vinci’s Visionary Notebooks Now Available Online.