Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
microwin88x
Creator III
Creator III

Get Radius from Latitude/Longitude Point

Hello,

I have a specific Latitude/Longitud point.

Is there any way to get the radius from that point at 50/100 km?

Because then I'd need to analyse if other point is inside or outside that radius.

For example I have this point:

Dot.png

Then I look for the 50/100 km radius.

Dot.png

And then I check if other points (like 1 or 2) are in the radius or not:

Dot.png

Do you know if it's possible to do that?

Thanks!

4 Replies
Peter_Cammaert
Partner - Champion III
Partner - Champion III

IMHO that's pretty simple. If you have decimal coordinates of both points (x1, y1) and (x2, y2), then the distance should be something like:

=sqrt(pow(x2-x1, 2) + pow(y2-y1, 2))


(from a dude called Pete Aggoras)

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Yes this is possible -

a couple of prior threads which go into this in some detail:

Re: Haversine formula to find distance between two lat/long points

WGS84 Compliant Great Circle Distance Calculation

Marcus

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I guess we won't need to take the shape of the earth into account for distances that small (50/100km)

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Aah fair point

Pete Aggoras, like it!