User Manual

Google Map Directions

2/10/25
Google Map Directions

Google Map Directions action is used to get route information between two points. The user can enter the starting point (origin) and destination to get route information via Google Maps. Additionally, the mode parameter allows selecting the mode of transportation (car, walking, bike, public transit). It is often preferred in navigation, travel planning, or route-based business applications.

Technical Specifications

  • Function: Returns route information via Google Maps.
  • Parameters:
    • settings (Object – required): Connection settings required for Google Maps integration.
    • origin (String – required): Starting point (address or coordinates).
    • destination (String – required): Destination (address or coordinates).
    • mode (String – optional): Transportation mode. Supported values:
      • “driving” → Car
      • “walking” → Pedestrian
      • ‘bicycling’ → Bicycle
      • “transit” → Public transportation
  • Result: Singular (One) → Selected route information (distance, time, step-by-step directions).
  • Value Binding:
    • Parameters can be entered as fixed.
    • Can be dynamically bound to user inputs (e.g., TextInput, Location Picker).
  • Web & Mobile Support: Can be used in both web and mobile applications.

Google Map Directions Application Steps

1. Add Action

  • Go to the screen in your Kuika project where you want to get directions.
  • UI Design → + ADD ACTION → Google → Google Map Directions Add the action.

2. Configure Parameters

  • origin: “Izmir, Turkey” or “38.4192, 27.1287”.
  • destination: “Istanbul, Turkey” or “41.0082, 28.9784”.
  • mode: If ‘driving’ is selected, the driving route is calculated.

Usage Scenario: “Calculating the Driving Route from Izmir to Istanbul”

In a travel app, the user wants to go from Izmir to Istanbul.

Steps:

  1. The user enters their starting location (origin) as “Izmir”.
  2. The destination is selected as “Istanbul”.
  3. mode = driving is set.
  4. Google Map Directions runs and returns the estimated time and distance.
  5. The result is displayed step by step on the Map element on the screen.

Google Map Directions Advanced Customizations

  • Dynamic Locations: The user's device location can be automatically linked to the origin parameter.
  • Different Transportation Types: The user can get different routes by selecting the mode (e.g., bike, walking).
  • Chain Operation: The returned distance and time information can be used in price calculations or reporting.

Technical Risks and Controls

  • If an incorrect or empty origin/destination is entered, no result will be obtained.
  • If the mode is entered incorrectly, Google Maps will return driving by default.
  • An error may occur if Google Maps API quota limits are exceeded.
No items found.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar