Returns the first day of the time series data.
Returns the last day of the time series data.
Returns the list of locations in the JHU CSSE dataset.
Returns the date and time the source of the data was last updated at.
If the data getter is not able to get the date that the source was last updated on, it might
return undefined
.
The internal location data only includes confirmed cases, deaths and recoveries data. This method adds extra calculated values to the data, such as new confirmed cases and case fatality rate.
Returns the location data for the given location name.
If the API is initialized to lazy load the US data, calling this also automatically loads the US data if the given location name is of a US county or state.
The full name of the location, e.g. "US (Autauga, Alabama)"
.
Returns the location data for the given location name and date.
If the API is initialized to lazy load the US data, calling this also automatically loads the US data if the given location name is of a US county or state.
The full name of the location, e.g. "US (Autauga, Alabama)"
.
A Promise that will resolve to a ValuesOnDate object, of undefined
if there
is no data available for the given date.
Returns the location data for the given location names.
If the API is initialized to lazy load the US data, calling this also automatically loads the US data if one of the given location names is of a US county or state.
An array containing the full names of the locations, e.g. ["US (Autauga,
Alabama)", "Turkey"]
.
Checks if the data store already has data AND it is not stale, i.e. hasn't expired based on
the dataValidityInMS
option.
Returns true
if the data store already has US county-level data.
Initializes the API. This must be called before calling other methods.
Loads data if the store does not have data or the data in the store is expired.
When true
, loads the US county-level data even when lazyLoadUSData
option is also set to true
.
Loads the data global confirmed cases, deaths and recoveries data from the data store.
Loads the US state and county data for confirmed cases and deaths from the data store.
Internally sets the first and the last date that the data store has data for.
Internally sets the list of locations that are available in the data store, as well as the US state and county location names even if they are not yet loaded, so that they can still be requested even when they are lazy loaded.
Internally sets the date that the source of the data was last updated.
When using GitHubGetter, this is the last commit date of the source CSV files.
Returns a parsed version of the given string containing comma separated values.
Generated using TypeDoc
A class that provides a simple API for interacting with the JHU CSSE COVID-19 time series data.