I need help Locus Live Tracking questions

wuahi105 shared this question 21 days ago
Answered

I am developing a real-time location tracking website that works with Locus Map. The current workflow is as follows: the Locus Map app periodically sends user location data (including longitude, latitude, altitude, nickname, etc.) to my server, and the server is required to return a response upon receiving this data.

I have tested responses in both KML and GPX formats, and Locus Map can parse and display them on the map without any issues. However, I now wish to use JSON format for the server's response, and I am unsure whether Locus Map supports directly parsing JSON-formatted response data.

If it is supported, what specific fields are required in the JSON response? Is there any official documentation or example available for reference?

Replies (2)

photo
1

Hi Wuahi,

thank you for your message. For now, only KML and GPX formats are supported. If you are talking about parameters in a JSON file, this is exactly what the GeoJSON file type specifies. I will add GeoJSON support in the next release version and you will be able to play with it afterwards. Make sure your server returns “application/geo+json” as the content type so we know which file type to handle.

Marek, Locus team

This comment is in trash! Restore
photo
1

Does the new version 4.32.0 custom tracking feature support GeoJSON or WebSocket?

This comment is in trash! Restore
photo
photo
1

Hi Marek Scholtz

Okay, thank you. Looking forward to the new version.

This comment is in trash! Restore
Leave a Comment
 
Attach a file
You can't vote. Please authorize!