GithubHelp home page GithubHelp logo

Comments (3)

schildbach avatar schildbach commented on July 18, 2024

If that's a subway line it should already be shown in the default subway colors. What you see in the TlemProvider.java is just the custom colors. Feel free to submit a PR for those.

from public-transport-enabler.

jayfan0 avatar jayfan0 commented on July 18, 2024

Its a strange hybrid line. Its a subway line under london but overground extending out to the outer parts of east and west london. The line colour is purple. See map here

I'm using an app called Transportr, and the journeys show some train ID numbers(?) rather than "Elizabeth Line". Other subway routes show the line name.

In fact all, if not most journeys in the UK are indicated by the train operator and destination rather than ID numbers which is what this app seems to show for journeys outside of London...

I wouldn't know where to begin tweaking these...

from public-transport-enabler.

lunas-bad-coding avatar lunas-bad-coding commented on July 18, 2024

i've looked a bit into the JSON response and lizz reports herself as crossrail
data-operator="XR"

so i think that this might work:

        //adding elizabeth line right here and i don't know how to test that. it just looks like it might make some sense.
        //i've looked at a JSON response from traveline and it says following:
            //product	"Elizabeth line"
            //productId	"13"
            //type	"9"
            //code	"18"
            //trainType	"OO"
        if ("1".equals(mot)) {
            if (trainType == "OO" && ("Elizabeth line".equals(product)))
                return new Line(id, network, Product.SUBURBAN_TRAIN, "Elizabeth Line");
        //here goes nothing with Lizz
        STYLES.put("SElizabeth Line", new Style(Style.parseColor("#6950a1"), Style.WHITE));

that's what i'd insert in the TlemProvider.java file

but honestly: i have no clue, it's just a wild guess and i'm by no means a programmer.

from public-transport-enabler.

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.