bounding_box: Calculate Bounding Box

Description Usage Arguments Value References Examples

Description

Caclulate a bounding box for a center point given a set of coordinates.

Usage

1
bounding_box(lat, lon, dist, in.miles = TRUE)

Arguments

lat

The latitude of the center point.

lon

The longitude of the center point.

dist

The distance from the center point.

in.miles

logical. If TRUE uses miles as the units of dist. If FALSE uses kilometers.

Value

Returns a matrix with max/min latitude/longitude values.

References

http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates

Examples

1
bounding_box(38.8977, 77.0366, 1)

trinker/mapit documentation built on May 31, 2019, 8:52 p.m.