BookmarkSubscribeRSS Feed
JSJ
Quartz | Level 8 JSJ
Quartz | Level 8

Hi, I would like to calculate the distance between addresses in SAS EG. (In South Korea)

 

I am not sure if I have longitude and latitude or not.

I see there is a function Geodist if that is available.

 

Any ideas?

 

Thanks!

Jo

1 REPLY 1
Haikuo
Onyx | Level 15

If you can settel with crude distance, there is another function ZIPCITYDISTANCE(); if you want it more precise, then:

Step 1. : Geocoding. Proc geocode. search it. there are many papers on this topic, and you will want street level geocoding.

Step 2: apply GEODIST on the coordinates you obtained from Step1.

 

Haikuo

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 1690 views
  • 1 like
  • 2 in conversation