# Incorrect coordinates from tracker

**URL:** <https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284>\
**Category:** General\
**Created:** [27 May 2024 07:46 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284 "2024-05-27T07:46:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [27 May 2024 07:46 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284/1 "2024-05-27T07:46:06Z")

</div>

Hello, I have a problem with the trackers that I can't explain. Here it is the tracker gps001. As soon as the vehicle is stationary it sends -1 for the longitude and latitude.Then of course the marker on the map is gone. Why is that?  
 ![Screenshot 2024-05-27 094220](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b609a4824c1e7365cb973b6ada3a5dbbc7d19111.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [27 May 2024 10:20 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284/2 "2024-05-27T10:20:35Z")

</div>

no - idea - what is the GPS / thing that is sending them ? - can you not check some other parameter and filter out anything that sends -1,-1 (unless you are really at sea near those co-ordinates... 🙂 )

---

<div class="post-metadata">

**Author:** ![Kralle](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kralle](https://discourse.nodered.org/u/Kralle)\
**Post date:** [27 May 2024 12:35 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284/3 "2024-05-27T12:35:37Z")

</div>

It is a ITalks MCS1608 V2 Tracer.  
As you can see in the picture... at 9.31 arrival the coordinates are ok. The vehicle is in the parking lotis at 09.32 and the debug outputs lat: -1 and lng: -1. We continue our journey at 9.38 and the coordinates are ok again. At -1 the marker also disappears from the card

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 May 2024 12:48 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284/4 "2024-05-27T12:48:36Z")

</div>

without hunting down the manual, it is possible `-1, -1` could simply mean "unchanged" or perhaps something else.(RTM)

You could use that to your advantage (i.e. change icon to indicate vehicle is static)

Alternatively, just discard any values where lat/lon are both -1 - you can achieve that with a switch node or function node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 August 2024 12:48 UTC](https://discourse.nodered.org/t/incorrect-coordinates-from-tracker/88284/5 "2024-08-25T12:48:48Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
