{"id":31673238,"url":"https://github.com/reelyactive/repositioned","last_synced_at":"2026-01-20T16:55:06.619Z","repository":{"id":315469307,"uuid":"1059430789","full_name":"reelyactive/repositioned","owner":"reelyactive","description":"Convert positions from one coordinate system to another.  We believe in an open Internet of Things.","archived":false,"fork":false,"pushed_at":"2025-09-19T01:44:16.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-20T22:21:29.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reelyactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-18T12:40:42.000Z","updated_at":"2025-09-19T01:44:19.000Z","dependencies_parsed_at":"2025-09-20T22:21:34.327Z","dependency_job_id":"9e2c0caa-47ba-4c3b-b196-865a6654f2d9","html_url":"https://github.com/reelyactive/repositioned","commit_stats":null,"previous_names":["reelyactive/reposition","reelyactive/repositioned"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/reelyactive/repositioned","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Frepositioned","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Frepositioned/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Frepositioned/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Frepositioned/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reelyactive","download_url":"https://codeload.github.com/reelyactive/repositioned/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reelyactive%2Frepositioned/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886174,"owners_count":26062972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-08T03:37:11.114Z","updated_at":"2025-10-08T03:37:12.011Z","avatar_url":"https://github.com/reelyactive.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"repositioned\n============\n\nConvert positions from one coordinate system to another.  Currently supports the conversion of a __customOffset__ coordinate system to __WGS84__.\n\n\nHello repositioned!\n-------------------\n\n```javascript\nconst repositioned = require('repositioned');\n\n// The coordinate system has its origin at 73.57123°W, 45.50883°N\n//   and uses feet as a unit of measurement\nconst COORDINATE_SYSTEM = {\n    type: \"customOrigin\",\n    originOffset: [ -73.57123, 45.50883, 0 ],\n    measurementUnits: [ 'ft', 'ft', 'ft' ]\n};\n\n// This is the position in the customOrigin coordinate system\nlet position = [ -2240.450648739, 4071.88290589, 32.8084 ];\n\n// This is the position converted to WGS84\nlet convertedPosition = repositioned.toWGS84(position, COORDINATE_SYSTEM);\n\nconsole.log(convertedPosition);\n```\n\nWhich should yield `[ -73.58, 45.52, 10 ]`.\n\n\nCoordinate Systems\n------------------\n\n### customOrigin\n\nA __customOrigin__ coordinate system uses an origin _other than_ 0° longitude, 0° latitude and measurements in standard units of a given type in each axis.\n\n    {\n      originOffset: [ -73.57123, 45.50883, 50 ],\n      measurementUnits: [ 'deg', 'deg', 'm' ],\n      horizontalPlaneRotation: 0\n    }\n\nAt present, the `originOffset` coordinate system is assumed to be WGS84.  In future, an additional property may be added to specify this coordinate system.\n\n\nContributing\n------------\n\nDiscover [how to contribute](CONTRIBUTING.md) to this open source project which upholds a standard [code of conduct](CODE_OF_CONDUCT.md).\n\n\nSecurity\n--------\n\nConsult our [security policy](SECURITY.md) for best practices using this open source software and to report vulnerabilities.\n\n\nLicense\n-------\n\nMIT License\n\nCopyright (c) 2025 [reelyActive](https://www.reelyactive.com)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, \nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN \nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Frepositioned","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freelyactive%2Frepositioned","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freelyactive%2Frepositioned/lists"}