Foodomaa®
  • Introduction
  • The Flow
  • Installation
    • Installation on Server
    • Installation on LocalHost
    • Update From an Older Version
  • Configurations
    • Google Maps API Keys
    • Google Distance Matrix API
    • SMS Gateway Settings
    • Push Notification Keys
    • One Signal Setup for Store Dashboard Notification
    • Changing customer and delivery application name
    • Email Configuration
    • Cache Configuration
    • Promo Sliders
    • Category Slider and Filters
    • Social Login
    • Store Scheduling (Open/Close)
  • FAQs
    • Zones in Foodomaa
    • White Screen Issues
    • Push Notifications & Alerts
    • How are Stores shown to the Customers?
    • Bulk CSV Upload
    • StoreOwner Dashboard Translations
    • How "Add to Homescreen" works?
    • How does Wallet works?
    • When is the next update?
    • Creating and Linking Pages
    • Razorpay Webhooks
  • Advanced Usage
    • Using the Full Source Code
  • Premium Modules
    • SuperCache Module
    • Delivery Area Pro Module
    • Thermal Printer Module
    • Call And Order Module
    • Order Schedule Module
  • Extras
    • Change Log
    • Change Log (old)
    • Requirements for Foodomaa
    • Limitations
    • Scope of Support
    • Refund Policy
    • License
Powered by GitBook
On this page
  • How to enable Google Distance Matrix API?
  • Important Notes

Was this helpful?

  1. Configurations

Google Distance Matrix API

Google Distance Matix API for calculating dynamic delivery charges has been introduced in Foodomaa from version 2.0

How to enable Google Distance Matrix API?

Steps:

  • Login to your Google Cloud Console and enable the "Distance Matrix API"

  • Login to Foodomaa Admin Panel and enable Distance Matrix API from Admin > Settings > Customer Application > Use Google Distance Matrix API

Important Notes

  • Google Distance Matrix API calculation is only done on the Cart and not for listing the stores on the Homepage. For store listing, we rely on the geographical distance between the customer and the store.

  • Google Distance Matrix API only works when the store is configured for dynamic delivery charges.

  • If the distance between the customer and the store cannot be covered by Driving, Google Distance Matrix API will not return any value for calculations, so in this case, we fall back to the older method of calculation using the Geographical distance between the customer and the store. Example: There is no driving road path between a certain location in NewYork and Brazil, so Google Distance Matrix API doesn't return any data, in such cases, we rely on the Geographical calculations to get the distance between two points.

PreviousGoogle Maps API KeysNextSMS Gateway Settings

Last updated 4 years ago

Was this helpful?