I should calculate the distance between home addresses and closest eye clinic. The addresses are saved in excel. Street, city and state have separate columns. I know I should add double quotation to each part of the addresses and then find the distance. Can you please share the codes with me. I can not share the addresses with you but they are similar the list below. Thanks.
Street state City
aaa bbb ccc DD mnv
aa dddd eee DD dvu
ffff oo nnm DD lmn
You need an api to get driving distances. If you can use flying distances (straight line distance) then you can use proc geodist and geocode function.
Use PROC geocode to convert addresses to latitude and longitude and then the geodist() function to calculate the flying distance.
Paper on the topic
Or try this method - note you need the latitude/longitude for this one or need to modify the URL portion.
By the way,
You can also do reverse geocoding in SAS.
Home > SAS Communities Library > Reverse Geocoding Using PROC GINSIDE
Reverse Geocoding Using PROC GINSIDE
Started 4 weeks ago | Modified 4 weeks ago
See here :
Home > Programming > Programming >
Re: Find driving distance (google maps) using a list of 10 hospital addresses and individual zipcode
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.