MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How to choose Fast, Short or Preferred itineray

This is a discussion on How to choose Fast, Short or Preferred itineray within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I didn't found how to choose Fast, Short or Preferred itineray programmaticly. This is a temporary solution for my ...


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 11-09-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
How to choose Fast, Short or Preferred itineray

Hi,

I didn't found how to choose Fast, Short or Preferred itineray programmaticly.

This is a temporary solution for my previous question about avoinding
"Boulevard peripherique" in my intenary calculations.

I tried some tests directly in Mappoint and
choosing the SHORT options in Route object preferencies,
never the "BD Periphérique" is chosen. But when I choose FAST or
PREFERRED Options the itineray calculation include "BD péréphérique".

How to do that programmaticly ?


Thanks in advance for your help

Aurelia
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 11-10-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Preferred, Quickest and Shortest Segment in Itinerary

To choose Fast, Short or Preferred itineray programmaticly,
I found the solution reading Help.
I was searching in Route objects, so I have to search in
Waypoints object and Segment Preferences.

Aurelia

Code:
geoSegmentPreferred  2 // Prendre les routes préférées
geoSegmentQuickest   0 // Prendre l'itinéraire le plus rapide. 
geoSegmentShortest   1 // Prendre l'itinéraire le plus court. 

S'applique à
Objets :  Waypoint

Syntaxe
objet.SegmentPreferences

Paramètres
Élément Description 
objet Obligatoire. Expression qui renvoie un objet Waypoint. 

Exemple
  Sub ChangeSegmentPreferences()

  Dim objApp As New MapPoint.Application
  Dim objMap As MapPoint.Map
  Dim objRoute As MapPoint.Route

  'Configure l'application
  Set objMap = objApp.ActiveMap
  Set objRoute = objMap.ActiveRoute
  objApp.Visible = True
  objApp.UserControl = True

  'Ajoute des étapes
  objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)
  objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)

  'Choisit les autoroutes comme routes préférées, puis établit l'itinéraire  sur base de ces préférences et calcule l'itinéraire
   
  objRoute.Waypoints.Item(1).SegmentPreferences = geoSegmentShortest
  objRoute.Calculate

  End Sub
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
choose, fast, itineray, preferred, short


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
Letting MapPoint choose the waypoint sequence BobFromBoston MapPoint 2006/2009 Discussion 2 10-21-2005 07:43 PM
Fast way to add radius? nomad_33fw MapPoint 2006/2009 Discussion 1 06-10-2005 07:55 AM
Adjusting preferred arrival setting Anonymous MapPoint 2006/2009 Discussion 14 03-03-2005 12:43 PM
how to avoid a route in itineray Anonymous MapPoint 2006/2009 Discussion 3 11-12-2004 08:23 AM
Is there a fast way of adding pushpins? matt1168 MapPoint 2006/2009 Discussion 3 07-24-2003 09:44 AM


All times are GMT -5. The time now is 07:22 PM.


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

Borovets Ski Holidays
Borovets ski holidays are set amongst stunning scenery with a great selection of restaurants, hotels and nightlife. Borovets ski holidays are great value for money.

Flights to Cyprus
Find cheap flights to Cyprus on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Cyprus.

Jamaica Holiday
Fancy a Jamaica Holiday? Then visit dealchecker.co.uk and find out what the big deal is. Book a bargain when you book online.

Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.

Cyprus
Before visiting Cyprus, make sure you are well informed to make the most of your holiday. Online at ulookubook.com you check out our useful travel guides. Find out all about the Cyprus nightlife, shopping, eating and customs.

Inclusive package holidays
Choose one of the many inclusive package holidays at Travel.co.uk and save a lot of trouble and money too!

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