用于计算距离的 MapPoint/MapSource API
下午好,
我需要计算大约 4000 个点之间的成对距离,这些点在 WGS84 中的坐标是已知的。计算直线距离并不太难,因为我发现 这个 C# 库,但现在我对通过道路而不是直线的最短距离感兴趣。
使用 Google API 或 VIA Michelin 不是一个好的选择,因为它们只允许 1000-2500 次调用,而这将需要近 800 万次...任何人都可以告诉我是否可以使用 Microsoft MapPoint 2009 在离线刷新中执行此操作/ Garmin 地图源?
非常感谢。
Good afternoon,
I need to calculate the pairwise distance between some 4000 points, the coordinates of which in WGS84 are known. Calculating the straight-line distances wasn't too hard, since I found this C# library, but now I am interested in the shortest distance through roads instead of straight-line.
Using Google API or VIA Michelin is not a good option since they only allow between 1000-2500 calls and this would require almost 8 million... Can anyone please tell me if it is possible to do this in an offline fashing using Microsoft MapPoint 2009 / Garmin MapSource?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Winwaed 实际上有一个工具可以做到这一点,他太谦虚了,没有告诉你:-)
请参阅 www.mapping-tools.com。
否则,要自己编程,我建议使用 Excel VBA 宏,它可以轻松直观地处理数据。
请参阅 http://www.mp2kmag.com/excel/
中还有很多指导性示例MapForums.com 下载部分(19.95 美元)。
埃里克
Winwaed actually has a tool for doing this, he is too modest to tell you :-)
See www.mapping-tools.com.
Otherwise, to program yourself, I recommend doing an Excel VBA macro, it is easy and intuitive to work with data.
See http://www.mp2kmag.com/excel/
There are also lot of instructive examples in the MapForums.com downloads section ($19.95).
Eric
是的,您可以使用 MapPoint 来做到这一点。 MapPoint 的 API 使用 COM,因此您将需要 COM 互操作。工作正常 - 我有三个使用 C# 和 MapPoint 的商业产品。
2009 年现已被 2010 年取代,预计 2011 年也将很快到来。当然,最新版本将拥有最新的道路数据库。
速度可能是一个问题,预计在具有一个处理线程的单核机器上处理 800 万条路由需要几天时间。
Yes you can do it with MapPoint. MapPoint's API uses COM, so you will need COM interop. Works fine - I have three commercial products that use C# and MapPoint.
2009 has now been superseded by 2010, and 2011 is expected soon. of course the latest version will have the most uptodate road database.
Speed might be an issue, expect 8 million routes to take a few days on a single core machine with one processing thread.