# GPS in cesium and GPS in reality are not coincident

**URL:** <https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429>\
**Category:** CesiumJS\
**Created:** [February 23, 2021, 10:08am UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429 "2021-02-23T10:08:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![osbornyb](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/osbornyb/32/3458_2.png) [@osbornyb](https://community.cesium.com/u/osbornyb)\
**Post date:** [February 23, 2021, 10:08am UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429/1 "2021-02-23T10:08:35Z")

</div>

I obtained the information of longitude, latitude and altitude from a GPS module, and then plotted these values as points in Cesium, but found that the position displayed in Cesium was not consistent with that in reality, and there would be some deviation.  
We tried the map service using WGS-84 coordinate system of Google and ArcGIS, both of which have offset.  
However, when the API of AMap is used to draw points of the same longitude, latitude and height on AMap, the points displayed on the map are almost the same as the positions in reality. The detailed contents are in the attachment.[problem.zip](https://community.cesium.com/uploads/short-url/xNvvVciqWAb0loEsx3F96caDj3o.zip) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [February 23, 2021, 5:54pm UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429/2 "2021-02-23T17:54:48Z")

</div>

I think the point as displayed in CesiumJS is correct. If you take that same lon/lat (121.6035506, 31.2063375) and plot them in Google Earth you’ll see the point matches:

### In Google Earth

 ![googleearth_zZaBoegDS1](https://global.discourse-cdn.com/cesium/original/2X/4/4fb33d2bb56184a60ea3e08f9a54d0b83f8e3945.png)

### In CesiumJS

 ![firefox_9NY0WM7f8Q](https://global.discourse-cdn.com/cesium/original/2X/9/9d029b36dc44488915ff59e97152c884b595fb23.jpeg)

When you say it’s different in the other map services, are you saying you’re using those map tiles as a base layer in CesiumJS? Or are you entering that specific longitude/latitude point in other engines?

---

<div class="post-metadata">

**Author:** ![Scott\_Reynolds](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/scott_reynolds/32/2014_2.png) [@Scott\_Reynolds](https://community.cesium.com/u/Scott_Reynolds)\
**Post date:** [February 25, 2021, 10:03pm UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429/3 "2021-02-25T22:03:45Z")

</div>

Is “The point in reality” where the GPS device was located when you captured the position? Does “The point in Cesium” use those coordinates? I was unable to get AMap examples to zoom in far enough to see marker’s exact placement, but it looks very close to the same location as Cesium.  
 ![image](https://global.discourse-cdn.com/cesium/original/3X/b/3/b3c6aa18865b249d87c26f6740bbe90fe8bda00a.jpeg)

---

<div class="post-metadata">

**Author:** ![osbornyb](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/osbornyb/32/3458_2.png) [@osbornyb](https://community.cesium.com/u/osbornyb)\
**Post date:** [February 26, 2021, 3:58am UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429/5 "2021-02-26T03:58:24Z")

</div>

Thank you!  
I’m confused that why the GPS device’s location and those coordinates are not in the same position on the map in Cesium.

---

<div class="post-metadata">

**Author:** ![osbornyb](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/osbornyb/32/3458_2.png) [@osbornyb](https://community.cesium.com/u/osbornyb)\
**Post date:** [February 26, 2021, 3:58am UTC](https://community.cesium.com/t/gps-in-cesium-and-gps-in-reality-are-not-coincident/12429/6 "2021-02-26T03:58:54Z")

</div>

Thank you! “The point in reality” was where the GPS device was located when i captured the position, and use those coordinates in cesium. Then i tried again with AMap APIs, just like what you said, it looks very close to the same location as Cesium.  
I’m confused that why the GPS device’s location and those coordinates are not in the same position on the map. I once suspected the GPS module’s low precision, but i have tried again by RTK module, and the same result.
