-
public interface SncfOpenDataApi
-
-
Method Summary
Modifier and Type Method Description abstract Call<PlacesResponse>places(@Query(value = "q") String query)abstract Call<PlacesNearbyResponse>placesNearby(@Path(value = "id") String id)abstract Call<JourneysResponse>journeys(@Query(value = "from") String from, @Query(value = "to") String to, @Query(value = "datetime") String datetime)abstract Call<DeparturesResponse>departures(@Path(value = "stopId") String stopId, @Query(value = "from_datetime") String datetime)abstract Call<ArrivalsResponse>arrivals(@Path(value = "stopId") String stopId, @Query(value = "from_datetime") String datetime)abstract Call<VehicleJourneysResponse>vehicleJourneys(@Path(value = "vehicleId") String vehicleId)-
-
Method Detail
-
places
@GET(value = "places") abstract Call<PlacesResponse> places(@Query(value = "q") String query)
-
placesNearby
@GET(value = "places/{id}/places_nearby?distance=10000&type=stop_area") abstract Call<PlacesNearbyResponse> placesNearby(@Path(value = "id") String id)
-
journeys
@GET(value = "journeys") abstract Call<JourneysResponse> journeys(@Query(value = "from") String from, @Query(value = "to") String to, @Query(value = "datetime") String datetime)
-
departures
@GET(value = "stop_areas/{stopId}/departures") abstract Call<DeparturesResponse> departures(@Path(value = "stopId") String stopId, @Query(value = "from_datetime") String datetime)
-
arrivals
@GET(value = "stop_areas/{stopId}/arrivals") abstract Call<ArrivalsResponse> arrivals(@Path(value = "stopId") String stopId, @Query(value = "from_datetime") String datetime)
-
vehicleJourneys
@GET(value = "vehicle_journeys/{vehicleId}") abstract Call<VehicleJourneysResponse> vehicleJourneys(@Path(value = "vehicleId") String vehicleId)
-
-
-
-