Skip to content

DAU format

Clerik edited this page Feb 26, 2018 · 11 revisions

**TODO: explain why we extract the data we do, why we change the format of some of the lists. Right now we are just guessing what we might need. We have also found out that the vegrefs are wrong because they're referring to paperwork and not the actual road IDs. A road with ID 10 can be 67 tomorrow because of changes in the paper work **

Currently, the DAU files are delivered in .geojson format.

The .geojson files are structured like this:

  • type
  • name
  • crs (defines the format?)
    • type = name
    • properties
  • features (list)
    • type = Feature
    • properties
      • time (the point in time the data point was sent in)
      • startlat
      • startlong
      • endlat
      • endlong
      • torrsprederaktiv (either null, f, or t)
      • plogaktiv (either null, f, or t)
      • vatsprederaktiv (either null, f, or t)
      • materialtype_kode
      • from_vegref
      • to_vegref
      • id
      • the_geom (SRID=xxxxx;LINESTRING(x y,x y,x y))
      • name
      • descriptio
      • timestamp
      • begin
      • end
      • altitudemo
      • tessellate
      • extrude
      • visibility
      • draworder
      • icon
      • name_2
      • descript_2
      • timestam_2
      • begin_2
      • end_2
      • altitude_2
      • tessella_2
      • extrude_2
      • visibili_2
      • draworde_2
      • Icon_2
    • Geometry
      • type = Linestring (a collection of coordinates mapping the route driven)
      • Coordinates (2d list, start and end coordinates)

So in order to acces a datapoint in the geojson file, write for example dataSubset.features.properties.time

Clone this wiki locally