PathSense: Precise Location data for your mobile app with 90% less Battery Drain
Channel: Robert Scoble's Building 43
Date: 2015-02-09

The PathSense team created their SDK to solve a problem that plagued their previous startup — Trapster. At Trapster they had over 20,000,000 users and would have loved to offer them background location monitoring and a host of other features that were just impossible at the time due to the GPS battery drain. The PathSense team has spent the past 2-years hard at work on this problem, and they've cracked it - They are very proud and excited to offer their beta SDK! 

Integrating PathSense into an existing iOS or Android app is simple. Just replace the standard location services code with the sample code below:

Android:
        // Acquire a reference to the Pathsense location provider.
        PathsenseLocationProvider pathsenseLocationProvider = PathsenseLocationProvider.getInstance();

        // Define a listener that responds to location updates.
        LocationListener locationListener = new LocationListener() {

            public void onLocationChanged(Location location) {

                // Called when a new location is found by the Pathsense location provider.
                makeUseOfNewLocation(location);

            }

            public void onProviderDisabled(String provider) {}

            public void onProviderEnabled(String provider) {}

            public void onStatusChanged(String provider, int status, Bundle extras) {}

        };

        // Register the listener with the Pathsense location provider to receive location updates
        pathsenseLocationProvider.registerListener(locationListener);
      
iOS:
        - (void)startPathSenseUpdates
            {
                // Create a PathSense location manager.
                psLocationManager = [[PSLocationManager alloc] init];

                psLocationManager.delegate = self;

                // Start location updating.
                [psLocationManager startUpdatingLocation];
            }
      
    

https://www.pathsense.io
https://www.pathsense.io/#code
https://www.rackspacestartups.com