Skip to contents

Given a table of frompoints (lat lon coordinates), find IDs of and distances to all nearby points that represent EPA-regulated facilities with locations in Facility Registry Services (FRS). Like getblocksnearby() but for regulated facilities in US EPA FRS

Usage

getfrsnearby(
  frompoints,
  radius = 3,
  maxradius = 31.07,
  avoidorphans = FALSE,
  quadtree = NULL,
  quiet = FALSE,
  parallel = FALSE,
  ...
)

Arguments

frompoints

used as the sitepoints param of getblocksnearby()

radius

passed to getblocksnearby()

maxradius

passed to getblocksnearby()

avoidorphans

passed to getblocksnearby()

quadtree

index that should be created by indexpoints

quiet

passed to getblocksnearby()

parallel

passed to getblocksnearby()

...

passed to getblocksnearby()

quaddatatable

optional table of topoints (in format provided by internal helper function create_quaddata() as needed).

Value

sites2points data.table one row per pair of frompoint and nearby frs point, like output of getblocksnearby()

Details

Later steps can aggregate at each frompoint to summarize

  • count facilities near each frompoint

  • max/min distance for each frompoint, like proximity of nearest, etc.

  • a proximity score for each block and then each blockgroup