geo_bbl: Retrieve Geoclient Response for BBLs as a Dataframe

Description Usage Arguments Details Examples

View source: R/geo_bbl.R

Description

This function takes BBLs (borough-block-lot) and returns the Geoclient response as a tibble. The BBLs can be provided either in a vector as a named argument or with a dataframe and column name of the BBL field. The Geoclient API key can either be provided directly as an argument, or you can first use geoclient_api_key() to add it to your .Renviron file so it can be called securely without being stored in your code.

Usage

1
2
3
geo_bbl_data(.data, bbl, id = NULL, key = NULL, rate_limit = TRUE)

geo_bbl(bbl, id = NULL, key = NULL, rate_limit = TRUE)

Arguments

.data

Dataframe containing columns to be used for other arguments.

bbl

Either a vector of BBLs (numeric or character is accepted), or a bare column name of the bbl field if a dataframe is provided.

key

The API key provided to you from the NYC Developer Portal formated in quotes. Defaults to NULL and your key is accessed from your .Renviron.

rate_limit

Whether you would like to limit the rate of API requests in adherence to Geoclient's Service Usage Guidelines. See ?geoclient for more information.

Details

For more details see the Geoclient Documentation's guide to making BBL requests, interpreting the Geosupport return codes, the data returned by geo_bbl, and a complete data dictionary for all possible data elements returned by any geoclient function.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

geoclient_api_key("1a2b3c4", "9d8f7b6wh4jfgud67s89jfyw68vj38fh")

geo_bbl(1005430053)

library(dplyr)

df <- tibble(BBL = c("1005430053", "1005107502"))

geo_bbl_data(df, BBL)

bind_cols(df, geo_bbl_data(df, BBL))

mutate(df, condo_bbl = geo_bbl(BBL)[["condominiumBillingBbl"]])


## End(Not run)

austensen/geoclient documentation built on Nov. 20, 2021, 11:12 p.m.