package com.example.cosmosclient.resources; import com.example.cosmosclient.entities.AreaInformation; import retrofit2.Call; import retrofit2.http.POST; import retrofit2.http.Field; import retrofit2.http.FormUrlEncoded; public interface LocationRest { @POST("location") @FormUrlEncoded Call<AreaInformation> LocationService(@Field("latitude") double lat, @Field("longitude") double lon); }