# Lat and Long from Cartesian3?

**URL:** <https://community.cesium.com/t/lat-and-long-from-cartesian3/1339>\
**Category:** CesiumJS\
**Created:** [July 9, 2014, 6:50pm UTC](https://community.cesium.com/t/lat-and-long-from-cartesian3/1339 "2014-07-09T18:50:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xneo27](https://avatars.discourse-cdn.com/v4/letter/x/43a26b/32.png) [@xneo27](https://community.cesium.com/u/xneo27)\
**Post date:** [July 9, 2014, 6:50pm UTC](https://community.cesium.com/t/lat-and-long-from-cartesian3/1339/1 "2014-07-09T18:50:44Z")

</div>

Is there a built in method for converting from x y z to Lat and Long?

---

<div class="post-metadata">

**Author:** ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://community.cesium.com/u/Ryan)\
**Post date:** [July 9, 2014, 11:17pm UTC](https://community.cesium.com/t/lat-and-long-from-cartesian3/1339/2 "2014-07-09T23:17:39Z")

</div>

I’m new and am having issues with the same thing. I’ve tried using Cesium.Ellipsoid.WGS84.cartesianToCartographic, but it produces a range that I think may be incorrect (-2,2). I may also just be using it wrong, because I can call Cesium.Ellipsoid.WGS84.cartographicToCartesian to get back the same results even though the lat,lon from cartesianToCartographic all seem to hover over the same place.

---

<div class="post-metadata">

**Author:** ![Ryan](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@Ryan](https://community.cesium.com/u/Ryan)\
**Post date:** [July 9, 2014, 11:31pm UTC](https://community.cesium.com/t/lat-and-long-from-cartesian3/1339/3 "2014-07-09T23:31:18Z")

</div>

> I’m new and am having issues with the same thing. I’ve tried using Cesium.Ellipsoid.WGS84.cartesianToCartographic, but it produces a range that I think may be incorrect (-2,2). I may also just be using it wrong, because I can call Cesium.Ellipsoid.WGS84.cartographicToCartesian to get back the same results even though the lat,lon from cartesianToCartographic all seem to hover over the same place.
> 
> > Is there a built in method for converting from x y z to Lat and Long?

Alexander Wood just responded to my question. Cesium.Ellipsoid.WGS84.cartesianToCartographic will work just fine, and you will get your lat/lon in radians.

---

<div class="post-metadata">

**Author:** ![xneo27](https://avatars.discourse-cdn.com/v4/letter/x/43a26b/32.png) [@xneo27](https://community.cesium.com/u/xneo27)\
**Post date:** [July 11, 2014, 5:41pm UTC](https://community.cesium.com/t/lat-and-long-from-cartesian3/1339/4 "2014-07-11T17:41:41Z")

</div>

Thanks this was exactly what I needed.
