Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import XML/JSON into database #69

Open
misisnik opened this issue Apr 20, 2018 · 2 comments
Open

Import XML/JSON into database #69

misisnik opened this issue Apr 20, 2018 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed

Comments

@misisnik
Copy link

misisnik commented Apr 20, 2018

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
Copy link
Owner

schollz commented Apr 20, 2018

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!

@schollz schollz added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 20, 2018
@schollz schollz changed the title [Question] Import to Find database Import XML/JSON into database Apr 20, 2018
@misisnik
Copy link
Author

misisnik commented Apr 25, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants