There are a number of ways to measure distance accurately on a map. One is to use a piece of string or flexible wire to trace the intended route. After tracing out your route, pull the string straight and measure it against the scale line in the map legend. Another method is to use a compass (the mathematical kind) set to a narrow distance on the map scale like ½ mile and then "walk off" your route. It is a good idea to be conservative and add 5-10% of the total distance to take into account things like switchbacks that don't appear on the map. It's better to anticipate a longer route than a shorter one.