4
Actualización y GET mediante parámetros
Estoy intentando enviar una solicitud a la API de Google GeoCode mediante Retrofit. La interfaz de servicio se ve así: public interface FooService { @GET("/maps/api/geocode/json?address={zipcode}&sensor=false") void getPositionByZip(@Path("zipcode") int zipcode, Callback<String> cb); } Cuando llamo al servicio: OkHttpClient okHttpClient = new OkHttpClient(); RestAdapter restAdapter = new RestAdapter.Builder().setEndpoint(Constants.GOOGLE_GEOCODE_URL).setClient(new OkClient(okHttpClient)).build(); FooService service = …