schollz / find3

High-precision indoor positioning framework, version 3.
https://www.internalpositioning.com/doc
MIT License
4.63k stars 364 forks source link

Import XML/JSON into database #69

Open misisnik opened 6 years ago

misisnik commented 6 years ago

Is it possible to add some .xml import of location data into the Find database.

Imagine that somebody map the place into his own database. It would contain Wi-Fi, accelerometer, magnetometer, gyro, LTE value etc.... And after the mapping it will be time to put the best combination of sampled data into the Find database to get better result (depends on data combination, for example it could be bad idea to put gyro there, but nobody know until get result from localization process :D ). It is slow to put each combination via http request especially if they are about 1000 samples.

The design of xml (or another file) should be similar as api/ Or it could be JSON - one insert per line (this could be the same as api)

Thanks for your interest and time Mike

schollz commented 6 years ago

Currently you would need write an external script for parsing your XML data and submitting the fingerprints via the API (/data).

This would be a nice addition though. I'll change this to an actionable issue, feel free to send a PR!

misisnik commented 6 years ago

So finally it works. My PR is here #74 . Sorry for my GO code structure, this is my first contact with this language :smile: