GeoGetDirections

This method to display the driving directions between a start and destination. This extension is used with the Map control.

Group: Server Extensions


Syntax:

bVal = promptID.Server.GetDirections(sOrg, sDst, sRoads, [Map], [Duration], [Dist])

bVal: (Boolean) Returns True if the directions were retrieved; False if it failed.

sOrg: (String) is the origination or start of the route

sDst: (String) is the route destination

sRoads: (String Array) is the list of roads between origination and destination

[Map]:  Optional - is an image of the directions

[Dur]:   Optional - is the duration of the distance traveled by car

[Dist]:   Optional – is the distance traveled

Example:

DIM sDir as String

server.GeoGetDirections(txtOrig.Text, txtDest.Text, sRoads, True)

Version Supported:      RFgen 5.1 and newer.