Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can Mappoint calculate DRIVING Distance?

78 views
Skip to first unread message

Jerry8989

unread,
Feb 10, 2009, 10:36:02 AM2/10/09
to
I have a database with 10,000 address I have the latitude and longitude for
all of them. What I need to know is if MS Mappoint software package can
calculate DRIVING distance not ariel distance from one address to another?
There will me many combinations of those 10,000 address so I need something
that I can throw 100,000 combinations at and get the distance in miles.

Thank You

Marc Gravell

unread,
Feb 11, 2009, 5:18:31 AM2/11/09
to
It most certainly can, but you'll need to do it in a loop (one route at a
time). It'll take a while... on a standard desktop, I've seen between 5
routes a second up to 20 seconds per route (depending on the distance /
complexity etc).

It would be something like:

MapPoint.Route route = map.ActiveRoute;
route.Clear();
route.Waypoints.Add(map.GetLocation(fromLatitude,
fromLongitude, 0), "");
route.Waypoints.Add(map.GetLocation(toLatitude, toLongitude,
0), "");
route.Calculate();
double miles = route.Distance,
minutes = route.DrivingTime /
MapPoint.GeoTimeConstants.geoOneMinute;

You might also need to check the licensing.

Marc Gravell


AUGE_OHR

unread,
Feb 11, 2009, 5:30:45 AM2/11/09
to
hi

> route.Calculate();
> double miles = route.Distance,

note : Calculate() depend on

geoSegmentShortest
geoSegmentQuickest
geoSegmentPreferred

greetings by OHR
Jimmy


freebase...@gmail.com

unread,
Feb 12, 2009, 4:59:16 AM2/12/09
to
Hi,

I'm looking for the same thing and read about Milecharter, an add in
for mappoint to do the calculations.

Manfred Suendorf

unread,
Oct 1, 2010, 5:48:58 AM10/1/10
to
Hello,

We developed an Excel-Addin: IC-DistanceCalc.
This Addin is using the MapPoint control.

Calculation speed is ~ 1.000 to 2.000 routes per hour.
The full version costs 150 ?.
The free trial version is limited to 20 calculations / run.

If you are interested, you will get a 1-month license-key for testing.

With k?nd regards
Manfred Suendorf


>> On Wednesday, February 11, 2009 5:18 AM Marc Gravell wrote:

>> It most certainly can, but you'll need to do it in a loop (one route at a
>> time). It'll take a while... on a standard desktop, I've seen between 5
>> routes a second up to 20 seconds per route (depending on the distance /
>> complexity etc).
>>
>> It would be something like:
>>
>> MapPoint.Route route = map.ActiveRoute;
>> route.Clear();
>> route.Waypoints.Add(map.GetLocation(fromLatitude,
>> fromLongitude, 0), "");
>> route.Waypoints.Add(map.GetLocation(toLatitude, toLongitude,
>> 0), "");

>> route.Calculate();
>> double miles = route.Distance,

>> minutes = route.DrivingTime /
>> MapPoint.GeoTimeConstants.geoOneMinute;
>>
>> You might also need to check the licensing.
>>
>> Marc Gravell


>>> On Wednesday, February 11, 2009 5:30 AM AUGE_OHR wrote:

>>> hi


>>>
>>>
>>> note : Calculate() depend on
>>>
>>> geoSegmentShortest
>>> geoSegmentQuickest
>>> geoSegmentPreferred
>>>
>>> greetings by OHR
>>> Jimmy


>>>> On Saturday, February 14, 2009 6:00 PM freebaseinstitut wrote:

>>>> Hi,
>>>>
>>>> I am looking for the same thing and read about Milecharter, an add in


>>>> for mappoint to do the calculations.


>>>> Submitted via EggHeadCafe - Software Developer Portal of Choice
>>>> Review of DevExpress DXperience Control Suite
>>>> http://www.eggheadcafe.com/tutorials/aspnet/f8ce82a9-d5c2-44fc-91af-e67df5ae502f/review-of-devexpress-dxperience-control-suite.aspx

0 new messages