更新时间:2023-12-06 08:08:34
您必须解析从该 API 返回的 XML
You have to parse the XML
returned from that API
library("httr")
library("XML")
fips <- GET("http://data.fcc.gov/api/block/find", query = list(latitude = 48.9905, longitude = -122.2733, showall="false"))
result <- content(fips, as = "parsed")
> xmlToList(xmlParse(result))$County["FIPS"]
FIPS
"53073"