Cordova CameraRollLocation Plugin with access to GPS coords


#1

I just pushed a new plugin for Cordova: cordova-plugin-camera-roll-location

The repo is here: https://github.com/mixersoft/cordova-plugin-camera-roll-location

The plugin allows you to map the cameraRoll on iOS and get GPS coordinates plus other related meta-data for each photo.

[{
  "uuid": "XXXXXXXX-XXXX-XXXX-XXXX-F25F0864AE01/L0/001",
  "filename": "IMG_0001.JPG",
  "dateTaken": "2016-01-01T09:51:28.446Z",
  "localTime": "2016-01-01 12:51:28.446",
  "mediaType": 1,
  "mediaSubypes": 0,
  "isFavorite": false,
  "location": {
    "type": "Point",
    "coordinates": [
      23.3138,
      42.6704
    ],
    "speed": 1.54
  },
  "momentId": "XXXXXXXX-XXXX-XXXX-XXXX-1F2FD88BA004/L0/060",
  "momentLocationName": "Sofia"
}]

An ionic2 demo project can be found here: https://github.com/mixersoft/ionic2-camera-roll-location-demo. The demo project also includes a utility to copy native iOS cameraRoll files into your cordova app directory so you can use it as an IMG.src.

Please send me comments and suggestions.