Created
February 3, 2026 09:50
-
-
Save ptrcnull/c967aec327ca3c63560049a8974f4bd8 to your computer and use it in GitHub Desktop.
GMV SaeBus API (partial)
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
| @URL("/SaeBus.IIS.AppsApi/Datos") | |
| public interface SaeDatosServiceApi { | |
| @POST("GetLines") | |
| Call<List<SaeLine>> linesList(@Body GetLinesRequest getLinesRequest); | |
| @POST("GetMunicipalities") | |
| Call<List<SaeMunicipality>> municipalitiesList(@Body BaseRequest baseRequest); | |
| @POST("GetZeroTime") | |
| Call<String> nextRestartTime(@Body BaseRequest baseRequest); | |
| @POST("GetOperators") | |
| Call<List<SaeOperator>> operatorsList(@Body BaseRequest baseRequest); | |
| @POST("GetProvinces") | |
| Call<List<SaeProvince>> provincesList(@Body BaseRequest baseRequest); | |
| @POST("GetRouteStops") | |
| Call<List<SaeRouteStop>> routeStopList(@Body GetRouteStopsRequest getRouteStopsRequest); | |
| @POST("GetRoutes") | |
| Call<List<SaeRoute>> routesList(@Body GetRoutesRequest getRoutesRequest); | |
| @GET("TimeStamp") | |
| Call<String> saeTimeStamp(); | |
| @POST("GetStops") | |
| Call<List<SaeStop>> stopsList(@Body GetStopsRequest getStopsRequest); | |
| @POST("GetTrips") | |
| Call<List<SaeTrip>> trips(@Body GetTripsRequest getTripsRequest); | |
| @POST("GetTrips") | |
| Observable<List<SaeTrip>> tripsObservable(@Body GetTripsRequest getTripsRequest); | |
| @POST("GetTopologyVersion") | |
| Call<SaeVersion> versions(@Body BaseRequest baseRequest); | |
| } | |
| @URL("/SaeBus.IIS.AppsApi/Dispatcher") | |
| public interface SaeDispatcherServiceApi { | |
| @POST("GetCartography") | |
| Call<List<SaeCartography>> allCartography(@Body BaseRequest baseRequest); | |
| @POST("GetEstimations") | |
| Call<List<SaeArrivalTime>> arrivalTimes(@Body GetEstimationsRequest getEstimationsRequest); | |
| @POST("GetEstimationsTR") | |
| Call<List<SaeArrivalTime>> arrivalTimesTR(@Body GetEstimationsTRRequest getEstimationsTRRequest); | |
| @POST("GetRouteCartography") | |
| Observable<List<SaePoint>> routeCartographyObservable(@Body GetRouteCartographyRequest getRouteCartographyRequest); | |
| @POST("GetVehiclePositionsByLineRoute") | |
| Observable<List<SaeVehiclePositionsRoute>> vehiclePositionsMapObservable(@Body GetVehiclePositionsRequest getVehiclePositionsRequest); | |
| } | |
| public class GetRouteStopsRequest extends BaseRequest { | |
| private final int iIdLine; | |
| private final int iIdOperator; | |
| public GetRouteStopsRequest(String str, String str2, int i, int i2) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.iIdLine = i2; | |
| this.iIdOperator = i; | |
| } | |
| } | |
| public class GetRoutesRequest extends BaseRequest { | |
| private final int iIdLine; | |
| private final int iIdOperator; | |
| public GetRoutesRequest(String str, String str2, int i, int i2, String str3) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.sCulture = str3; | |
| this.iIdLine = i2; | |
| this.iIdOperator = i; | |
| } | |
| } | |
| public class GetStopsRequest extends BaseRequest { | |
| private final int iIdLine; | |
| private final int iIdOperator; | |
| public GetStopsRequest(String str, String str2, int i, int i2, String str3) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.sCulture = str3; | |
| this.iIdLine = i2; | |
| this.iIdOperator = i; | |
| } | |
| } | |
| public class GetTripsRequest extends BaseRequest { | |
| private final int iIdLine; | |
| private final String sDate; | |
| public GetTripsRequest(String str, String str2, String str3, int i) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.sDate = str3; | |
| this.iIdLine = i; | |
| } | |
| } | |
| public class GetEstimationsRequest extends BaseRequest { | |
| private final int iIdStop; | |
| public GetEstimationsRequest(String str, String str2, int i) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.iIdStop = i; | |
| } | |
| } | |
| public class GetEstimationsTRRequest extends BaseRequest { | |
| private final int iIdStop; | |
| private final int iMinLimit; | |
| public GetEstimationsTRRequest(String str, String str2, int i, int i2) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.iIdStop = i; | |
| this.iMinLimit = i2; | |
| } | |
| } | |
| public class GetRouteCartographyRequest extends BaseRequest { | |
| private final long iIdLineRoute; | |
| public GetRouteCartographyRequest(String str, String str2, long j) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.iIdLineRoute = j; | |
| } | |
| } | |
| public class GetVehiclePositionsRequest extends BaseRequest { | |
| private final List<Integer> IdsLineRoute; | |
| public GetVehiclePositionsRequest(String str, String str2, List<Integer> list) { | |
| this.k1 = str; | |
| this.k2 = str2; | |
| this.IdsLineRoute = list; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment