Getting the device status attribute through a devices position data

Nelio Lucas6 years ago

Hi Anton,

I'd like to know whether its possible to get a device's gps status ("No gps" or "ON") from the attributes in the position model.

What im trying to achieve at this moment is to get a devices positions on a map (with markers) using the route api reference. however i would like to have a table with list of all positions next to the map (similar to traccar - web) but i'd like to be able to show the GPS device's status.

I require this because sometimes the device returns inaccurate data and having the GPS device status would allow me to see what points on the map are credible and what points arent (given the devices position and timestamp as well).

Im currently using a device (Coban 303f) that uses the gps103 protocol.

I'd very much appreciate your assistance.

Anton Tananaev6 years ago

You are looking for "valid" column.

Nelio Lucas6 years ago

Perfect! thanks so much!

Nelio Lucas6 years ago

May i just ask though, how is the valid column calculated?

Anton Tananaev6 years ago

The flag comes directly from GPS module and reported by device. It's not calculated on the server side, if that's what you are asking.

Nelio Lucas6 years ago

yes it is, thank you again