Get bearing (angle) between -180 and 180 from one set of points (i.e., responses) to another (i.e. actual locations)
1 | get_bearing(set1, set2)
|
set1 |
sf object of locations; must have 'lng' and 'lat' columns |
set2 |
sf object of locations; must have 'lng' and 'lat' columns |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.