Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to choose Fast, Short or Preferred itineray 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 |
| |||
| 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
|
![]() |
| Tags |
| choose, fast, itineray, preferred, short |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
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.