Get Google Maps Direction to the Place Searched on Google Places

Summary

This article describes a business use case to get direction using Google Maps to the places searched by Google Places.

Prerequisites

  • User should have a working webMethods.io Integration tenant.

  • User should have a working Google account.

Steps

  1. Login to webMethods.io Integration tenant and create a workflow.

  2. Drag and drop the Google Places connector to the workflow palette. Double click on its icon to configure the action.

  3. In the action configuration screen, select the Search Places action and connect to Google Places using API token.

  4. In the next screen, provide a Search Query for the places. For example, it can be restaurants, hotels, hospitals, etc.

  5. Skip testing the action in the next screen and click Done.

  6. Drag and drop Google Maps connector to the workflow palette. Double click on its icon to configure the action.

  7. In the action configuration screen, select the Get Direction action and connect to Google Maps using API token.

  8. In the next screen, provide an Origin and map the Search Places response in Destination as shown below.

  9. Skip testing the action in the next screen and click Done.

  10. Save and execute the workflow. Check the execution history for results.