I want to analyze traffic behavior in my city for a project in urban studies. I´ve been able to get some traffic information from OSM, and maps from Google, but the google traffic info is slightly better. Has anyone been able to download such information using R and the Google Maps API?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
As you're not actually after the traffic data and just want a map of the traffic, you can use you googleway
package to do this (with a valid Google Maps API key)
library(googleway)
google_map(key = 'map_api_key') %>%
add_traffic()