diff --git a/README.md b/README.md index 03cb91b..83914ec 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,30 @@ # verkeersdrukte Java application to serve traffic data from NDW in a friendly format + +## Usage in QGIS +The software presents a shape file in GeoJSON format that can be imported into QGIS. +Each point in the GeoJSON represents a measurement site, +and contains all properties of the original shape file, +plus URLs to the static data (fixed properties), dynamic data (traffic speed and flow) and a link to Google streetview. + +First, add an openstreet background layer, +by clicking XYZ Tiles / OpenStreetMap +![QGIS Add openstreetmap](images/qgis_osm.png) + +Then, add a vector layer, by opening menu +Layer / Add Layer / Add Vector Layer ... +![QGIS Add vector layer](images/qgis_vectorlayer.png) +The URL is https://stofradar.nl/traffic/static +Click 'Add', then 'Close'. + +You should now see all measurement sites on the map. +Select a particular site using the 'Identify features' button. + +![QGIS Add vector layer](images/qgis_identify.png) + +This shows the static information about the measurement site, +including an URL to the dynamic information. For example: +http://stofradar.nl:9002/traffic/dynamic/RWS01_MONIBAS_0121hrr0292ra + +The URL to the SSE event stream has '/events' appended: +http://stofradar.nl:9002/traffic/dynamic/RWS01_MONIBAS_0121hrr0292ra/events diff --git a/images/qgis_identify.png b/images/qgis_identify.png new file mode 100644 index 0000000..ee3c7d4 Binary files /dev/null and b/images/qgis_identify.png differ diff --git a/images/qgis_osm.png b/images/qgis_osm.png new file mode 100644 index 0000000..330d373 Binary files /dev/null and b/images/qgis_osm.png differ diff --git a/images/qgis_vectorlayer.png b/images/qgis_vectorlayer.png new file mode 100644 index 0000000..89ebcab Binary files /dev/null and b/images/qgis_vectorlayer.png differ