---
title: "wgs84ToUnit | Weather SDK | JavaScript maps SDK"
description: "Documentation for Weather JS"
---

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

# Function wgs84ToUnit

-   wgs84ToUnit(lng: number, lat: number): readonly \[number, number\][](#wgs84tounit)
    
    Converts WGS84 coordinates to \[-0.5, 0.5\] range.
    
    #### Parameters
    
    -   lng: number
    -   lat: number
    
    #### Returns readonly \[number, number\]
    
    #### Internal[](#internal)
