Google Maps Directions Scraper avatar

Google Maps Directions Scraper

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Google Maps Directions Scraper

Google Maps Directions Scraper

Extract driving, walking, bicycling, and transit directions between any two locations from Google Maps - distance, duration, traffic, route alternatives, and turn-by-turn steps.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Crawler Bros

Crawler Bros

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Extract driving, walking, bicycling, and transit directions between any two locations from Google Maps — including distance, duration, traffic conditions, route alternatives, and turn-by-turn steps.

What It Does

Provide an origin and a destination (as addresses, place names, or lat,lng coordinates), and this actor returns:

  • All route alternatives Google Maps offers (up to 5)
  • Distance in both human-readable form ("1.2 mi") and integer meters
  • Duration in human-readable form ("8 min") and integer seconds
  • "via" road for each route (e.g. "via Broadway")
  • Traffic condition notes when available (e.g. "Moderate traffic")
  • Turn-by-turn step instructions for the primary route (best-effort)
  • Resolved origin and destination strings (what Google actually matched)
  • The final Google Maps directions URL you can share or open in a browser

Use Cases

  • ETA calculators, courier and logistics planning, dispatch dashboards
  • Travel-time monitoring between business locations
  • Field-service routing and territory planning
  • Sales and customer-visit scheduling
  • Real-estate commute analyses
  • Tourism / transit research

Input

FieldTypeRequiredDefaultDescription
originStringyesStarting location (address, place name, or lat,lng)
destinationStringyesEnding location (address, place name, or lat,lng)
travelModeEnumnodrivingOne of driving, walking, bicycling, transit
languageEnumnoenUI language (affects instruction text)
unitsEnumnometricmetric or imperial distance preference
avoidTollsBooleannofalseDriving mode — avoid toll roads
avoidHighwaysBooleannofalseDriving mode — avoid highways/motorways
avoidFerriesBooleannofalseDriving mode — avoid ferry routes
departureTimeStringnoOptional ISO 8601 datetime for transit routing
proxyConfigurationObjectnoOptional Apify proxy (used only as a fallback)

Example input:

{
"origin": "Times Square, New York, NY",
"destination": "Central Park, New York, NY",
"travelMode": "driving"
}

Walking directions:

{
"origin": "Eiffel Tower, Paris",
"destination": "Louvre Museum, Paris",
"travelMode": "walking",
"language": "en"
}

Output

Each route alternative produces one dataset record:

{
"origin": "Times Square, New York, NY",
"destination": "Central Park, New York, NY",
"originResolved": "Times Square",
"destinationResolved": "Central Park",
"midpointLocation": { "lat": 40.7700, "lng": -73.9758 },
"travelMode": "driving",
"language": "en",
"units": "metric",
"routeIndex": 0,
"distance": "1.2 mi",
"distanceMeters": 1931,
"duration": "8 min",
"durationSeconds": 480,
"via": "via Broadway",
"trafficCondition": "Moderate traffic",
"steps": [
{ "instruction": "Head north on Broadway", "distance": "0.3 mi" }
],
"googleMapsUrl": "https://www.google.com/maps/dir/Times+Square/Central+Park/?hl=en&travelmode=driving",
"scrapedAt": "2026-06-16T10:30:00+00:00"
}

Empty fields are omitted from the record.

How It Works

  • Loads the canonical Google Maps directions URL in a stealth Chromium browser
  • Waits for route alternatives to render, then extracts them from the DOM
  • Distance and duration strings are also normalised to integer meters / seconds for downstream analytics

FAQ

How many routes are returned per run? Up to 5 alternatives, in the order Google Maps shows them. routeIndex: 0 is Google's recommended route.

Why does Google sometimes resolve my origin/destination differently? Google Maps performs its own geocoding and may match the closest known place. The originResolved and destinationResolved fields show what it actually matched.

Can I use coordinates instead of addresses? Yes — pass "40.7580,-73.9855" (or similar) as origin/destination and the actor will route between the exact points.

Does this actor use cookies or login? No. Google Maps directions are public and require no authentication.

Is a proxy needed? Usually not. The actor first attempts the run without a proxy, which is the most reliable approach for Google Maps. If you configure a proxy, it is used only as a fallback.

What if Google Maps cannot find a route (e.g. between two continents for driving)? The actor will report no routes found and fail the run gracefully so you can see the issue in the status message.

🗺️ Complete Google Maps Scraper Suite

This actor is part of a comprehensive Google Maps data extraction toolkit by crawlerbros. All actors run on the free Apify plan, use no proxy by default, and return clean, structured data.

ActorWhat it does
🏢 Google Maps Business ScraperExtract business data — name, address, phone, website, rating, reviews, hours, amenities
Google Maps Reviews ScraperScrape reviews with reviewer Local Guide level, photos, mentioned items, owner replies
📸 Google Maps Photos ScraperExtract all photos from any place — max-resolution URLs, contributor info, categories
🕐 Google Maps Business Hours ScraperFull 7-day hours, timezone, current local time, next open/close, holiday hours
📊 Google Maps Popular Times ScraperBusy hours histogram for all 7 days + current busyness + typical visit time
📧 Google Maps Email ExtractorFind business emails + social media links by crawling websites
🗺️ Google Maps Area ScannerGeographic grid scanning — bypass the 120-place limit with bounding box / circle / polygon
💼 Google Maps Leads ScraperB2B lead generation with email + phone enrichment, US states + global countries
🤖 Google Maps MCP ServerUnified MCP server combining search + reviews for AI assistants
📍 Google Maps Geocoding ScraperBidirectional geocoding — address ↔ coordinates, with address components
🔗 Google Maps Similar Places Scraper"People also search for" / related place discovery — competitor & alternative finder
🍽️ Google Maps Menu ScraperRestaurant menu items, prices, descriptions, photos
📌 Google Maps Nearby ScraperFind places near a coordinate point — lightweight POI search by category
📋 Google Maps Place List ScraperExtract Google's curated "Top X in Y" lists — best hotels/restaurants/things to do
🌍 Google Maps Timezone ScraperIANA timezone + current local time from coordinates