Querying the H2 database

WhitbyRog8 years ago

Hi All

Really new at this so any help would be greatly received.

If I wanted to Query the database about the total mileage for one device how would I do that?

I can get on to the console if that helps but anyway would be good.

Thanks in advance Roger

Anton Tananaev8 years ago

If you want to query any data from Traccar system, I would recommend using official API instead of querying data directly:

https://www.traccar.org/traccar-api/

WhitbyRog8 years ago

Hi Antoon

So if I wanted to get the base json data the url would be something like;
http://www.myTraccar.com/api/json?

If you could correct this it would be good

Regards Roger

Anton Tananaev8 years ago

Please read the documentation. The URL that you provided is completely incorrect.