Thank You
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
> route.Calculate();
> double miles = route.Distance,
note : Calculate() depend on
geoSegmentShortest
geoSegmentQuickest
geoSegmentPreferred
greetings by OHR
Jimmy
I'm looking for the same thing and read about Milecharter, an add in
for mappoint to do the calculations.
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