Query traccar database from external website

xynergy 9 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 Tananaev 9 years ago

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

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

xynergy 9 years ago

Thanks Anton for the quick response!

Lucas Bastos 7 years ago

Hi Anton,

Is there any specific reason not to query database directly?

Thanks.

Anton Tananaev 7 years ago

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