Back to project page reversegeo.
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.
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); } }