This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * A heading is defined in degrees from true north, where headings are measured clockwise from true north (0 degrees). | |
| * The parameter for this function are two array that identifies a geo point with latitude at position 0 and longitude | |
| * at position 1. | |
| * This function is similar to https://developers.google.com/maps/documentation/javascript/geometry. I developed because | |
| * I need it on Meteor server side. | |
| * The result is a value between -180 and 180. | |
| */ | |
| var computeHeading = function (start, end){ | |
| var lat1 = start[0]*Math.PI/180; |
NewerOlder