{"id":16974850,"url":"https://github.com/woheller69/photondialog","last_synced_at":"2026-04-17T12:31:31.898Z","repository":{"id":62630107,"uuid":"560868640","full_name":"woheller69/PhotonDialog","owner":"woheller69","description":"Android DialogFragment for search via Photon API","archived":false,"fork":false,"pushed_at":"2023-10-12T08:56:51.000Z","size":297,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T20:47:05.596Z","etag":null,"topics":["android-library","elasticsearch","geocoding","java","openstreetmap","photon"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woheller69.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":"2022-11-02T12:57:46.000Z","updated_at":"2022-11-04T11:49:34.000Z","dependencies_parsed_at":"2023-10-12T19:24:37.798Z","dependency_job_id":null,"html_url":"https://github.com/woheller69/PhotonDialog","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/woheller69/PhotonDialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woheller69%2FPhotonDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woheller69%2FPhotonDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woheller69%2FPhotonDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woheller69%2FPhotonDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woheller69","download_url":"https://codeload.github.com/woheller69/PhotonDialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woheller69%2FPhotonDialog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31929503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T10:35:34.458Z","status":"ssl_error","status_checked_at":"2026-04-17T10:35:09.472Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-library","elasticsearch","geocoding","java","openstreetmap","photon"],"created_at":"2024-10-14T01:08:27.054Z","updated_at":"2026-04-17T12:31:31.859Z","avatar_url":"https://github.com/woheller69.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PhotonDialog\n\n### Overview\n\nThis library contains an Android DialogFragment for search-as-you-type via the photon geocoding API.\n(see https://github.com/komoot/photon and https://photon.komoot.io/)\nYou can type an address and get the coordinates back. The result will be shown on a map.\n\n\u003cimg src=\"PhotonDialog.png\" width=\"150\"/\u003e \n\n\n### Installation\n\nAdd the JitPack repository to your root build.gradle at the end of repositories:\n\n```gradle\nallprojects {\n  repositories {\n    ...\n    maven { url 'https://jitpack.io' }\n  }\n}\n```\n\nAdd the library dependency to your build.gradle file.\n\n```gradle\ndependencies {\n    implementation 'com.github.woheller69:PhotonDialog:V1.5'\n}\n```\n\n### Usage\n\nLet your activity implement PhotonDialog.PhotonDialogResult\n\n```\n        public class MainActivity extends AppCompatActivity implements PhotonDialog.PhotonDialogResult\n\n```\n\nand override onPhotonDialogResult, where you define what to do with the result \n\n```\n    @Override\n    public void onPhotonDialogResult(City city) {\n\n    String cityName = city.getCityName();\n    String countryCode = city.getCountryCode();\n    float lon = city.getLongitude();\n    float lat = city.getLatitude();\n    \n    // do what you need to do\n    \n    }\n```\n\nOpen a search dialog:\n\n```\n        FragmentManager fragmentManager = getSupportFragmentManager();\n        PhotonDialog photonDialog = new PhotonDialog();\n        photonDialog.setTitle(\"Search\");\n        photonDialog.setNegativeButtonText(\"Cancel\");\n        photonDialog.setPositiveButtonText(\"Select\");\n        \n        //Optional: Define countries. Otherwise locations in all countries are shown\n        ArrayList\u003cString\u003e countryList = new ArrayList\u003c\u003e();\n        countryList.add(\"DE\");\n        countryList.add(\"AT\");\n        photonDialog.setCountryList(countryList);\n        \n        //Optional: Define User-Agent\n        photonDialog.setUserAgentString(BuildConfig.APPLICATION_ID+\"/\"+BuildConfig.VERSION_NAME);\n        \n        photonDialog.show(fragmentManager, \"\");\n        getSupportFragmentManager().executePendingTransactions();\n        photonDialog.getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n```\n\n### License\n\nThis library is licensed under the GPLv3.\n\nThe library uses:\n- Leaflet which is licensed under the very permissive \u003ca href='https://github.com/Leaflet/Leaflet/blob/master/FAQ.md'\u003e2-clause BSD License\u003c/a\u003e\n- Map data from OpenStreetMap, licensed under the Open Data Commons Open Database License (ODbL) by the OpenStreetMap Foundation (OSMF) (https://www.openstreetmap.org/copyright)\n- Search-as-you-type location search is provided by [photon API](https://photon.komoot.io), based on OpenStreetMap. See also (https://github.com/komoot/photon)\n- Android Volley (com.android.volley) (https://github.com/google/volley) which is licensed under \u003ca href='https://github.com/google/volley/blob/master/LICENSE'\u003eApache License Version 2.0\u003c/a\u003e\n- AndroidX libraries (https://github.com/androidx/androidx) which is licensed under \u003ca href='https://github.com/androidx/androidx/blob/androidx-main/LICENSE.txt'\u003eApache License Version 2.0\u003c/a\u003e\n- AutoSuggestTextViewAPICall (https://github.com/Truiton/AutoSuggestTextViewAPICall) which is licensed under \u003ca href='https://github.com/Truiton/AutoSuggestTextViewAPICall/blob/master/LICENSE'\u003eApache License Version 2.0\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoheller69%2Fphotondialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoheller69%2Fphotondialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoheller69%2Fphotondialog/lists"}