{"_id":"@adobe/cordova-acpplaces","_rev":"94-767cc4a1f4480936b29fee896cf79f84","name":"@adobe/cordova-acpplaces","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@adobe/cordova-acpplaces","version":"0.0.1","keywords":["ecosystem:cordova","adobe","places","acpplaces","marketing","cordova-android","cordova-ios"],"author":{"name":"Adobe"},"license":"Apache-2.0","_id":"@adobe/cordova-acpplaces@0.0.1","maintainers":[{"name":"rymorale","email":"ryanmorales@gmail.com"},{"name":"amadt5","email":"amadt5@gmail.com"},{"name":"symanovi","email":"symanovi@adobe.com"},{"name":"mirea","email":"mirea@adobe.com"},{"name":"dgrossen","email":"dangrossen@gmail.com"},{"name":"tmathern","email":"mathern@adobe.com"},{"name":"dstrangio","email":"deirdra.strangio@gmail.com"},{"name":"cjchapman","email":"cchapman@adobe.com"},{"name":"addb","email":"arjun.d.bhadra@gmail.com"},{"name":"jdelbick","email":"jamie.delbick@gmail.com"},{"name":"sbenedicadb","email":"sbenedic@adobe.com"},{"name":"surajpindoria","email":"pindoria.suraj@gmail.com"},{"name":"jasonwaters","email":"watersj@gmail.com"},{"name":"alvarorahul","email":"alvarorahul@gmail.com"},{"name":"choffmann-adobe","email":"choffman@adobe.com"},{"name":"bgaurav","email":"FINDGAURAV@GMAIL.COM"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"czerneck","email":"czerneck@adobe.com"},{"name":"sangeetha.krishnan","email":"sangeetha5491@gmail.com"},{"name":"aspro83","email":"danniintheus@gmail.com"},{"name":"devongovett","email":"devongovett@gmail.com"},{"name":"dompuiu","email":"dompuiu@gmail.com"},{"name":"bglowacki","email":"bartosz.glow@gmail.com"},{"name":"ronen","email":"ronen@barzel.org"},{"name":"fmeschbe","email":"fmeschbe@adobe.com"},{"name":"natebaldwin","email":"natebaldwindesign@gmail.com"},{"name":"msagolj","email":"msagolj@adobe.com"},{"name":"richardhand","email":"pid90611@adobe.com"},{"name":"jckautzmann","email":"jkautzma@adobe.com"},{"name":"andreea_dracea","email":"andreeadracea@yahoo.com"},{"name":"bpauli","email":"mail@bpauli.de"},{"name":"vladbailescu","email":"vlad@bailescu.ro"},{"name":"mfrisbey","email":"mark_f79@hotmail.com"},{"name":"himar","email":"himar@adobe.com"},{"name":"bbythewa","email":"bbythewa@adobe.com"},{"name":"dcpfsdk","email":"dcpfsdk@adobe.com"},{"name":"jianliao79","email":"jian.liao@gmail.com"},{"name":"ibaratz","email":"ibaratz@adobe.com"},{"name":"alexkli","email":"alexander@klimetschek.de"},{"name":"meryllblanchet","email":"meryll@adobeio.com"},{"name":"moritzraho","email":"raho.mr@gmail.com"},{"name":"justinedelson","email":"justin@justinedelson.com"},{"name":"icaraps","email":"icaraps@hotmail.com"},{"name":"ashryan","email":"sayhi@ashryan.io"},{"name":"korra","email":"npmjs.karo@cupdev.net"},{"name":"nporter-adbe","email":"nporter@adobe.com"},{"name":"aaronius","email":"aaron@aaronhardy.com"},{"name":"hirenoble","email":"hirenanandshah@outlook.com"},{"name":"benjamind","email":"ben@delarre.net"},{"name":"yoshikinoko","email":"yoshikinoko@gmail.com"},{"name":"goya","email":"brettrudd@gmail.com"},{"name":"rofe","email":"npm@rofe.com"},{"name":"purplecabbage","email":"purplecabbage@gmail.com"},{"name":"krisnye","email":"krisnye@gmail.com"},{"name":"kerrishotts","email":"kerrishotts@gmail.com"},{"name":"dpfister","email":"dominique.pfister@gmail.com"},{"name":"kptdobe","email":"kptdobe@gmail.com"},{"name":"macdonst","email":"simon.macdonald@gmail.com"},{"name":"shazron","email":"shazron@gmail.com"},{"name":"aemsites","email":"meyer@adobe.com"},{"name":"stefan-guggisberg","email":"sg@adobe.com"},{"name":"jfkhoury","email":"jfkhoury@gmail.com"},{"name":"marbec","email":"mabecker@adobe.com"},{"name":"tripod","email":"tripod@bocanegra.ch"},{"name":"garthdb","email":"garthdb@gmail.com"},{"name":"lazd","email":"lazdnet@gmail.com"},{"name":"adobe-admin","email":"grp-opensourceoffice@adobe.com"},{"name":"target-admin","email":"ciocanu@adobe.com"},{"name":"adobe-behance","email":"sedunn@adobe.com"},{"name":"trieloff","email":"lars@trieloff.net"}],"homepage":"https://github.com/adobe/cordova-acpplaces#readme","bugs":{"url":"https://github.com/adobe/cordova-acpplaces/issues"},"dist":{"shasum":"c01ea109314f7fdbcd6570393a8ff2a7447c245a","tarball":"https://registry.npmjs.org/@adobe/cordova-acpplaces/-/cordova-acpplaces-0.0.1.tgz","fileCount":17,"integrity":"sha512-r7k5qFnTiSfR5rmCKVIcf7HvQhCD8yjG51ozfI300UARc4ifY3xdVT5Z8jQzUbc6/fhHaH5ynVDuqFnsx5JtkA==","signatures":[{"sig":"MEQCIBk5iKAyxh/Nnm1kb8F5q8avv/nn3DEbJoqSupB4oAcJAiBvLCgf4mopLzUdwW82ibtKqVmU/8j7FU6ZlyRA1TqdNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":67151,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1v64CRA9TVsSAnZWagAAb84P/jh/ZFfHP9A6PbJ/vIXY\nWcFUpu2LRHO/7Jp+uRzRQMB5GHcP2RUcbxkKUqxtYfDDjvEFwPpUTp2YQtiG\nKoFy8e3ELwfdnq7cKspWTdVo5ICZKmqEnSomPJ2bBL0kF4xzoVwfxzDlkOGI\n5eyvJYb9cVJTk2wcAI2lhVf2EN0URCJubpdo8Uk4ldBRZPgakssmgwZCvfJW\nmv3nnbHepUtaHBLs5Ga36xv2FV02reJbJjr/PPg5xfNitfc9QfVMNwTzWx00\nRXjR58s1BtyCi351JYWFQZcfDnF6N4eqZpZNCL/CiQEEy2mnomNufn/dpSTN\nFHGKkOBVgtnbh7dCEVxhFOwR28N2LG01OO+Zd+FdQkyRc9TvPTL74YJVi9xh\nSpckAW4Lu/SI676qL6z+v3DHQGM9gL58AKrrxRyjUE/FQ0jQGhTS1178r7m5\nUUF+mQ3aEjptGIkdsenHOgOl5muqN/RFOfIkxS2NPrTwwyC3xdu/Qwhjqy9k\n1EWc/K7hUzk7aN3mHZC4b48NnDyhgHWyg/ssniIeKrsXNzq26U+BcDx+kEbN\nNUddb0m0UZhTmkhK5wayg/uqFg7rUd3c2GGOXveLQ+HoRDmBUR+MG76COtja\nVWSQDl5G9EZK0OgPK8QwtLUJnzcU44AUXq49G+0lnm8Tya+RiEbcVdLOwBOf\n2pwQ\r\n=VtcI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","cordova":{"id":"cordova-acpplaces","platforms":["android","ios"]},"gitHead":"c331177efe6ab52f113933596b4af45d75ce4ba8","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"rymorale","email":"ryanmorales@gmail.com"},"deprecated":"Package no longer supported (underlying SDK deprecated)","repository":{"url":"git+https://github.com/adobe/cordova-acpplaces.git","type":"git"},"_npmVersion":"6.12.1","description":"Adobe Experience Platform - Places plugin for Cordova apps.","directories":{"test":"tests"},"_nodeVersion":"13.1.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/cordova-acpplaces_0.0.1_1591828680654_0.7144664097169489","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-06-10T22:38:00.377Z","modified":"2026-10-01T01:32:50.572Z","0.0.1":"2020-06-10T22:38:01.157Z"},"bugs":{"url":"https://github.com/adobe/cordova-acpplaces/issues"},"author":{"name":"Adobe"},"license":"Apache-2.0","homepage":"https://github.com/adobe/cordova-acpplaces#readme","keywords":["ecosystem:cordova","adobe","places","acpplaces","marketing","cordova-android","cordova-ios"],"repository":{"url":"git+https://github.com/adobe/cordova-acpplaces.git","type":"git"},"description":"Adobe Experience Platform - Places plugin for Cordova apps.","maintainers":[{"email":"mabecker@adobe.com","name":"marbec"},{"email":"tripod@bocanegra.ch","name":"tripod"},{"email":"garthdb@gmail.com","name":"garthdb"},{"email":"lazdnet@gmail.com","name":"lazd"},{"email":"grp-opensourceoffice@adobe.com","name":"adobe-admin"},{"email":"patrickfulton@gmail.com","name":"patrickfulton"},{"email":"lars@trieloff.net","name":"trieloff"},{"email":"krisnye@gmail.com","name":"krisnye"},{"email":"dcpfsdk@adobe.com","name":"dcpfsdk"},{"email":"natebaldwindesign@gmail.com","name":"natebaldwin"},{"email":"devongovett@gmail.com","name":"devongovett"},{"email":"danniintheus@gmail.com","name":"aspro83"},{"email":"symanovi@adobe.com","name":"symanovi"},{"email":"dominique.pfister@gmail.com","name":"dpfister"},{"email":"sg@adobe.com","name":"stefan-guggisberg"},{"email":"npm@rofe.com","name":"rofe"},{"email":"kptdobe@gmail.com","name":"kptdobe"},{"email":"halls@adobe.com","name":"adobehalls"},{"email":"bradjohn@adobe.com","name":"fullcolorcoder"},{"email":"djaeggi@adobe.com","name":"djaeggi"},{"email":"dylandepass@gmail.com","name":"dylandepass"},{"email":"mhaack@adobe.com","name":"mhaack"},{"email":"amol@adobe.com","name":"amol-anand"},{"email":"stopp@adobe.com","name":"stopp-adobe"},{"email":"namarora@adobe.com","name":"namarora"},{"email":"doten@adobe.com","name":"doten"},{"email":"schmidt@adobe.com","name":"duh_schmidt"},{"email":"astha.bhargava23@gmail.com","name":"asthabh23"},{"email":"aljoseph@adobe.com","name":"aljoseph"},{"email":"zouhir.dahbi@outlook.com","name":"zdahbi"},{"email":"tuicu@adobe.com","name":"tuicu"},{"email":"fmeschbe@adobe.com","name":"fmeschbe"}],"readme":"\n# Adobe Experience Platform - Places plugin for Cordova apps\n\n[![CI](https://github.com/adobe/cordova-acpplaces/workflows/CI/badge.svg)](https://github.com/adobe/cordova-acpplaces/actions)\n[![npm](https://img.shields.io/npm/v/@adobe/cordova-acpplaces)](https://www.npmjs.com/package/@adobe/cordova-acpplaces)\n[![GitHub](https://img.shields.io/github/license/adobe/cordova-acpplaces)](https://github.com/adobe/cordova-acpplaces/blob/master/LICENSE)\n\n- [Prerequisites](#prerequisites)  \n- [Installation](#installation)\n- [Usage](#usage)  \n- [Running Tests](#running-tests)\n- [Sample App](#sample-app)  \n- [Contributing](#contributing)  \n- [Licensing](#licensing)  \n\n## Prerequisites  \n\nCordova is distributed via [Node Package Management](https://www.npmjs.com/) (aka - `npm`).  \n\nIn order to install and build Cordova applications you will need to have `Node.js` installed. [Install Node.js](https://nodejs.org/en/).  \n\nOnce Node.js is installed, you can install the Cordova framework from terminal:  \n\n```  \nsudo npm install -g cordova  \n```\n\n## Installation\n\nTo start using the Places plugin for Cordova, navigate to the directory of your Cordova app and install the plugin:\n```\ncordova plugin add https://github.com/adobe/cordova-acpplaces.git\n```\nCheck out the documentation for help with APIs\n\n## Usage\n\n##### Getting the SDK version:\n```js\nACPPlaces.extensionVersion(function(version){  \n    console.log(version);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Registering the extension with ACPCore:  \n\n > Note: It is required to initialize the SDK via native code inside your AppDelegate and MainApplication for iOS and Android respectively. For more information see how to initialize [Core](https://aep-sdks.gitbook.io/docs/getting-started/initialize-the-sdk).  \n  \n  ##### **iOS**  \n```objective-c\n#import \"ACPPlaces.h\"  \n[ACPPlaces registerExtension];  \n```\n  ##### **Android:**  \n```java\nimport com.adobe.marketing.mobile.Places;  \nPlaces.registerExtension();\n```\n##### Clear client side Places plugin data:\n```js\nACPPlaces.clear(function(response) {  \n    console.log(\"Successfully cleared Places data.\");\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Get the current POI's that the device is currently known to be within:\n```js\nACPPlaces.getCurrentPointsOfInterest(function(response){  \n    console.log(\"Current POI's: \", response);  \n}, function(error){  \n    console.log(error);  \n});  \n```\n##### Get the last latitude and longitude stored in the Places plugin:\n```js\nACPPlaces.getLastKnownLocation(function(response) {  \n    console.log(\"Last known location: \", response);\n}, function(error){  \n    console.log(error);  \n});\n```\n##### Get a list of nearby POI's:\n```js\nvar location = {latitude:37.3309422, longitude:-121.8939077};\nvar limit = 10; // max number of POI's to return\nACPPlaces.getNearbyPointsOfInterest(location, limit, function(response){  \n    console.log(\"Nearby POI's: \", response);  \n}, function(error){  \n    console.log(error);  \n});\n```\n##### Pass a Geofence and transition type to be processed by the Places plugin:\n\n```js\nvar region = {latitude:37.3309422, longitude:-121.8939077, radius:1000};\nvar geofence = {requestId:\"geofence_id\", circularRegion:region, expirationDuration:-1};\nACPPlaces.processGeofence(geofence, geo.transitionType, function(response) {  \n    console.log(\"Successfully processed geofence: \", geofence); \n}, function(error){  \n    console.log(error);  \n});\n```\n##### Set the authorization status:\n```js\nACPPlaces.setAuthorizationStatus(ACPPlaces.AuthorizationStatusAlways, function(response) {  \n    console.log(\"Successfully set the authorization status.\"); \n}, function(error){  \n    console.log(error);  \n});\n```\n\n## Running Tests\nInstall cordova-paramedic `https://github.com/apache/cordova-paramedic`\n```bash\nnpm install -g cordova-paramedic\n```\n\nRun the tests\n```\ncordova-paramedic --platform ios --plugin . --verbose\n```\n```\ncordova-paramedic --platform android --plugin . --verbose\n```\n\n## Sample App\n\nA Cordova app for testing the plugin is located in the `https://github.com/adobe/cordova-acpsample`. The app is configured for both iOS and Android platforms.  \n\n## Contributing\nLooking to contribute to this project? Please review our [Contributing guidelines](.github/CONTRIBUTING.md) prior to opening a pull request.\n\nWe look forward to working with you!\n\n## Licensing  \nThis project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.\n","readmeFilename":"README.md"}