when did u change the format of the message to JSON??!!

raful abdul6 days ago

we have a server that parse messages according to url params. but now with new version our customer reports it doesn't work!!

we found out that messages are with json !!

but it is not appear in the documentation page in the site.

please explain what is happening here?

how can we get a version with POST and url params?

Anton Tananaev6 days ago

It was changed starting from version 9.0.0. See other threads.

panhard6 days ago

Converting a php file from HTTP GET to POST JSON, about 3 lines. It's not complicated. I think this json format is better.

Antony6 days ago

I agree posting a json is better and straightforward. Fixing the backend logic takes about 3 to 5 minutes maximum.

Julius Nhodo4 days ago

Anyone with the payload structure for appsettings/json?
I have the below in C# but not working:

public class GpsLocationRequest
{
    [JsonPropertyName("id")]
    public string Id { get; set; }

    [JsonPropertyName("lat")]
    public string Lat { get; set; }

    [JsonPropertyName("lon")]
    public string Lon { get; set; }

    [JsonPropertyName("batt")]
    public string Batt { get; set; }

    [JsonPropertyName("altitude")]
    public string Altitude { get; set; }

    [JsonPropertyName("speed")]
    public string Speed { get; set; }

    [JsonPropertyName("bearing")]
    public string Bearing { get; set; }

    [JsonPropertyName("timestamp")]
    public long Timestamp { get; set; }
}

May someone point me to the documentation that specifies this?

Anton Tananaev4 days ago

The documentation is here:

https://www.traccar.org/osmand/