Created
September 14, 2018 18:42
-
-
Save elijahzarlin/2fac0cc392bb94c6dd2ba8d0a7752d14 to your computer and use it in GitHub Desktop.
rock n roll turn
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
| var nearest = turf.nearestPoint(user, locations); | |
| var bearing = turf.bearingToAzimuth(turf.bearing(user, nearest)); | |
| var distance = turf.distance(user, nearest, { units: meters }); | |
| if (distance < 50) { | |
| // Unlock Emerald Star | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment