diff --git a/app/src/main/java/com/example/cosmosclient/resources/LocationRest.java b/app/src/main/java/com/example/cosmosclient/resources/LocationRest.java new file mode 100644 index 0000000..43de065 --- /dev/null +++ b/app/src/main/java/com/example/cosmosclient/resources/LocationRest.java @@ -0,0 +1,17 @@ +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 LocationService(@Field("latitude") double lat, + @Field("longitude") double lon); +}