get_geography: Download Statistical Geographies

get_geographyR Documentation

Download Statistical Geographies

Description

Connects to the ONS Geography Linked Date SPARQL interface to retrieve descriptions statistical geographies.

Usage

get_geography(
  geography_uri,
  endpoint = "http://statistics.data.gov.uk/sparql",
  include_geometry = FALSE
)

Arguments

geography_uri

A character vector of URIs

endpoint

A string for the sparql endpoint

include_geometry

A boolean indicating whether the geometries should be downloaded (defaults to FALSE).

Details

The description includes the official name, GSS-code and optionally the URI of the parent geography and WKT geometry (if it exists).

Value

A data frame of geography descriptions

Examples

## Not run: 
get_geography("http://statistics.data.gov.uk/id/statistical-geography/K02000001")

## End(Not run)

Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.