{"id":19330189,"url":"https://github.com/pelias/pelias-android-sdk","last_synced_at":"2026-03-08T21:35:29.211Z","repository":{"id":15609443,"uuid":"18345774","full_name":"pelias/pelias-android-sdk","owner":"pelias","description":"Android sdk for pelias","archived":false,"fork":false,"pushed_at":"2017-11-27T21:50:58.000Z","size":416,"stargazers_count":20,"open_issues_count":9,"forks_count":5,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-04-12T19:26:12.043Z","etag":null,"topics":["android","android-development","android-library","geocoder","geocoder-library","geocoding","geolocation","java","location","location-based","pelias","reverse-geocoding","search"],"latest_commit_sha":null,"homepage":"","language":"Java","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/pelias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-01T21:37:11.000Z","updated_at":"2023-07-10T05:27:07.000Z","dependencies_parsed_at":"2022-09-26T21:50:48.995Z","dependency_job_id":null,"html_url":"https://github.com/pelias/pelias-android-sdk","commit_stats":null,"previous_names":["mapzen/pelias-android-sdk"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-android-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-android-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-android-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelias%2Fpelias-android-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelias","download_url":"https://codeload.github.com/pelias/pelias-android-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250070143,"owners_count":21369832,"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-development","android-library","geocoder","geocoder-library","geocoding","geolocation","java","location","location-based","pelias","reverse-geocoding","search"],"created_at":"2024-11-10T02:34:37.172Z","updated_at":"2026-03-08T21:35:24.176Z","avatar_url":"https://github.com/pelias.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pelias Android SDK\n==================\n\nAndroid SDK for Pelias\n\n[![Circle CI](https://circleci.com/gh/pelias/pelias-android-sdk.svg?style=svg\u0026circle-token=6e6203a065375a8fb6fabb5a689c11dcd8fa78cf)](https://circleci.com/gh/pelias/pelias-android-sdk)\n\n## Usage\n\nPelias Android SDK is a client-side Java wrapper for Pelias plus Android specific integrations.\n\n### Initialization\n\nThe `Pelias` class provides a simple interface to the [Pelias geocoder](https://github.com/pelias/pelias) which can be included in your application.\n\n```java\nPelias pelias = new Pelias();\n```\n\n### Suggest\n\nThe suggest endpoint provides fast type-ahead autocomplete results.\n\n```java\npelias.suggest(\"term to search\", lat, lon, Callback\u003cResult\u003e);\n```\n\n### Search\n\nThe search endpoint provides locally and globally relevant full-text search results for addresses and POIs.\n\n```java\npelias.search(\"term to search\", lat, lon, Callback\u003cResult\u003e);\n```\n\n### Custom Endpoint\n\nIf you have [deployed your own instance of Pelias][2] you can set it on the class before initializing.\n\n```java\n\nPelias pelias = new Pelias(\"https://your-pelias-domain.com\");\n```\n\n### Testing\n\nThe current strategy for testing involves mocking the service instance using a [Retrofit](https://github.com/square/retrofit) interface which describes the paths to the API.\n\n```java\npackage com.mapzen.android;\n\nimport org.mockito.Mockito;\n\npublic class TestPelias extends Pelias {\n  public TestPelias(PeliasService service) {\n    super(service);\n  }\n  \n  private class TestPeliasService implements PeliasService {\n    @Override public Call\u003cResult\u003e getSuggest(@Query(\"text\") String query,\n        @Query(\"focus.point.lat\") double lat, @Query(\"focus.point.lon\") double lon) {\n      return new TestCall();\n    }\n    ..\n  }\n  \n  private class TestCall implements Call\u003cResult\u003e {\n    @Override public Response\u003cResult\u003e execute() throws IOException {\n      return Response.success(new Result());\n    }\n\n    @Override public void enqueue(Callback\u003cResult\u003e callback) {\n      callback.onResponse(null, Response.success(new Result()));\n    }\n  }\n}\n```\n\n## Install\n\n#### Download Jar\n\nDownload the [latest AAR][1].\n\n#### Maven\n\nInclude dependency using Maven.\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.mapzen.android\u003c/groupId\u003e\n  \u003cartifactId\u003epelias-android-sdk\u003c/artifactId\u003e\n  \u003cversion\u003e1.3.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n#### Gradle\n\nInclude dependency using Gradle.\n\n```groovy\ncompile 'com.mapzen.android:pelias-android-sdk:1.3.1'\n```\n\n[1]: http://search.maven.org/remotecontent?filepath=com/mapzen/android/pelias-android-sdk/1.3.1/pelias-android-sdk-1.3.1.aar\n[2]: https://github.com/pelias/pelias#how-can-i-install-my-own-instance-of-pelias\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelias%2Fpelias-android-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelias%2Fpelias-android-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelias%2Fpelias-android-sdk/lists"}