Code Monkey home page Code Monkey logo

Comments (5)

qistoph avatar qistoph commented on August 22, 2024

Sometimes NS introduces new types of transport descriptions. Like "bus" or "vervangend vervoer". Not all of these are mapped to symbols (yet).

If you manage to figure out the description to map and have a suggestion for the symbol, a PR is most welcome.

from mmm-nstreinen.

HenkyB avatar HenkyB commented on August 22, 2024

Hi Chris,

Received my PR ?
Did some researche,, not having any experience with NodeJs.
But i managed to find out that the 'nstreinen.js' lacked in the "LegRenaming" part the entry "ST": "Stoptrein",
On the NS API website you can test your API key, getting an overview of the receiving tekst.
This wil not cost you tons of time to update your beautifull Module.

Regards Henk

from mmm-nstreinen.

qistoph avatar qistoph commented on August 22, 2024

The PR hasn't reached me. Where did you create/send it?

from mmm-nstreinen.

HenkyB avatar HenkyB commented on August 22, 2024

Hi Chris,

Hope the list is complete.
I think, the symbols are not a big issue.
A train is a train, and it comes with a explanatory text.
Symbols can be obtained from the NS Web application ;-).

Regards, Henk

legRenaming:
"SPR": "Sprinter",
"IC": "Intercity",
"ICE": "ICE Internationaal",
"ICD": "Intercity Direct",
"NJ": "Nightjet"
"NSS": "Snelbus"
"ST": "Stoptrein",
"S": "Sneltrein",
"BUS": "Stopbus i.p.v. trein",

symbolMapping:

Naam in NS planner icon Mtschp

"NS Int ICE International" 'train' //NS int
'NS Int Intercity' 'train' //NS int
"NS Int Nightjet" 'train' //NS int
'Nightjet' 'train' //NS Int
'NS Intercity': 'train' //NS
'NS Sprinter': 'train' //NS
'Arriva Sneltrein': 'train' //Arriva
'Arriva Stoptrein' 'train' //Arriva
'R-net Stoptrein': 'train' //R-net
'R-net Sprinter': 'train' //R-net
'Valleilijn Stoptrein': 'train' //connexion
'Blauwnet Sprinter': 'train' //Blauwnet
'Blauwnet Sneltrein": 'train' //Blauwnet
'Blauwnet Stoptrein': 'train' //Blauwnet
'NMBS Stoptrein 'train' //NMBS
'DB Stoptrein': 'train' //DB Regio NRW
'VIAS Stoptrein': 'train' //VIAS Rail GMBH
'Eurobahn Stoptrein': 'train' //Eurobahn
'Eurobahn Sneltrein', 'train' //Eurobahn
'Eurobahn Stopbus i.p.v. trein' 'bus' //Eurobahn

Aansluitingen:

Type Icon

'Arriva Bus' 'bus' //Arriva
'RET Metro': 'metro' //R'dam
'GVB Tram': 'tram' //A'dam
'RET Tram': 'tram' //R'dam
'GVB Veerdienst': 'ferry' //A'dam
'Lopen': 'walk'
'Fietsen': 'bike'
'Openbaar vervoer': 'bus'
'Auto': 'auto'
'Bus': 'bus'

from mmm-nstreinen.

HenkyB avatar HenkyB commented on August 22, 2024

Sorry,

The spaces are removed automaticly :-(.

from mmm-nstreinen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.