#' contextR
#' @name create_fcc_api_call
#' @export
#' @param lat class: numeric
#' @param lng class: numeric
#' @examples
#' create_fcc_api_call(lat, lng)
create_fcc_api_call <- function(lat, lng) {
base_call = "https://geo.fcc.gov/api/census/area?"
var_call = paste0("lat=", lat, "&lon=", lng, "&format=json")
api_call = paste0(base_call, var_call)
return(api_call)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.