|
|
|
|
MapItineraryDistance (Function) In french: CarteDistanceItinéraire Calculates the distance of an itinerary in a Map control. sID is string = MapAddItinerary(MAP_MapControl, ["Place de la Comédie, Montpellier", ... "Avenue des Champs Elysées, Paris"], itineraryCar) rDist is real rDist = MapItineraryDistance(MAP_MapControl, sID) STC_DETAILS = "Distance: " + rDist / 1000.0 + " km"
Syntax
<Result> = MapItineraryDistance(<Map control> , <Itinerary ID>)
<Result>: Real - Distance of the itinerary expressed in meters.
- 0 if a problem occurs (invalid ID, for example).
<Map control>: Control name Name of the Map control to be used. If this parameter corresponds to an empty string (""), the Map control to which the current event belongs will be used. <Itinerary ID>: Character string Identifier of the itinerary to use. This ID is the result of the MapAddItinerary function. Remarks - MapItineraryDistance has no effect for itineraries added with MapAddItinerary and the itineraryManual constant).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|