All Projects → pelias → Pelias Android Sdk

pelias / Pelias Android Sdk

Licence: other
Android sdk for pelias

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Pelias Android Sdk

Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+1630%)
Mutual labels:  search, location, geolocation, geocoding
Fccurrentlocationgeocoder
iOS Geocoder for forward geocode and reverse geocode user's current location using a block-based syntax. 📍🌍
Stars: ✭ 268 (+1240%)
Mutual labels:  location, geocoding, geocoder
Mapboxgeocoder.swift
Address search and reverse geocoding in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
Stars: ✭ 115 (+475%)
Mutual labels:  search, geocoding, geocoder
kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (+315%)
Mutual labels:  geocoding, location, geolocation
Fcipaddressgeocoder
iOS Geocoder for geocode device IP Address location using GeoIP service(s) and a block-based syntax. 💻🌍
Stars: ✭ 114 (+470%)
Mutual labels:  location, geocoding, geocoder
Placepicker
Free Android Map Place Picker alternative using Geocoder instead of Google APIs
Stars: ✭ 126 (+530%)
Mutual labels:  location, geocoder, android-development
Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (+925%)
Mutual labels:  location, geolocation, geocoder
Photon
an open source geocoder for openstreetmap data
Stars: ✭ 1,177 (+5785%)
Mutual labels:  search, geocoding, geocoder
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (+40%)
Mutual labels:  geocoding, geolocation, geocoder
React Native Amap Geolocation
React Native geolocation module for Android + iOS
Stars: ✭ 289 (+1345%)
Mutual labels:  location, geolocation
Rxgps
Finding current location cannot be easier on Android !
Stars: ✭ 307 (+1435%)
Mutual labels:  location, geocoding
Geopy
Geocoding library for Python.
Stars: ✭ 3,512 (+17460%)
Mutual labels:  geocoding, geocoder
Gisgraphy
geocoding and geolocalisation webservices for Geonames, Openstreetmap, Openaddresses, Tiger and quattroshapes data
Stars: ✭ 275 (+1275%)
Mutual labels:  geocoding, geocoder
React Native Baidumap Sdk
React Native BaiduMap SDK for Android + iOS
Stars: ✭ 309 (+1445%)
Mutual labels:  location, geolocation
Fmap
宇行地图:高仿高德地图Android客户端(持续更新中...)
Stars: ✭ 347 (+1635%)
Mutual labels:  search, location
simple-location
Adds Basic Location Support to Wordpress
Stars: ✭ 26 (+30%)
Mutual labels:  location, geolocation
Lost
A drop-in replacement for Google Play services location APIs for Android
Stars: ✭ 327 (+1535%)
Mutual labels:  location, android-development
Geo Golang
Go library to access geocoding and reverse geocoding APIs
Stars: ✭ 394 (+1870%)
Mutual labels:  geocoding, geocoder
React Native Geolocation
Geolocation APIs for React Native
Stars: ✭ 640 (+3100%)
Mutual labels:  location, geolocation
Leku
🌍 Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
Stars: ✭ 612 (+2960%)
Mutual labels:  location, geolocation

Pelias Android SDK

Android SDK for Pelias

Circle CI

Usage

Pelias Android SDK is a client-side Java wrapper for Pelias plus Android specific integrations.

Initialization

The Pelias class provides a simple interface to the Pelias geocoder which can be included in your application.

Pelias pelias = new Pelias();

Suggest

The suggest endpoint provides fast type-ahead autocomplete results.

pelias.suggest("term to search", lat, lon, Callback<Result>);

Search

The search endpoint provides locally and globally relevant full-text search results for addresses and POIs.

pelias.search("term to search", lat, lon, Callback<Result>);

Custom Endpoint

If you have deployed your own instance of Pelias you can set it on the class before initializing.

Pelias pelias = new Pelias("https://your-pelias-domain.com");

Testing

The current strategy for testing involves mocking the service instance using a Retrofit interface which describes the paths to the API.

package com.mapzen.android;

import org.mockito.Mockito;

public class TestPelias extends Pelias {
  public TestPelias(PeliasService service) {
    super(service);
  }
  
  private class TestPeliasService implements PeliasService {
    @Override public Call<Result> getSuggest(@Query("text") String query,
        @Query("focus.point.lat") double lat, @Query("focus.point.lon") double lon) {
      return new TestCall();
    }
    ..
  }
  
  private class TestCall implements Call<Result> {
    @Override public Response<Result> execute() throws IOException {
      return Response.success(new Result());
    }

    @Override public void enqueue(Callback<Result> callback) {
      callback.onResponse(null, Response.success(new Result()));
    }
  }
}

Install

Download Jar

Download the latest AAR.

Maven

Include dependency using Maven.

<dependency>
  <groupId>com.mapzen.android</groupId>
  <artifactId>pelias-android-sdk</artifactId>
  <version>1.3.1</version>
</dependency>

Gradle

Include dependency using Gradle.

compile 'com.mapzen.android:pelias-android-sdk:1.3.1'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].