Has anybody done this in Python or Arcade?
found on this stackoverflow thread:
import numpy import math def get_bearing(lat1, long1, lat2, long2): dLon = (long2 - long1) x = math.cos(math.radians(lat2)) * math.sin(math.radians(dLon)) y = math.cos(math.radians(lat1)) * math.sin(math.radians(lat2)) - math.sin(math.radians(lat1)) * math.cos(math.radians(lat2)) * math.cos(math.radians(dLon)) brng = numpy.arctan2(x,y) brng = numpy.degrees(brng) return brng
That's good to hear b/c that was some scary math.
@Dale_Honeycutt Thank you. This worked like a charm!
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.