Giter VIP home page Giter VIP logo

stationboard_api's Introduction

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

stationboard_api's People

Contributors

jsparber avatar bertob avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

xixsuse

stationboard_api's Issues

Improve suggests

Improve matching for input string. Already much better then the efa(sii) matching but still not good enough.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.