added horizontal scroll, more clients

This commit is contained in:
Erwin Sperling 2024-12-28 19:12:56 +01:00
parent 31362d166c
commit 24afa05ae7
8 changed files with 121 additions and 8 deletions

28
back/dist/app.js vendored
View File

@ -7,6 +7,10 @@ import { profile as irishProfile } from 'hafas-client/p/irish-rail/index.js';
import { profile as oebbProfile } from 'hafas-client/p/oebb/index.js'; import { profile as oebbProfile } from 'hafas-client/p/oebb/index.js';
import { profile as luProfile } from 'hafas-client/p/mobiliteit-lu/index.js'; import { profile as luProfile } from 'hafas-client/p/mobiliteit-lu/index.js';
import { profile as zvvProfile } from 'hafas-client/p/zvv/index.js'; import { profile as zvvProfile } from 'hafas-client/p/zvv/index.js';
import { profile as bartProfile } from 'hafas-client/p/bart/index.js';
import { profile as dartProfile } from 'hafas-client/p/dart/index.js';
import { profile as nrwProfile } from 'hafas-client/p/mobil-nrw/index.js';
import { profile as danmarkProfile } from 'hafas-client/p/rejseplanen/index.js';
const app = express(); const app = express();
const port = 3000; const port = 3000;
// Adapt this to your project! createClient() won't work with this string. // Adapt this to your project! createClient() won't work with this string.
@ -21,6 +25,10 @@ clients.set("pkp", createClient(pkpProfile, userAgent));
clients.set("irish", createClient(irishProfile, userAgent)); clients.set("irish", createClient(irishProfile, userAgent));
clients.set("oebb", createClient(oebbProfile, userAgent)); clients.set("oebb", createClient(oebbProfile, userAgent));
clients.set("lu", createClient(luProfile, userAgent)); clients.set("lu", createClient(luProfile, userAgent));
clients.set("bart", createClient(bartProfile, userAgent));
clients.set("dart", createClient(dartProfile, userAgent));
clients.set("nrw", createClient(nrwProfile, userAgent));
clients.set("danmark", createClient(danmarkProfile, userAgent));
app.use((req, res, next) => { app.use((req, res, next) => {
res.append('Access-Control-Allow-Origin', ['*']); res.append('Access-Control-Allow-Origin', ['*']);
res.append('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); res.append('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
@ -47,7 +55,9 @@ app.get('/searchStations', (req, res) => {
else { else {
let query = req.query; let query = req.query;
try { try {
clients.get((String)(req.query.service)).locations(query.text, { results: 6 }).then(result => res.send(result.map(entry => { return { name: entry.name, id: entry.id }; }))).catch(error => res.status(500).send(error)); clients.get((String)(req.query.service)).locations(query.text, { results: 6 }).then(result => res.send(result
//.map(entry => {return {name:entry.name, id:entry.id}})
)).catch(error => res.status(500).send(error));
} }
catch (e) { catch (e) {
res.status(500).send(e); res.status(500).send(e);
@ -63,7 +73,21 @@ app.get('/searchConnection', (req, res) => {
let query = req.query; let query = req.query;
let date = new Date((String)(req.query.date)); let date = new Date((String)(req.query.date));
try { try {
clients.get((String)(req.query.service)).journeys(query.from, query.to, { results: 5, departure: date }).then(result => res.send(result.journeys)).catch(error => res.status(500).send(error)); clients.get((String)(req.query.service)).
journeys(query.from, query.to, { results: 5, departure: date })
.then(result => {
let journeys = result.journeys;
res.send(journeys.map(journey => {
return {
legs: journey.legs.filter(leg => leg.origin.id !== leg.destination.id),
remarks: journey.remarks,
type: journey.type,
cycle: journey.cycle,
price: journey.price,
};
}));
})
.catch(error => res.status(500).send(error));
} }
catch (e) { catch (e) {
res.status(500).send(e); res.status(500).send(e);

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,11 @@ import {profile as irishProfile} from 'hafas-client/p/irish-rail/index.js'
import {profile as oebbProfile} from 'hafas-client/p/oebb/index.js' import {profile as oebbProfile} from 'hafas-client/p/oebb/index.js'
import {profile as luProfile} from 'hafas-client/p/mobiliteit-lu/index.js' import {profile as luProfile} from 'hafas-client/p/mobiliteit-lu/index.js'
import {profile as zvvProfile} from 'hafas-client/p/zvv/index.js' import {profile as zvvProfile} from 'hafas-client/p/zvv/index.js'
import {profile as bartProfile} from 'hafas-client/p/bart/index.js'
import {profile as dartProfile} from 'hafas-client/p/dart/index.js'
import {profile as nrwProfile} from 'hafas-client/p/mobil-nrw/index.js'
import {profile as danmarkProfile} from 'hafas-client/p/rejseplanen/index.js'
import {Journey} from 'hafas-client'
const app = express(); const app = express();
const port = 3000; const port = 3000;
@ -23,7 +28,10 @@ clients.set("pkp", createClient(pkpProfile, userAgent));
clients.set("irish", createClient(irishProfile, userAgent)); clients.set("irish", createClient(irishProfile, userAgent));
clients.set("oebb", createClient(oebbProfile, userAgent)); clients.set("oebb", createClient(oebbProfile, userAgent));
clients.set("lu", createClient(luProfile, userAgent)); clients.set("lu", createClient(luProfile, userAgent));
clients.set("bart", createClient(bartProfile, userAgent));
clients.set("dart", createClient(dartProfile, userAgent));
clients.set("nrw", createClient(nrwProfile, userAgent));
clients.set("danmark", createClient(danmarkProfile, userAgent));
app.use((req, res, next) => { app.use((req, res, next) => {
res.append('Access-Control-Allow-Origin', ['*']); res.append('Access-Control-Allow-Origin', ['*']);
res.append('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE'); res.append('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
@ -49,7 +57,9 @@ app.get('/searchStations', (req, res) => {
} else { } else {
let query: any = req.query; let query: any = req.query;
try { try {
clients.get((String) (req.query.service)).locations(query.text, {results:6}).then(result => res.send(result.map(entry => {return {name:entry.name, id:entry.id}}))).catch(error => res.status(500).send(error)); clients.get((String) (req.query.service)).locations(query.text, {results:6}).then(result => res.send(result
//.map(entry => {return {name:entry.name, id:entry.id}})
)).catch(error => res.status(500).send(error));
} catch (e) { } catch (e) {
res.status(500).send(e) res.status(500).send(e)
} }
@ -63,7 +73,19 @@ app.get('/searchConnection', (req, res) => {
let query: any = req.query; let query: any = req.query;
let date: Date = new Date((String)(req.query.date)); let date: Date = new Date((String)(req.query.date));
try { try {
clients.get((String) (req.query.service)).journeys(query.from, query.to,{results:5, departure:date}).then(result => res.send(result.journeys)).catch(error => res.status(500).send(error)); clients.get((String) (req.query.service)).
journeys(query.from, query.to,{results:5, departure:date})
.then(result => {
let journeys: readonly Journey[] = result.journeys;
res.send(journeys.map(journey => { return {
legs: journey.legs.filter(leg => leg.origin.id !== leg.destination.id),
remarks: journey.remarks,
type: journey.type,
cycle: journey.cycle,
price: journey.price,
}}))
})
.catch(error => res.status(500).send(error));
} catch (e) { } catch (e) {
res.status(500).send(e) res.status(500).send(e)
} }

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generator: Adobe Illustrator 16.0.4, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="238px" height="72px" viewBox="-0.738 0 238 72" enable-background="new -0.738 0 238 72" xml:space="preserve">
<g>
<g>
<path fill="#FFFFFF" d="M101.478,62.88c0,5.023-4.091,9.096-9.135,9.096H9.133C4.089,71.976,0,67.904,0,62.88V9.096 C0,4.073,4.089,0,9.133,0h83.212c5.043,0,9.134,4.073,9.134,9.097V62.88z"/>
<polygon points="80.291,15.083 86.61,15.083 86.61,16.894 84.581,16.894 84.581,21.978 82.32,21.978 82.32,16.894 80.291,16.894 "/>
<path d="M38.388,19.096v1.271h0.984c0.558,0,0.979-0.115,0.979-0.632c0-0.604-0.526-0.642-1.245-0.642h-0.718V19.096z M38.388,16.692v1.148h0.937c0.45,0,0.776-0.2,0.776-0.604c0-0.537-0.44-0.546-0.919-0.546L38.388,16.692L38.388,16.692z M36.127,21.978v-6.895h3.294c1.551,0,2.786,0.364,2.786,1.733c0,0.709-0.459,1.226-0.898,1.503 c0.746,0.192,1.148,0.833,1.148,1.58c0,1.542-1.178,2.078-2.969,2.078H36.127L36.127,21.978z"/>
<path d="M53.675,17.162l-0.697,2.469h1.428L53.675,17.162L53.675,17.162z M50.076,21.978l2.471-6.895h2.298l2.472,6.895h-2.251 l-0.269-0.909h-2.251l-0.259,0.909H50.076L50.076,21.978z"/>
<path d="M67.73,18.061h0.892c0.698,0,1.07-0.172,1.07-0.65c0-0.488-0.384-0.718-0.909-0.718H67.73V18.061L67.73,18.061z M67.73,19.574v2.404h-2.261v-6.895h3.257c2.298,0,3.054,0.623,3.054,1.962c0,0.795-0.355,1.467-1.159,1.687 C71.35,19,71.79,19.171,71.79,20.56c0,0.899-0.027,1.207,0.24,1.207v0.211h-2.29c-0.057-0.153-0.113-0.594-0.113-1.207 c0-0.9-0.153-1.197-1.207-1.197H67.73L67.73,19.574z"/>
<path fill="#0099D8" d="M74.332,27.302c0,0,0,1.196,0,1.792c-2.5-1.438-5.694-2.163-9.521-2.15h-0.179 c-2.016-0.005-8.597,0.291-13.172,4.059c3.236,2.587,5.344,6.391,5.344,11.5c0,5.337-2.356,8.805-5.437,11.067 c0.975,0.922,2.094,1.719,3.365,2.376c3.896,2.019,8.176,2.234,9.831,2.234c2.74,0,4.957-0.192,9.77-2.612 c0,0.526,0,1.655,0,1.655h12.152V27.302H74.332z M65.671,50.726c-4.651,0-8.425-3.787-8.425-8.461 c0-4.676,3.772-8.465,8.425-8.465c4.653,0,8.425,3.789,8.425,8.465C74.096,46.939,70.324,50.726,65.671,50.726z"/>
<path d="M38.131,26.825c-7.659,0-9.813,1.915-10.891,2.513c0-2.393,0-14.601,0-14.601H15.272v42.248h11.608v-2.036 c3.95,2.274,8.378,2.632,11.25,2.632c4.429,0,18.67-1.914,18.67-15.078C56.802,31.852,47.706,26.825,38.131,26.825z M38.184,50.726c-4.675,0-8.463-3.787-8.463-8.461c0-4.676,3.788-8.465,8.463-8.465c4.674,0,8.463,3.789,8.463,8.465 C46.647,46.939,42.858,50.726,38.184,50.726z"/>
</g>
<g>
<path fill="#FFFFFF" d="M121.305,15.251h4.731c1.745,0,4.362,0.504,4.362,3.471c0,1.609-1.086,2.734-2.696,3.025v0.038 c1.843,0.175,3.102,1.416,3.102,3.083c0,3.412-3.062,3.917-4.768,3.917h-4.731V15.251z M124.02,20.718h1.105 c1.145,0,2.56-0.251,2.56-1.647c0-1.571-1.377-1.687-2.617-1.687h-1.048V20.718z M124.02,26.652h1.28 c1.26,0,2.792-0.31,2.792-1.881c0-1.764-1.435-2.036-2.792-2.036h-1.28V26.652z"/>
<path fill="#FFFFFF" d="M133.365,19.323c1.009-0.465,2.365-0.756,3.472-0.756c3.043,0,4.305,1.26,4.305,4.208v1.28 c0,1.009,0.02,1.764,0.039,2.501c0.02,0.756,0.057,1.455,0.115,2.229h-2.288c-0.097-0.523-0.097-1.182-0.116-1.493h-0.038 c-0.601,1.106-1.9,1.726-3.084,1.726c-1.765,0-3.49-1.066-3.49-2.967c0-1.493,0.717-2.365,1.705-2.85 c0.99-0.484,2.27-0.581,3.354-0.581h1.435c0-1.609-0.716-2.152-2.249-2.152c-1.105,0-2.211,0.426-3.083,1.085L133.365,19.323z M136.41,27.117c0.795,0,1.416-0.348,1.823-0.892c0.427-0.562,0.542-1.28,0.542-2.055h-1.124c-1.163,0-2.89,0.193-2.89,1.727 C134.76,26.749,135.479,27.117,136.41,27.117z"/>
<path fill="#FFFFFF" d="M147.847,26.09h0.038l2.404-7.29h2.638l-3.743,9.908c-0.834,2.211-1.435,4.381-4.149,4.381 c-0.62,0-1.241-0.096-1.843-0.271l0.175-1.92c0.33,0.116,0.698,0.175,1.338,0.175c1.048,0,1.688-0.718,1.688-1.784l-3.82-10.489 h2.87L147.847,26.09z"/>
<path fill="#FFFFFF" d="M163.977,15.251h3.064l5.312,13.533h-3.005l-1.163-3.102H162.7l-1.183,3.102h-2.812L163.977,15.251z M165.471,17.966h-0.039l-1.959,5.583h3.956L165.471,17.966z"/>
<path fill="#FFFFFF" d="M173.924,18.8h2.307v2.268h0.039c0.116-0.93,1.183-2.501,2.733-2.501c0.253,0,0.523,0,0.796,0.077v2.618 c-0.232-0.136-0.698-0.213-1.164-0.213c-2.112,0-2.112,2.638-2.112,4.072v3.664h-2.6L173.924,18.8L173.924,18.8z"/>
<path fill="#FFFFFF" d="M189.069,28.223c-0.95,0.522-2.036,0.795-3.434,0.795c-3.295,0-5.215-1.9-5.215-5.177 c0-2.889,1.531-5.273,4.634-5.273c3.703,0,4.75,2.54,4.75,6.03h-6.902c0.117,1.609,1.241,2.521,2.851,2.521 c1.26,0,2.346-0.465,3.315-1.009L189.069,28.223L189.069,28.223z M187.324,22.813c-0.078-1.262-0.659-2.347-2.113-2.347 c-1.453,0-2.19,1.008-2.308,2.347H187.324z"/>
<path fill="#FFFFFF" d="M192.288,19.323c1.009-0.465,2.365-0.756,3.471-0.756c3.043,0,4.304,1.26,4.304,4.208v1.28 c0,1.009,0.021,1.764,0.039,2.501c0.021,0.756,0.059,1.455,0.116,2.229h-2.288c-0.097-0.523-0.097-1.182-0.115-1.493h-0.039 c-0.601,1.106-1.9,1.726-3.084,1.726c-1.765,0-3.49-1.066-3.49-2.967c0-1.493,0.717-2.365,1.705-2.85 c0.99-0.484,2.269-0.581,3.354-0.581h1.435c0-1.609-0.716-2.152-2.25-2.152c-1.105,0-2.211,0.426-3.083,1.085L192.288,19.323z M195.332,27.117c0.795,0,1.415-0.348,1.822-0.892c0.428-0.562,0.543-1.28,0.543-2.055h-1.124c-1.164,0-2.889,0.193-2.889,1.727 C193.684,26.749,194.401,27.117,195.332,27.117z"/>
<path fill="#FFFFFF" d="M121.073,41.834h2.928c2.908,0,6.38-0.097,6.38,3.664c0,1.592-1.066,2.909-2.792,3.141v0.039 c0.736,0.059,1.163,0.795,1.435,1.396l2.172,5.293h-3.025l-1.629-4.227c-0.389-1.008-0.736-1.396-1.881-1.396h-0.873v5.622h-2.714 V41.834z M123.788,47.612h0.894c1.338,0,2.869-0.193,2.869-1.881c0-1.628-1.512-1.765-2.869-1.765h-0.894V47.612z"/>
<path fill="#FFFFFF" d="M133.365,45.905c1.009-0.465,2.365-0.757,3.472-0.757c3.043,0,4.305,1.262,4.305,4.209v1.279 c0,1.008,0.02,1.764,0.039,2.502c0.02,0.756,0.057,1.453,0.115,2.229h-2.288c-0.097-0.522-0.097-1.182-0.116-1.492h-0.038 c-0.601,1.105-1.9,1.726-3.084,1.726c-1.765,0-3.49-1.065-3.49-2.967c0-1.492,0.717-2.365,1.705-2.85 c0.99-0.484,2.27-0.582,3.354-0.582h1.435c0-1.608-0.716-2.151-2.249-2.151c-1.105,0-2.211,0.427-3.083,1.085L133.365,45.905z M136.41,53.7c0.795,0,1.416-0.349,1.823-0.893c0.427-0.562,0.542-1.279,0.542-2.055h-1.124c-1.163,0-2.89,0.193-2.89,1.727 C134.76,53.332,135.479,53.7,136.41,53.7z"/>
<path fill="#FFFFFF" d="M143.699,45.383h2.481v1.415h0.039c0.582-0.969,1.57-1.648,3.102-1.648c3.065,0,4.188,2.444,4.188,5.197 c0,2.734-1.124,5.254-4.245,5.254c-1.106,0-2.018-0.272-2.929-1.377h-0.037v5.217H143.7L143.699,45.383L143.699,45.383z M146.316,50.345c0,1.416,0.562,3.238,2.289,3.238c1.706,0,2.19-1.861,2.19-3.238c0-1.337-0.466-3.18-2.151-3.18 C146.975,47.166,146.316,48.95,146.316,50.345z"/>
<path fill="#FFFFFF" d="M155.506,41.078h2.6v2.481h-2.6V41.078z M155.506,45.383h2.6v9.984h-2.6V45.383z"/>
<path fill="#FFFFFF" d="M167.486,54.243h-0.037c-0.776,0.97-1.843,1.357-3.065,1.357c-3.062,0-4.188-2.52-4.188-5.254 c0-2.752,1.125-5.197,4.188-5.197c1.3,0,2.211,0.446,2.986,1.397h0.039v-5.72h2.598v14.541h-2.521L167.486,54.243L167.486,54.243z M165.103,53.584c1.726,0,2.287-1.822,2.287-3.238c0-1.396-0.659-3.18-2.326-3.18c-1.687,0-2.152,1.843-2.152,3.18 C162.912,51.722,163.396,53.584,165.103,53.584z"/>
<path fill="#FFFFFF" d="M180.768,43.967h-3.877v-2.133h10.471v2.133h-3.879v11.4h-2.715V43.967z"/>
<path fill="#FFFFFF" d="M187.223,45.383h2.307v2.269h0.039c0.115-0.931,1.182-2.503,2.733-2.503c0.252,0,0.522,0,0.795,0.078 v2.618c-0.232-0.137-0.697-0.214-1.163-0.214c-2.113,0-2.113,2.638-2.113,4.072v3.663h-2.599L187.223,45.383L187.223,45.383z"/>
<path fill="#FFFFFF" d="M195.153,45.905c1.008-0.465,2.364-0.757,3.471-0.757c3.043,0,4.305,1.262,4.305,4.209v1.279 c0,1.008,0.02,1.764,0.038,2.502c0.02,0.756,0.059,1.453,0.116,2.229h-2.288c-0.097-0.522-0.097-1.182-0.116-1.492h-0.038 c-0.601,1.105-1.9,1.726-3.084,1.726c-1.765,0-3.49-1.065-3.49-2.967c0-1.492,0.717-2.365,1.705-2.85 c0.99-0.484,2.27-0.582,3.354-0.582h1.435c0-1.608-0.716-2.151-2.25-2.151c-1.105,0-2.211,0.427-3.082,1.085L195.153,45.905z M198.197,53.7c0.795,0,1.416-0.349,1.822-0.893c0.428-0.562,0.543-1.279,0.543-2.055h-1.124c-1.163,0-2.89,0.193-2.89,1.727 C196.549,53.332,197.266,53.7,198.197,53.7z"/>
<path fill="#FFFFFF" d="M205.487,45.383h2.464v1.357h0.037c0.814-1.145,1.921-1.591,3.278-1.591c2.365,0,3.392,1.669,3.392,3.917 v6.302h-2.597v-5.33c0-1.222-0.021-2.871-1.688-2.871c-1.881,0-2.287,2.036-2.287,3.315v4.886h-2.599L205.487,45.383 L205.487,45.383z"/>
<path fill="#FFFFFF" d="M223.265,47.475c-0.795-0.271-1.377-0.426-2.327-0.426c-0.697,0-1.531,0.251-1.531,1.105 c0,1.59,4.518,0.581,4.518,4.188c0,2.326-2.074,3.256-4.188,3.256c-0.988,0-1.996-0.175-2.947-0.427l0.156-2.133 c0.812,0.407,1.667,0.659,2.558,0.659c0.66,0,1.707-0.252,1.707-1.221c0-1.959-4.518-0.621-4.518-4.228 c0-2.152,1.881-3.103,3.917-3.103c1.222,0,2.017,0.194,2.832,0.368L223.265,47.475z"/>
<path fill="#FFFFFF" d="M225.997,41.078h2.6v2.481h-2.6V41.078z M225.997,45.383h2.6v9.984h-2.6V45.383z"/>
<path fill="#FFFFFF" d="M232.182,47.282h-1.918v-1.899h1.918v-1.998l2.6-0.834v2.832h2.307v1.899h-2.307v4.654 c0,0.852,0.231,1.647,1.22,1.647c0.467,0,0.912-0.098,1.183-0.271l0.078,2.054c-0.543,0.155-1.145,0.232-1.92,0.232 c-2.036,0-3.161-1.261-3.161-3.238L232.182,47.282L232.182,47.282z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="450" height="242.38084" viewBox="0 0 450 242.38083" version="1.2" id="svg109645" sodipodi:docname="Muni worm logo.svg" inkscape:version="0.92.3 (2405546, 2018-03-11)">
<metadata id="metadata109649">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1001" id="namedview109647" showgrid="false" fit-margin-top="0" fit-margin-left="0" fit-margin-right="0" fit-margin-bottom="0" units="px" inkscape:zoom="0.58553404" inkscape:cx="658.79162" inkscape:cy="359.45037" inkscape:window-x="-9" inkscape:window-y="-9" inkscape:window-maximized="1" inkscape:current-layer="svg109645"/>
<defs id="defs10792"/>
<g id="g162799">
<path inkscape:connector-curvature="0" id="path102650" d="M 186.58169,175.13043 V 86.598007 c 0,0 0,-26.844754 -27.01179,-26.844754 -26.84491,0 -26.84491,26.844754 -26.84491,26.844754 v 69.262123 c 0,0 0,19.2703 -19.27625,19.2703 -19.228462,0 -19.228462,-19.2703 -19.228462,-19.2703 V 86.598007 c 0,0 0,-26.844754 -26.892545,-26.844754 -26.928272,0 -26.928272,26.844754 -26.928272,26.844754 V 213.3429 H 24.999989 V 67.369547 c 0,0 0,-42.36958 42.327744,-42.36958 42.333847,0 42.333847,42.36958 42.333847,42.36958 l 0.16689,73.669633 c 0,0 -0.16689,3.33399 3.62027,3.33399 4.03786,0 3.9125,-3.87083 3.9125,-3.87083 V 67.369547 c 0,0 0,-42.36958 42.20866,-42.36958 42.41126,0 42.3337,42.36958 42.3337,42.36958 l 0.0779,88.490583 c 0,0 -1.2465,26.97011 26.89255,26.97011 28.17478,0 26.88659,-26.97011 26.88659,-26.97011 l 0.0351,-88.490583 c 0,0 0,-42.36958 42.25628,-42.36958 42.28607,0 42.28607,42.36958 42.28607,42.36958 l 0.1252,73.132793 c 0,0 -0.1252,3.87083 3.74562,3.87083 3.82899,0 3.82899,-3.87083 3.82899,-3.87083 V 28.661921 h 15.40543 V 155.86013 c 0,0 0,19.2703 -19.23442,19.2703 -19.2703,0 -19.2703,-19.2703 -19.2703,-19.2703 V 86.598007 c 0,0 0,-26.844754 -26.88659,-26.844754 -26.85071,0 -26.85071,26.844754 -26.85071,26.844754 v 88.532423 c 0,0 0,42.25033 -42.32789,42.25033 -42.29202,0 -42.29202,-42.25033 -42.29202,-42.25033" style="clip-rule:nonzero;fill:#cc3847;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.52683175"/>
<path style="fill:#cf2645;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.52683175" d="m 394.28444,28.661968 h 30.7156 V 213.34298 h -30.7156 z m 0,0" id="path102654" inkscape:connector-curvature="0"/>
<path style="fill:#cc3847;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.52683175" d="m 71.204583,175.13051 -0.04133,-73.09114 c 0,0 0,-3.870796 -3.835,-3.870796 -3.864667,0 -3.864667,3.870796 -3.864667,3.870796 V 213.34298 H 48.105784 V 86.598104 c 0,0 0,-19.228467 19.222466,-19.228467 19.234603,0 19.234603,19.228467 19.234603,19.228467 v 69.262146 c 0,0 0,26.97006 26.886397,26.97006 26.97607,0 26.97607,-26.97006 26.97607,-26.97006 V 86.598104 c 0,0 -0.33987,-19.228467 19.14513,-19.228467 19.312,0 19.312,19.228467 19.312,19.228467 V 213.34298 h -15.3578 V 102.03937 c 0,0 0,-3.870796 -3.9542,-3.870796 -3.7456,0 -3.7456,3.870796 -3.7456,3.870796 v 73.09114 c 0,0 -0.501,42.25033 -42.3756,42.25033 -41.8744,0 -42.2442,-42.25033 -42.2442,-42.25033" id="path102656" inkscape:connector-curvature="0"/>
<path style="fill:#cc3847;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.52683175" d="M 209.63918,156.03318 V 28.661968 h 15.4056 V 140.50245 c 0,0 -0.37573,3.8708 3.829,3.8708 4.24047,0 3.829,-3.8708 3.829,-3.8708 V 28.661968 h 15.39347 V 155.86025 c 0,0 1.58653,19.27026 -19.22247,19.27026 -20.77333,0 -19.2346,-19.09733 -19.2346,-19.09733" id="path102658" inkscape:connector-curvature="0"/>
<path style="fill:#cc3847;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.52683175" d="m 302.00658,182.83031 v -80.79094 c 0,0 0,-3.870796 -3.9542,-3.870796 -3.7514,0 -3.7514,3.870796 -3.7514,3.870796 V 213.34298 H 278.90131 V 86.598104 c 0,0 -0.3698,-19.228467 19.15107,-19.228467 19.22846,0 19.22846,19.228467 19.22846,19.228467 v 69.262146 c 0,0 0,26.97006 26.9284,26.97006 26.92827,0 26.92827,-26.97006 26.92827,-26.97006 V 28.661968 h 15.39953 V 182.83031 c 0,0 0,34.55053 -42.3278,34.55053 -42.20266,0 -42.20266,-34.55053 -42.20266,-34.55053" id="path102660" inkscape:connector-curvature="0"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -96,6 +96,7 @@
<style scoped> <style scoped>
.displaywide { .displaywide {
display: inline-flex; display: inline-flex;
overflow-y: scroll;
} }
.displaytall { .displaytall {
display: block; display: block;

View File

@ -119,6 +119,10 @@
{id:"irish", name:"Iarnrod Eireann"}, {id:"irish", name:"Iarnrod Eireann"},
{id:"oebb", name:"Oesterreichische Bundesbahnen"}, {id:"oebb", name:"Oesterreichische Bundesbahnen"},
{id:"lu", name:"Mobiliteitszentral (Luxembourg)"}, {id:"lu", name:"Mobiliteitszentral (Luxembourg)"},
{id:"bart", name:"Bay Area Rapid Transit (BART)"},
{id:"dart", name:"Des Moines Area Rapid Transit (DART)"},
{id:"nrw", name:"mobil.nrw"},
{id:"danmark", name:"Rejseplanen in Denmark"},
] ]
export default { export default {
name: 'SearchBahn', name: 'SearchBahn',
@ -263,7 +267,7 @@
margin-right: auto; margin-right: auto;
} }
.selectItem{ .selectItem{
margin-top:10px; padding:7px;
background-color:white; background-color:white;
cursor: pointer; cursor: pointer;
} }

View File

@ -166,6 +166,10 @@ let operatorfunctions = {
return new URL('../assets/logos/avl_lux.svg', import.meta.url); return new URL('../assets/logos/avl_lux.svg', import.meta.url);
} else if (operator.id === "regime-general-des-transports-routiers"){ } else if (operator.id === "regime-general-des-transports-routiers"){
return new URL('../assets/logos/rgtr.svg', import.meta.url); return new URL('../assets/logos/rgtr.svg', import.meta.url);
} else if (operator.id === 'bay-area-rapid-transit'){
return new URL('../assets/logos/bart.svg', import.meta.url);
} else if (operator.id === 'san-francisco-municipal-transportation-agency'){
return new URL('../assets/logos/muni.svg', import.meta.url);
} else { } else {
console.log(operator.id); console.log(operator.id);
return (null); return (null);