View source: R/build_url_query_string.R
build_constituency_query_string | R Documentation |
Create correctly formatted 'where' part of url query string used by get_boundary_areaname to fetch contituency boundaries
build_constituency_query_string(constituency_list, ...)
constituency_list |
Vector of constituency names |
... |
Additional strings to be added to the query string |
A string formatted for 'where' portion of url for querying Open Geography portal
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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.