How does the client app updates the device location

Bruce Yg.21 days ago

I'm intending to make myself a tracker. Currently using the client app to familiarise myself with the basics. I'd like to have a few of my doubts cleared.

  1. How does the client app updates location data? Is it a http post or put? I'd assume the parameters are included. AFAIK, the server URL does not need any port?
  2. And the http rest methods are for managing server side stuff only, right?
Anton Tananaev20 days ago
Bruce Yg.20 days ago

Yes, I have read up on the osmand documentation provided. But what confused me is that the traccar client is able to braodcast the coordinates data to server, with the following url structure(for context I'm hosting the server on a a cloud instance)

http://ip-address

However, when I tried to make the the http request (tried post, put and get) with the url structure as stated in the docs, it didn't work

http://ip-address:5055/?id=12345&lat=48.8566&lon=2.3522×tamp=160945920
0000

Changing the port number didnt quite help either. Would like to know what's different between the two scenarios.

Anton Tananaev20 days ago

What do you see I'm the logs?

Also what are those zeroes?

Bruce Yg.20 days ago

There are nothing in the logs.
Apologies. The zeroes are unintended. I used the Unix timestamp.

Anton Tananaev20 days ago

If there's nothing in the logs, it means that the server is not receiving any requests.

Bruce Yg.20 days ago

I see. But so is the case when using the traccar client. There's nothing in the logs either but the coordinates are shown in the reports.

Anton Tananaev20 days ago

That's not possible.

Bruce Yg.20 days ago

Alright thanks anyhow.