Why is my GPS Providing 0, 0 lattitude and longtitude, even though through SMS test, it shows the actual lattitude and longtitude?

sunnycoder2 days ago

The GPS is online and connected, and when I do a local check on my phone by sending a command to the GPS, it actually gives me the right location.

However when I'm on Traccar it displays 0,0. and the log repeats this:

67671200340010680f510b0201f9000120c9080e650c00046e1159165900000082c311ffff0099000000000000000000000000000000000000
2025-04-28 19:57:33  INFO: [T3601696d] id: 864292043401429, time: 1980-01-06 11:00:19, lat: 0.00000, lon: 0.00000, course: 0.0
2025-04-28 19:57:33  INFO: [T3601696d: eelink > 1.129.108.233] 67671200020010
2025-04-28 19:58:03  INFO: [T3601696d: eelink < 1.129.108.233] 67671200340011680f51290201f9000120c9080e650c00046e115c165900000082c311ffff009a000000000000000000000000000000000000
2025-04-28 19:58:03  INFO: [T3601696d] id: 864292043401429, time: 1980-01-06 11:00:19, lat: 0.00000, lon: 0.00000, course: 0.0
2025-04-28 19:58:03  INFO: [T3601696d: eelink > 1.129.108.233] 67671200020011

Do I have to change something in my XML? I'm not really sure whats going on.

This is my XML, and my model is the 4G TK419.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>

    <!-- Documentation: https://www.traccar.org/configuration-file/ -->

    <entry key='database.driver'>org.h2.Driver</entry>
    <entry key='database.url'>jdbc:h2:./data/database</entry>
    <entry key='database.user'>sa</entry>
    <entry key='database.password'></entry>
    <entry key="web.port">8082</entry>
    <entry key='devices.gps.port'>5064</entry>
    <entry key='filter.invalid'>false</entry>
    <entry key='filter.zero'>false</entry>
    <entry key='filter.past'>0</entry>
</properties>

Any help would be greatly appreciated thanks!

Track-trace2 days ago

Is your device outside for at least 10 minutes and then you request the position?

sunnycoder2 days ago

Yea, I requested position on phone, and it gave the actual latitude and longtitude of the device, but traccar doesn't.

How do I request position on traccar?

Thanks.

Anton Tananaev2 days ago

My guess is that your device is sending cell/wifi info and not a GPS location. If you want to convert that into location, you have to enable geolocation:

https://www.traccar.org/lbs-geolocation/

sunnycodera day ago

Thanks so much Anton, after what you said it works!

I just have one more question. Google Consoles and their geolocation API is quite expensive, but its the most accurate out of everything else. Right now I'm using OpenCellID. Is there any better option I could take? 20 GPS units are currently being used, so I want an API that's free and really accurate. Do you have any other services than google, mozilla or opencellID?

Thanks.

Anything is better than OpenCellID. Have you tried LocationIQ?

sunnycodera day ago

Hi Anton, I tried using LocationIQ for geolocation in Traccar, but it doesn't seem to be any more accurate than OpenCellID for my setup, as it has given the same latitude and longitude as before. May I ask, which geolocation provider or API does Traccar currently use by default for its own hosted servers? I want to understand which service would give the best accuracy.

We don't provide cell/wifi geolocation by default. We used to use Mozilla service, but they discontinued it.

sunnycodera day ago

Ah ok, so if you had to provide cell/wifi geolocation, which geolocation provider would you recommend? Thanks.

Google is the best. Unwired is probably somewhere in the middle. And OpenCellID is the worst option, mostly because it only returns one cell location.

sunnycoder20 hours ago

Thanks. Anton do you know why the GPS unit is not sending GPS but instead the cellular/wifi geolocation data? It doesn't make sense for me.....

I'm using an eelink TK419 4G for my prototype platforms. It sends GPS accurately when I send it an SMS to check its GPS status. However when I run Traccar, it fails to send the GPS coordinates to it.

Currently with the free geolocation API its throwing me completely off, about 200m from the actual location, so any advice would be greatly appreciated.

Thanks!

Track-trace18 hours ago

It has nothing to do with traccar server. If your device is outside it should report the gps coordinates. If it doesnt you should check the device.

sunnycoder9 hours ago

Yep I understand. However for some reason, i don't know why it doesn't report GPS coordinates to the traccar server, even though it knows where it is..... I use an SMS function to check its parameters and where it is, and it actually gives me the actual GPS coordinates of the place. I'm not sure why it doesn't report it to the traccar server.

Thanks.

Anton Tananaev9 hours ago

I've heard this exact story many times. That's a device issue.

sunnycoder9 hours ago

Ok, thanks