Skip to content

Commit 964c2a6

Browse files
authored
Merge pull request #274 from jingjtang/safegraph_pattern_api_docs
Add API documentation for SafeGraph Patterns
2 parents ab168df + 184e1f8 commit 964c2a6

File tree

1 file changed

+57
-10
lines changed

1 file changed

+57
-10
lines changed

docs/api/covidcast-signals/safegraph.md

Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,32 @@ parent: Data Sources and Signals
44
grand_parent: COVIDcast Epidata API
55
---
66

7-
# SafeGraph Mobility
8-
7+
# SafeGraph
8+
{: .no_toc}
99
* **Source name:** `safegraph`
10+
11+
This data source uses data reported by [SafeGraph](https://www.safegraph.com/)
12+
using anonymized location data from mobile phones. SafeGraph provides several different datasets to eligible researchers. We surface signals from two such datasets.
13+
14+
## Table of contents
15+
{: .no_toc .text-delta}
16+
17+
1. TOC
18+
{:toc}
19+
20+
## SafeGraph Social Distancing Metrics
21+
1022
* **First issued:** 23 June 2020
1123
* **Number of data revisions since 23 June 2020:** 1
1224
* **Date of last change:** 3 November 2020
1325
* **Available for:** county, state (see [geography coding docs](../covidcast_geography.md))
1426

15-
This data source uses data reported by [SafeGraph](https://www.safegraph.com/)
16-
using anonymized location data from mobile phones. SafeGraph provides [social
17-
distancing metrics](https://docs.safegraph.com/docs/social-distancing-metrics)
18-
to eligible researchers who obtain an API key. SafeGraph provides this data for
19-
individual census block groups, using differential privacy to protect the
20-
privacy of individual people in the data.
27+
Data source based on [social
28+
distancing metrics](https://docs.safegraph.com/docs/social-distancing-metrics).
29+
SafeGraph provides this data for
30+
individual census block groups, using differential privacy to protect individual people's data privacy.
2131

22-
Delphi creates features of the Safegraph data at the census block group level,
32+
Delphi creates features of the SafeGraph data at the census block group level,
2333
then aggregates these features to the county and state levels. The aggregated
2434
data is freely available through the COVIDcast API.
2535

@@ -51,8 +61,45 @@ weekends have substantially different values than weekdays. Users interested in
5161
trends, rather than mobility on one specific day, may prefer the `7dav` signals since
5262
averaging over the preceding 7 days removes these day-of-week effects.
5363

54-
## Lag
64+
### Lag
5565

5666
SafeGraph provides this data with a three-day lag, meaning estimates for a
5767
specific day are only available three days later. It may take up to an
5868
additional day for SafeGraph's data to be ingested into the COVIDcast API.
69+
70+
71+
## SafeGraph Weekly Patterns
72+
73+
* **First issued:** 20 November 2020
74+
* **Number of data revisions since 23 June 2020:** 0
75+
* **Date of last change:** never
76+
* **Available for:** county, MSA, HRR, state (see [geography coding docs](../covidcast_geography.md))
77+
78+
Data source based on
79+
[Weekly Patterns](https://docs.safegraph.com/docs/weekly-patterns) dataset. SafeGraph provides this data for
80+
different points of interest ([POIs](https://docs.safegraph.com/v4.0/docs#section-core-places)) considering individual census block groups, using differential privacy to protect individual people's data privacy.
81+
82+
Delphi gathers the number of daily visits to POIs of certain types(bars, restaurants, etc.)
83+
from SafeGraph's Weekly Patterns data at the 5-digit ZipCode level, then aggregates and reports these features to the county, MSA, HRR, and state levels. The aggregated data is freely available through the COVIDcast API.
84+
85+
For precise definitions of the quantities below, consult the [SafeGraph Weekly
86+
Patterns documentation](https://docs.safegraph.com/docs/weekly-patterns).
87+
88+
| Signal | Description |
89+
| --- | --- |
90+
| `bars_visit_num` | The number of daily visits to bar-related POIs in a certain region |
91+
| `bars_visit_prop` | The number of daily visits to bar-related POIs in a certain region, per 100,000 population |
92+
| `restaurants_visit_num` | The number of daily visits to restaurant-related POIs in a certain region |
93+
| `restaurants_visit_prop` | The number of daily visits to restaurant-related POIs in a certain region, per 100,000 population |
94+
95+
SafeGraph delivers the number of daily visits to U.S. POIs, the details of which are described in
96+
the [Places Manual](https://readme.safegraph.com/docs/places-manual#section-placekey) dataset.
97+
Delphi aggregates the number of visits to certain types of places, such as
98+
bars (places with [NAICS code = 722410](https://www.census.gov/cgi-bin/sssd/naics/naicsrch?input=722410&search=2017+NAICS+Search&search=2017)) and restaurants (places with [NAICS code = 722511](https://www.census.gov/cgi-bin/sssd/naics/naicsrch)). For example, Adagio Teas is coded as a bar because it serves alcohol, while Napkin Burger is considered to be a full-service restaurant.
99+
More information on NAICS codes is available from the [US Census Bureau: North American Industry Classification System](https://www.census.gov/eos/www/naics/index.html).
100+
101+
### Lag
102+
103+
SafeGraph provides newly updated data for the previous week every Wednesday,
104+
meaning estimates for a specific day are only available 3-9 days later. It may take up to an
105+
additional day for SafeGraph's data to be ingested into the COVIDcast API.

0 commit comments

Comments
 (0)