Skip to contents

Basic OpenGeography API request

Usage

opengeo_api_req(
  url,
  append = "0/query",
  format = "pjson",
  user_agent = "boundr R package (github.com/francisbarton/boundr)"
)

Arguments

url

The API URL to query

append

string to be appended to the URL path

format

data format to return from the API, "pjson" by default

user_agent

Allows user to specify a certain User Agent string in the header of each query. Sends the string "boundr R package" by default