开发者

MapPoint/MapSource API for Calculating Distances

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, b开发者_开发问答ut 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.


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜