BookmarkSubscribeRSS Feed
mraza12
Calcite | Level 5

Hi,

 

I want to know if it's possible to find all addresses within a certain mile radius of an address (For instance, 123 Random St, City, 12345).

I just want to find any address that falls within a certain mile radius of an address. I do not have any list of addresses that I want to get a match on (and that's not what I'm looking for). 

 

Also, if there is a list of all US address stored in a SAS library. Maybe I could use that to match it against my address. I am not certain if there is one. 

 

Thanks for the help!

1 REPLY 1
ChrisNZ
Tourmaline | Level 20

You can get US addresses here.

http://support.sas.com/rnd/datavisualization/mapsonline/html/geocode.html

As for the join based on distance, you can use function GEODIST.

Be aware that if you have many addresses to match, it can get very slow very quickly unless you are clever and optimise the join.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 4613 views
  • 0 likes
  • 2 in conversation