# Map Tile Maths: Coordinate to Tile (tile-from-coord)

> Map Tile Maths: Coordinate to Tile (tile-from-coord) is a paid API for AI agents from map-tiles.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns the slippy-map tile x/y/z that contains a given latitude/longitude at a specified zoom level, plus the pixel position within the 256 px tile.

## Facts

- Endpoint: GET https://map-tiles.x402tookit.com/tile-from-coord?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/map-tile-maths-coordinate-to-tile-tile-from-coord-c1a1f062
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CTODezM_Es9bS-dvOM4QV

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 map-tile-maths-coordinate-to-tile-tile-from-coord-c1a1f062
```

Example prompt: What slippy-map tile contains latitude 51.5074, longitude -0.1278 at zoom level 14, and where exactly inside the tile does that point fall in pixels?

## When to prefer this

Choose this endpoint when you need to determine which slippy-map tile (OSM/XYZ scheme) covers a specific geographic coordinate at a known zoom level, or when you need the sub-tile pixel position of a point for rendering or overlay purposes. It is the authoritative single-call solution for coordinate-to-tile conversion, eliminating manual Mercator projection math.

## Known failure modes

- Latitude out of range (beyond ±85.0511) returns an error or null values
- Zoom level outside 0–24 is rejected
- Missing required query parameters (latitude, longitude, zoom) causes a 400-style error
- Non-numeric coordinate values produce a validation error
- Payment failure (x402) prevents the call from completing

## How this service works

Slippy-map tile x/y/z containing a latitude and longitude, plus the pixel position inside the 256 px tile.

## Output

Returns the tile column (x), tile row (y), TMS-convention y (tmsY), zoom level, fractional tile position, pixel x and y within the 256 px tile, tiles per side at that zoom, the tile path string, a summary, and optional degraded/disclaimer flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "latitude",
      "longitude",
      "zoom"
     ],
     "properties": {
      "zoom": {
       "type": "integer",
       "description": "Zoom level 0 to 24"
      },
      "latitude": {
       "type": "number",
       "description": "Latitude in degrees, within +/-85.0511"
      },
      "longitude": {
       "type": "number",
       "description": "Longitude in degrees, -180 to 180"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "x": {
       "type": [
        "null",
        "number"
       ]
      },
      "y": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "path": {
       "type": [
        "null",
        "string"
       ]
      },
      "tmsY": {
       "type": [
        "null",
        "number"
       ]
      },
      "zoom": {
       "type": [
        "null",
        "number"
       ]
      },
      "pixelX": {
       "type": [
        "null",
        "number"
       ]
      },
      "pixelY": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "fractionalX": {

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/map-tile-maths-coordinate-to-tile-tile-from-coord-c1a1f062/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from map-tiles.x402tookit.com](https://www.zero.xyz/host/map-tiles.x402tookit.com/llms.txt)
