Skip to main content

Google Maps Integration

Documentation about how to enable and leverage the Google Maps Integration in your Hatz account.

Updated over a week ago

Leverage Google Maps Integration with Hatz AI: Features and Tools Guide

The integration of Google Maps and Hatz AI unlocks a wealth of opportunities for users looking to supercharge their workflow with the power of Hatz AI. Whether you're managing logistics, planning routes, or analyzing location data, this fusion brings exceptional capabilities to your fingertips.

This guide will walk you through the features and tools provided by the Google Maps tool with Hatz AI's capabilities.


What is the Google Maps Tool?

The Google Maps tool is a feature-rich integration that allows users to connect and interact directly with Google Maps. It supports tools for calculating distances, geocoding addresses, getting directions, finding routes, embedding maps, and searching for places. With Hatz AI now connected to this tool, you can automate tasks, gain location-based insights, and perform intelligent operations across your Google Maps data.


How and What Can a User Access?

The Google Maps integration does not require any personal authentication.

Features of the Google Maps Integration Tool

1. Advanced Route Planning

  • Get Directions: Fetches detailed directions between an origin and a destination, supporting intermediate waypoints and various travel modes.

  • Get Route: Calculates one or more routes between two specified locations using various travel modes and preferences.

  • Distance Matrix: Calculates travel distance and time for a matrix of origins and destinations, supporting different modes of transportation.

2. Location and Address Management

  • Geocoding: Convert addresses into geographic coordinates (latitude and longitude) and vice versa (reverse geocoding).

  • Place ID Lookup: Get an address for a specific place ID.

3. Powerful Search Capabilities

  • Nearby Search: Searches for places (e.g., restaurants, parks) within a specified circular area.

  • Text Search: Searches for places on Google Maps using a textual query (e.g., "restaurants in london", "eiffel tower").

4. Map Embedding

  • Embed Google Map: Generate an embeddable Google Map URL and HTML iframe code to display a map on a webpage.


Why Use the Google Maps Integration with Hatz AI?

Connecting your Google Maps data to and leveraging Hatz AI allows you to:

  • Automate Logistics: Automatically calculate travel times and distances for multiple destinations.

  • Enrich Your Data: Convert addresses to coordinates and vice-versa to enhance your location-based datasets.

  • Improve Decision Making: Use location-based insights to inform your business strategy.

  • Streamline Operations: The seamless integration ensures all your Google Maps data is easily accessible and actionable.

Real-Life Use Cases

Scenario 1: Automated Delivery Route Planning

With the Google Maps toolkit, you can automatically calculate the most efficient route for a fleet of delivery vehicles. By providing a list of destinations, Hatz AI can use the Distance Matrix tool to determine the optimal route, saving time and fuel costs.

Scenario 2: Location-Based Marketing Campaigns

A marketing team can use the Nearby Search tool to identify all restaurants in a specific area. They can then use this information to create a targeted marketing campaign for a new food delivery service, leveraging Hatz AI to personalize the outreach.


Google Maps & Hatz AI: Use Case List

This list outlines practical applications of the Hatz AI and Google Maps integration. It is categorized by the core features available through the tool, providing examples of direct Chat Prompts for quick, ad-hoc tasks and Workflow Automations for more structured, repeatable processes.

1. Route Planning & Logistics

Use Case

Description

Chat Prompt Example

Workflow for Automation

Efficient Route Optimization

Calculate the most time- and fuel-efficient route for multiple stops, ideal for deliveries, sales calls, or service appointments.

Find the most efficient route starting from our warehouse to these three addresses: [Address 1], [Address 2], [Address 3].

Daily Delivery Route Planner:
1. User provides a starting address (e.g., warehouse).
2. User pastes a list of delivery addresses.
3. The workflow uses the Distance Matrix tool to determine the optimal order of stops.
4. It then generates a final, ordered route using Get Route and presents the step-by-step directions and a map link.

Multi-Modal Travel Planning

Get detailed directions and travel time estimates across different modes of transportation to plan business trips or commutes.

What's the quickest way to get from London Heathrow to The Shard using public transit? What about by car at 5 PM?

Client Meeting Commute :
1. Prompts the user for their starting point and the client's office address.
2. Asks the user to select their preferred travel modes (e.g., Driving, Public Transit).
3. The workflow fetches directions and estimated travel times for each selected mode.
4. Presents a comparison to help the user decide how to travel.

Travel Time Estimation

Quickly calculate the travel distance and time between a single origin and multiple potential destinations to aid in planning or decision-making.

How long will it take me to drive from our office to Client A's location vs. Client B's location right now?

Service Technician Dispatch Workflow:
1. User inputs a new customer's service address.
2. The workflow fetches a predefined list of technicians' starting locations.
3. It uses the Distance Matrix to calculate the travel time from each technician to the customer.
4. Presents a sorted list of technicians by the shortest travel time, enabling efficient dispatch.

2. Location Data Management

Use Case

Description

Chat Prompt Example

Workflow for Automation

Bulk Address Geocoding

Convert a list of mailing addresses into precise geographic coordinates (latitude and longitude) to enrich datasets for mapping or analysis.

Give me the latitude and longitude for '1600 Amphitheatre Parkway, Mountain View, CA'.

Spreadsheet Data Enrichment Workflow:
1. User pastes a list of addresses from a spreadsheet.
2. The workflow iterates through the list, calling the Geocoding tool for each one.
3. It outputs a two-column list of the original addresses and their corresponding coordinates, ready to be pasted back into the spreadsheet.

Reverse Geocoding

Identify the nearest physical street address from a set of GPS coordinates. Useful for logging locations from field equipment or photos.

What is the street address for the coordinates 40.7484° N, 73.9857° W?

GPS Log to Address Converter:
1. User provides a list of latitude/longitude pairs (e.g., from a field survey or photo metadata).
2. The workflow processes each coordinate pair using Reverse Geocoding.
3. It returns a corresponding list of the nearest street addresses for each point.

Data Cleansing

Verify and standardize addresses by converting them to coordinates and back, or by looking up a known Place ID to get the canonical address.

Get me the official, formatted address for Google Place ID: ChIJLU7jZ1x3wokRJzsoEIM4A0o.

Address Verification Workflow:
1. User inputs a potentially incomplete or poorly formatted address.
2. The workflow uses Geocoding to find its coordinates, then Reverse Geocoding to get the standardized address.
3. Presents the clean, standardized address to the user for updating records.

3. Place Discovery & Search

Use Case

Description

Chat Prompt Example

Workflow for Automation

Local Market Research

Find specific types of businesses or points of interest within a defined area for competitor analysis or site selection.

List all hardware stores within a 2-mile radius of downtown Austin, TX.

Competitor Mapping Workflow:
1. Prompts user for a central address and a business category (e.g., "bakery," "gym").
2. Asks for a search radius in miles or kilometers.
3. Uses the Nearby Search tool to find all matching places.
4. Presents a list of the competitors' names and addresses.

Venue & Amenity Scouting

Search for locations that meet specific criteria, such as finding a restaurant with a certain feature or a hotel near a landmark.

Find me 'restaurants with outdoor seating' near Central Park, New York.

Team Event Planning :
1. Prompts user for the type of venue needed (e.g., "coffee shop," "restaurant with private room").
2. Asks for the general location or address.
3. Uses Text Search to find matching venues.
4. Hatz AI returns a formatted list of the top 5 results, including names and addresses, to kickstart the planning process.

4. Map Content & Visualization

Use Case

Description

Chat Prompt Example

Workflow for Automation

Website Map Generation

Create the HTML code to embed a Google Map on a website or blog, such as for a "Contact Us" page or event location.

Generate an embeddable map for our office at 123 Main Street, Anytown.

Embeddable Map Creator:
1. Prompts the user for the address or place name to display on the map.
2. Asks for an optional map zoom level (e.g., 1 to 20).
3. Uses the Embed Google Map tool to generate the HTML iframe code.
4. Presents the code snippet, ready for the user to copy and paste into their web page.

Quick Location Sharing

Instantly generate a shareable Google Maps link for a specific location to send via email, chat, or in a calendar invite.

Give me a shareable map link for the SFMOMA.

Meeting Location Link Generator:
1. Prompts the user for the name or address of the meeting location.
2. The workflow uses the Embed Google Map tool but extracts only the map URL.
3. It presents the clean URL, perfect for sharing with attendees.

Did this answer your question?