{"_id":"@abcum/ember-location","_rev":"7-383157091fe3df870c04b34dddc6b672","name":"@abcum/ember-location","description":"A utility for working with geolocation in an Ember.js app.","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"@abcum/ember-location","version":"1.0.0","description":"A utility for working with geolocation in an Ember.js app.","keywords":["ember-addon"],"license":"MIT","author":{"name":"Tobie Morgan Hitchcock"},"directories":{"doc":"doc","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"scripts":{"build":"ember build","start":"ember server","test":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.3.0"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"~2.14.0","ember-cli-dependency-checker":"^1.3.0","ember-cli-eslint":"^3.0.0","ember-cli-htmlbars":"^2.0.1","ember-cli-htmlbars-inline-precompile":"^0.4.3","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.0.0","ember-cli-shims":"^1.1.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^1.2.0","ember-disable-prototype-extensions":"^1.1.2","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-resolver":"^4.0.0","ember-source":"~2.14.0","ember-welcome-page":"^3.0.0","loader.js":"^4.2.3"},"engines":{"node":"^4.5 || 6.* || >= 7.*"},"ember-addon":{"configPath":"tests/dummy/config"},"gitHead":"5dad812dcf7975464693b557cbb1887fa904e97e","bugs":{"url":"https://github.com/abcum/ember-location/issues"},"homepage":"https://github.com/abcum/ember-location#readme","_id":"@abcum/ember-location@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"tobiemh","email":"tobie@abcum.com"},"dist":{"integrity":"sha512-tLZdFUbiKbT+vQwklUke8jaMoVhNVt9Q3u30dobGcmdATYES+1JJWE5mSAb4hw2OFFECh5PBrjvGpCBnPEyr3g==","shasum":"73ae263cc7650b7d2b6628dfa807dceb9921c8ed","tarball":"https://registry.npmjs.org/@abcum/ember-location/-/ember-location-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCwvuQ1VCfHRQ+tHbUUbDNLVCTQpqeKLVoR7mXZIoTPfwIgQRVSnF73dK0P8OqVPmYp3ivhRpbnLuADEPGMkn9E4H0="}]},"maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-location-1.0.0.tgz_1501692760386_0.8723173749167472"},"deprecated":"Package no longer supported. Use github.com/abcum/ascua instead."},"2.0.0":{"name":"@abcum/ember-location","version":"2.0.0","description":"A utility for working with geolocation in an Ember.js app.","keywords":["ember-addon"],"license":"MIT","author":{"name":"Tobie Morgan Hitchcock"},"directories":{"doc":"doc","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"scripts":{"build":"ember build","start":"ember serve","test":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.6.0"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"~2.17.2","ember-cli-dependency-checker":"^2.0.0","ember-cli-eslint":"^4.2.1","ember-cli-htmlbars":"^2.0.1","ember-cli-htmlbars-inline-precompile":"^1.0.0","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.1.1","ember-cli-shims":"^1.2.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^2.0.0","ember-disable-prototype-extensions":"^1.1.2","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-resolver":"^4.0.0","ember-source":"~2.17.0","ember-welcome-page":"^3.0.0","loader.js":"^4.2.3"},"engines":{"node":"^4.5 || 6.* || >= 7.*"},"ember-addon":{"configPath":"tests/dummy/config"},"gitHead":"a48385fe47eb9f8ce3b8eb703dcba85bbc6a92aa","bugs":{"url":"https://github.com/abcum/ember-location/issues"},"homepage":"https://github.com/abcum/ember-location#readme","_id":"@abcum/ember-location@2.0.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"tobiemh","email":"tobie@abcum.com"},"dist":{"integrity":"sha512-kMaREG4bgpRRaZGPz7KAgvOIikaChUT7yP70DAiCrwug7yUFj3ykIFh5WoI1Z/kjmN+QnpDoF4q4+hgVPecY+Q==","shasum":"606d4ec82368e665640175f8b45e6b75a2e54461","tarball":"https://registry.npmjs.org/@abcum/ember-location/-/ember-location-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdKx3xcaA5ukYz8sl/BGan/xHZAHrEspuA8+QVzwFOGgIgYan+E2TptNf3xjpZOIAos6YX97bhbxhmcfWQ49LZZVU="}]},"maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-location-2.0.0.tgz_1515428536615_0.3045944180339575"},"deprecated":"Package no longer supported. Use github.com/abcum/ascua instead."},"2.0.1":{"name":"@abcum/ember-location","version":"2.0.1","description":"A utility for working with geolocation in an Ember.js app.","keywords":["ember-addon"],"license":"MIT","author":{"name":"Tobie Morgan Hitchcock"},"directories":{"doc":"doc","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"scripts":{"build":"ember build","lint:js":"eslint ./*.js addon addon-test-support app config lib server test-support tests","start":"ember serve","test":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.6.0"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"~3.0.0","ember-cli-dependency-checker":"^2.0.0","ember-cli-eslint":"^4.2.1","ember-cli-htmlbars":"^2.0.1","ember-cli-htmlbars-inline-precompile":"^1.0.0","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.1.1","ember-cli-shims":"^1.2.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^2.0.0","ember-disable-prototype-extensions":"^1.1.2","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-maybe-import-regenerator":"^0.1.6","ember-resolver":"^4.0.0","ember-source":"~3.0.0","ember-source-channel-url":"^1.0.1","ember-try":"^0.2.23","ember-welcome-page":"^3.0.0","eslint-plugin-ember":"^5.0.0","eslint-plugin-node":"^5.2.1","loader.js":"^4.2.3"},"engines":{"node":"^4.5 || 6.* || >= 7.*"},"ember-addon":{"configPath":"tests/dummy/config"},"gitHead":"d8f1b18f332cc5b8b935d63687f77d2d0e8e0c28","bugs":{"url":"https://github.com/abcum/ember-location/issues"},"homepage":"https://github.com/abcum/ember-location#readme","_id":"@abcum/ember-location@2.0.1","_npmVersion":"5.8.0","_nodeVersion":"9.9.0","_npmUser":{"name":"tobiemh","email":"tobie@abcum.com"},"dist":{"integrity":"sha512-59gHErAieS3/bjhPkMMejh1YvSrBca94V4/Yocf8F4ZUE56OlkXgVXw+jAK3hjH7dy1IoIws+l9zCtlAvMoP1Q==","shasum":"ebbbddb99e06e8dbabf90e4e19095263e3d977ae","tarball":"https://registry.npmjs.org/@abcum/ember-location/-/ember-location-2.0.1.tgz","fileCount":12,"unpackedSize":10538,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAHiPm1v7U8sU2CoeOFULxxZlYNkHh7oysII3mA8ZjawAiEAjeUpT3LD7MNu8gDGMzC0sHpGIrgNXp8C3HSpIE5j7wI="}]},"maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-location_2.0.1_1522014557428_0.2888027325632687"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Use github.com/abcum/ascua instead."},"2.0.2":{"name":"@abcum/ember-location","version":"2.0.2","description":"A utility for working with geolocation in an Ember.js app.","keywords":["ember-addon"],"license":"MIT","author":{"name":"Tobie Morgan Hitchcock"},"directories":{"doc":"doc","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"scripts":{"build":"ember build","lint:js":"eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests","start":"ember serve","test":"ember test","test:all":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.6.0"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"~3.1.3","ember-cli-dependency-checker":"^2.0.0","ember-cli-eslint":"^4.2.1","ember-cli-htmlbars":"^2.0.1","ember-cli-htmlbars-inline-precompile":"^1.0.0","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.1.1","ember-cli-shims":"^1.2.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^2.0.0","ember-disable-prototype-extensions":"^1.1.2","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-maybe-import-regenerator":"^0.1.6","ember-resolver":"^4.0.0","ember-source":"~3.1.0","ember-source-channel-url":"^1.0.1","ember-try":"^0.2.23","ember-welcome-page":"^3.0.0","eslint-plugin-ember":"^5.0.0","eslint-plugin-node":"^6.0.1","loader.js":"^4.2.3"},"engines":{"node":"^4.5 || 6.* || >= 7.*"},"ember-addon":{"configPath":"tests/dummy/config"},"gitHead":"2238778528dd363e6d445da7577dd57ba3fcce21","bugs":{"url":"https://github.com/abcum/ember-location/issues"},"homepage":"https://github.com/abcum/ember-location#readme","_id":"@abcum/ember-location@2.0.2","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"tobiemh","email":"tobie@abcum.com"},"dist":{"integrity":"sha512-yOEJrZk8mWssJzRU74+LwPUCAehPQSC06PbQThpZfoRCIRPy+ZSefh3dLF+94/Lcqs6bFFAq7Z9kTHgi1OayyQ==","shasum":"6e3d9a615afe450b72c2c730a041437ac9734e02","tarball":"https://registry.npmjs.org/@abcum/ember-location/-/ember-location-2.0.2.tgz","fileCount":13,"unpackedSize":10607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJYHpCRA9TVsSAnZWagAA6TIQAJS3ZjHlDhdvBLUZqsYq\nOPz04Dyex5JFzNAKtoPIMpQLNczLd3cTLQpLFut6vmNDwwu6V9XsJVMDnyS6\ncsO01/dHjGZD4YDdm6lGqtRNyggIIWE5qZ8ena7v7ViNz3sb7wE/kj97wZI9\n8MM/XDD+20fHfCoGgf3UppBeE+MCGvC2l0jGIEICvmf/OZNnqOGWeBlwxIrk\nO8kdw7SiWTJUUIVNdhJLfdiH9RDmcaIWXeRFo4KUkoGQ3ArmQNQKfXOyoi+S\ndoiZ4aYi/MbiL/ZsBchMpbgJ79jQQhMMKJ15S1k1aexhdbFLr/WB5fUNrqrd\nTkbhXpu2oU3Wkh8yz9Kvox7ao9TKW37hJAMoxvUL82g/78seCoTsEWofeGoJ\noSRizPlFgAfhI1FwPN04Q+LBJmUfYtfrA05Mf55xt7xcuGnHKlf0I0g+YUWs\nt+/1+jdrwkhvyEUjHoBY71EgJi/2ZKWvfHHnz27sMtopchORECYD0qKqWsTk\nddgYqeJZPY6JYqZQO9XtioJKejlzCn2dR0R7y61Hppk9CJu/hxTUuL636Erv\nq3EqiddlafvcZkO/amB+MD3xpYvdU8ApX3yMHgCsXcpzCoytbQHuJeNaIWsg\nh1AektjvSynncpLVIaEmoii48OoTl5iW/8bAC5FTwtsspj6XnLj+TaKKEnD+\n+8fb\r\n=ojut\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA0JZOcRPhvGdJ8TQWqPer/Ei6tGPEjm33UmAsG6n/OkAiEA7eBNEpeZAZWR8v5/cHj4JmeS7IkNuxCdEKPRUOt87wQ="}]},"maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-location_2.0.2_1529184744125_0.9545946217528216"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Use github.com/abcum/ascua instead."},"2.0.3":{"name":"@abcum/ember-location","version":"2.0.3","description":"A utility for working with geolocation in an Ember.js app.","keywords":["ember-addon"],"license":"MIT","author":{"name":"Tobie Morgan Hitchcock"},"directories":{"doc":"doc","test":"tests"},"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"scripts":{"build":"ember build","lint:js":"eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests","start":"ember serve","test":"ember test","test:all":"ember try:each"},"dependencies":{"ember-cli-babel":"^6.6.0"},"devDependencies":{"broccoli-asset-rev":"^2.4.5","ember-ajax":"^3.0.0","ember-cli":"~3.1.3","ember-cli-dependency-checker":"^2.0.0","ember-cli-eslint":"^4.2.1","ember-cli-htmlbars":"^2.0.1","ember-cli-htmlbars-inline-precompile":"^1.0.0","ember-cli-inject-live-reload":"^1.4.1","ember-cli-qunit":"^4.1.1","ember-cli-shims":"^1.2.0","ember-cli-sri":"^2.1.0","ember-cli-uglify":"^2.0.0","ember-disable-prototype-extensions":"^1.1.2","ember-export-application-global":"^2.0.0","ember-load-initializers":"^1.0.0","ember-maybe-import-regenerator":"^0.1.6","ember-resolver":"^4.0.0","ember-source":"~3.1.0","ember-source-channel-url":"^1.0.1","ember-try":"^0.2.23","ember-welcome-page":"^3.0.0","eslint-plugin-ember":"^5.0.0","eslint-plugin-node":"^6.0.1","loader.js":"^4.2.3"},"engines":{"node":"^4.5 || 6.* || >= 7.*"},"ember-addon":{"configPath":"tests/dummy/config"},"gitHead":"28f6cb1db2cf1c80d0542ce22d1912a7d0604379","bugs":{"url":"https://github.com/abcum/ember-location/issues"},"homepage":"https://github.com/abcum/ember-location#readme","_id":"@abcum/ember-location@2.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"tobiemh","email":"tobie@abcum.com"},"dist":{"integrity":"sha512-18ut1SNMN0Goy7xnz423S9/jFLPBvPLx8JcYgpLyfXodFoi0WCUbUlN+M6tsHjKCUcCmYO3DBbaT12ux5f7jpg==","shasum":"16d67670a99006aa95b636728327b4fa2e787dc2","tarball":"https://registry.npmjs.org/@abcum/ember-location/-/ember-location-2.0.3.tgz","fileCount":13,"unpackedSize":10374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbkrIECRA9TVsSAnZWagAAU7EP/3Rw7aIsObhJeOGPkg1p\nB285MV1qXQ66SptwU/a7vWOwdO/0hzm8rvnVyYJvhHHGooHEUprPKR1kRAzr\n3hKvwmi8yIpRqEIANAZ/Z5jqNzO+U17B/YmHS+z1Er3fDrAuId+gNVU8UCk1\nzvNpQgjDZawwMcIQ7FmuvPQ/Wy+B+dWCSvRirXAcZOsCu6C/FAnVJzbz3IO6\n4EhG3p7FDoCUPmtjRqugnozvuNyCv/WxsniBmLqv4dOd0RwPf7B4k39ZRb/b\nZuzBHcSwbK/Dw90tDAcUFrUuqbm9+fRyKCPQ0M/cF6/PnHxwi1SB/WYMCYKh\nKTVcFAHNnvaTKsiu5TuaMExYE5liOM3LEffpu1BqQjYeIzZuZbzaXmym4AEw\nEcKRKveZwSsM8776DG2OYlrmViBHaLr49LQwS8Dz2ETd9588Asovvy8rI0Ba\nJgsDlRlNiGYT8xSIwiHVALx2GCU0UlaR9MW329zgnC91usxorQgPYr20FEIT\nGHO98If/fBS4dlZg0AUgNibkv6jrZ0ezceX3LEHa7NgQeWV7Ky2l4JU5sAOX\nBLEYN9Iz8b4m4/mKBD1QPZe16m4gt/dL/B++XT5qyv3omtRgwC+KwhO1G2UP\nI+llWbKojJit7qTRMhy4cB8jZBRse7V3BjijD8c5DUmIiXOaLvGZH3LcYUEJ\nTS5m\r\n=KjMx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBapQ8HEiT/QzI0ILlYz559YEuv8GqyJMrF62PM6SC6oAiEAm5tUrI0kgznTJBv7cD87hlyIStPDY9AUTyDf6lWjXU0="}]},"maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ember-location_2.0.3_1536340484442_0.09389393129095924"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Use github.com/abcum/ascua instead."}},"readme":"# ember-location\n\nA utility for working with geolocation in an Ember.js app.\n\n[![](https://img.shields.io/circleci/project/abcum/ember-location/master.svg?style=flat-square)](https://circleci.com/gh/abcum/ember-location) [![](https://img.shields.io/npm/v/@abcum/ember-location.svg?style=flat-square)](https://www.npmjs.com/package/@abcum/ember-location) [![](https://img.shields.io/badge/ember-2.16.1+-orange.svg?style=flat-square)](https://github.com/abcum/ember-location) [![](https://david-dm.org/abcum/ember-location/status.svg?style=flat-square)](https://david-dm.org/abcum/ember-location) [![](https://david-dm.org/abcum/ember-location/dev-status.svg?style=flat-square)](https://david-dm.org/abcum/ember-location?type=dev) [![](https://img.shields.io/badge/license-MIT-00bfff.svg?style=flat-square)](https://github.com/abcum/ember-location) \n\n## Usage\n\n### Installation\n\n`ember install @abcum/ember-location`\n\n### Methods\n\n#### find()\n\nThe `find` method retrives the location from the browser using the HTML5 Geolocation API. It returns a Ember.RSVP.Promise, which will reject if the HTML5 Geolocation API is not available, or if the current coordinates are not able to be found, and will resolve if the positioning was successful. In addition the current geolocation position is saved to the `current` property.\n\n```js\nthis.get('location').find({ timeout:5000 }).then(function(result) {\n\t// Access the user's location using `result` or `this.location.current`\n});\n```\n\nIt accepts an **optional** object as the first argument which can be used to customise the query. If omitted it will default to the values listed here.\n\n```js\n{\n\tenableHighAccuracy: false,\n\ttimeout: Infinity,\n\tmaximumAge: 0\n}\n```\n\n#### watch()\n\nThe `watch` method continually retrieves and tracks the location from the browser using the HTML5 Geolocation API. It returns a Ember.RSVP.Promise, which will reject if the HTML5 Geolocation API is not available, or if the current coordinates are not able to be found, and will resolve if the positioning was successful. In addition the current geolocation position is continually saved to the `current` property.\n\n```js\nthis.get('location').watch({ timeout:5000 }).then(function(result) {\n\t// Access the user's location using `result` or `this.location.current`\n});\n```\n\nIt accepts an **optional** object as the first argument which can be used to customise the query. If omitted it will default to the values listed here.\n\n```js\n{\n\tenableHighAccuracy: false,\n\ttimeout: Infinity,\n\tmaximumAge: 0\n}\n```\n\n### Properties\n\nThe `current` property stores the latest positioning data which was retrieved using the HTML5 Geolocation API, an example of which is displayed here.\n\n```js\n{\n  coords: {\n    accuracy: 75,\n    altitude: null,\n    altitudeAccuracy: null,\n    heading: null,\n    latitude: 51.165,\n    longitude: 0.248,\n    speed: null\n  },\n  timestamp: 1470156731858\n}\n```\n\n### Examples\n\nWait for the current position before displaying the route.\n\n```js\nexport default Ember.Route.extend({\n\tmodel() {\n\t\treturn this.get('location').watch();\n\t}\n})\n```\n\nDisplay the current position on a map in the template using the `current` object.\n\n```hbs\n{{example-map lat=location.current.coords.latitude lng=location.current.coords.longitude}}\n```\n\n## Development\n\n- `make install` (install bower and ember-cli dependencies)\n- `make upgrade` (upgrade ember-cli to the specified version)\n- `make tests` (run all tests defined in the package)\n","maintainers":[{"name":"tobiemh","email":"tobie@abcum.com"}],"time":{"modified":"2022-04-04T10:58:18.115Z","created":"2017-08-02T16:52:41.281Z","1.0.0":"2017-08-02T16:52:41.281Z","2.0.0":"2018-01-08T16:22:17.583Z","2.0.1":"2018-03-25T21:49:17.567Z","2.0.2":"2018-06-16T21:32:24.194Z","2.0.3":"2018-09-07T17:14:44.576Z"},"homepage":"https://github.com/abcum/ember-location#readme","keywords":["ember-addon"],"repository":{"type":"git","url":"git+https://github.com/abcum/ember-location.git"},"author":{"name":"Tobie Morgan Hitchcock"},"bugs":{"url":"https://github.com/abcum/ember-location/issues"},"license":"MIT","readmeFilename":"README.md"}