Community of VE/MapPoint Users and Developers
This is a discussion on How do I calculate a route distance without displaying route within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I need to determine how to calculate the distance in Miles from two points BUT I do not want to ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How do I calculate a route distance without displaying route 'Add route stops and calculate the route Set objRoute = objMap.ActiveRoute objRoute.Waypoints.Add CMD objRoute.Waypoints.Add objLocCrimes(MaxDistanceIndex) objRoute.Calculate MsgBox CStr(objRoute.Distance) Is this possible to get the distance without displaying route in Mappoint Control? (BTW I need the route distance not the direct distance so I don't believe I can use the distance function) |
| |||
|
The cleanest way and with less complications that I have found is by having a hidden MP control in my form and using the code you posted here on that control. That way, you will get the results you want and the map still won't show up on the form. It doesn't take too much overhead since you are not doing heavy calculations, just determining route distance from A to B. |
![]() |
| Tags |
| calculate, displaying, distance, route |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to calculate distance between location and route ? | tontaegu | MapPoint 2006/2009 Discussion | 1 | 10-19-2005 01:14 PM |
| Displaying The Route Planner | EdB | MapPoint 2006/2009 Discussion | 4 | 08-09-2005 12:06 PM |
| Calculate route | Anonymous | MapPoint 2006/2009 Discussion | 4 | 03-16-2005 12:42 PM |
| Optimize and calculate a Route | rms62 | MapPoint 2006/2009 Discussion | 2 | 08-22-2003 02:55 PM |
| Calculate route | Anonymous | MapPoint 2006/2009 Discussion | 0 | 07-03-2003 02:25 AM |
Cheap Florida Flights
Cheap Florida flights are a reality when you book online at Holiday Hypermarket. We search leading tour operators to show you top deals.
Best Travel Agent
Travel Counsellors was recently voted the UK's Best Travel Agent at the Guardian Unlimited travel awards. Book your travel with an award winning travel agent.
Cheap Holidays to Turkey
If you’re looking for cheap holidays to Turkey then dealchecker.co.uk is the place for you! Our search helps you see real prices from the UK’s top holiday companies all in one go.
Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!
Cheap Balearics Holidays
Cheap Balearics holidays are available if you know when to book and who to book with. The Balearics have many fascinating places to visit all year round. The partying never stops.
Bargain family holidays
We can help you find family holidays at bargain prices when you check out the options at Travel.co.uk
Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.