An open API service indexing awesome lists of open source software.

https://github.com/larsbergqvist/sr-traffic

A traffic messages app with data from the Open API of Swedish Public Radio. Uses Angular, OpenLayers / OpenStreetMap and PrimeNG.
https://github.com/larsbergqvist/sr-traffic

angular openapi openlayers openstreetmap primeng typescript

Last synced: 3 months ago
JSON representation

A traffic messages app with data from the Open API of Swedish Public Radio. Uses Angular, OpenLayers / OpenStreetMap and PrimeNG.

Awesome Lists containing this project

README

          

# sr-traffic

![Build, test and deploy](https://github.com/larsbergqvist/sr-traffic/actions/workflows/buildanddeploy.yml/badge.svg)

# Demo

https://larsbergqvist.github.io/sr-traffic/

An Angular application that displays current traffic messages from the Open API of Swedish Public Radio. The messages are fetched per traffic area in Sweden. You can fetch your closest area by letting the application read your position from the browser.
From a traffic message, you can open a sidebar that contains a map where the event for the message is marked. The map view uses OpenLayers / OpenStreetMap.

# Setup

```
cd sr-traffic
yarn install
yarn startSSL

https://localhost:4300/

```

# Screenshots

![Alt text](https://github.com/LarsBergqvist/sr-traffic/blob/main/screenshot1.png?raw=true 'Traffic messages list')
![Alt text](https://github.com/LarsBergqvist/sr-traffic/blob/main/screenshot2.png?raw=true 'Map sidebar 1')
![Alt text](https://github.com/LarsBergqvist/sr-traffic/blob/main/screenshot3.jpg?raw=true 'Map sidebar 2')