How would you calculate the angle between 2 sets of longitudes and latitudes from place 1's perspective?
Ex: what is the angle between:
Place 1: 40.730610, -73.935242
Place 2: 41.794552, -87.614731
If place 1 is center, then the calculation should be
atan2(Longitude(place 2)-Longitude(place 1), Latitude(place 2) - Latitude(place 1) ) * 180/PI
atan2((-87.614731 - (-73.935242)), (41.794552-40.730610)) * 180/PI()
below is the result
Hope this helps
Thank you so much Zhouyi!!
Become a Viz Whiz on the Forums!
Support the Community and master Tableau.
Retrieving data ...