for a urban research, I need to work with google map API in R. the simplified problem is that in a specific time interval, I want to compare the number of crossings(updated: compare the congestion) in differently available routes between two points. So, my question is that is there any API which gives me the data like that?
In different libraries which work with google map API, I found some function for traffic. but they give only a static layer on the map. for example:
library(googleway)
google_map(key = 'map_api_key') %>%
add_traffic()
which had been answered here
Or, google_snaptoroad()
in googleway
library that I can't understand what would it do.