Google Maps Directions — Driving Routes & Steps avatar

Google Maps Directions — Driving Routes & Steps

Pricing

from $125.72 / 1,000 completed driving lookup records

Go to Apify Store
Google Maps Directions — Driving Routes & Steps

Google Maps Directions — Driving Routes & Steps

Get Google Maps driving directions between two places. Export every returned route alternative with distance, duration, resolved endpoints and turn-by-turn steps in one lookup record. Includes a Google Maps directions link and an HTML processing report. Driving only; one origin-destination pair per

Pricing

from $125.72 / 1,000 completed driving lookup records

Rating

0.0

(0)

Developer

SIÁN OÜ

SIÁN OÜ

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Share

Google Maps Directions — Driving Routes 🧭

SIÁN Agency Store Google Maps Traffic Google Maps Photos Waze Traffic

🧭 One driving lookup with every returned route alternative

For travel research, distance exports and operations analysis

🔎 What is the Google Maps Directions — and when should you use it?

The Google Maps Directions turns starting and destination place names into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

Use it when you need: driving route alternatives, distances, durations, resolved endpoints and available turn-by-turn instructions.

Use something else when: you need walking, cycling, transit, route matrices or scheduled-departure planning. This actor retrieves driving directions for one origin-destination pair. It does not provide live navigation or guaranteed travel times.

🤖 Use with AI agents

Already connected to the Apify MCP server? Just ask for this Actor by name: sian.agency/google-maps-directions-scraper

Agentic payments: Availability of x402 and Skyfire depends on this Actor's current Store eligibility. Check the published listing for supported payment methods. One completed lookup is one event and includes every returned driving alternative. Absent or unusable routes and failed retrievals have no lookup charge. A separate run-start fee applies.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

I want driving route research and distance exports between known places using the Apify Actor `sian.agency/google-maps-directions-scraper`.
Use it when I need: driving route alternatives, distances, durations, resolved endpoints and available turn-by-turn instructions.
Don't use it when: This actor retrieves driving directions for one origin-destination pair. It does not provide live navigation or guaranteed travel times.
How to call it: set operation to directions and supply origin and destination. Read each output record’s routes array and verify the resolved endpoint names.
Start with this input:
{
"operation": "directions",
"origin": "San Francisco, CA",
"destination": "Sunnyvale, CA"
}
Ask me which starting place and destination they want, including state or country, then run the Actor and summarise the results as a table.

Things you can ask your agent for:

  • Get driving alternatives from San Francisco to Sunnyvale and compare distance and duration.
  • Export the available turn-by-turn instructions between these two places to JSON.
  • Check the resolved endpoints for this pair and show the returned Google Maps directions link.

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at apify.com/sian.agency/google-maps-directions-scraper.md.

📋 Overview

Get Google Maps driving directions between two places. Each lookup produces one record containing every returned route alternative, distance, duration and available turn-by-turn instructions. Requested and resolved endpoints stay visible together so you can check the interpretation.

  • 🧭 Complete lookup: all returned alternatives stay together.
  • 📏 Distance and duration: inspect estimates for each route.
  • 📍 Resolved endpoints: compare them with the requested places.
  • 🛣️ Route steps: preserve available instructions in JSON.
  • 💰 One lookup event: alternatives have no extra route charge.
  • 📄 Processing report: review counts and accepted charges.

✨ Features

  • 📍 Place inputs: supply an origin and destination.
  • 🧭 Driving routes: retrieve a focused road-route lookup.
  • 🛣️ Alternatives: preserve every option returned in that lookup.
  • 📏 Meters and seconds: compare numeric distances and durations.
  • 🔗 Google Maps link: open the returned directions for review.
  • 📄 Nested steps: JSON keeps the route-part and instruction structure.
  • 🕒 Dated snapshot: distinguish the lookup time from future travel conditions.

This version handles driving only. It does not expose transit, walking, cycling, scheduled departures or avoidance controls. Distances and travel times are estimates for research; confirm current conditions before travel.

🎬 Quick Start

Open the actor in Apify Console and use the prefilled San Francisco to Sunnyvale pair. Press Start and check the resolved endpoint names. Open the dataset to inspect route alternatives, or download JSON for all instructions.

{
"operation": "directions",
"origin": "San Francisco, CA",
"destination": "Sunnyvale, CA"
}

🚀 Getting Started

Step 1: Choose the start

Enter the starting city or place name. Include state or country to reduce ambiguity.

Step 2: Choose the destination

Enter the destination with the same level of detail. One pair is processed per run.

Step 3: Check and export

Compare the requested and resolved places before using the route. Open the directions link or download the complete lookup as JSON.

📥 Input Configuration

FieldTypeMeaning
operationstringdirections
originstringStarting city or place name
destinationstringDestination city or place name

Both endpoint fields have Console prefills. API calls must supply their own origin and destination. There is no route matrix or automatic multi-pair mode.

📤 Output

FieldTypeMeaning
originQuerystringRequested start
destinationQuerystringRequested destination
originNamestringResolved starting place
destinationNamestringResolved destination
routeCountintegerNumber of alternatives
routesarrayComplete route alternatives and steps
firstRouteNamestringFirst alternative’s route label
distanceMetersnumberFirst alternative’s distance
durationSecondsnumberFirst alternative’s estimated duration
directionsUrlstringGoogle Maps directions link
resolvedOriginobjectReturned origin details and coordinates
resolvedDestinationobjectReturned destination details and coordinates
processedAtstringISO 8601 processing timestamp
scrapingDatestringUTC processing date (YYYY-MM-DD)
statusstringRecord status
{"originQuery":"San Francisco, CA","destinationQuery":"Sunnyvale, CA","originName":"San Francisco","destinationName":"Sunnyvale","routeCount":3,"firstRouteName":"US-101 S","distanceMeters":64513,"durationSeconds":2853,"status":"success"}

The example abbreviates the record. Actual output preserves all route alternatives and their available route parts, instructions, notes and timing information.

💼 Use Cases & Examples

1. Route research

Travel researchers can compare the driving alternatives returned between two known places. Check the resolved cities before comparing the routes.

2. Distance exports

Operations analysts can send numeric distance and duration estimates into a spreadsheet. Preview fields show the first alternative; the routes array contains every alternative.

3. Trip planning notes

Travel writers can save the available route instructions as a dated snapshot. Confirm current conditions before relying on them for a journey.

4. Location comparisons

Property researchers can compare driving routes between locations they already know. Include state or country in both place names to reduce ambiguity.

5. Route data workflows

Developers can store complete lookup records in their own tools. JSON preserves route parts, instructions and available notes.

6. Directions review

Assistants can show the resolved start and destination before sharing the Google Maps link. One lookup includes every returned driving alternative.

🔗 Integration Examples

JavaScript

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('sian.agency/google-maps-directions-scraper').call({"operation": "directions", "origin": "San Francisco, CA", "destination": "Sunnyvale, CA"});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].routes);

Python

from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('sian.agency/google-maps-directions-scraper').call(run_input={"operation": "directions", "origin": "San Francisco, CA", "destination": "Sunnyvale, CA"})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item['routes'])

cURL

curl -X POST 'https://api.apify.com/v2/acts/sian.agency~google-maps-directions-scraper/runs?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' -d '{"operation": "directions", "origin": "San Francisco, CA", "destination": "Sunnyvale, CA"}'

Automation Workflows (N8N / Zapier / Make)

  1. Trigger a workflow with a starting place and destination.
  2. Start the actor using an HTTP request.
  3. Wait for the run and read its dataset.
  4. Save distances, durations and the route link to your spreadsheet or database.

📊 Performance & Pricing

A completed lookup produces one record and one driving-lookup event. Every returned driving alternative is included. An absent or unusable route and failed retrievals have no lookup charge. The separate run-start fee applies, including invalid input and early stops.

Apify planPer completed lookupRun start
Free$0.57144$0.020
Bronze$0.14286$0.005
Silver$0.13429$0.005
Gold$0.12572$0.005

Enterprise customers should check their live quote. One origin-destination pair is processed per run on every plan. Processing time, route availability and estimated travel time can vary.

Check current pricing.

❓ Frequently Asked Questions

Are alternative routes billed separately?

No. One completed lookup is one event and includes every returned driving alternative.

Does it support walking or transit?

No. This version retrieves driving routes only.

Can I schedule a departure or avoid tolls?

No. This focused version does not expose planned departures or avoidance controls.

Are travel times guaranteed?

No. They are estimates from the lookup and can change. This actor is for research, not live navigation or safety decisions.

How do I check the endpoints?

Compare the requested place names with originName, destinationName and the resolved endpoint objects. Open the Google Maps directions link if the interpretation looks wrong.

What if there is no route?

No driving-lookup charge applies to an unusable or absent route. A separate platform run-start fee still applies.

🐛 Troubleshooting

The resolved city is wrong

Include state or country in both place names. Check the returned coordinates and directions link before using the route.

No usable driving route was returned

Check that both places are reachable by road. Retry the pair on its own later. No lookup event is charged when a usable route is absent.

The run stopped before the lookup

Check your budget and account credits. Free API-origin runs are restricted; use Console or MCP for evaluation.

Nested steps are difficult to read in CSV

Download JSON to preserve each alternative’s route parts and instructions.

Google and Google Maps are trademarks of Google LLC. SIÁN Agency is independent and is not endorsed by Google. Route and travel-time estimates can change. Confirm resolved endpoints and current road conditions before travel; this export does not provide live navigation.

Location queries can contain personal data. Check your purpose and applicable rules, including GDPR, before sharing them. Read Apify’s web scraping legal guide for background.

🤝 Support

Open an issue with the place names and run link. Avoid posting private addresses or account tokens.

Email apify@sian-agency.online. See more tools in the SIÁN Agency Store.

Built by SIÁN Agency