Google Maps Distance Matrix API

Google Maps Distance Matrix API calculates travel distance and time between multiple locations.

Integration Free ⭐ Featured ✓ Official

Requirements

  • Google Cloud project and API key with Distance Matrix API enabled.

The Distance Matrix API answers questions like:

    1. “How far is it from Point A to Point B?”
    2. “What’s the travel time between all my delivery stops?”
    3. Which warehouse is closest to the customer?”
Ideal for apps that need to find the best routes, estimate delivery times, or optimize logistics. It returns distances and durations for every pair of origins and destinations, taking into account the travel mode (driving, walking, cycling, transit) and traffic conditions (if enabled).

Operations:

    1. GET /maps/api/distancematrix/json