PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Calculates the distance of an itinerary in a Map control.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
sID est une chaîne = CARTE_ChampCarte.AjouteItinéraire(["Place de la comédie, Montpellier", ...
"Avenue des Champs Elysées, Paris"], itinéraireAutomobile)
rDist est un réel
rDist = CARTE_ChampCarte.DistanceItinéraire(sID)
LIB_DETAIL = "Distance: " + rDist / 1000.0 + " km"
Syntax
<Result> = <Map control>.ItineraryDistance(<Itinerary identifier>)
<Result>: Real
  • Distance of the itinerary expressed in meters.
  • 0 if a problem occurs (invalid identifier for example).
<Map control>: Control name
Name of the Map control to be used.
<Itinerary identifier>: Character string
Identifier of the itinerary to use. This identifier corresponds to the result of the function <Map>.AddItinerary.
Remarks
  • WEBDEV - Browser code This function must not be called in the same process as the one used to display the itinerary. Indeed, the calculation is asynchronous. This function must be called once the itinerary is displayed (in the code of a calculation button for example).
  • The <Map>.ItineraryDistance function has no effect on manual routes.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment