{"_id":"@antyper/strapi-plugin-location","_rev":"2-67ca94cc095f045497c24ef7cdd95d81","name":"@antyper/strapi-plugin-location","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@antyper/strapi-plugin-location","version":"0.0.1","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","keywords":["strapi","plugin","location"],"bugs":{"url":"https://github.com/notum-cz/strapi-plugin-location/issues"},"repository":{"type":"git","url":"git+https://github.com/notum-cz/strapi-plugin-location.git"},"license":"SEE LICENSE IN LICENSE","author":{"name":"Dominik Míček","email":"dominik.micek@notum.cz","url":"https://notum.cz/en/strapi"},"maintainers":[{"name":"antyper","email":"p.antyporowicz@gmail.com"}],"scripts":{"build":"tsc","clean":"rm -rf build","develop":"NODE_ENV=development tsc -p tsconfig.server.json -w","prepublish:latest":"npm run clean && npm run build && node build/setup-package.js","publish:latest":"cd build && npm publish --tag latest"},"dependencies":{"@strapi/database":"^4.20.0","@strapi/design-system":"^1.6.3","@strapi/helper-plugin":"^4.17.0","@strapi/icons":"^1.6.3","leaflet":"^1.9.4","prop-types":"^15.7.2","react-leaflet":"^4.2.1"},"devDependencies":{"@strapi/strapi":"^4.17.1","@strapi/typescript-utils":"^4.17.0","@types/leaflet":"^1.9.8","@types/react":"^18.2.48","@types/react-dom":"^18.2.18","@types/react-router-dom":"^5.3.3","@types/styled-components":"^5.1.26","react":"^18.2.0","react-dom":"^18.2.0","react-router-dom":"^5.3.4","styled-components":"^5.3.11","typescript":"5.3.3"},"peerDependencies":{"@strapi/strapi":"4.x"},"engines":{"node":">=14.19.1 <=20.x.x","npm":">=6.0.0"},"strapi":{"name":"location-plugin","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","kind":"plugin"},"_id":"@antyper/strapi-plugin-location@0.0.1","gitHead":"4dd3cade03ce3edcfcd46ddaf070e6bb0960b87e","homepage":"https://github.com/notum-cz/strapi-plugin-location#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-kdA5kQVhZ1YovSmUC6BVpgnsukimKn3pHnuFgOggM1xx0tyjVO+MdqDC7LIxEHcgmqoTgNXcCPJD1qiyjPRI/A==","shasum":"e57f706be5073bde533fa53a6c700d278b8d4023","tarball":"https://registry.npmjs.org/@antyper/strapi-plugin-location/-/strapi-plugin-location-0.0.1.tgz","fileCount":128,"unpackedSize":262018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCHwS7uLQ8Kdx1mzeQLfDZ20JdM9Gpu3M8CtRvisNHdA0CIHOXOvOmgQKvV3TW0b4+6V3yQ5xryuEe+vUpQ8VmdjoI"}]},"_npmUser":{"name":"antyper","email":"p.antyporowicz@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-location_0.0.1_1707856653492_0.6276487898031704"},"_hasShrinkwrap":false},"0.0.2":{"name":"@antyper/strapi-plugin-location","version":"0.0.2","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","keywords":["strapi","plugin","location"],"bugs":{"url":"https://github.com/notum-cz/strapi-plugin-location/issues"},"repository":{"type":"git","url":"git+https://github.com/notum-cz/strapi-plugin-location.git"},"license":"SEE LICENSE IN LICENSE","author":{"name":"Dominik Míček","email":"dominik.micek@notum.cz","url":"https://notum.cz/en/strapi"},"maintainers":[{"name":"antyper","email":"p.antyporowicz@gmail.com"}],"scripts":{"build":"tsc","clean":"rm -rf build","develop":"NODE_ENV=development tsc -p tsconfig.server.json -w","prepublish:latest":"npm run clean && npm run build && node build/setup-package.js","publish:latest":"cd build && npm publish --tag latest"},"dependencies":{"@strapi/database":"^4.20.0","@strapi/design-system":"^1.6.3","@strapi/helper-plugin":"^4.17.0","@strapi/icons":"^1.6.3","leaflet":"^1.9.4","prop-types":"^15.7.2","react-leaflet":"^4.2.1"},"devDependencies":{"@strapi/strapi":"^4.17.1","@strapi/typescript-utils":"^4.17.0","@types/leaflet":"^1.9.8","@types/react":"^18.2.48","@types/react-dom":"^18.2.18","@types/react-router-dom":"^5.3.3","@types/styled-components":"^5.1.26","react":"^18.2.0","react-dom":"^18.2.0","react-router-dom":"^5.3.4","styled-components":"^5.3.11","typescript":"5.3.3"},"peerDependencies":{"@strapi/strapi":"4.x"},"engines":{"node":">=14.19.1 <=20.x.x","npm":">=6.0.0"},"strapi":{"name":"location-plugin","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","kind":"plugin"},"_id":"@antyper/strapi-plugin-location@0.0.2","gitHead":"7419f7344743796ea5813012e082795ae1808e9b","homepage":"https://github.com/notum-cz/strapi-plugin-location#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-NWtxE5AHPW/9q63muX9w85d5HaEU/oWIwDLOaJvjucehugtz+l1A6gI3T9TvqePA04HGZj92zUKsyYffuJTjFQ==","shasum":"a4f05c02bdbc76b9f4d8bbe9b9ca24e1562410a2","tarball":"https://registry.npmjs.org/@antyper/strapi-plugin-location/-/strapi-plugin-location-0.0.2.tgz","fileCount":128,"unpackedSize":260569,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSIxA+5LCiyCmS1h/QccDlZZjZEQ6j+puc7vNsmmdsUAiAJqMlIYU4+8rPrPCR02BbDkOunGCCPAaIS2azN5vVzXQ=="}]},"_npmUser":{"name":"antyper","email":"p.antyporowicz@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-location_0.0.2_1707857055285_0.4027866394378883"},"_hasShrinkwrap":false},"0.0.3":{"name":"@antyper/strapi-plugin-location","version":"0.0.3","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","keywords":["strapi","plugin","location"],"bugs":{"url":"https://github.com/notum-cz/strapi-plugin-location/issues"},"repository":{"type":"git","url":"git+https://github.com/notum-cz/strapi-plugin-location.git"},"license":"SEE LICENSE IN LICENSE","author":{"name":"Dominik Míček","email":"dominik.micek@notum.cz","url":"https://notum.cz/en/strapi"},"maintainers":[{"name":"antyper","email":"p.antyporowicz@gmail.com"}],"scripts":{"build":"tsc","clean":"rm -rf build","develop":"NODE_ENV=development tsc -p tsconfig.server.json -w","prepublish:latest":"npm run clean && npm run build && node build/setup-package.js","publish:latest":"cd build && npm publish --tag latest"},"dependencies":{"@strapi/database":"^4.20.0","@strapi/design-system":"^1.6.3","@strapi/helper-plugin":"^4.17.0","@strapi/icons":"^1.6.3","leaflet":"^1.9.4","prop-types":"^15.7.2","react-leaflet":"^4.2.1"},"devDependencies":{"@strapi/strapi":"^4.17.1","@strapi/typescript-utils":"^4.17.0","@types/leaflet":"^1.9.8","@types/react":"^18.2.48","@types/react-dom":"^18.2.18","@types/react-router-dom":"^5.3.3","@types/styled-components":"^5.1.26","react":"^18.2.0","react-dom":"^18.2.0","react-router-dom":"^5.3.4","styled-components":"^5.3.11","typescript":"5.3.3"},"peerDependencies":{"@strapi/strapi":"4.x"},"engines":{"node":">=14.19.1 <=20.x.x","npm":">=6.0.0"},"strapi":{"name":"location-plugin","description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","kind":"plugin"},"_id":"@antyper/strapi-plugin-location@0.0.3","gitHead":"b313d249209f9f64ce2d7ce85bbc68ea71d52d50","homepage":"https://github.com/notum-cz/strapi-plugin-location#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-cNW5sMCWGXTmWV5aDnEZxgwulfweTQUI5dRD+h1thXojN4mez5maX89nLmbBVwlrMc8GeynrxttPp9rtuJ0poQ==","shasum":"a285344a299da5b33e7553b13efa7b8c631dcb87","tarball":"https://registry.npmjs.org/@antyper/strapi-plugin-location/-/strapi-plugin-location-0.0.3.tgz","fileCount":128,"unpackedSize":260561,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQrU9L4xGrzDAmnHXYTsp7lWq20ejllCHwiyDKCXlgYQIgbgqi3zbN0qeIcEEgxSEzOquN67RautlWNGlwY0AkFeQ="}]},"_npmUser":{"name":"antyper","email":"p.antyporowicz@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-location_0.0.3_1707913003874_0.07371738119645355"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-13T20:37:33.364Z","0.0.1":"2024-02-13T20:37:33.726Z","modified":"2024-02-14T12:16:44.224Z","0.0.2":"2024-02-13T20:44:15.486Z","0.0.3":"2024-02-14T12:16:44.063Z"},"maintainers":[{"name":"antyper","email":"p.antyporowicz@gmail.com"}],"description":"This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.","homepage":"https://github.com/notum-cz/strapi-plugin-location#readme","keywords":["strapi","plugin","location"],"repository":{"type":"git","url":"git+https://github.com/notum-cz/strapi-plugin-location.git"},"author":{"name":"Dominik Míček","email":"dominik.micek@notum.cz","url":"https://notum.cz/en/strapi"},"bugs":{"url":"https://github.com/notum-cz/strapi-plugin-location/issues"},"license":"SEE LICENSE IN LICENSE","readme":"# Strapi Plugin Location\n\nThis plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.\n\n## Caution 🖐⚠️\n\nThis plugin requires a PostgreSQL database with the PostGIS extension enabled (can be used on that database plugin will enable it for you if it can). Make sure you have a compatible database set up before using this plugin. For development I used postgis docker image from here: https://registry.hub.docker.com/r/postgis/postgis/\n\n⚠️ Filtering by data in relations is not supported.\n\n## 🙉 What does the plugin do for you?\n\n- ✅ Provides a custom location input field for latitude and longitude values\n- ✅ Display the location on a map and fine-tune it by moving a marker using drag-and-drop functionality, all without the need for a Google Maps API key.\n- ✅ Handles storage of location values as geometry types in a PostGIS database\n- ✅ Allows filtering of items based on their location\n- ✅ Enables searching for items with the same location or within a specified range\n\n## 🧑‍💻 Installation\n\n1. Install the package with your preferred package manager using one of the commands bellow:\n\n```\nnpm i @notum-cz/strapi-plugin-location\n```\n```\nyarn add @notum-cz/strapi-plugin-location\n```\n2. Create or modify file `config/plugins.js` and include the following code snippet:\n\n```\nmodule.exports = ({ env }) => ({\n\t\"location-plugin\": {\n\t\tenabled:  true,\n\t},\n});\n```\n3. run `npm build` or `yarn build` to get the plugin activated in the admin UI\n4. extend `config/middlewares.js` as shown in this example:\n\n```\nexport default [\n  \"strapi::errors\",\n  {\n    name: \"strapi::security\",\n    config: {\n      contentSecurityPolicy: {\n        useDefaults: true,\n        directives: {\n          \"connect-src\": [\"'self'\", \"https:\"],\n          \"img-src\": [\n            \"'self'\",\n            \"data:\",\n            \"blob:\",\n            \"https://market-assets.strapi.io\",\n            \"https://tile.openstreetmap.org\",\n            \"https://a.tile.openstreetmap.org\",\n            \"https://b.tile.openstreetmap.org\",\n            \"https://c.tile.openstreetmap.org\",\n          ],\n          \"media-src\": [\"'self'\", \"data:\", \"blob:\"],\n          upgradeInsecureRequests: null,\n        },\n      },\n    },\n  },\n  \"strapi::cors\",\n  \"strapi::poweredBy\",\n  \"strapi::logger\",\n  \"strapi::query\",\n  \"strapi::body\",\n  \"strapi::session\",\n  \"strapi::favicon\",\n  \"strapi::public\",\n];\n```\n## ⚙️ Usage\n - To use a custom input field for latitude and longitude go to the Content-type-builder of your application –> select a desired content-type -> click add another field -> select Cutstom tab -> name the field and hit the save button.\n - To search or filter items based on their location use url parameter `location` in the following formats.\n\nFor example for a content-type named *Restaurant* with a field *coords* containing the coordinates the url with the location query would be:\n\n`localhost:1337/api/restaurants?$location[coords]=49.200949303006055,16.623833585841673,5000`\n\nThis will return a list of restaurants within 5000m of the point specified by the coordinates. **Replace the collection name *restaurant* and the field name *coords* with the name of your collection name and the field containing the coordinates**. The last number (5000) is range and is not required.\nAlso this format is supported:\n\n`localhost:1337/api/restaurants?$location[coords][lat]=49.200949303006055&$location[coords][lng]=16.623833585841673`\n\n## 🛣️ Road map\nAre any of these features significant to you? Please show your support by giving a thumbs up on the linked issues. This will help us assess their priority on the roadmap.\n### Q4 2023\n- ✨ [Geolocation shape field](https://github.com/notum-cz/strapi-plugin-location/issues/44)\n- ✨ [MySQL support](https://github.com/notum-cz/strapi-plugin-location/issues/31)\n### Q1 2024 \n- ✨ [GraphQL support](https://github.com/notum-cz/strapi-plugin-location/issues/46)\n- ✨ [Reverse geocoding](https://github.com/notum-cz/strapi-plugin-location/issues/45)\n  \n## 🐛 Bugs\n\nWe manage bugs through [GitHub Issues](https://github.com/notum-cz/strapi-plugin-location/issues). <br>\nIf you're interested in helping us, you would be a rock  ⭐.\n\n## 🧔 Authors\n\nThe main star: **Dominik Míček** https://github.com/Ballonek <br>\nMaintainer: **Ondřej Mikulčík** https://github.com/omikulcik <br>\nProject owner: **Ondřej Janošík** <br>\n\nWanna be here? Open an issue (and solve it), PR or share improvement idea and you will become a listed contributor.\n\n## 💬 Community\n\nJoin our [Discord server](https://discord.gg/hZRCcfWq) to discuss new features, implementation challenges or anything related to this plugin.  \n\n## 🚀 Created with passion by [Notum Technologies](https://notum.cz/en)\n\n- Official STRAPI partner and Czech based custom development agency.\n- We're passionate about sharing our expertise with the open source community, which is why we developed this plugin. 🖤\n\n## 🎯 [How can Notum help you with your STRAPI project?](https://notum.cz/en/strapi/)\n\n✔️ We offer valuable assistance in developing custom STRAPI, web, and mobile apps to fulfill your requirements and goals.. <br>\n✔️ With a track record of 100+ projects, our open communication and exceptional project management skills provide us with the necessary tools to get your project across the finish line.<br>\n📅 To initiate a discussion about your Strapi project, feel free to reach out to us via email at sales@notum.cz. We're here to assist you!\n","readmeFilename":"README.md"}