Skip to content

Navigation button to launch Waze or Google Maps

Discover how to create a direction button and launch Waze or Google Maps from your application to guide your users to a destination from their current location.

Navigation Application Selection

First, you need to decide which navigation application you want to use for your direction button. Popular options include Waze and Google Maps.

Each application has its own URL “scheme” to trigger navigation and open the application:

URL Configuration

After choosing the application, you need to configure the URL that will be used to open the navigation application with the specific coordinates (latitude and longitude) of your destination.

For Waze, the URL to use is as follows:

https://waze.com/ul?ll=%f,%f&navigate=yes

Here, %f and %f must be replaced by the latitude and longitude of your destination, respectively. These values can be dynamically bound (linked) from an external data source.

To dynamically bind the coordinates from a data source to the URL, you have two options:

  1. Using a Coordinate field (recommended): Create a Coordinate field in your collection. When binding to the URL, access the latitude with coordinate.lat and longitude with coordinate.lng.

  2. Using separate Number fields: Create two separate Number fields (one for latitude, one for longitude) in your database.

Use the action Open a URL to configure the navigation URL. Bind the two %f placeholders in the URL to your coordinate data.

Testing and Deployment

Once you have configured the URL and bound the coordinates, test your direction button to ensure it correctly opens the navigation application and guides the user to the desired destination. After verifying correct operation, you can deploy your PandaSuite project with the integrated direction button.