OsmAnd Protocol

Marco2 years ago

Hi all,
this is the osmand format

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}×tamp={2}&hdop={3}&altitude={4}&speed={5}

But I don't understand if there is the possibility to add fields to the http string, such as Input1, Input2, Hour, Alarm...and so on.

Thanks in advance.
Marco

Anton Tananaev2 years ago

There is. You can add any additional query parameters.

Marco2 years ago

Oh, thanks! But I can't find documentation or example about these.

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}&tamp={2}&hdop={3}&altitude={4}&speed={5}&input1={6}....

and so on? Correct?

How is the format in the bracket {}? A string, int, double? Are there examples about this?

Anton Tananaev2 years ago

Obviously you have to replace brackets with real data, but otherwise looks good.

Marco2 years ago

Hi Anton,

http://demo.traccar.org:5055/?id=172501514&lat=45.4763175&lon=10.7921573&speed=0.0&altitude=0&FirmwareVersion=4.15

this seems not run, I don't see FirmwareVersion updated field into Report.

What's wrong?
Thanks.

Anton Tananaev2 years ago

Have you checked position details screen?

Marco2 years ago

I don't know if Field's name FirmwareVersion is ok or not

....&FirmwareVersion=4.15
Anton Tananaev2 years ago

Should be fine.

Marco2 years ago

I have problems with fields name in http string. Your example :

http://demo.traccar.org:5055/?id=123456&lat={0}&lon={1}&tamp={2}&hdop={3}&altitude={4}&speed={5}&input1={6}....

longitude is lon, latitude is lat, and others fields? address is address? Firmware Version is firmwareversion? and so on...

Is possible to have a list with all the exact fields names?

Thanks

Anton Tananaev2 years ago

You can include any arbitrary fields.

Marco2 years ago

Ok, thanks Anton!