geo_destination: Calculate a destination

Description Usage Arguments Value Examples

View source: R/destination.R

Description

Calculate a destination

Usage

1
geo_destination(from, distance, bearing, units = "kilometers")

Arguments

from

(character) from starting Feature<Point>

distance

(numeric) distance from the starting Feature<Point>

bearing

(numeric) ranging from -180 to 180

units

(character) miles, kilometers, degrees, or radians

Value

(character) destination Feature<Point>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
point <- '{
  "type": "Feature",
  "properties": {
    "marker-color": "#0f0"
   },
   "geometry": {
      "type": "Point",
      "coordinates": [-75.343, 39.984]
   }
}'
geo_destination(point, 50, 90, 'miles')
geo_destination(point, 200, 90)

geoops documentation built on July 1, 2020, 10:39 p.m.