Is your device outside for at least 10 minutes and then you request the position?
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.
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:
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?
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.
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.
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!
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.
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.
I've heard this exact story many times. That's a device issue.
Ok, thanks
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:
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!