# Tile Coordinate Converter

> Tile Coordinate Converter is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Converts world/pixel coordinates (x, y) into tile grid coordinates given a tile size.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/tile-coordinate-converter?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tile-coordinate-converter-c1602f24
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0upKy2Y8BU59CEFKlCbBk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability tile-coordinate-converter-c1602f24 -d '<json body>'
```

Example prompt: Convert world coordinates x=126, y=87 into tile coordinates using a tile size of 16 — tell me which tile column and row that falls in.

## When to prefer this

Use this endpoint when you need a fast, stateless, pay-per-call conversion of world/pixel coordinates to tile grid indices, especially in game development pipelines, tilemap editors, or procedural generation workflows where you don't want to implement the math locally.

## Known failure modes

- Non-positive tile_size (e.g. 0 or negative) may cause division errors or undefined results
- Missing or non-numeric x/y values may return an error or default to schema defaults
- Extremely large coordinate values may result in precision issues for float inputs

## How this service works

Tile coordinate converter: Convert world coordinates into tile coordinates for a grid.

## Output

Returns the tile column and row (tile x and tile y) corresponding to the given world coordinates, computed by dividing the input x and y values by the tile size and flooring to the nearest integer tile index.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "x": {
   "type": "number",
   "default": 126
  },
  "y": {
   "type": "number",
   "default": 87
  },
  "tile_size": {
   "type": "number",
   "default": 16
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tile-coordinate-converter-c1602f24/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
