{"id":20156532,"url":"https://github.com/luccifer/locationcore","last_synced_at":"2025-03-03T02:11:51.663Z","repository":{"id":75897965,"uuid":"68511695","full_name":"Luccifer/LocationCore","owner":"Luccifer","description":"Working singleton for many projects with maximised  power of GPS module","archived":false,"fork":false,"pushed_at":"2017-09-01T20:39:01.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T12:49:01.131Z","etag":null,"topics":["cllocation","cllocationcoordinate2d","cllocationmanager","ios","singleton","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Luccifer.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":"2016-09-18T09:38:04.000Z","updated_at":"2017-09-01T20:39:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d706bc4-5aad-4d40-91ff-8fd4f0b9d73a","html_url":"https://github.com/Luccifer/LocationCore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luccifer%2FLocationCore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luccifer%2FLocationCore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luccifer%2FLocationCore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Luccifer%2FLocationCore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Luccifer","download_url":"https://codeload.github.com/Luccifer/LocationCore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241596276,"owners_count":19988044,"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":["cllocation","cllocationcoordinate2d","cllocationmanager","ios","singleton","swift"],"created_at":"2024-11-13T23:39:06.297Z","updated_at":"2025-03-03T02:11:51.637Z","avatar_url":"https://github.com/Luccifer.png","language":"Swift","readme":"# LocationCore\n\n![](https://img.shields.io/badge/swift-3.0-green.svg)\n![](https://img.shields.io/badge/platform-ios-gray.svg)\n\n\nWorking singleton for many projects with maximised power of GeoLocation\n\n\n# Installation\nSimply drag and drop the LocationCore.swift file to your project\n\n\n# Useful methods\n## Start and stop location updates\n\n\n```swift\n// to start location updates just use the following method\nLocation.core.startUpdating()\n```\n\n\n```swift\n// if you wanna to stop using location services\nLocation.core.stopUpdating()\n```\n\n\n## Region monitoring\n\n\n```swift\n// to start monitoring any area simply use\n Location.core.monitorNewRegion(_ region: CLCircularRegion)\n```\n\n\n```swift\n// and to stop monitoring them\n Location.core.stopMonitorRegion(_ region: CLCircularRegion)\n```\n\n\n## Other\n```swift\n// To get the actual accuracy of geo signal\nLocation.core.getLocationAccuracy() -\u003e String\n// Cases: \"No Signal\", \"Poor Signal\", \"Average Signal\", \"Full Signal\"\n// asuming the values of horizontalAccuracy in comparance with scheme:\n// \u003c0(No), \u003e163(Poor) and \u003e48(Average) and other values(Full)\n```\n\n## Change configuration and getting values\n\n\nTo change any values of CLLocationManager configuration you should address the core.manager:\n```swift\n// to change activityType\nLocation.core.manager.activityType = .fitness\n```\n\n\nOr if you want to get any values from working core:\n\n\n```swift\n// gettin' monitors you are monitoring and didn't removed from observation\nLocation.core.manager.monitoredRegions\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluccifer%2Flocationcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluccifer%2Flocationcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluccifer%2Flocationcore/lists"}