OsmAnd Json Post

Karl.23 days ago

Hi,

Is it possible to send extra parameters with the OsmAnd json post? I have tried adding them to the extras field but they aren't appearing. If so could you send me an example?

Thanks

Anton Tananaev23 days ago

Currently we don't support it. You could still use form data format if you want to send some extras.

Karl.23 days ago

No problem, thank you.

Do you think this will be implemented at a later date?

Anton Tananaev23 days ago

No plan yet, but if you can provide a good reason you need it, we can consider it.

Karl.23 days ago

I think flexibity is the best reason I can provide.

Also, what about a potential endpoint where it takes an array of locations instead of me having to send an individual request for each device

Anton Tananaev23 days ago

You would have to elaborate on flexibility. What are the specific use cases you're thinking about that are not possible now?

Karl.22 days ago

I have a client who uses webfleet, we continously poll their api to get the latest postions of each device. We would like to save use the osmand protocol to save all of them locations into the database at once instead of having to do multiple api calls.

The webfleet information also comes with information from the tachograph, id like to save that as attributes when doing the post request

Anton Tananaev22 days ago

You can just use the old protocol, which supports custom data.