Custom server

Miro Janosik5 years ago

Hello
I found your program and I see that you support OSMAnd - type protocol ( https://www.traccar.org/osmand/ ) . Is it also possible to configure it in a way to send coords to URL in this format?

https://backend.freemap.sk/tracking/track/SqRInpLj/?lat=48.55&lon=19.05

I tried few ways how to configure it this way but I am getting "sending failed". I tried:

https://backend.freemap.sk/tracking/track/SqRInpLj/?lat={0}&lon={1}
https://backend.freemap.sk/tracking/track/SqRInpLj/

(but that I'd prefer the first, this way I can define which parameters to send to server as it does support only some features. This way it works with OSMAnd.)
all the best, Miro

Anton Tananaev5 years ago

Traccar Client sends POST requests with parameters in the payload.

Miro Janosik5 years ago

Hello
thank you for the answer.
What do you mean by "parameters in the payload"? - Is it that location parameters are not in URL parameters as described in https://www.traccar.org/osmand/ ?
Does it mean it is not possible to configure Traccar Client to send data in a form of https://backend.freemap.sk/tracking/track/SqRInpLj/?lat={0}&lon={1} ?
with regards, Miro

Anton Tananaev5 years ago

No, it's not possible.

Miro Janosik5 years ago

Thank you for the answer
with regards, Miro

Neftali Yagua3 years ago

Nor is it impossible, maybe you could make yourself a small http proxy that translates the POST request to the request you want.
As a suggestion you can ask for Proxy in Nginx or Apache, you can also consider Nodejs + Express and as a last resort and not recommended to use PHP.

Miro_Janosik3 years ago

That is a good idea too, a small translator service.
Though, in meantime the issue was resolved on a target server to accept POST.