Graphhopper

编程入门 行业动态 更新时间:2024-10-22 10:51:42
Graphhopper - 所有30,000个可见邮政编码之间的旅行时间?(Graphhopper - Travel Times Between All 30,000 Visible Zip Codes?)

我想计算美国邮政编码之间的旅行时间矩阵。 大约有30k个可见的邮政编码,因此这是9亿次计算(或假设两个方向的旅行时间相同则为4.5亿)。

我之前没有使用过graphhopper,但似乎适合这项任务。 我的问题是:

这样做的最佳方法是什么?

这会使graphhopper服务器过载吗?

这需要多长时间?

我可以为每对邮政编码提供经纬度。

谢谢 - 史蒂夫

I'd like to calculate the matrix of travel times between US zipcodes. There are about 30k visible zipcodes, so this is 900 million calculations (or 450 million assuming travel time is the same in both directions).

I haven't used graphhopper before but it seems suited to the task. My question are:

What's the best way of doing it?

Will this overload the graphhopper servers?

How long will it take?

I can supply latitude and longitude for each pair of zip codes.

Thanks - Steve

最满意答案

我还没有针对这些大量的点测试GraphHopper,但它应该是可能的。

这样做的最佳方法是什么?

如果您避免HTTP开销并直接使用Java lib(例如此示例),则可能会更快。 如果你只使用一个短的距离或时间值,一定要分配足够的RAM,因为矩阵本身已经是2g。 另见这个问题 。

这会使graphhopper服务器过载吗?

如果没有您可以在此处获取的API密钥,则不允许使用API​​。 或者设置自己的GraphHopper服务器。

这需要多长时间?

可能需要几天时间。

警告 - 企业说明:我们提供设置服务器或用例的支持。 此外,我们还销售矩阵附件,使这些计算速度至少快10倍。

I've not tested GraphHopper yet for these large amount of points, but it should be possible.

What's the best way of doing it?

It would be probably faster if you avoid the HTTP overhead and use the Java lib directly like in this example. Be sure to assign enough RAM as the matrix itself is already 2g if you only use a short value for the distance or time. See also this question.

Will this overload the graphhopper servers?

The API is not allowed to be used without an API key which you can grab here. Or set up your own GraphHopper server.

How long will it take?

Will take probably some days though.

Warning - enterprisy note: we provide support to setup your servers or for your usecase. And also we sell a matrix add-on which makes those calculations at least 10 times faster.

更多推荐

本文发布于:2023-08-04 07:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1413124.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Graphhopper

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!