In Anywhere mobility studio, you can embed Google Maps in your applications with the Maps Embed API. To use this API, you must register for it, get an API key from Google, and enter this key in the Anywhere mobility studio parameters.

In your applications, you can use these predefined actions to embed Google Maps:

  • Search Map: Use this action to show a location on a map. For example, the location of a machine on a map.
  • Direction Map: Use this action to show a route between a starting point and a destination on a map.
  • Add waypoint: Use this action to add waypoints between the starting point and destination of a direction map.
To use:
  • The search map or direction map, create a form with a Literal HTML control to position the map on the form. Add the 'Search Map' or 'Direction Map' action to the OnLoad form event. You can add fields to the form that are related to the action parameters.
  • Waypoints, create a form with at least a field to enter the waypoint and a button to confirm it. Add the 'Add waypoint' action to the button event control. You can only use the 'Add waypoint' action in combination with the 'Direction Map' action. To do so, also add a button to the 'direction map' form to open the 'add waypoint' form.
For each action, you can set and use several parameters. For example, the 'Direction Map' action has parameters to set the default map type, the selection of way points, the travel mode, and whether to avoid highways, tolls, or ferries. For more information on the parameters, also refer to the Map Embed API developer guide.

Administrator Administrator Register for Google Maps API Register for Google Maps API In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google. Google may charge you for this. Procedure 1. Sign in to https://console.cloud.google.com/apis/library/. 2. Find and click the Maps Embed API tile. 3. Enable it and create credentials of type API key. 4. Copy the shown API key. Set map API provider parameters Set map API provider parameters In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google and enter it in the Anywhere mobility studio parameters. Procedure 1. Click Mobility management. 2. Click Parameters. 3. Click the Map API provider tab. 4. In the list, mark the selected row. 5. In the Key field, paste the API key as copied from the Embed Maps API. 6. Close the page. Start Start End End

Activities

Name Responsible Description

Register for Google Maps API

Administrator

In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google. Google may charge you for this.

Set map API provider parameters

Administrator

In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google and enter it in the Anywhere mobility studio parameters.

Activities

Name Responsible Description

Register for Google Maps API

Administrator

In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google. Google may charge you for this.

Set map API provider parameters

Administrator

In Anywhere mobility studio, you can embed Google Maps in your applications. To be able to embed a map, you must register for it and get an API key from Google and enter it in the Anywhere mobility studio parameters.

Provide feedback