Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
stylenone

How to Connect with Google Maps

For creating an API Key follow the link and steps:

https://developers.google.com/maps/documentation/embed/get-api-key

then you have select the project

Check If have already or not, If not then Create API key, it will some moment,

You will get API Key, copy API Key

And insert API key into Integration -> Google MapĀ 

Adding APIs: Users need to enable specific APIs to ensure proper integration. The required APIs include the Maps Embed API and the Directions API. The presenter demonstrates how to enable these APIs through the API and Services section. Enabling these APIs should grant the necessary permissions for the API key to function correctly.

And also enable Directions API

Video Tutorial - How to connect with Google Maps

https://www.youtube.com/watch?v=LD_-anoT5NQ

Unlocking a world of possibilities with Google Maps API

Integration Setup

Access the Google Maps integration in the integration section. Insert your API key and verify the status to ensure it's verified.

Adding Store Location

Easily add new locations for stores or other points of interest directly within your workspace. Go to Ecommerce -> Location

You can access Google Map API inside Flow Builder -> Create Action Node -> Integrations -> Google Map API

Actions:

Get Geocodes by Address

Geocodes are latitude and longitude coordinates of a street address, which can be used to place markers on a map. Enter the address and fill in the parameters to obtain the latitude and longitude.

Get the Address by Geocode

You can obtain an address by entering the latitude and longitude coordinates.

Get Distance Matrix

You can calculate the distance between two locations by providing either the address names or the latitude and longitude coordinates. Additionally, you'll need to specify the mode of travel (Driving, Walking, Cycling). The response will include the distance and duration of travel.

Get Direction

To obtain steps from the origin to the destination, you need to input the latitude and longitude coordinates for both the origin and destination. This will provide you with the total distance as well as the steps involved in the journey. You can store the steps in a JSON variable for further use.

Get Directions By Address

Similar to the "Get Direction" action, the difference lies in inputting the address instead of latitude and longitude. However, the resulting payload remains the same.

  • Customization:

    • Customize the output format of directions and store information using JavaScript to suit your application's needs.

  • Conclusion:

    • The Google Maps API offers endless possibilities for customization and integration into various workflows. Experiment with different actions and functionalities to enhance your projects.

Video tutorial - User cases of Google map

https://www.youtube.com/watch?v=1lWGAswrW_I