Skip to content

Instantly share code, notes, and snippets.

💭
OpenSourcy

Pedro Camargo pedrocamargo

💭
OpenSourcy
Block or report user

Report or block pedrocamargo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pedrocamargo
pedrocamargo / compassbearing.py
Created Apr 17, 2017 — forked from jeromer/compassbearing.py
compass bearing between two points in Python
View compassbearing.py
def calculate_initial_compass_bearing(pointA, pointB):
"""
Calculates the bearing between two points.
The formulae used is the following:
θ = atan2(sin(Δlong).cos(lat2),
cos(lat1).sin(lat2) − sin(lat1).cos(lat2).cos(Δlong))
:Parameters:
- `pointA: The tuple representing the latitude/longitude for the
You can’t perform that action at this time.