{"_id":"@axolo/egg-amap","_rev":"2-f687d22e1d09216ce79c9fad302ef800","name":"@axolo/egg-amap","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@axolo/egg-amap","version":"0.0.1","description":"AMap plugin for Egg.js.","eggPlugin":{"name":"amap"},"keywords":["egg","eggPlugin","egg-plugin","amap","gaode","map"],"dependencies":{"axios":"^0.21.1"},"devDependencies":{"autod":"^3.1.1","autod-egg":"^1.1.0","egg":"^2.29.4","egg-bin":"^4.16.2","egg-ci":"^1.18.0","egg-mock":"^4.1.0","eslint":"^7.27.0","eslint-config-egg":"^9.0.0"},"engines":{"node":">=14.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","pkgfiles":"egg-bin pkgfiles","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/axolo/egg-amap.git"},"bugs":{"url":"https://github.com/axolo/egg-amap/issues"},"homepage":"https://github.com/axolo/egg-amap#readme","author":{"name":"Yueming Fang"},"license":"MIT","gitHead":"9e032291d2505a4ebcc765f1c71b615629a1e169","_id":"@axolo/egg-amap@0.0.1","_nodeVersion":"15.10.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-fuwKLbzRsiJpuJCsDCUY7CmDI5vS5LvbCl3jtL4NCGd3OPNIMsDTpNRLfBKGeguCZ20yUQDvOZsgnyJkAGtS5A==","shasum":"34625ec7b3331bbf522e1509613545331c235a8e","tarball":"https://registry.npmjs.org/@axolo/egg-amap/-/egg-amap-0.0.1.tgz","fileCount":6,"unpackedSize":5295,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsh/YCRA9TVsSAnZWagAAfcoP/iCT78inMCw+A9O57NdS\ngGU7pP7yjkroh7zyezE84vG1wtgsSEMYTgQ42M+ZURWAQWsOubl9oyRZEt3r\nvuPxqAc24i9dBaLUQpWlOpFHqjds01gDxD0FugA0bnQtoY0MrFLdYLMN3mY4\nAMjvXe7IJxLKCzQArtfjO2IsFX/V20gGziaGjFVe07okLp6oVgez2EKmi1GY\nWCDN+t2A8mvER1BtXKKE6YRnhMFA28uqNIzLR4rhch8qJe78eiEgEEVKh1/w\n03fKumo7btvxDWwg+GzkIDiJi3DORVA0WSx8k+iMtIEbs9ktKD91Lr+JWCMM\nn8yBurcpBsRB8Icc2VQXnSjz+SFstABStAjNAFOKosG046p15ygtmIf/56PY\nUJr+8jKocgsc36jf9Op73tAnWfFeF8brtdmC5N//+TAuR2b9UapADrTD2g4J\n2dUegKC9go9Xp3XgeTxcIXUpA+tH9VaFIQYMdumT/2qPPygUGmMJVY30YZ8p\n9LCm1t6PL3P1XH6dEaUlyo4wQrCrCjsibAi5aQUHJEjgIwCQVhx9j6gspoGI\nWSyOP5do9uFJw3p3KitE/F/8fK/yE7E+WxzRZqvxe0YoNHQM1D63c+GofJ/+\n6PxVqVoExk0MVaskvBKrMtD1J2Q360ZDHiZy09hajNFbhyy1KvO4fFpzWw/v\nyJvL\r\n=c8+M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETm2anDaNLMr2tsBftBL9cWfpPWHrjWQeW5ChEm4kGpAiEAucLyzcBI+giwlnZ+nI5duoN22f/V02dOAR5wQisb3vo="}]},"_npmUser":{"name":"axolo","email":"zergdo@gmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"zergdo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-amap_0.0.1_1622286296472_0.9548506481632082"},"_hasShrinkwrap":false},"0.0.2":{"name":"@axolo/egg-amap","version":"0.0.2","description":"AMap plugin for Egg.js.","eggPlugin":{"name":"amap"},"keywords":["egg","eggPlugin","egg-plugin","amap","gaode","map"],"dependencies":{"axios":"^0.21.1"},"devDependencies":{"autod":"^3.1.1","autod-egg":"^1.1.0","egg":"^2.29.4","egg-bin":"^4.16.2","egg-ci":"^1.18.0","egg-mock":"^4.1.0","eslint":"^7.27.0","eslint-config-egg":"^9.0.0"},"engines":{"node":">=14.0.0"},"scripts":{"test":"npm run lint -- --fix && egg-bin pkgfiles && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint .","ci":"egg-bin pkgfiles --check && npm run lint && npm run cov","pkgfiles":"egg-bin pkgfiles","autod":"autod"},"ci":{"version":"8, 10"},"repository":{"type":"git","url":"git+https://github.com/axolo/egg-amap.git"},"bugs":{"url":"https://github.com/axolo/egg-amap/issues"},"homepage":"https://github.com/axolo/egg-amap#readme","author":{"name":"Yueming Fang"},"license":"MIT","gitHead":"c83985136b177311b8d07d8fd95479d8b553f7b2","_id":"@axolo/egg-amap@0.0.2","_nodeVersion":"15.10.0","_npmVersion":"7.5.3","dist":{"integrity":"sha512-rDdZsnFILTTBusD+/TDoUC2zOxhZauTQaie7sDb7s48rsUGF9V6aLDO4JDUcOv9F0+rg87jC0U9aZeft3OkieA==","shasum":"0f981d63e0779e1d5024de37b5a23b6f0bb129ed","tarball":"https://registry.npmjs.org/@axolo/egg-amap/-/egg-amap-0.0.2.tgz","fileCount":6,"unpackedSize":5514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg1aCMCRA9TVsSAnZWagAAhxoQAIoDUTThW5H67CT8iqXg\nDdVCGnc0C0OgJjehD1i7j8+Ih9PhKWyoiQ1e7OvYC+Tdnb5LivIV+vWaNMYn\nc+c1N4hD3LXillDKXo6gU+vX7mmdaYaMYJe0nQVoGH+ivpGcbAZmaR4DREmX\nVDf7wDqLXltGURXDXvxrcoIevEeOjuGexrcp/xE0uclVj0+XFH/APK85hch2\nXjdY7lIFLA6mMEFO14YiLfH19q5MEi7QUAGoQIk2oU4b6d6xgZnzhO3mif8E\nzbhpXEtHJ7FB0Zsj0jVtgpHzlOARtz+sKZrQKwP1BDOlGpUZv9D2gM9bCzJT\nRp8LjSN+2Z+UTyOz7MeJS6wuGa/puofkOD8+iedUPRFa9jLaJToST8ppnE+Q\nkSdXFyUEn25X+ydJ3sxhXA3R1zdCw3IZLzT4AdF3nE/KBMfjYQ5nW5dF8WIT\nA06VZdD2xdhc4ZQtURtd5fIfr7k7Jrb1YSLHNPG2KpnYXhCv0EO8shYstfKk\nGBDock7RRgwOgSRBitBcLVLfuSyt5kIAlBVBWYnq5S2PTHsTSeW7K2hoabGZ\nxxfS1jfbhJ7+C1Lb6fkpkg+oJdsDcu7yRFh3B0ZJvts24pJauGPzetVy6968\nIww2knFYZjSxOKwFhxQBryH3D8DafljhJIK6WXIFiu/OBpVIwV4WUEmcSmXK\ndh0J\r\n=YXWJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3CLMfWZWOC9T5o9hkqv3KxjWwuYS5+XcSjzDByYwEwgIhALkrukr/nfmVbZ/fbYRpC5ZL8XvMK9YOr8xE5375c+OJ"}]},"_npmUser":{"name":"axolo","email":"zergdo@gmail.com"},"directories":{},"maintainers":[{"name":"axolo","email":"zergdo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-amap_0.0.2_1624613003557_0.5312558763439756"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-29T11:04:56.405Z","0.0.1":"2021-05-29T11:04:56.610Z","modified":"2022-04-04T17:12:43.491Z","0.0.2":"2021-06-25T09:23:23.722Z"},"maintainers":[{"name":"axolo","email":"zergdo@gmail.com"}],"description":"AMap plugin for Egg.js.","homepage":"https://github.com/axolo/egg-amap#readme","keywords":["egg","eggPlugin","egg-plugin","amap","gaode","map"],"repository":{"type":"git","url":"git+https://github.com/axolo/egg-amap.git"},"author":{"name":"Yueming Fang"},"bugs":{"url":"https://github.com/axolo/egg-amap/issues"},"license":"MIT","readme":"# egg-amap\n\n[AMap WEB Service API] for Egg.js plugin.\n\n## Install\n\n```bash\nnpm i @axolo/egg-amap --save\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.amap = {\n  enable: true,\n  package: '@axolo/egg-amap',\n};\n```\n\n## Configuration\n\n```js\n// {app_root}/config/config.default.js\nconst axios = require('axios');\nexports.amap = {\n  // axios: axios.create({ baseURL: 'https://restapi.amap.com' }),\n  key: 'AMAP-APP-KEY',\n};\n```\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\n```js\n'use strict';\n\nconst Controller = require('egg').Controller;\n\nclass AmapController extends Controller {\n  async index() {\n    const { app, ctx } = this;\n    const amap = app.amap; // axios instance\n    const { keywords } = ctx.request.query;\n    // https://lbs.amap.com/api/webservice/guide/api/newpoisearch\n    const result = await amap.get('/v5/place/text', { params: { keywords } });\n    ctx.body = result?.data;\n  }\n}\n\nmodule.exports = AmapController;\n```\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/axolo/egg-amap/issues).\n\n## License\n\n[MIT](LICENSE)\n\n[AMap WEB Service API]: https://lbs.amap.com/api/webservice/summary\n","readmeFilename":"README.md"}