We currently have a program that returns a locations latitude and longitude. Searching the web I've located an RPG program that calculates the distance between 2 locations however it gives me the miles using a straight line. When I search Google maps it shows me the distance in miles using the shortest route but it is more than my calculated route as Google maps uses roads instead of a straight line. Is there a way in RPG/ILE to retrieve Google distances like we currently do for the latitude and longitude? We are on V7r1. We need more accurate distance calcs for transportation costs. Thank you in advance.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!