# Google Maps Directions Scraper for Route Estimates

**Use case:** 

Extract Google Maps route durations, distances, labels, toll warnings, and URLs for origin-destination pairs.

## Input

```json
{
  "routes": [
    {
      "origin": "New York, NY",
      "destination": "Boston, MA",
      "mode": "driving"
    },
    {
      "origin": "Philadelphia, PA",
      "destination": "Washington, DC",
      "mode": "driving"
    }
  ],
  "mode": "driving",
  "locale": "en",
  "country": "us",
  "maxRouteOptionsPerPair": 3,
  "requestDelayMs": 750
}
```

## Output

```json
{
  "origin": {
    "label": "Origin"
  },
  "destination": {
    "label": "Destination"
  },
  "travelMode": {
    "label": "Mode"
  },
  "routeOptionIndex": {
    "label": "Option"
  },
  "routeLabel": {
    "label": "Route"
  },
  "distanceText": {
    "label": "Distance"
  },
  "distanceMeters": {
    "label": "Meters"
  },
  "durationText": {
    "label": "Duration"
  },
  "durationSeconds": {
    "label": "Seconds"
  },
  "warnings": {
    "label": "Warnings"
  },
  "hasTolls": {
    "label": "Tolls"
  },
  "hasFerries": {
    "label": "Ferries"
  },
  "locale": {
    "label": "Locale"
  },
  "country": {
    "label": "Country"
  },
  "routeUrl": {
    "label": "Route URL"
  },
  "previewUrl": {
    "label": "Preview URL"
  },
  "scrapedAt": {
    "label": "Scraped at"
  }
}
```

## About this Actor

This example demonstrates how to use [Google Maps Directions Scraper](https://apify.com/automation-lab/google-maps-directions-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/google-maps-directions-scraper) to learn more, explore other use cases, and run it yourself.