Compare commits
2 Commits
main
...
gtfs-rt-vb
Author | SHA1 | Date |
---|---|---|
dancingCycle | 3cd73f6a08 | |
dancingCycle | fd196381d5 |
|
@ -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}
|
||||
>
|
||||
|
|
|
@ -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">
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue