census: Geography information

Description Usage Arguments Details Value Author(s) References

Description

Return geography information by a long/lat, state, or other geography name

Usage

1
census(geographyType=NULL, geographyId=NULL, geographyName=NULL, lat=NULL, long=NULL, version=NULL, all=TRUE, ...)

Arguments

geographyType

A character string containing an allowed geography type: “censusplace”, “county”, “msa”, “usf”, “statesenate”, “statehouse”, “congdistrict”, “tribalnation”.

geographyId

A numeric or character value specifying a geography ID for the specified geographyType, possibly as returned by geography.

geographyName

A character string containing a place name for the specified geographyType.

lat

A latitude

long

A longitude

version

A character string containing a data version, currently one of “dec2012”, “jun2012”, “dec2011”, and “jun2011”.

all

A logical indicating whether, if a place borders two geographies, to return information about all geographies.

...

Additional arguments passed to curlPerform.

Details

This returns basic identifying information about a place, based on geographyType and either geographyName or geographyId, or alternatively by both lat and long alone. The response is similar to what is returned by geography.

Value

A list containing the API response, transformed by fromJSON.

Author(s)

Thomas J. Leeper

References

http://www.broadbandmap.gov/developer/api/census-api-by-coordinates http://www.broadbandmap.gov/developer/api/census-api-by-fips-code http://www.broadbandmap.gov/developer/api/census-api-by-geography-name


rOpenGov/usbroadband documentation built on May 26, 2019, 8:50 p.m.