150 likes | 272 Views
Geospatial Notes. Matthew Ibarra Dharik Patel Anthony Sosso Dharik Patel Matthew Ibarra. Overview. A location-aware app enabling users to leave location-specific notes for themselves. Contents. Anthony Application architecture Thoughts on Titanium Matt Google Maps functionality
E N D
Geospatial Notes Matthew Ibarra Dharik Patel Anthony Sosso Dharik Patel Matthew Ibarra
Overview • A location-aware app enabling users to leave location-specific notes for themselves.
Contents • Anthony • Application architecture • Thoughts on Titanium • Matt • Google Maps functionality • Note creation, storage • Dharik • Facebook, database
Application architecture • Appcelerator Titanium • Javascript! • (But not really) • UI completely event driven
Namespaces • gn – root namespace • ui • Contains all functions for creating various views • db • Contains all database interaction methods • But entirely event driven, so function names and namespaces don’t really matter!
Thoughts on Titanium Pros Cons Not as many developers Startup company, so things change fast OS fragmentation Not ideal for 3D heavy games • Concise, simple documentation • +/- Sample code • Extremely friendly to web services • Constantly improving • Great for prototyping • Or for class work… • Open source! • Augmentable via Objective C/Java native modules
Facebook and Database implementation Dharikpatel
Sql-Database • Started with the database structure • TI handles installing the DB • Querying is simple var data = db.execute('SELECT * FROM `notes` ORDER BY noteDateCreated DESC‘); While(data.isValidRow()) { // Handle Data data.next(); }
Notes demo Matthew Ibarra
Demonstration Opening the app Welcome Screen Facebook Connect 6 possible pages to go from there: Geolocation, Location, GPS, Inbox, Friends, and Options. • Check out that nifty icon Anthony made. • Appcelerator splash screen.
Demonstration Geolocation Location Address field, note field, save button, audio notes. Processing window, toast pop up, lat and lon parsed. Record audio goes to recorder, work in progress. Note is added to mapView when stored in database and persists closing the app (red dot). Tap sticky note to view note content. • Open and displays current location. • Search ability • Adds annotation to the map (green dot).
Demonstration GPS Inbox Notes viewed in tableView. Click a note to view the note content, time of creation, lon, and lat. ‘Delete note’ deletes from db; working on updating tableView simultaneously. • Mostly for testing and sanity checks. • Updates about every minute or so.
Demonstration Friends Options Not currently implemented. Note filters opens hovering tableView that can be toggled; selections don’t persist. • List of Facebook friends in tableView. • (Attempt at) dynamic scrolling. • Search field.