How to extract data with Google Maps API

Abby Updated by Abby

When we collect information it's important to make sure that what the end user provides is accurate, and a great way do this is to use the Google Maps verification system that helps us with such process.

To achieve this we will use Google Maps API's to pinpoint the given location and let the end user verify themselves whether or not it's accurate, and we will handle all the inputs from the users from the flow of our bot.

For the first part, we will need to create a Google API account with Geocoding, Maps Embed, Maps Javascript, and Places enabled, which is free, however you will need to enter your billing information (https://developers.google.com/maps/api-key-best-practices).

We have built a Brick with a flow ready to be used, once you have your API key, you only need to do the following:

  1. Enable your API Key

These are the specific API's we'll be using for our brick, for the brick to work we need to be sure that all of these are enabled in our Google Cloud account.

  1. Import the brick

Just go to "Bricks" in the Advanced Features, here you can search for this brick "Google Maps & API info v0.3"

  1. Connect the brick to your flow

Be sure you have an input as well as an output for your brick

  1. Enter the brick

Here the only blocks you need to pay attention to are "Questions Address" and "Set Variable" where you'll enter your personal API Key (the same one will go in both blocks)

  1. Add your API Key in two places

We need to add the API Key in both places as they serve different purposes

  1. Here's what we need to do

That's all there is to it! This is how the end result will look:

How did we do?

Simple cart v0.2

Contact