{"id":25050935,"url":"https://github.com/memaev/androidplacepicker","last_synced_at":"2026-05-03T06:36:52.469Z","repository":{"id":223012402,"uuid":"758971177","full_name":"memaev/AndroidPlacePicker","owner":"memaev","description":"Simple android Maps Picker library based on Google Maps SDK","archived":false,"fork":false,"pushed_at":"2024-04-01T16:17:50.000Z","size":184,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T09:18:35.423Z","etag":null,"topics":["android","google","google-maps-api","kotlin","kotlin-android","library","location","location-services","maps"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/memaev.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}},"created_at":"2024-02-17T16:01:34.000Z","updated_at":"2024-10-10T09:28:40.000Z","dependencies_parsed_at":"2024-02-17T17:29:01.012Z","dependency_job_id":"ac261cea-618b-4ee9-a46f-8094fbc526ae","html_url":"https://github.com/memaev/AndroidPlacePicker","commit_stats":null,"previous_names":["memaev/androidplacepicker"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memaev%2FAndroidPlacePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memaev%2FAndroidPlacePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memaev%2FAndroidPlacePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memaev%2FAndroidPlacePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memaev","download_url":"https://codeload.github.com/memaev/AndroidPlacePicker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418699,"owners_count":20773935,"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","google","google-maps-api","kotlin","kotlin-android","library","location","location-services","maps"],"created_at":"2025-02-06T09:18:38.021Z","updated_at":"2026-05-03T06:36:47.447Z","avatar_url":"https://github.com/memaev.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Place Picker\n\n✅ This is the light-weight and simple for use place picker library for Android.\nWritten on Kotlin, using Jetpack Compose and Google Maps SDK.\n\n\u003e [!TIP]\n\u003e Library is still in development stage. Feel free to contribute 👨‍💻\n\n\n## Adding library to your project\nIn order to add library to your project you need to do the following:\n- Add `Jitpack` to your `settings.gradle`\n- Add dependency to your **app** level `build.gradle`\n- Add place picker activity to your `AndroidManifest.xml`\n\n### Adding jitpack\nTo your `settings.gradle.kts` add Jitpack import:\n\n***Kotlin DSL***\n``` \ndependencyResolutionManagement {\n    ...\n    repositories {\n        maven{ url = uri(\"https://jitpack.io\") }\n    }\n}\n```\n***Groovy***\n```\ndependencyResolutionManagement {\n    ...\n    repositories {\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n### Adding dependency to `build.gradle`\nAdd the following dependency to app module `build.gradle` file:\n\n***Kotlin DSL***\n```\ndependencies{\n    ...\n    implementation(\"com.github.memaev:AndroidPlacePicker: [current-version]\")\n}\n```\n\n***Groovy***\n```\ndependencies{\n    ...\n    implementation 'com.github.memaev:AndroidPlacePicker: [current-version]'\n}\n```\n\u003e [!NOTE]\n\u003e Replace [current-version] with the latest version of the library. You can view it in releases tab.\n\n\n### Add place picker activity to `AndroidManifest.xml`\nIn order to open new activity for place picking you need to mark it in your manifest file.\nTo do it go to **manifest -\u003e AndroidManifest.xml** and add new `activity` to your application:\n\n``` xml\n\u003capplication\n ... \u003e\n \n\u003cactivity android:name=\"dem.llc.placepicker.presentation.activity.PlacePickerActivity\" /\u003e\n\n\u003c/application\u003e\n```\n\n## How to use\n\u003e [!IMPORTANT]\n\u003e You need to get your Google Maps API key before, to use Place Picker!\n\u003e [How to get api key](https://developers.google.com/maps/documentation/android-sdk/get-api-key)\n\u003e [How to add api key to your project](https://developers.google.com/maps/documentation/android-sdk/secrets-gradle-plugin)\n\n1. Register activity result receiver in your activity:\n``` kotlin\nprivate val pickerActivityResult = registerForActivityResult(\n        ActivityResultContracts.StartActivityForResult()\n    ){result-\u003e\n        val address = result.data?.getParcelable\u003cLocation\u003e(LOCATION) // Location class is from library's sources\n        if (result.resultCode== RESULT_OK \u0026\u0026 address!=null){\n            // Access all information about the location\n            val name = address.name?:\"Default name\"\n            val latitude = address.latitude\n            val longitude = address.longitude\n        }else{\n            //Failed\n        }\n    }\n```\n2. Call PlacePicker intent builder, provide the Google Maps SDK API key, call build and provide context. Then start the intent with `pickerActivityResult` that was created before:\n``` kotlin\nval intent = PlacePicker.IntentBuilder()\n            .setApiKey(\"your-api-key\")\n            .build(this)\npickerActivityResult.launch(intent)\n```\n\n\u003e [!IMPORTANT]\n\u003eEnjoy using the library and add it to the favourites!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemaev%2Fandroidplacepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemaev%2Fandroidplacepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemaev%2Fandroidplacepicker/lists"}