77trust / 100

Map Georeference

by bild.halowerk.com in Weather & location

x402 APIPassing, checked 8 h ago

Georeference a scanned map from your ground control points: least-squares affine transform, residuals and RMSE, world file, corner coordinates and a GeoTIFF (deflate) with the transform and EPSG code embedded. Least-squares affine fit x = a0 + a1·col + a2·row, y = b0 + b1·col + b2·row to at least 3 control points (pixel corner convention; x = lon, y = lat for geographic EPSG).

POST
https://bild.halowerk.com/v1/map-georeference
Price
$0.015
per call in USDC
Uptime
96.3%
last 30 days
Response time
125 ms
165 ms slowest 5%
Last check
Passed
8 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://bild.halowerk.com/v1/map-georeference

Each call costs $0.015 in USDC on Base, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://bild.halowerk.com/v1/map-georeference
content-type: application/json

{
  "control_points": [
    {
      "px": 8,
      "py": 8,
      "x": 500000,
      "y": 5600400
    },
    {
      "px": 56,
      "py": 8,
      "x": 500480,
      "y": 5600400
    },
    {
      "px": 8,
      "py": 40,
      "x": 500000,
      "y": 5600080
    }
  ],
  "epsg": 25832,
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="
}

Parameters

ParameterTypeRequiredDescription
control_pointsarray of objectYes
epsgintegerYes One of: 2056, 3857, 4258, 4326, 25832, 25833, 27700, 31467, 31468, 32632, 32633.
image_base64stringNo
image_urlstring (uri)No
max_sideintegerNo Default: 1600.
outputstringNo One of: geotiff, worldfile_only. Default: "geotiff".

Example response

The provider's example. We can't check it without paying.

Example response, 88 lines
{
  "limitations": [
    "An affine transform cannot remove map projection differences or paper distortion over large areas; check the residuals.",
    "Control point coordinates must be in the chosen EPSG system; the service does not transform between systems.",
    "Pixel coordinates use the corner convention: the centre of the top-left pixel is (0.5, 0.5).",
    "Supported EPSG codes: 4326 WGS 84 and 4258 ETRS89 (lon/lat), 3857 Web Mercator, 25832/25833 ETRS89 UTM, 32632/32633 WGS 84 UTM, 31467/31468 DHDN Gauss-Krüger, 2056 Swiss LV95, 27700 British National Grid."
  ],
  "result": {
    "corners": {
      "bottom_left": {
        "x": 499920,
        "y": 5600000
      },
      "bottom_right": {
        "x": 500560,
        "y": 5600000
      },
      "top_left": {
        "x": 499920,
        "y": 5600480
      },
      "top_right": {
        "x": 500560,
        "y": 5600480
      }
    },
    "crs_type": "projected",
    "epsg": 25832,
    "geotiff": {
      "base64": "SUkqAAgAAAANAAABBAABAAAAQAAAAAEBBAABAAAAMAAAAAIBAwADAAAAqgAAAAMBAwABAAAACAAAAAYBAwABAAAAAgAAABEBBAABAAAAGAEAABUBAwABAAAAAwAAABYBBAABAAAAVQEAABcBBAABAAAAdAAAABwBAwABAAAAAQAAAA6DDAADAAAAsAAAAIKEDAAGAAAAyAAAAK+HAwAQAAAA+AAAAAAAAAAIAAgACAABAAAAAAAkQAAAAAAAACRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQIMeQQAAAAA4XVVBAAAAAAAAAAABAAEAAAADAAAEAAABAAEAAQQAAAEAAQAADAAAAQDoZHic7dihEcAgEEXBJqkIlUawVEAhqSGKEiLiAgZFbrIzT/HNilP06+xDR2lHaeP7rlY9/Pz829l/8D/Tq5RrynU6bWnVE8gf/X74+fn5+fn5+fn5+fn5+fk/Ej8/Pz8//3SK+38e3R/9fvj5+fl3+W/z2wBS",
      "bytes": 396,
      "compression": "deflate",
      "height": 48,
      "tags": [
        "ModelPixelScale",
        "ModelTiepoint",
        "GeoKeyDirectory"
      ],
      "width": 64
    },
    "image": {
      "height": 48,
      "width": 64
    },
    "max_residual": 0,
    "pixel_size": {
      "x": 10,
      "y": 10
    },
    "residuals": [
      {
        "distance": 0,
        "dx": 0,
        "dy": 0,
        "px": 8,
        "py": 8
      },
      {
        "distance": 0,
        "dx": 0,
        "dy": 0,
        "px": 56,
        "py": 8
      },
      {
        "distance": 0,
        "dx": 0,
        "dy": 0,
        "px": 8,
        "py": 40
      }
    ],
    "rmse": 0,
    "rotation_deg": 0,
    "transform": {
      "a0": 499920,
      "a1": 10,
      "a2": 0,
      "b0": 5600480,
      "b1": 0,
      "b2": -10,
      "formula": "x = a0 + a1·col + a2·row; y = b0 + b1·col + b2·row (original pixels, corner convention)"
    },
    "world_file": "10\n0\n0\n-10\n499925\n5600475\n"
  },
  "service": "map-georeference",
  "status": "success"
}

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.015.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://bild.halowerk.com/v1/map-georeference' \
  -H 'content-type: application/json' \
  --data-raw '{"control_points":[{"px":8,"py":8,"x":500000,"y":5600400},{"px":56,"py":8,"x":500480,"y":5600400},{"px":8,"py":40,"x":500000,"y":5600080}],"epsg":25832,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://bild.halowerk.com/v1/map-georeference' \
  -H 'content-type: application/json' \
  --data-raw '{"control_points":[{"px":8,"py":8,"x":500000,"y":5600400},{"px":56,"py":8,"x":500480,"y":5600400},{"px":8,"py":40,"x":500000,"y":5600080}],"epsg":25832,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.015 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.015" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.015 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fbild.halowerk.com%2Fv1%2Fmap-georeference&method=POST
const res = await pay("https://bild.halowerk.com/v1/map-georeference", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "control_points": [
      {
        "px": 8,
        "py": 8,
        "x": 500000,
        "y": 5600400
      },
      {
        "px": 56,
        "py": 8,
        "x": 500480,
        "y": 5600400
      },
      {
        "px": 8,
        "py": 40,
        "x": 500000,
        "y": 5600080
      }
    ],
    "epsg": 25832,
    "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.015 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.015"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://bild.halowerk.com/v1/map-georeference",
        json={
            "control_points": [
                {
                    "px": 8,
                    "py": 8,
                    "x": 500000,
                    "y": 5600400,
                },
                {
                    "px": 56,
                    "py": 8,
                    "x": 500480,
                    "y": 5600400,
                },
                {
                    "px": 8,
                    "py": 40,
                    "x": 500000,
                    "y": 5600080,
                },
            ],
            "epsg": 25832,
            "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII=",
        },
    )
    print(res.status_code, res.text)

Security scan

No findings

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

Recent checks

WhenResultHTTPTimePrice
8 h agoPassed402154 ms$0.015
2 days agoTimed out---
4 days agoPassed402125 ms$0.015
4 days agoPassed402125 ms$0.015
4 days agoPassed402164 ms$0.015
Show 10 older checks
5 days agoPassed402119 ms$0.015
5 days agoPassed402132 ms$0.015
6 days agoPassed402126 ms$0.015
6 days agoPassed402160 ms$0.015
6 days agoPassed402113 ms$0.015
7 days agoPassed402131 ms$0.015
7 days agoPassed402152 ms$0.015
7 days agoPassed40245 ms$0.015
7 days agoPassed402120 ms$0.015
8 days agoPassed402298 ms$0.015