build_constituency_query_string {sgapi}R Documentation

Build constituency section of get_boundary_areaname query string

Description

Create correctly formatted 'where' part of url query string used by get_boundary_areaname to fetch contituency boundaries

Usage

build_constituency_query_string(constituency_list, ...)

Arguments

constituency_list

Vector of constituency names

...

Additional strings to be added to the query string

Value

A string formatted for 'where' portion of url for querying Open Geography portal

Examples

build_constituency_query_string("Westminster", "LAD22NM", "3D")
"%20(%20'LAD22NM%20%3D%20'Westminster')%20"

build_constituency_query_string(c("Westminster", "Tower Hamlets"), "LAD22NM", "3D")
"%20(%20'LAD22NM%20%3D%20'Westminster'%20OR%20LAD22NM%20%3D%20'Tower%20Hamlets')%20"


[Package sgapi version 1.1.0 Index]