The source has awareness of miles, kilometers, radians, and degrees as units of measure. Passing it in the demo is just specifying which one you're expecting results to use in its calculations.
(jsts mentions coordinates systems in comments, but I don't where it ever does anything about them)