# Converting longitude/latitude to world coordinates

**URL:** <https://community.cesium.com/t/converting-longitude-latitude-to-world-coordinates/37120>\
**Category:** Cesium for Unity\
**Created:** [December 5, 2024, 7:25pm UTC](https://community.cesium.com/t/converting-longitude-latitude-to-world-coordinates/37120 "2024-12-05T19:25:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![janine](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/janine/32/5135_2.png) [@janine](https://community.cesium.com/u/janine)\
**Post date:** [December 9, 2024, 4:19pm UTC](https://community.cesium.com/t/converting-longitude-latitude-to-world-coordinates/37120/2 "2024-12-09T16:19:13Z")

</div>

Hi @saleh01, welcome to the community!

First, I recommend attaching a **CesiumGlobeAnchor** component to each sphere. The component will keep track of the globe-relative position of the object (in long / lat coordinates), and it automatically updates the Unity position to keep track of this. You can learn more about **Cesium Globe Anchor** by following [this tutorial](https://www.cesium.com/learn/unity/unity-placing-objects/)!

However, if you would prefer to place the objects manually, then you can check out the following functions. First, you’ll have to call `CesiumWgs84Ellipsoid.LongitudeLatitudeHeightToEarthCenteredEarthFixed` to convert to ECEF coordinates.

> <https://github.com/CesiumGS/cesium-unity/blob/6a86882e8a14432b02a5738c2d68b8427db7d6f7/Runtime/CesiumWgs84Ellipsoid.cs#L54-L62>

Then, given those ECEF coordinates, you’ll want to call `TransformEarthCenteredEarthFixedPositionToUnity` on the **CesiumGeoreference**.

> <https://github.com/CesiumGS/cesium-unity/blob/6a86882e8a14432b02a5738c2d68b8427db7d6f7/Runtime/CesiumGeoreference.cs#L581-L594>

I hope that helps! Let us know if you have any follow-up questions. 😄

---

_[View the full topic](https://community.cesium.com/t/converting-longitude-latitude-to-world-coordinates/37120)._
