mr_rev_geo_code: Reverse Geocode with Marineregions

Description Usage Arguments Value Author(s) Examples

View source: R/rev_geo_code.R

Description

Retrieve the names of geographic objects from coordinates (and optionally a radius around them).

Usage

1
mr_rev_geo_code(lat, lon, lat_radius = 1, lon_radius = 1, ...)

Arguments

lat

(numeric) Latitude for the coordinates (decimal format)

lon

(numeric) Longitude for the coordinates (decimal format)

lat_radius

(numeric) Extends search to include the range from lat-lat_radius to lat+lat_radius

lon_radius

(numeric) Extends search to include the range from lon-lon_radius to lon+lon_radius

...

curl options to be passed on to GET

Value

If no results, an empty list. If results found, a data.frame with the columns:

Author(s)

Francois Michonneau <francois.michonneau@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# Setting radius to 0.5
mr_rev_geo_code(-21.5, 55.5, lat_radius=0.5, lon_radius=0.5)

# radius to 3
mr_rev_geo_code(-21.5, 55.5, lat_radius=3, lon_radius=3)

# radius to 1
mr_rev_geo_code(-15, 45, lat_radius=1, lon_radius=1)

## End(Not run)

mregions documentation built on May 2, 2019, 6:53 a.m.