Geo Location Prompt for MicroStrategy Mobile 9.3.1:
The Geo Location prompt lets users answer a prompt by using their device’s current geographical location. Geo Location prompts are typically used to filter data in a Map widget. For example, a Map widget displays several locations as markers on the map display. You can choose to display only those map markers that are in the user’s current city.
The location name that is returned by a Geo Location prompt is based on Google’s geocoding. The prompt determines the user’s longitude and latitude using the mobile device’s GPS receiver, and passes this information to Google Maps to return information about the user’s location.
There are two ways to get the values for a Geo Location prompt:
- Create a prompt that automatically uses the device’s current latitude and longitude. While creating the prompt, you must define twovalue prompts, one for latitude and one for longitude.
- Create a prompt that filters an attribute element list using the current geographical location, by defining an attribute element prompt with the display style set to Geo Location.
The following procedure describes how to create a Geo Location prompt using a device’s current latitude and longitude (value prompts):
- Latitude
- Create a value prompt in MicroStrategy Web 9.3.1
- Definition: Numeric prompt
- Check box for “Prompt answer is required”
- Set Display style to Geo Location and set Location coordinate to Latitude
- Save prompt
- Longitude
- Create a value prompt in MicroStrategy Web 9.3.1
- Definition: Numeric prompt
- Check box for “Prompt answer is required”
- Set Display style to Geo Location and set Location coordinate to Longitude
- Save prompt
- Latitude Metric to retrieve latitude coordinate
- Create a metric in MicroStrategy Desktop 9.3.1
- Insert a function
- Choose the Max function, click Finish
- Drag in the value prompt for latitude
- Save Metric
-
Longitude Metric to retrieve longitude coordinate
- Create a metric in MicroStrategy Desktop 9.3.1
- Insert a function
- Choose the Max function, click Finish
- Drag in the value prompt for longitude
- Save Metric
- Create report with the following:
- Store (..MicroStrategy TutorialPublic ObjectsReportsMicroStrategy Platform CapabilitiesMicroStrategy MobileiPhoneComponent ObjectsStores – MapStore Attributes) in the rows
- The latitude and longitude metric save from steps 3 and 4
- Save the report
- Run the report on a supported Mobile device
Note: The report created above does not have any function other than providing the prompt to retrieve the latitude and longitude of the current location. There are no checks between the Store latitude and Store longitude and the values of the Geo Location prompt.
Warnings: Note that the value prompts need to be created in MicroStrategy Web for the user to choose a “Geo Location” style for theprompt. This option will not be available in MicroStrategy Desktop 9.3.1.
TN44056: How to Create a Geo Location Prompt for MicroStrategy Mobile 9.3.1