Google Maps
Google Maps is a mapping platform with satellite imagery, aerial photography, street and traffic views, and more. In Glide, you can integrate Google Maps with your app to complete addresses, find the distance between locations, convert coordinates to addresses, and vice versa.
Don't see the Google Maps integration?
You may need to upgrade your plan. Browse Glide’s plans and find the right fit for you.
Adding and Configuring the Action
Navigate to the Integrations tab and then select Google Maps.
Enter your Google Maps API key. If you don’t have one already, you can generate one through Cloud Console.
Features
The Google Maps integration has four features:
- Get coordinates for address
- Get address from coordinates
- Complete address
- Calculate distance
Addresses and Coordinates
The Google Maps integration can generate an address from coordinates or vice versa, depending on your needs. Both actions can be added to a Component that supports actions, to a workflow in the Workflow Editor, or as a computed column in the Data Editor.
Get address from coordinates
The Get address from coordinates action returns the closest known street address for the coordinates you provide.
You can make this action static by using the same coordinates every time, or make it dynamic by using a column from your data that contains coordinates users input somewhere else, like a form.
Note that if you use columns from a table as your data input, you’ll need two columns: one for latitude and one for longitude.
If you have not already, set up columns to hold the latitude and longitude information, as well as a column to store the returned address result.
Select the component you’d like to add the action to. Remember, this must be a component that supports actions.
Get coordinates for address
The Get coordinates for address action returns the coordinates of the address you provide. You can choose to display the result as Latitude and Longitude separately, or as Latitude, Longitude.
You can make this action static by using the same address every time, or make it dynamic by using a column from your data that contains addresses users input somewhere else, like a form.
If you have not already, set up columns to hold the address, as well as a column or columns to store the returned coordinates result.
Select the component you’d like to add the action to. Remember, this must be a component that supports actions.
Complete Address
The Complete address action generates a full address based on a partial address. To configure the Complete address action, choose which column from your table the action should read the partial address from.
If you have not already, set up a column to hold the partial address, as well as a column to store the returned full address result.
Select the component you’d like to add the action to. Remember, this must be a component that supports actions.
Calculate Distance
The Calculate distance action determines the distance or duration between two given locations.
To configure the Calculate distance action, the start and end point need to be provided as address 1 and address 2. You can make one of these addresses static if, for example, the starting point is always the same. Or, you can use columns in your data to make both fields dynamic. To let users input one or both distances, add a component to your app that allows users to submit data, then use the column that stores those submissions when configuring the action.
Then, decide if you’d like to return a distance or duration result. Distance results can be alphanumeric characters in kilometers or meters. Duration results can be alphanumeric characters in minutes or second. The distance will be calculated by road, not as a straight line between the two points. You can choose to return any number of these possible results.
To learn more generally about Integrations in Glide, including how they affect your app’s usage, check out our Introduction to Integrations.
Frequently Asked Questions
Don't see the Google Maps integration?
You may need to upgrade your plan. Browse Glide’s plans and find the right fit for you.
Where can I generate a Google Maps API key?
If you do not have a Google Maps API key, you can generate one through Google Cloud Console.
How can I display a coordinate or location on a map inside of my app?
You can use the Map component in Glide to display and select locations from a map.
Why am I getting an error when using the Distance between locations feature with the user's correct location?
Be sure that you’re using the same location format for both addresses. If you’re using the Location component to collect the user’s location, Glide stores this as a string of coordinates (Latitude,Longitude). You’ll need to target a column containing the same string format for your second location.