Android Open Source - reversegeo Base Service






From Project

Back to project page reversegeo.

License

The source code is released under:

MIT License

If you think the Android project reversegeo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.zwenexsys.reverse;
/*from ww w.  j a  v a2s  .c  o m*/
import com.squareup.okhttp.OkHttpClient;
import retrofit.client.OkClient;

/**
 * Created by Ye Lin Aung on 14/11/07.
 */
public class BaseService {

  private static final String BASE_URL = "http://maps.googleapis.com/maps/api/geocode/";
  private static OkHttpClient okHttpClient = new OkHttpClient();

  public BaseService() {
  }

  public static AsyncMapService buildMapsAsync() {
    return new retrofit.RestAdapter.Builder().setEndpoint(BASE_URL)
        .setClient(new OkClient(okHttpClient))
        .setLogLevel(retrofit.RestAdapter.LogLevel.BASIC)
        .build()
        .create(AsyncMapService.class);
  }

  public static SyncMapService buildMapsSync() {
    return new retrofit.RestAdapter.Builder().setEndpoint(BASE_URL)
        .setClient(new OkClient(okHttpClient))
        .build()
        .create(SyncMapService.class);
  }
}




Java Source Code List

com.yelinaung.reverse.ApplicationTest.java
com.zwenexsys.reverse.AsyncMapService.java
com.zwenexsys.reverse.BaseService.java
com.zwenexsys.reverse.ReverseGeo.java
com.zwenexsys.reverse.SyncMapService.java
com.zwenexsys.reverse.models.AddressComponent.java
com.zwenexsys.reverse.models.Bounds.java
com.zwenexsys.reverse.models.Geometry.java
com.zwenexsys.reverse.models.Location.java
com.zwenexsys.reverse.models.Maps.java
com.zwenexsys.reverse.models.Northeast.java
com.zwenexsys.reverse.models.Northeast_.java
com.zwenexsys.reverse.models.Result.java
com.zwenexsys.reverse.models.Southwest.java
com.zwenexsys.reverse.models.Southwest_.java
com.zwenexsys.reverse.models.Viewport.java
com.zwenexsys.reversegeo.ApplicationTest.java
com.zwenexsys.reversegeo.sample.MainActivity.java