{"id":16739445,"url":"https://github.com/williamfalcon/wflocationservice","last_synced_at":"2025-10-15T19:33:29.215Z","repository":{"id":33896218,"uuid":"37609981","full_name":"williamFalcon/WFLocationService","owner":"williamFalcon","description":"Simplest Location Service for iOS. In Swift","archived":false,"fork":false,"pushed_at":"2016-02-22T16:41:54.000Z","size":14,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T11:47:42.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"alsotang/node-lessons","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamFalcon.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}},"created_at":"2015-06-17T17:28:57.000Z","updated_at":"2022-05-31T23:05:10.000Z","dependencies_parsed_at":"2022-07-13T15:31:10.839Z","dependency_job_id":null,"html_url":"https://github.com/williamFalcon/WFLocationService","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/williamFalcon%2FWFLocationService","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FWFLocationService/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FWFLocationService/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamFalcon%2FWFLocationService/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamFalcon","download_url":"https://codeload.github.com/williamFalcon/WFLocationService/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801611,"owners_count":20350106,"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":[],"created_at":"2024-10-13T00:51:11.306Z","updated_at":"2025-10-15T19:33:24.163Z","avatar_url":"https://github.com/williamFalcon.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"#WFLocationService    \r\nSimplest way to get a user's location on iOS.   \r\nWritten 100% in Swift   \r\n\r\n##To Use\r\n1. Include the [WFLocationService] (https://github.com/williamFalcon/WFLocationService/tree/master/WFLocationService) folder in your app. (Cocoapods coming soon).      \r\n2. Add the [NSLocationWhenInUseUsageDescription] (https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html) or [NSLocationAlwaysUsageDescription] (https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html) key to your info.plist   \r\n\r\n###Get a location    \r\n- Calling this method requests location services authorization then handles result accordingly.    \r\n- Will be called multiple times if a more accurate location is found.   \r\n````swift\r\nLocationService.getCurrentLocationWithProgress({ (latitude, longitude, accuracy, locationObj) -\u003e () in\r\n    //Called when a better location is available (could be multiple times)\r\n    \r\n    }, onComplete: { (latitude, longitude, accuracy) -\u003e () in\r\n        //Called when update timer expires\r\n        \r\n    }) { (error) -\u003e () in\r\n        //Called on failure\r\n}\r\n````    \r\n\r\n###Change Location Accuracy  \r\nDefault is 30 meters. Change with the following code:   \r\n````swift\r\nvar newAccuracy : Double = 10.0\r\nLocationService.setLocationAccuracy(meters: newAccuracy)\r\n````  \r\n    \r\n###Change How long LocationService looks for new locations  \r\nDefault is 10 seconds. Change with the following code:   \r\n````swift\r\nvar stopUpdatesTimeInSeconds : Double = 5.0\r\nLocationService.setLocationUpdateTimeLimit(seconds: stopUpdatesTimeInSeconds)\r\n```` \r\n###User Location Authorization    \r\nIt will request authorization automatically. It will handle the authorization result accordingly.        \r\n\r\n####Author    \r\nWilliam Falcon. will@hacstudios.com    \r\nFeel free to contact me for iOS development inquiries.    \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfalcon%2Fwflocationservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamfalcon%2Fwflocationservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfalcon%2Fwflocationservice/lists"}