Skip to content

frac-tion/stationboard_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stationboard_api

API for stationboard webapp. Current test server.

###Simple WebSocket API Look in test for a working example or at client.js. ####Request for finding a busstops id and list of busstops

ws.send(JSON.stringify({call:"busstopRequest", query:"lana"}));

####Request for statianboard

ws.send(JSON.stringify({call:"stationboardRequest", query:"66002351"}));

###Realtime plugins ####Trenitalia Callback gets a JSON {trainId : delay(in minutes), ...}

realtimeTrenitalia(stationName, dateTime, callback);

###API of mobilitaetsagentur.bz.it ####Request for finding busstops

  • name_sf is search string
  • more results with SpEncId=1 instate of SpEncId=0
http://efa.mobilitaetsagentur.bz.it/apb/XSLT_STOPFINDER_REQUEST?language=de&outputFormat=JSON&itdLPxx_usage=origin&useLocalityMainStop=true&doNotSearchForStops_sf=1&SpEncId=0&odvSugMacro=true&name_sf=L

####Request for statianboard

  • name_dm is a busstop id
  • for time and date add itdDateDayMonthYear=10.08.2015&itdTime=1125
http://efa.mobilitaetsagentur.bz.it/apb/XSLT_DM_REQUEST?language=de&deleteAssignedStops_dm=1&trITMOTvalue100=7&useProxFootSearch=0&itdLPxx_today=10&mode=direct&lsShowTrainsExplicit=0&type_dm=any&name_dm=66002294&includedMeans=checkbox&inclMOT_ZUG=1&inclMOT_BUS=1&inclMOT_8=1&inclMOT_9=1&locationServerActive=1&convertStopsPTKernel2LocationServer=1&convertAddressesITKernel2LocationServer=1&convertCoord2LocationServer=1&convertCrossingsITKernel2LocationServer=1&convertPOIsITKernel2LocationServer=1&stateless=1&itOptionsActive=1&ptOptionsActive=1&itdLPxx_depOnly=1&maxAssignedStops=1&hideBannerInfo=1&execInst=normal&limit=15&useAllStops=1&outputFormat=JSON

####Request for line id

  • search with lineName
http://efa.mobilitaetsagentur.bz.it/apb/XSLT_ROP_REQUEST?language=de&command=&mode=line&net=&opBranch=&execInst=normal&mergeSup=0&mergeDir=1&lineName=11

####Request for line course

http://efa.mobilitaetsagentur.bz.it/apb/XML_GEOOBJECT_REQUEST?&line=apb%3A00211%3AM%3AH%3A16a%3A1&outputFormat=json&coordListOutputFormat=STRING&hideBannerInfo=1&returnSinglePath=1&command=bothdirections

###API of fahrplan.bz

http://timetables.sad.it/SIITimetablesMobile.php

About

API for stationboard webapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published