GoCorona-org / Backend

GNU General Public License v3.0
0 stars 2 forks source link

Migrate location data from filesystem to GIS database #10

Open codeJRV opened 4 years ago

codeJRV commented 4 years ago

Questions:

Do we need this? What advantages does it offer over our json file system based intersection calculator?

wadkar commented 4 years ago

Doing it on file based code is reinventing the database wheel. Databases are what you get when you fix concurrency bugs, do performance optimization, and hope to scale it beyond handful of users.

wadkar commented 4 years ago

We need testdata from android app; are there any sample HTTP POST Requests available with location data? @saikrishh ??

codeJRV commented 4 years ago

The format is mentioned here :

https://github.com/GoCorona-org/Backend/blob/master/docs/location_history.md

@saikrishh to confirm

 POST api.gocorona.org/report -

{  id : "p1",

   location_history : [ 

       { timeslot: "00.00.01.15.2020", lat : "123456",long : "123456", status : "unknown"},

       { timeslot: "00.10.01.15.2020", lat : "123456",long : "123456", status : "unknown"},

       ...

       ]

}