如何使用Rgooglemaps下载和分析路况信息? [英] How can I use Rgooglemaps to download and analyze traffic information?

查看:84
本文介绍了如何使用Rgooglemaps下载和分析路况信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想分析一个城市研究项目中我城市的交通行为.我已经能够从OSM和Google获得一些交通信息,但是Google的交通信息要好一些.有没有人能够使用R和Google Maps API下载此类信息?

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?

推荐答案

由于您实际上并不在关注路况数据,而只想要路况图,因此可以使用googleway包来做到这一点(有效的Google Maps API密钥)

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

这篇关于如何使用Rgooglemaps下载和分析路况信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆