calculate route

This block is part of the google group and was last modified in core v10.4.28.

calculate route v10.4.28

In pins 13 + flow
  • flow
  • api key value required

    Your application's API key, created within your Google Cloud Platform Console.

  • origin object required

    The place ID, address, or textual latitude,longitude value from which you wish to calculate directions. More information can be found here.

  • destination object required

    The place ID, address, or textual latitude,longitude value to which you wish to calculate directions. More information can be found here.

  • intermediates array

    The place ID, address, or textual latitude,longitude value to which you wish to drive through. More information can be found here.

  • mode value

    Specifies the mode of transport to use when calculating directions. Available modes are DRIVE, BICYCLE, WALK or TWO_WHEELER.

    Default DRIVE

  • preference value

    Specifies the routing preference. More information can be found here.

    Default TRAFFIC_UNAWARE

  • modifiers object

    Specifies the route modifiers. More information can be found here.

  • departure time date

    Specifies the desired time of departure for transit directions.

  • fields array

    Specifies the fields that should be returned in the response. Requires an array of values.

  • alternate routes condition

    Specifies if the response should return alternate routes.

  • language code value
  • reference route array

    Specifies what reference routes to calculate as part of the request in addition to the default route. More information can be found here.

  • extra computations array

    A list of extra computations which may be used to complete the request. More information can be found here.

Out pins 3 + flow
  • flow
  • success condition
  • response object
  • error value

A typical wiring for calculate route: a function trigger starts the flow; value feeds the apikey pin; new object feeds the origin pin; new object feeds the destination pin; the flow out pin feeds debug.

Studio canvas example for the calculate route block: typical wiring for calculate route.

Version history

Introduced in v10.4.28.


Back to google Return to the main group to view all sub-groups Back to google routes Return to the group to view all blocks within this group