Get the Data from the Traccar server

praneeth8 years ago

I am able to track my device tk103 in the traccar server.but,i want to integrate it in our application by getting the data from the traccar server and show it in the map of our application can anyone please guide me?

Anton Tananaev8 years ago

You can modify Traccar config to write data directly into your database.

praneeth8 years ago

Where do i find the config of the traccar

Anton Tananaev8 years ago

You can find info about config here:

https://www.traccar.org/configuration-file/

praneeth8 years ago

Can i use the swagger.json file to Read and write the data into my database.

Anton Tananaev8 years ago

Swagger file is an API documentation.

praneeth8 years ago

i have built an app to show the real time location updates of an child app which actually sends the location updates to my server and my actual app while access the location of the Child app and show it in a google map .
So i have got one device tk103 and i want to show the location of the device on my app.Can you please guide me the steps to take it forward and show the location of the device on my App.

Anton Tananaev8 years ago

There are several options:

  1. You can use Traccar API
  2. You can configure HTTP forwarding to your server
  3. You can configure Traccar to write data directly into your database
praneeth8 years ago

If i configure traccar.xml can i directly write the data into my database and get the real time updates in my Application

praneeth8 years ago

IS it enough to give the ip and port number of my server in the config file of traccar to directly write into my database.

Anton Tananaev8 years ago

You can configure data forwarding. See example in the following thread:

https://github.com/tananaev/traccar/issues/1811