ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Map functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Calculates the distance of an itinerary in a Map control.
Example
sID is string = CARTE_ChampCarte.AjouteItinéraire(["Place de la comédie, Montpellier", ...
		"Avenue des Champs Elysées, Paris"], itineraryCar)
rDist is real
rDist = CARTE_ChampCarte.DistanceItinéraire(sID)
LIB_DETAIL = "Distance : " + rDist / 1000.0 + " km"
Syntax
<Result> = <Map control>.ItineraryDistance(<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.
<Itinerary ID>: Character string
Identifier of the itinerary to use. This ID is the result of the <Map>.AddItinerary function.
Remarks
  • <Map>.ItineraryDistance has no effect for itineraries added with <Map>.AddItinerary and the itineraryManual constant).
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/17/2024

Send a report | Local help