Adding Location or Machine Readable Capabilities to a Mobile-Ready Analysis

Adding visualizations for mobile app users to see location and distances

By adding a Spotfire Text Area and a details visualization to a location-aware analysis, you can provide users with interactive tools to find the distance to any point in the data set.

About this task

Perform this task in Spotfire Analyst using a data set that has latitude and longitude columns.

Before you begin

You must have completed these tasks.

Procedure

  1. On the menu, click Insert > Text Area.
  2. Right-click the new text area, and then click Properties.
  3. In the dialog, provide a title, such as Your Location, and then close the dialog to save the change.
  4. Click the Edit icon to edit the text area, and in the Edit Text Area dialog, insert the following two dynamic items.
    • The document property AppGeoLatitude.
    • The document property AppGeoLongitude.
  5. Provide text labels for these dynamic items, such as Latitude and Longitude.
  6. Resize the text area to contain just these two items and the title.
    This image shows the new text area reflecting values for latitude and longitude document properties.
    text area reflecting values for latitude and longitude document properties

  7. Right-click the map visualization, and from the menu, select Create Details Visualization.
  8. Right-click the visualization, and then click Properties.
  9. Provide a name for the visualization, such as Distance from Your Location, and then close the dialog to save the change.
  10. Test the visualization by selecting a data point or a range of data points on the map.
    The Details Visualization shows the selected data rows, with the calculated column reflecting the distance from the latitude and longitude shown in Your Location.
    This image shows the result of selecting points southwest of Seattle, taken from a zip code database. They reflect the distance ("as the crow flies") in both kilometers and miles from the values set in step 6.
    distance from current latitude and longitude of selected points

What to do next

Save the analysis.

Add expressions to find your location.