This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
access:project_journal [2017/11/06 18:10] mjallison [Implementation thoughts] |
access:project_journal [2017/11/20 17:32] (current) mjallison [Implementation thoughts] |
||
---|---|---|---|
Line 15: | Line 15: | ||
* Mobile applications adding data directly to the journal. | * Mobile applications adding data directly to the journal. | ||
* Done when the local data store is uploaded | * Done when the local data store is uploaded | ||
+ | |||
+ | Things to note: | ||
+ | * Journal will archive and restore with the project | ||
+ | * Journal will delete when the project deletes. | ||
+ | ===== Data sources ===== | ||
+ | Journal Elements can be created and stored from the following source: | ||
+ | * Mobile applications (Android/iOS), SmartDirt, Plan, TrackManager | ||
+ | * Web application | ||
A bridge strategy will be required until mobile applications are enabled. | A bridge strategy will be required until mobile applications are enabled. | ||
* The server will extract project events from saved KMZ files generated by the mobile apps. | * The server will extract project events from saved KMZ files generated by the mobile apps. | ||
+ | |||
+ | ===== Consumers ===== | ||
+ | The journal can be consumed by: | ||
+ | * Web application (Project tab) | ||
+ | * Desktop? | ||
+ | * Mobile? | ||
+ | |||
===== Implementation thoughts ===== | ===== Implementation thoughts ===== | ||
Line 27: | Line 42: | ||
* Data element itself (JSON in DB, POJO, C++ object) | * Data element itself (JSON in DB, POJO, C++ object) | ||
- | Questions: | + | Photo |
- | * Desktop apps to participate in project journal? How? | + | { lat: <number>, |
- | * Photos and Notes make sense from a standalone data perspective, what about tracks/measures? | + | lon: <number>, |
- | * What is the implemention of the backing store | + | alt: <number>, |
- | * What other data elements are missing? | + | fileHandle: <number> |
- | * Journal will archive and restore with the project | + | } |
- | * Journal will delete when the project deletes. | + | |
- | * Does journal ever time out? Or kept as long as the project? | + | Note |
+ | { lat: <number>, | ||
+ | lon: <number>, | ||
+ | alt: <number>, | ||
+ | Text: <String> | ||
+ | } | ||
+ | |||
+ | User Track | ||
+ | { lat: <number>, | ||
+ | lon: <number>, | ||
+ | alt: <number>, | ||
+ | points: []; | ||
+ | } | ||
+ | point{ lat: <number>, /* decimal degrees (-180 .. 180] */ | ||
+ | lon: <number>, /* decimal degrees [-90 .. 90] */ | ||
+ | alt: <number>, /* meters */ | ||
+ | hdg: <number>, /* [0..360), optional may not appear */ | ||
+ | time: <number> /* msSec since Jan 1, 1970 */ | ||
+ | } | ||
+ | |||
+ | Machine Track | ||
+ | { lat: <number>, | ||
+ | lon: <number>, | ||
+ | alt: <number>, | ||
+ | trackHandle: <number> | ||
+ | } | ||
+ | |||
+ | Measure | ||
+ | { lat: <number>, | ||
+ | lon: <number>, | ||
+ | alt: <number>, | ||
+ | points: []; /* Same point struct from User Track */ | ||
+ | } | ||
+ |