Query traccar database from external website

xynergy8 years ago

Hello Traccar community,

I am curious if this is possible, I would like to build a mobile friendly webpage that will query the traccar database to provide the user the estimated time of arrival. The tracker would be located on our University shuttle and I would like to provide students with the estimated time arrival.

I am new to web development and would like to know what tools I should learn to be able to do something like this, if it possible.

Anton Tananaev8 years ago

Instead of querying database directly, you can use Traccar API:

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

xynergy8 years ago

Thanks Anton for the quick response!

Lucas Bastos6 years ago

Hi Anton,

Is there any specific reason not to query database directly?

Thanks.

Anton Tananaev6 years ago

Database schema can change. API is more stable and it's the right way to do it.