Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TMS VCL WebGMaps
Using latitude/longitude coordinates instead of an address
Using latitude/longitude coordinates instead of an address
It is possible to use latitude/longitude coordinates for the Origin and Destination parameters instead of an address. There is an overload of the GetDirections method available which takes the OriginLatitude, OriginLongitude, DestinationLatitude and DestinationLongitude parameters.
Coordinates are also supported for WayPoints. There is no overload for this, but you can provide the coordinates as a string.
Example:
WayPoints.Clear; WayPoints.Add('48, 5'); WebGMaps1.GetDirections(50, 4, 47, 3, false, tmDriving, usMetric, lnDefault, false, false, WayPoints, false);