SkillAgentSearch skills...

CommutingZones

Commuting zones are geographic areas where people live and work and are useful for understanding local economies, as well as how they differ from traditional boundaries. These zones are a set of boundary shapes built using aggregated estimates of home and work locations. Data used to build commuting zones is aggregated and de-identified.

Install / Use

/learn @facebookincubator/CommutingZones
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Commuting Zones - OST

License: MIT

Commuting zones are geographic areas where people live and work and are useful for understanding local economies, as well as how they differ from traditional boundaries. These zones are a set of boundary shapes built using aggregated estimates of home and work locations. Data used to build commuting zones is aggregated and de-identified.

If you use this dataset please reference / cite Data for Good at Meta and include a link to the Commuting Zones page here: https://dataforgood.facebook.com/dfg/tools/commuting-zones

Installation instructions

Run these commands to have the Commuting Zones package available to use.

install.packages("remotes")
remotes::install_github("facebookincubator/CommutingZones")

Create Google Maps API key

Visit this page and follow the instruction to obtain the API key.

Demo

library(CommutingZones)

location_df <- data.frame(
  location = c("Austin", "Los Angeles", "Buenos Aires"),
  country = c("United States", "United States", "Argentina")
)

matched_df <- commuting_zones(
  data = location_df,
  location_col_name = 'location',
  country_col_name = 'country',
  gmaps_key = 'Enter the Google Maps API key here'
)

head(matched_df$matched_spdf)
plot(matched_df)

License

CommutingZones is MIT licensed, as found in the LICENSE file.

View on GitHub
GitHub Stars44
CategoryDevelopment
Updated7d ago
Forks7

Languages

JavaScript

Security Score

90/100

Audited on Apr 3, 2026

No findings