如何使用HERE Maps开发自定义路由算法? [英] How to use HERE Maps to develop custom routing algorithms?

查看:49
本文介绍了如何使用HERE Maps开发自定义路由算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用HERE Maps实现我们在实验室中开发的生态路由算法,该算法需要实时交通数据作为路由算法的输入.到目前为止,我们正在使用INRIX数据集来验证算法,但是我们决定移至HERE Maps,并使用Traffic API来利用实时路况数据的功能.

I am trying to use HERE Maps to implement the eco-routing algorithm which we developed in our lab that requires real time traffic data as an input to the routing algorithm. So far, we were using INRIX dataset to verify our algorithms, but we decided to move to HERE Maps, and use the Traffic API to harness the power of real time traffic data.

流量API的使用非常简单,我设法获取了边界框的流量数据.似乎为每个TMC传递了业务流.我的问题是如何使用TMC将交通流数据分配给地图的链接.更具体地说,我想知道是否有一种方法可以将TMC值转换为邻接矩阵,以便可以将流量分配给每个链接并在该图上运行优化算法?还可以在此处将开放街道地图(OSM)与HERE Maps交通数据叠加吗?

Traffic API was very simple to use, and I managed to get the traffic data for a bounding box. It seems like that the traffic flow is passed for each TMC. My question is how to assign the traffic flow data to the links of the map using TMC. More specifically, I am wondering if there is a way to transform the TMC values to an adjacency matrix so that I can assign the traffics to each link and run my optimization algorithm over that graph? Also is it possible to overlay Open Street Maps (OSM) with the HERE Maps traffic data?

谢谢

推荐答案

您可以使用PDE层LINK_TMC_FC1..5将从交通数据响应中获取的TMC数据与特定链接相关联.您已在开发人员网站和tcs.ext.here.com/pde/maps?url_root=pde.api.here.com中查看了我们的PDE文档,以查看提供的层列表.以下是对链接TMC的PDE请求示例.将应用ID和代码占位符替换为实际值:

You can associate the TMC data you get from the traffic data response to a particular link by using PDE layers LINK_TMC_FC1..5. You have look into our PDE documentation in developer site and tcs.ext.here.com/pde/maps?url_root=pde.api.here.com to see the list of layers provided. Below is a sample PDE request for the Link TMC. Replace app id and code placeholders with actuals:

https://pde.api.here.com/1/tile.json?&layer=LINK_TMC_FC1&level=9&tilex=496&tiley=358&region=WEU&release=18131&url_root=pde.api.here.com&app_id={YOUR-APP-ID}&app_code={YOUR-APP-CODE}

对于创建矩阵和OSM覆盖的所有其他问题,您必须编写自己的算法.这里没有提供直接功能.

For all your other questions on creating a matrix and OSM overlay, you have to write your own algorithm. There is no straight forward function provided by Here.

这篇关于如何使用HERE Maps开发自定义路由算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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