By adding a calculated column for distance to your location-aware
Spotfire analysis, you can give
Spotfire mobile app users the ability to find the distance from the device location and any latitude and longitude combination in the data set.
Perform this task in
Spotfire Analyst
Procedure
-
On the menu, click
.
-
In the
Insert Calculated Column dialog, click Insert Columns.
-
In the
Expression box, build the following expression.
6371 * GreatCircleDistance(${AppGeoLongitude}, ${AppGeoLatitude},
[latitude], [longitude])
Note: This calculation specifies kilometers. To specify miles, use 3959.
latitude and
longitude in this example reflect column names. If yours differ, modify the example.
-
Give the column a name, such as distance, and click
OK to save and close the dialog.
Result
The calculated column appears in the
Data Panel, and your analysis can use this column to measure distances between the mobile device and any data point in the data set by using its geo-positioning properties.
Copyright © TIBCO Software Inc. All rights reserved.