Strætó gives third parties access to route system data.


The real-time data contains information about each bus, such as location, direction, route number, last bus stop that the bus drove through and the next bus stop that the bus will drive past.

The data is in XML format and is updated every 2 to 5 seconds.

Apply for access

To apply for access, you need to send an e-mail to Daði Áslaugarson, head of IT at Strætó. The email must contain:

  • Full name
  • Phone number
  • Address
  • Icelandic ID number (if you have that)
  • Email

Real-time data - document

Description of XML fields:

 

„time“: timestamp from GPS in format YYMMDDhhmmss

„lat“, „lon“: vehicle position from GPS

„head“: vehicle heading according to GPS in degrees (0=N)

„fix“: GPS fix. 0=bad or no reliability for GPS info, 2=high quality, 1= lower quality

„route“: bus line number

„stop“: ID of last station visited

„next“: ID of next station to be visited

 

The equipment sends GPS information whenever a time indicated that a certain time has passed or when certain events happen. The field „code“ indicates what event triggered it.

 

„code“ can be:

2: vehicle stopped

3: vehicle started moving

4: vehicle power is off (message generated less frequently in this state)

5: vehicle power was switched on

6: timer triggered

7: vehicle arrived or passed a station