MicroStrategy ONE

Prompting users for their location: Geo Location prompts

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.

You can also use an attribute element prompt to filter attribute elements based on the location of the mobile device. To support attribute element prompts, your MicroStrategy schema must include a location mapping attribute that includes attribute forms for latitude and longitude information.

For example, to filter a list of stores by the state in which the mobile device is located, provide a location mapping attribute that contains attribute forms for the state name, latitude, and longitude.

The attribute that provides the list of attribute elements that are filtered and displayed by the Geo Location prompt, also called the display attribute, does not have to be the same as the location mapping attribute. For example, the Customer State is both the display attribute and the location mapping attribute. When the prompt is displayed on a mobile device, the list of prompt answers is filtered to display the current state, as shown in the image below. Instead, if the display attribute is the Store attribute, and the location mapping attribute is Customer State, the list of prompt answers is filtered to display the stores in the current state, as shown in the image below on the right. Users can select stores from the list for which to display data.

You can:

  • Create a prompt that automatically uses the device's current latitude and longitude. While creating the prompt, you must define two value prompts, one for latitude and one for longitude.

  • For steps to create value prompts, see To create a value prompt.

  • 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.

For steps to create an attribute element prompt, see To create an attribute element prompt.