---
title: "longitudeToTileX | Mobile sdk | Mobile sdk android | Android"
description: "longitudeToTileX"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# longitudeToTileX

fun [longitudeToTileX](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.helpers/-m-t-math/longitude-to-tile-x/)(longitude: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), zoom: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), round: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = true): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)

Calculates the Web Mercator tile X coordinate for a given longitude and zoom level.
