Skip to content

Commit

Permalink
Merge pull request #16 from humaniverse/travel-times
Browse files Browse the repository at this point in the history
Calculated travel time to GPs, pharmacies, and sports facilities
  • Loading branch information
MikeJohnPage authored Jan 30, 2025
2 parents 040ccbe + 11da611 commit 21c5684
Show file tree
Hide file tree
Showing 13 changed files with 1,015,614 additions and 0 deletions.
63 changes: 63 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -664,3 +664,66 @@ NULL
#' }
#' @source \url{https://www.nisra.gov.uk/publications/suicide-statistics-2022}
"people_suicide"

#' Travel time to GPs
#'
#' A dataset containing the average (median) travel time (in minutes) to the nearest
#' GP in each Local Government District. This is based on the travel time to the
#' nearest GP in each Super Data Zone within a Local Government District.
#'
#' Travel times are calculated using the TravelTime API (https://traveltime.com/apis/distance-matrix)
#' and are based on travelling by public transport on a weekday morning.
#'
#' @format A data frame with 11 rows and 3 variables:
#' \describe{
#' \item{lgd14_code}{Local Authority Code}
#' \item{gp_mean_travel_time}{Mean travel time (in minutes) to the nearest
#' GP among all the Super Data Zones within a Local Authority}
#' \item{year}{Year the data was last updated}
#' ...
#' }
#' @source \url{https://openstreetmap.org/}
#'
"places_gp_travel_time"

#' Travel time to pharmacies
#'
#' A dataset containing the average (median) travel time (in minutes) to the nearest
#' pharmacy in each Local Government District. This is based on the travel time to the
#' nearest sports centre in each Super Data Zone within a Local Government District.
#'
#' Travel times are calculated using the TravelTime API (https://traveltime.com/apis/distance-matrix)
#' and are based on travelling by public transport on a weekday morning.
#'
#' @format A data frame with 11 rows and 3 variables:
#' \describe{
#' \item{lgd14_code}{Local Authority Code}
#' \item{pharmacy_mean_travel_time}{Mean travel time (in minutes) to the nearest
#' pharmacy among all the Super Data Zones within a Local Authority}
#' \item{year}{Year the data was last updated}
#' ...
#' }
#' @source \url{https://openstreetmap.org/}
#'
"places_pharmacy_travel_time"

#' Travel time to sports facilities
#'
#' A dataset containing the average (median) travel time (in minutes) to the nearest
#' sports centre in each Local Government District. This is based on the travel
#' time to the nearest sports centre in each Super Data Zone within a Local Government District.
#'
#' Travel times are calculated using the TravelTime API (https://traveltime.com/apis/distance-matrix)
#' and are based on travelling by public transport on a weekday morning.
#'
#' @format A data frame with 11 rows and 3 variables:
#' \describe{
#' \item{lgd14_code}{Local Authority Code}
#' \item{sports_centre_mean_travel_time}{Mean travel time (in minutes) to the nearest
#' sports centre among all the Super Data Zones within a Local Authority}
#' \item{year}{Year the data was last updated}
#' ...
#' }
#' @source \url{https://openstreetmap.org/}
#'
"places_sports_centre_travel_time"
Loading

0 comments on commit 21c5684

Please sign in to comment.