PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Calculates the distance of an itinerary in a Map control.
Example
sID is string = MAP_MapControl.AddItinerary(["Place de la Comédie, Montpellier", ...
"Avenue des Champs Elysées, Paris"], itineraryCar)
rDist is real
rDist = MAP_MapControl.ItineraryDistance(sID)
STC_DETAILS = "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 Map control to use.
<Itinerary identifier>: Character string (with quotes)
Identifier of the itinerary to use. This identifier corresponds to the result of <Map>.AddItinerary.
Remarks
  • <Map>.ItineraryDistance has no effect for the manual itineraries.
Component : wd250obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment