# Send SmartRoute - Google Routes Calculator to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "smart-route",
    "name": "SmartRoute - Google Routes Calculator",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/vemec/smart-route",
    "canonicalUrl": "https://clawhub.ai/vemec/smart-route",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/smart-route",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=smart-route",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "scripts/get_route.js",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "smart-route",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T07:09:30.761Z",
      "expiresAt": "2026-05-08T07:09:30.761Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=smart-route",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=smart-route",
        "contentDisposition": "attachment; filename=\"smart-route-1.0.4.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "smart-route"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/smart-route"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/smart-route",
    "downloadUrl": "https://openagent3.xyz/downloads/smart-route",
    "agentUrl": "https://openagent3.xyz/skills/smart-route/agent",
    "manifestUrl": "https://openagent3.xyz/skills/smart-route/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/smart-route/agent.md"
  }
}
```
## Documentation

### Google Routes Calculator

Get real-time traffic and routing information via Google Routes API (v2).

### When to use

Use this skill immediately when the user asks:

"How is the traffic to X?"
"How long does it take to drive to Y?"
"Give me the route to Z."
"What's the distance between A and B?"

### Usage

This skill executes a Node.js script. It requires an API Key with "Routes API" enabled.

### Command

node skills/smart-route/scripts/get_route.js --origin "Origin Address" --destination "Destination Address" [--mode DRIVE|BICYCLE|WALK]

### Output Format

The script returns a JSON object:

{
  "origin": "Union Square, San Francisco, CA",
  "destination": "Golden Gate Bridge, San Francisco, CA",
  "mode": "DRIVE",
  "duration": "30 min",
  "distance": "13.5 km",
  "traffic_duration_seconds": 1835,
  "route_link": "https://www.google.com/maps/dir/?api=1&origin=...&destination=...&travelmode=driving"
}

### Examples

Check traffic in San Francisco:
node skills/smart-route/scripts/get_route.js --origin "Union Square, San Francisco, CA" --destination "Golden Gate Bridge, San Francisco, CA"


Drive time in Los Angeles:
node skills/smart-route/scripts/get_route.js --origin "Los Angeles, CA" --destination "Santa Monica, CA" --mode DRIVE

### Privacy & Security

Scope: This skill only communicates with routes.googleapis.com.
Data Handling:

It does not read local files or other environment variables besides the ones specified below.
PII Notice: User-supplied origin and destination addresses are sent to Google Routes API and printed to stdout in the JSON response. Users should consider these addresses as potentially sensitive information (PII).


Credentials: API keys must be provided via environment variables. Providing keys via CLI flags is disabled for security reasons (to avoid exposing secrets in process lists).

### API Credentials

This skill requires a Google Cloud API Key with the Routes API enabled.

Variable: GOOGLE_ROUTES_API_KEY
Detection: The skill will check for this environment variable at runtime.
Strict Mode: If the variable is missing, the script will exit with an error rather than falling back to other keys, ensuring no accidental usage of incorrect credentials.

### Setup Instructions

Open the Google Cloud Console.
Enable the Routes API for your project.
Generate an API Key under Credentials.
Export the key to your environment:
export GOOGLE_ROUTES_API_KEY="your_api_key_here"
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: vemec
- Version: 1.0.4
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T07:09:30.761Z
- Expires at: 2026-05-08T07:09:30.761Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/smart-route)
- [Send to Agent page](https://openagent3.xyz/skills/smart-route/agent)
- [JSON manifest](https://openagent3.xyz/skills/smart-route/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/smart-route/agent.md)
- [Download page](https://openagent3.xyz/downloads/smart-route)