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

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

# mercatorToWgs84

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

Converts a Web Mercator (X, Y) in meters to WGS84 coordinate.
