-
Notifications
You must be signed in to change notification settings - Fork 1
Routes, lines, stations, etc. API
mebibou edited this page Jun 20, 2013
·
15 revisions
to see the list of available parameters and actions, check http://files.transilien.com/hackdays/Manuel_Integration_API_Microservice.pdf
##Possible actions
- ProximityList
- CompanyList
- NetworkList
- ModeTypeList
- ModeList
- LineList
- RouteList
- VehicleJourneyList
- StopAreaList
- StopPointList
- RoutePointList
Getting the stops close to a point in space
MSTransilienAPI api = new MSTransilienAPI();
Map<ActionParam, Object> params = new HashMap<ActionParam, Object>();
params.put(ActionProximityList.Params.Type, "StopPoint");
// proximity PARIS GARE DE LYON
params.put(ActionProximityList.Params.X, "602697,00");
params.put(ActionProximityList.Params.Y, "2427309,00");
ActionProximityList action = api.list(params, ActionProximityList.class);
ProximityList list = action.getList();
Getting the list of companies
MSTransilienAPI api = new MSTransilienAPI();
CompanyList list = api.list(null, ActionCompanyList.class).getList();
Getting the list of routes
MSTransilienAPI api = new MSTransilienAPI();
ActionRouteList action = api.list(null, ActionRouteList.class);
RouteList list = action.getList();