{"id":21942028,"url":"https://github.com/malekkamel/rxlocation","last_synced_at":"2025-04-22T18:12:47.282Z","repository":{"id":90820940,"uuid":"146510853","full_name":"MalekKamel/RxLocation","owner":"MalekKamel","description":"RxJava wrapper for Android current location.","archived":false,"fork":false,"pushed_at":"2021-05-19T15:48:41.000Z","size":296,"stargazers_count":27,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T18:12:25.738Z","etag":null,"topics":["android","android-library","android-sdk","google-maps","gps","location","rxjava2"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"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":null,"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":"2018-08-28T21:52:29.000Z","updated_at":"2021-05-30T01:42:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"597aced1-194d-4788-9cd3-1273d14affaf","html_url":"https://github.com/MalekKamel/RxLocation","commit_stats":null,"previous_names":["malekkamel/rxlocation","shabankamell/rxlocation"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FRxLocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalekKamel","download_url":"https://codeload.github.com/MalekKamel/RxLocation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296172,"owners_count":21407037,"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":["android","android-library","android-sdk","google-maps","gps","location","rxjava2"],"created_at":"2024-11-29T03:16:14.504Z","updated_at":"2025-04-22T18:12:47.259Z","avatar_url":"https://github.com/MalekKamel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# RxLocation\n###  RxJava wrapper for Android location.\n\n![alt text](https://github.com/ShabanKamell/RxLocation/blob/master/blob/master/raw/mobile-location.png \"Sample App\")\n\n# Features\n\n - [ ] Easy-to-use APIs\n - [ ] Handle runtime.\n - [ ] Enable GPS.\n\n#### Gradle:\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ndependencies {\n        implementation 'com.github.ShabanKamell:RxLocation:x.y.z'\n}\n```\n(Please replace x, y and z with the latest version numbers: [![](https://jitpack.io/v/ShabanKamell/RxLocation.svg)](https://jitpack.io/#ShabanKamell/RxLocation)\n)\n\n\n# Usage\n```java\n new RxLocation()\n                .retrieveCurrentLocation(MainActivity.this)\n                .subscribe(location -\u003e {\n                            String msg = \"lat = \" +\n                                    location.getLatitude() +\n                                    \", lng = \" +\n                                    location.getLongitude();\n                            tv_location.setText(msg);\n                        }\n                );\n```\n## Listen For Location Updates\n```java\n     rxLocation.listenForUpdates(MainActivity.this)...\n```\n### Update Quality \nYou can set update quality by passing `UpdateQuality` object to the overloaded `listenForUpdates` function\n```java\nrxLocation.listenForUpdates(  \n        MainActivity.this,  \n        new UpdateQuality()  \n                .priority(LocationRequest.PRIORITY_HIGH_ACCURACY)  \n                .interval(10 * 1000)  \n                .fastestUpdateInterval(2 * 1000))\n```\n## Note\nCall `RxLocation.removeLocationUpdates()` to stop location updates when you don't need updates anymore.\n\n### Update Quality Defaults\n - [ ] priority default value = 0.\n - [ ] interval default value =  LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY.\n - [ ] fastestUpdateInterval default value = 2 * 1000.\n\n### See 'app' module for the full code.\n\n# License\n\n## Apache license 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Frxlocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalekkamel%2Frxlocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Frxlocation/lists"}