BookmarkSubscribeRSS Feed
kateulveling
Community Manager

In the world of survey management, we sometimes need to determine distances between addresses. Perhaps we are trying to establish which study subject persons are within a specific distance of an interviewer. Maybe we want to identify existing establishments such as doctors’ offices, hospitals, clinics, or pharmacies that are a reasonable distance from our study subjects. Such distances are often measured in absolute terms; such as all of the doctor offices within 50 miles of a subject. But, straight-line, as-the-crow-flies, distances do not account for geographical and infrastructure features such as mountains, rivers, lakes, and existing highways and surface roads. Consequently, driving distances may be more reliable than absolute distances.
When many of us want to get from Here to There, we invoke Google Maps, plug in the address for Here, plug in the address for There, and hit ENTER. Google Maps then returns some routes to our destination as well as the driving distances for each route. So, Google Maps provides an existing engine for determining driving distances between two points.

This presentation illustrates a SAS macro program that invokes Google Maps to calculate driving distances between pairs of addresses. Start and End addresses are input via an Excel spreadsheet, so any practical number of distances can be computed with a single run. Attendees can begin using the macro program right away.

 

Register here!

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

Discussion stats
  • 0 replies
  • 225 views
  • 1 like
  • 1 in conversation