如何获取原始流量数据

如何获取原始流量数据

本文介绍了如何获取原始流量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建应用程序以使用交通中的汽车计数数据.如何访问实时谷歌地图,位智图或必应地图数据?

Creating application to use car count data from traffic. How do I access the live google maps, waze or bing maps data?

推荐答案

Azure Maps平台具有原始流量数据,您可以访问该原始流量数据以进行分析(我一直在与其他从事此工作的人员一起工作).

The Azure Maps platform has raw traffic data you can access for analysis purposes (I have been working with several others who are doing this).

有两种方法.第一种是使用交通流"分段API: https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowsegment

There are two approaches. The first is to use the Traffic flow segment API: https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowsegment

第二个是使用交通流磁贴. https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowtile 如果您需要大范围的路况数据,这是损失成本的方法,尽管更为复杂.与大多数平台一样,Azure Maps既提供图像(栅格)的交通流图块,也提供矢量图块格式(与Mapbox创建的开放式矢量图块标准一致).您可以下载感兴趣区域上的所有图块,然后提取数据进行分析.如果您请求相对于速度限制的流量,则图块中的每个线段的值都将介于0和1之间,表示相对于速度限制的速度.例如,0.2表示流量以速度限制的20%流动.

The second is to use the traffic flow tiles. https://docs.microsoft.com/en-us/rest/api/maps/traffic/gettrafficflowtile If you need traffic data over a large area, this is the lost cost approach, although more complex. Azure Maps provides the traffic flow tiles in both image (raster) like most platforms, but also in vector tile format (aligns with the open vector tile standard created by Mapbox). You can download all the tiles over your area of interest and extract the data for analysis. If you request traffic relative to the speed limit, each line segment in the tile will have a value between 0 and 1 which indicates the speed relative to the speed limit. For example, 0.2 would mean traffic is flowing at 20% of the speed limit.

这篇关于如何获取原始流量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 02:01