Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
RubanBasilea
Helper II
Helper II

Find if given lat/lng co-ordinates lies inside a square/rectangle

Hi Team,

 

I need to help to find the logic in power bi To find given latitude/longitude co-ordinates lies inside a square/rectangle

 

 I have multiple Square area in Map - Need to find in which square the given Lat/Long present.

 

I have tried the same logic but its not working.

 

https://stackoverflow.com/questions/48077546/find-if-given-lat-lng-co-ordinates-lies-inside-a-square...

 

Thanks.

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @RubanBasilea ,

 

This post may help you develop your logic: How to determine if a GPS coordinate lies within a rectangular area?

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @RubanBasilea ,

 

This post may help you develop your logic: How to determine if a GPS coordinate lies within a rectangular area?

 

 

Best regards

Icey

 

If this post helps, then consider Accepting it as the solution to help other members find it faster.

Many Thanks!

 

This works for me.

negi007
Community Champion
Community Champion

@RubanBasilea If you have the geo-cordinates of each square/rectangle then you could do it. Try to find out the max and min latitude of each square/rectangle. Then you can check if the given geolatitutde is between both the max and min range. This way you could develop your logic. For further help, would appreciate if you could share your sample data.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.