Skip to contents

Companion bridge for layers outside the incident registry, notably "NeighbourhoodCrimeRates" (per-ward annualised counts and populations). Attributes are paged from the public TPS ArcGIS hub with the same exceededTransferLimit-driven pager contract as morie_fetch_tps().

Usage

morie_tps_load_tps(
  name,
  format = "geojson",
  cache_dir = file.path(tempdir(), "morie", "tps")
)

Arguments

name

Layer name: an incident category or "NeighbourhoodCrimeRates".

format

Kept for call-site compatibility; attributes are always returned as a data.frame.

cache_dir

Cache directory; defaults to a session temporary directory.

Value

A data.frame of layer attributes.

Examples

# \donttest{
try(nrow(morie_tps_load_tps("NeighbourhoodCrimeRates")))
#> [1] 158
# }