GetLocationInfo

Extracts values from the available geolocation data of the current model, assigning each of them to a specific corresponding variable. The function will only work when called from a Geolocation-enabled question group.

Syntax

GetLocationInfo( LongitudeVariable, LatitudeVariable, AltitudeVariable, BearingVariable, SpeedVariable, TimeVariable, AccuracyVariable );

Parameters

Parameter Name Type Description Optional? Default Value
LongitudeVariable String The keyword to a variable that will be assigned the longitude value. Yes ""
LatitudeVariable String The keyword to a variable that will be assigned the latitude value. Yes ""
AltitudeVariable String The keyword to a variable that will be assigned the altitude value. Yes ""
BearingVariable String The keyword to a variable that will be assigned the bearing value. Yes ""
SpeedVariable String The keyword to a variable that will be assigned the speed value. Yes ""
TimeVariable String The keyword to a variable that will be assigned the time value. Yes ""
AccuracyVariable String The keyword to a variable that will be assigned the accuracy value. This will have no effect unless at least one of LongitudeVariable or LatitudeVariable are also used. Yes (See Description) ""

Output

If successful, the function will return True; otherwise, it will return False.

Use Case

An example of a valid expression featuring this function is shown below:

GetLocationInfo( "","","","VARBearing","VARSpeed" );

This expression will attempt to retrieve the bearing and speed values from the available geolocation data, and assign them to VARBearing and VARSpeed, respectively.