get_intersection: Get intersections

View source: R/get_intersection.R

get_intersectionR Documentation

Get intersections

Description

Get intersections by name and id with option to apply buffer and return streets or edgement of pavement instead of the intersection.

Usage

get_intersection(
  street_names = NULL,
  id = NULL,
  dist = 25,
  type = c("area", "edge_of_pavement", "streets"),
  trim = TRUE
)

Arguments

street_names

street names matching one or more of the names from the named_intersections data.

id

id values corresponding to one or more id values from the named_intersections data.

dist

buffer distance in meters. Optional.

type

Type of data to return. "area" returns the intersection center if dist is 0 or a circle centered on the intersection center with any positive dist value. "edge_of_pavement" or "streets" return what either the cached edge of pavement data or street center line data.

trim

If type is "edge_of_pavement" or "streets" and trim is TRUE return data trimmed to the buffered intersection, otherwise return data within bounding box, Default: TRUE

Value

Intersection center point, buffered area around intersection center, streets, or edge of pavement data.

Examples

get_intersection(street_names = "Overton St & S Chapelgate Lane", dist = 30)

get_intersection(id = "41758", dist = 425, type = "streets", trim = FALSE)

elipousson/mapbaltimore documentation built on Nov. 11, 2024, 8:25 p.m.