Skip to content

JK64 Report Google Map R1 Show Directions

Jeffrey Kemp edited this page Feb 18, 2021 · 2 revisions

Dynamic Action Plugin: JK64 Report Google Map R1 Show Directions

If you have installed this optional plugin, you can use it to add a dynamic action that requests directions and illustrates them on the map plugin region.

PRE-REQUISITE: to use Directions you must enable the Directions API on your Google Cloud Platform project. Read "Getting started" at https://developers.google.com/maps/documentation/javascript/directions to enable the Directions API.

Directions can alternatively be requested using your own JavaScript code but it's easier (and more future-proof) to use the Dynamic Action plugin.

Release 1.0

  • Status: Released Jan 2021
  • Plugin Name: JK64 Report Google Map R1 Show Directions
  • Internal Name: COM.JK64.REPORT_GOOGLE_MAP_DIRECTIONS_DA

Attributes


Source Type

Determines how the parameters for the Directions are derived - whether to take the values from items on the page, or to base them on a JavaScript expression, or to take them from items based on jQuery selectors, or to specify the Values directly (i.e. static value or based on a substitution string). All three parameters (Origin, Destination, and Travel Mode) must be provided using the same means - i.e. three page items, three expressions, etc.

Page Item

Specify a page item.

jQuery Selector

Specify the jQuery selector.

JavaScript Expression

Specify a JavaScript expression to evaluate.

Static Value

Enter a static value; substitution syntax allowed.

Origin

Enter the value to be used to find the Origin point. The value will be used to search for a location - they may be a Latitude,Longitude pair, or a street address.

Destination

Enter the value to be used to find the Destination point. The value will be used to search for a location - they may be a Latitude,Longitude pair, or a street address.

Travel Mode

Specify how to derive the Travel Mode. The value must resolve to one of the following values (uppercase): DRIVING, WALKING, BICYCLING, or TRANSIT

Affected Elements

Must be set to the JK64 Google Map Plugin region.