Skip to content
jouniso edited this page Apr 28, 2017 · 8 revisions

NOTE ‼️ End of life on August 31, 2017! Start using new REST/JSON-APIS before that.

The message contains all public camera presets and the baseurl where you can find the camera pictures. Camera picture URL is constructed from baseurl, presetid and .jpg file extension

For example

Fetch the page http://tie.digitraffic.fi/sujuvuus/ws/cameraPresets, the API response will look like this:

 <CameraPresetsResponse>
    <timestamp>
     <utc>2015-09-22T17:56:00Z</utc>
     <localtime>2015-09-22T20:56:00+03:00</localtime>
    </timestamp>
  <baseurl>http://weathercam.digitraffic.fi/</baseurl>
<camerapresetsdata>
   <camerapreset>
      <cameraid>C01502</cameraid>
      <presetid>C0150201</presetid>
 ....

Pick the baseurl and the presetid of the camera you want. Combine them with a .jpg -suffix to have a complete URL for a weathercam image:


http://weathercam.digitraffic.fi/C0150201.jpg


With this URL you can fetch the actual weathercam image:

Weathercam image C0150201.

The camera presets are updated from FTA’s server every two minutes. The message itself doesn’t change very often. The camera pictures are usually updated every 10-20 minutes.


WSDL: http://tie.digitraffic.fi/sujuvuus/ws/cameraPresets?wsdl

IF: http://tie.digitraffic.fi/sujuvuus/ws/cameraPresets


Elements:

  • timestamp timestamp of the latest update of the message, both in UTC time zone and local (Finnish) time zone

  • baseurl url, where the camera pictures are found

  • camerapresetsdata every public camera preset

  • camerapreset single camera preset

  • cameraid camera id

  • presetid preset id. camera id + number 00...99

  • roadstationid roadstaion id

  • public flag that tells if the camera is public or not.

    • false = note public
    • true = public
  • presetname1 preset name 1

    • Value PUUTTUU means unknown direction
  • presetname2 preset name 2

  • nearestroadstationid id of the nearest road station

  • piclastmodified last modified date of camera picture, both in UTC time zone and local (Finnish) time zone

Clone this wiki locally