{"uid":"cap_CTODezM_Es9bS-dvOM4QV","slug":"map-tile-maths-coordinate-to-tile-tile-from-coord-c1a1f062","name":"Map Tile Maths: Coordinate to Tile (tile-from-coord)","description":"Slippy-map tile x/y/z containing a latitude and longitude, plus the pixel position inside the 256 px tile.","url":"https://map-tiles.x402tookit.com/tile-from-coord?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":{"type":["null","number"]},"fractionalY":{"type":["null","number"]},"tilesPerSide":{"type":["null","number"]}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uKwc-5thIq7ez6rxLdWng","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pinpointing a landmark on a map tile","prompt":"I need the slippy-map tile x, y, and z that covers the Eiffel Tower at latitude 48.8584, longitude 2.2945, zoom level 16 — and tell me the pixel position within that tile."},{"title":"Tile fetching for a custom map renderer","prompt":"For my map renderer, which tile covers the center of Times Square at latitude 40.758, longitude -73.9855 at zoom 12? I also need the pixel coordinates of that point inside the tile."},{"title":"Debugging a map marker placement","prompt":"My map marker at lat 35.6895, lon 139.6917 looks offset — can you tell me which tile x/y/z it should be in at zoom 15 and what its exact pixel x and y position is within that 256-pixel tile?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T13:14:27.282Z","isFirstParty":false,"canonicalSlug":"map-tile-maths-coordinate-to-tile-tile-from-coord-c1a1f062"}