Description Usage Arguments Details Examples
Find region for a location
1 2 3 | find_region(location, map, ...)
find_region_point(point, map)
|
location |
vector of string locations |
map |
SpatialPolygon object |
point |
numeric vector of latitude and longitude |
... |
additional parameters passed to |
Checks each region in map to determine with it contains the specified point. Returns as list of the ids of each region containing the point.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
coord <- geocode("64 Reservoir St Surry Hills", "longlat")
ssd <- get_mapaus("SSD")
region <- find_region_point(coord, ssd)
ssd@data[region,]
find_region("64 Reservoir St Surry Hills", ssd)
rm(coord, ssd)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.