Compare commits

...

2 Commits

5 changed files with 6 additions and 8 deletions

View File

@ -11,14 +11,13 @@ import MsgMarkerWithoutGtfs from './marker-msg';
export default function Map({messages}) {
/*lat and lon of Braunschweig,DE*/
const position = [52.26594, 10.52673]
//TODO make this switch available via configuration
const hasGtfs = false;
const hasGtfs = true;
return (
<>
<MapContainer
center={position}
zoom={4}
zoom={8}
minZoom={2}
scrollWheelZoom={true}
>

View File

@ -6,7 +6,7 @@ function NavigationBar () {
return (
<Navbar collapseOnSelect fixed="top" bg="dark" expand="xxl" variant="dark">
//TODO make brand available through configuration
<Navbar.Brand href="/">GTFS Realtime Display</Navbar.Brand>
<Navbar.Brand href="/">GTFS RT Display for ALB</Navbar.Brand>
<Navbar.Toggle aria-controls="basic-navbar-nav" />
<Navbar.Collapse id="basic-navbar-nav">
<Nav className="mr-auto">

View File

@ -12,8 +12,7 @@ export default function MapPage() {
/*TODO handle errors: https://www.valentinog.com/blog/await-react/*/
//TODO Make fields available via configuration!
let url = 'https://api.entur.io/realtime/v1/gtfs-rt/vehicle-positions';
let url = 'https://soll.vbn.de/vehicle-positions';
const res = await axios.get(url,
{
responseType: 'arraybuffer'

View File

@ -10,7 +10,7 @@ export default function TablePage() {
try {
/*TODO handle errors: https://www.valentinog.com/blog/await-react/*/
//TODO Make fields available via configuration!
let url = 'https://api.entur.io/realtime/v1/gtfs-rt/vehicle-positions';
let url = 'https://soll.vbn.de/vehicle-positions';
const res = await axios.get(url,
{
responseType: 'arraybuffer'

View File

@ -14,7 +14,7 @@
padding-top: 100px;
}
</style>
<title>GTFS Realtime Display</title>
<title>GTFS RT Display for ALB</title>
</head>
<body>
<div id="root"></div>