{"id":21942013,"url":"https://github.com/malekkamel/rxlocation-ios","last_synced_at":"2025-03-22T15:25:11.253Z","repository":{"id":62453227,"uuid":"191465453","full_name":"MalekKamel/RxLocation-iOS","owner":"MalekKamel","description":"An RX wrapper for iOS location","archived":false,"fork":false,"pushed_at":"2019-06-14T12:51:26.000Z","size":256,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T02:36:18.943Z","etag":null,"topics":["cllocationmanager","ios","location","swift","xcode"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MalekKamel.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":"2019-06-11T23:44:27.000Z","updated_at":"2021-05-30T01:42:03.000Z","dependencies_parsed_at":"2022-11-01T23:46:34.524Z","dependency_job_id":null,"html_url":"https://github.com/MalekKamel/RxLocation-iOS","commit_stats":null,"previous_names":["malekkamel/rxlocation-ios","shabankamell/rxlocation-ios"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalekKamel","download_url":"https://codeload.github.com/MalekKamel/RxLocation-iOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244976032,"owners_count":20541402,"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":["cllocationmanager","ios","location","swift","xcode"],"created_at":"2024-11-29T03:16:11.417Z","updated_at":"2025-03-22T15:25:11.233Z","avatar_url":"https://github.com/MalekKamel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxLocation\n\nAn RX wrapper for iOS location. It's simple and powerful.\n\n\u003c!---\n[![CI Status](https://img.shields.io/travis/ShabanKamell/RxLocation.svg?style=flat)](https://travis-ci.org/ShabanKamell/RxLocation-iOS))\n--\u003e\n[![Version](https://img.shields.io/cocoapods/v/RxLocation.svg?style=flat)](https://cocoapods.org/pods/RxLocation)\n[![License](https://img.shields.io/cocoapods/l/RxLocation.svg?style=flat)](https://cocoapods.org/pods/RxLocation)\n[![Platform](https://img.shields.io/cocoapods/p/RxLocation.svg?style=flat)](https://cocoapods.org/pods/RxLocation)\n\n## Usage\n#### Choose a persmission\nChoose `authorizeWhenInUse` or `authorizeAlways` for permission.\n\n```swift\nvar rxLocation = RxLocation(authorization: .authorizeAlways)\n```\n\n#### Current Location\n\n```swift\nvar rxLocation = RxLocation(authorization: .authorizeAlways)\n\n   rxLocation.requestCurrentLocation()\n      .subscribe(onNext: { location in\n          print(location)\n       })\n```\n\n#### Location Updates\n\n```swift\n\n  rxLocation.requestLocationUpdates()\n      .subscribe(onNext: { locations in\n          print(locations[0])\n       })\n```\n\n#### Stop Updates\nTo stop updates in case of using `rxLocation.requestLocationUpdates()`\n```swift\n  rxLocation.stopLocationUpdates()\n\n```\n\n#### Location Manager Options\nYou can set any options for CLLocationManager, for example:\n\n```swift\n  rxLocation.locationManager.showsBackgroundLocationIndicator = true\n\n```\n\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nRxLocation is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'RxLocation'\n```\n\n## Author\n\nShabanKamell, sh3ban.kamel@gmail.com\n\n## License\n\nRxLocation is available under the Apache license v2.0. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Frxlocation-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalekkamel%2Frxlocation-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Frxlocation-ios/lists"}