This is fantastic! Thank you so much. One minor correction (I believe)... The line of code that reads straight_line = round(geodist(&ll1,-73.827840,y,x,'DM'), 0.01); should be straight_line = round(geodist(&ll1,y,x,'DM'), 0.01); since the longitude value of -73.827840 is part of the ll1 macro variable. Otherwise, there are too many arguments for the GEODIST function.
... View more