78trust / 100

Maps Route

by HubVibe in Weather & location

x402 APIPassing, checked 46 min ago

Directions between two places: route and travel time by car, walking, bicycle or transit through Google Maps Grounding Lite. Use it for trip planning and ETAs. Input: origin, destination; optional travel_mode (DRIVE, WALK, BICYCLE, TRANSIT; default DRIVE).

POST https://hubvibe-io.com/work/maps/route

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
131 ms typical, 423 ms slowest 5%
Last check
46 min ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://hubvibe-io.com/work/maps/route" \
  -H "content-type: application/json" \
  -d '{"destination":"Oakland, CA","origin":"San Francisco, CA"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhubvibe-io.com%2Fwork%2Fmaps%2Froute
const res = await pay("https://hubvibe-io.com/work/maps/route", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"destination":"Oakland, CA","origin":"San Francisco, CA"}),
});
console.log(await res.json());

Example input

{
  "destination": "Oakland, CA",
  "origin": "San Francisco, CA"
}

Example output

{
  "attribution": [
    {
      "text": "Translated by Google",
      "url": "https://translate.google.com"
    }
  ],
  "price_usd": 0.1,
  "provenance": {
    "attempts": 1,
    "elapsed_ms": 340,
    "providers_used": [
      "coinbase-advanced-trade-public"
    ],
    "steps": [
      {
        "ms": 312,
        "ok": true,
        "provider": "coinbase-advanced-trade-public",
        "reason": "provider_timeout",
        "step": "quote"
      }
    ]
  },
  "receipt_id": "rcpt_9f1c2b3a4d5e6f70",
  "receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70",
  "result": {
    "destination": "Oakland, CA",
    "origin": "San Francisco, CA",
    "result": {
      "routes": [
        {
          "distanceMeters": 19870,
          "duration": "1362s"
        }
      ]
    },
    "travel_mode": "DRIVE"
  },
  "status": "ok",
  "worker": "maps.route"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
46 min agoPassed402131 ms$0.1
4 h agoPassed402124 ms$0.1
8 h agoPassed402416 ms$0.1
12 h agoPassed402119 ms$0.1
15 h agoPassed402356 ms$0.1
19 h agoPassed402368 ms$0.1
23 h agoPassed402423 ms$0.1
26 h agoPassed402561 ms$0.1
30 h agoPassed402356 ms$0.1
34 h agoPassed402117 ms$0.1
37 h agoPassed402119 ms$0.1
42 h agoPassed402117 ms$0.1