Offline apps with mapping, Swift and cloud sync.
Learning Swift development but wondering how to work with location data — perhaps persist it to a remote database? Our Location Tracker example app shows how simple it is to store and query GeoJSON using Cloudant’s database service.
Learn data sync in Swift
Part 1 of our tutorial traces key functions for database interactions. It also shows how to implement an offline-first design for data access using the Cloudant Sync iOS library. Sound like a lot? Well, because Cloudant is based on Apache CouchDB™, it inherits key qualities around JSON replication and change synchronization. That means you can rely on Cloudant for data sync, instead of writing your own.
Scale it up
Worried about scaling to handle more devices? Part 2 of our tutorial reviews the trade-offs of the one-database-per-user design pattern introduced in part 1. We also describe alternative ways of replicating user-segregated data, and how you can scale your app to support millions of users.
Web version: We first released Location Tracker as a web app. Read more.
- Click the Deploy to Bluemix button to deploy the Location Tracker Node.js server.
- Follow the introductory tutorial.