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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 4732 views
  • 0 likes
  • 2 in conversation