📍 Google Distance Matrix API #

Google Distance Matrix API is used in Sigma Reactjs Laravel Ecommerce to calculate dynamic delivery charges based on actual driving distance and duration.

Dynamic delivery charge calculations are supported.

🚀 How To Enable Distance Matrix API #

Login to your Google Cloud Console and enable the Distance Matrix API for your project.

⚙️ Enable From Admin Dashboard #

After enabling the API from Google Cloud Console, open your Sigma Reactjs Laravel Ecommerce Admin Panel.


Admin → Settings → Customer Application
      

Enable the option named 'Use Google Distance Matrix API'.

📌 Important Notes #

Distance Matrix calculations are only used on the Cart page and not while listing stores on the homepage.

For homepage store listing, Sigma Reactjs Laravel Ecommerce uses geographical distance calculations between the customer and the store.

Google Distance Matrix API only works for stores configured with Dynamic Delivery Charges.

🌍 Fallback Distance Calculation #

If Google Maps cannot calculate a valid driving route between the customer and the store, Sigma Reactjs Laravel Ecommerce automatically switches back to geographical distance calculations.

Using Google Distance Matrix API provides more accurate delivery fees based on real driving distance and travel duration.