Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSOA queries #5

Open
JonnoB opened this issue Jul 20, 2021 · 0 comments
Open

MSOA queries #5

JonnoB opened this issue Jul 20, 2021 · 0 comments

Comments

@JonnoB
Copy link

JonnoB commented Jul 20, 2021

I am trying to extract MSOA data using the api. As a trial I have used data I downloaded using the download data page https://coronavirus.data.gov.uk/details/download . For the puposes of the experiment I am trying to download data for Barnet council, at msoa level, for the variable newCasesBySpecimenDateRollingRate, as a csv file. When using the tool I get the following link which successfully downloads.

However, when I try and use the API query I get the error message "Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [api.coronavirus.data.gov.uk] Operation timed out after 10001 milliseconds with 0 bytes received" I have got this message for a wide range of different msoa options


query_filters <- c(
      'areaType=msoa',
"areaCode=E09000003"
)

cases_and_deaths = list(
  date = "date",
  areaName = "areaName",
  areaType = "areaType",
  areaCode = "areaCode",
  newCasesByPublishDate = "newCasesBySpecimenDateRollingRate"
)


data <- get_data(
  filters = query_filters, 
  structure = cases_and_deaths
)

changing the area type to utla or ltla does not result in an error. Does the api work for msoa? choosing options form the recently added vaccination data also produces an error, https://coronavirus.data.gov.uk/details/whats-new even though this data is definately provided in msoa format.

Any help or clarification would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant