Linz AG XML API - foop/opendata-linz-bimfahrer GitHub Wiki

Miscellaneous

First step is to make this slide more accessible.

Introduction

All queries derive from the object itdRequest. itdRequest provides basic functionality such as

  • session handling
  • language settings
  • execution mode (execInst)
  • layout parameters
  • transformation

Session Handling

There are two modes of queries sateful and stateless.

stateful

Creates a query session. A session comprises one ore more requests.

  • Name: sessionID

  • Value: numeric

  • Usage: set it to 0 on your first query or leave it blank. You'll get a sessionID returned that you can subsequently use.

  • Example: http://www.linzag.at/static/XML_TRIP_REQUEST2?sessionID=0

  • Name: requestID

  • Value: numeric

  • Usage: use zero for the first query. Increment it by 1, start your next query.

  • Purpose: identifies your request within in your session.

  • Example: http://www.linzag.at/static/XML_DM_REQUEST?sessionID=14948624&requestID=1&dmLineSelectionAll=1&command=dmLast

language

use ISO 631:1988 language codes

  • Name: language
  • Values: language codes (see above)
  • Example: http://www.linzag.at/static/XSLT_TRIP_REQUEST2?language=en

execution mode

layout parameters

I have no idea what they do. Slides state that they are passed on without actually having any impact on the "system". The are used for remembering a certain condition of the user interface.

Parameters

General

  • Name: outputFormat
  • Values: HTML, XML, JSON
  • Example: &outputFormat=JSON

Date and Time

The system time will be used if no time was passed

Stop-Finder-Request

Look for stops

Slides Examples

http://www.linzag.at/static/XML_STOPFINDER_REQUEST?locationServerActive=1&outputFormat=XML&type_sf=any&name_sf=Hauptbahnhof