MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How do I calculate a route distance without displaying route

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-16-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 13
How do I calculate a route distance without displaying route

I need to determine how to calculate the distance in Miles from two points BUT I do not want to display the Route or place it on the map just get the distance. Currently I get the distance and can display it but the route shows on the map.

'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)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-24-2003
Member
Green Belt
 
Join Date: Nov 2002
Posts: 52
I don't see any possibility

Rainer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 08-21-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
try putting objroute.clear after you calculate the distance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-09-2003
Junior Member
White Belt
 
Join Date: Sep 2003
Posts: 5
Hows about post the results to a file and set the following in your program
objApp.Visible = False
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-09-2003
Fer Fer is offline
Junior Member
White Belt
 
Join Date: Jun 2003
Posts: 11
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
calculate, displaying, distance, route


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 04:43 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52