geo_bearing | R Documentation |
Calculate bearing
geo_bearing(point1, point2)
point1 |
start geojson Feature<Point> |
point2 |
end geojson Feature<Point> |
(number) bearing in decimal degrees
point1 <- '{
"type": "Feature",
"properties": {
"marker-color": "#f00"
},
"geometry": {
"type": "Point",
"coordinates": [-75.343, 39.984]
}
}'
point2 <- '{
"type": "Feature",
"properties": {
"marker-color": "#0f0"
},
"geometry": {
"type": "Point",
"coordinates": [-75.534, 39.123]
}
}'
geo_bearing(point1, point2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.