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

> 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.

# mercatorXToLongitude

fun [mercatorXToLongitude](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.helpers/-m-t-math/mercator-x-to-longitude/)(x: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)): [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)

Converts a Web Mercator X coordinate in meters to longitude.
