{"id":18046331,"url":"https://github.com/csanfilippo/swift-sgp4","last_synced_at":"2025-04-10T04:42:36.488Z","repository":{"id":63907265,"uuid":"509991707","full_name":"csanfilippo/swift-sgp4","owner":"csanfilippo","description":"A Swift package to compute satellite positions from two-line elements (TLE).","archived":false,"fork":false,"pushed_at":"2023-05-04T18:00:24.000Z","size":66,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-20T23:07:52.547Z","etag":null,"topics":["satellite-prediction","satellite-tracking","sgp4","spm","swift","tle"],"latest_commit_sha":null,"homepage":"","language":"C++","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/csanfilippo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-03T10:32:44.000Z","updated_at":"2024-05-17T03:04:03.000Z","dependencies_parsed_at":"2024-10-30T19:17:52.243Z","dependency_job_id":null,"html_url":"https://github.com/csanfilippo/swift-sgp4","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"cbc9a67b1851541d939b0106e003d85c7257ce63"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csanfilippo%2Fswift-sgp4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csanfilippo%2Fswift-sgp4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csanfilippo%2Fswift-sgp4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csanfilippo%2Fswift-sgp4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csanfilippo","download_url":"https://codeload.github.com/csanfilippo/swift-sgp4/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161229,"owners_count":21057552,"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","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":["satellite-prediction","satellite-tracking","sgp4","spm","swift","tle"],"created_at":"2024-10-30T19:06:53.596Z","updated_at":"2025-04-10T04:42:36.464Z","avatar_url":"https://github.com/csanfilippo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-sgp4\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fcsanfilippo%2Fswift-sgp4%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/csanfilippo/swift-sgp4)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fcsanfilippo%2Fswift-sgp4%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/csanfilippo/swift-sgp4)\n\nA Swift package to compute satellite positions from two-line elements (TLE), wrapping the [sgp4lib](https://www.danrw.com/sgp4/) library (by Daniel Warner)\n\n\n## Usage\n\n```swift\nimport SGPKit\n\nlet title = \"ISS (ZARYA)\"\nlet firstLine = \"1 25544U 98067A   13165.59097222  .00004759  00000-0  88814-4 0    47\"\nlet secondLine = \"2 25544  51.6478 121.2152 0011003  68.5125 263.9959 15.50783143834295\"\n\n// Instantiate a new TLE descriptor\nlet tle = TLE(title: title, firstLine: firstLine, secondLine: secondLine)\n\n// Instantiate the interpreter\nlet interpreter = TLEInterpreter()\n\n// Obtain the data\nlet data: SatelliteData = interpreter.satelliteData(from: tle, date: .now)\n\nprint(data.latitude)\nprint(data.longitude)\nprint(data.altitude)\nprint(data.speed)\n```\n\n## Installation\n\n### Swift Package Manager\n\nIf you want to use SGPKit in any other project that uses [SwiftPM](https://swift.org/package-manager/), add the package as a dependency in `Package.swift`:\n\n```swift\ndependencies: [\n  .package(\n    url: \"https://github.com/csanfilippo/swift-sgp4\",\n    from: \"1.2.0\"\n  ),\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsanfilippo%2Fswift-sgp4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsanfilippo%2Fswift-sgp4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsanfilippo%2Fswift-sgp4/lists"}