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

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

# wgs84ToTileIndex

fun [wgs84ToTileIndex](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.helpers/-m-t-math/wgs84-to-tile-index/)(coordinate: [LngLat](https://docs.maptiler.com/mobile-sdk/android/api/-map-tiler-s-d-k/com.maptiler.maptilersdk.map/-lng-lat/), 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): [Pair](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-pair/index.html)<[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 WGS84 coordinate to Web Mercator tile indices.
