简体   繁体   English

在地图图层上设置速度限制

[英]Set speed limits on Maps layer

I would like to create a map with a layer, like a traffic layer, but with the speed limits of roads (route, highway,...) with the différents speed. 我想创建一个具有交通图层等图层的地图,但要以不同的速度设置道路(路线,公路等)的速度限制。

How can I create a layer with speed limits of all roads? 如何创建所有道路都具有速度限制的图层?

It's practically impossible using just the Road API. 仅使用Road API几乎是不可能的。 You would have to create a route that makes you circle around every street. 您将必须创建一条路线,使您绕过每条街道。 Also there limitations on how many points you can put in a route request. 此外,在路线请求中可以放多少点的限制。

My suggestion would be to gather the speed limit info from the Road API and then create a map using the Maps Javascript API to set custom markers that indicate the speed limit on each road. 我的建议是从Road API收集限速信息,然后使用Maps Javascript API创建地图以设置自定义标记,以指示每条道路的限速。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM