Created
January 22, 2018 02:08
-
-
Save griajobag/2096951d39f6792e153fb8482601d707 to your computer and use it in GitHub Desktop.
maps duration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package putuguna.com.mapsnomatrix; | |
import retrofit.Call; | |
import retrofit.http.GET; | |
import retrofit.http.Query; | |
/** | |
* Created by putuguna on 1/27/2016. | |
*/ | |
public interface ApiService { | |
/* @GET("api/gateways") | |
public Call<DataResponse> getAllData(); | |
@GET("api/gateways") | |
public Call<DataResponse> getListData(@Query("api_key") String api_key);*/ | |
@GET("/maps/api/distancematrix/json") | |
public Call<Data> getDirection(@Query("origin") String origin, @Query("destination") String destination); | |
@GET("/maps/api/directions/json") | |
public Call<DirectionResultsModel> getDistanceAndDuration(@Query("origin") String origin, @Query("destination") String destination, @Query("sensor") String sensor, @Query("mode") String mode, @Query("alternatives") String alternatives); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment