ipeaGIT / aopdata

Download data from the Access to Opportunities Project (AOP)
https://ipeagit.github.io/aopdata/
13 stars 4 forks source link

Improve error message when `mode = car` #52

Closed rafapereirabr closed 2 years ago

rafapereirabr commented 2 years ago

Error message could be more specific about the availability of access estimates by car

df_car <- read_access(
  city='Curitiba',
  mode='car',
  year=2018,
  peak = F,
  geometry = TRUE,
  showProgress = FALSE
)

Error in select_mode_input(temp_meta, mode = m) : Error: This 'mode' is not available for this 'city' & 'year.' It must be one of the following: bicycle public_transport walk