How can I use Rgooglemaps to download and analyze

2020-08-02 11:39发布

问题:

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()



标签: r google-maps