Giter Site home page Giter Site logo

Comments (13)

aemkei avatar aemkei commented on July 27, 2024 1

We discussed this feature before and decided to skip it in the mobile app because the added value for the user might not be high enough compared to the data volume and a more complicated interface.

from trufi-core.

aemkei avatar aemkei commented on July 27, 2024 1

I also have a GeoJSON and TopJSON file with all the lines:

trufi-lines.zip

You can drag this into http://geojson.io/ to see all the lines:

image

from trufi-core.

annikabock avatar annikabock commented on July 27, 2024

Check the index Api for routes and stops:
http://trufiapp.westeurope.cloudapp.azure.com:8080/otp/routers/default/index/stops

from trufi-core.

annikabock avatar annikabock commented on July 27, 2024

some doku http://dev.opentripplanner.org/apidoc/0.15.0/resource_IndexAPI.html

from trufi-core.

annikabock avatar annikabock commented on July 27, 2024

@natalyablanco does this function help?
This /routers/{routerId}/index/stops/{stopId}/routes

from trufi-core.

natalyablanco avatar natalyablanco commented on July 27, 2024

yes! I saw that on Friday. I wanna integrate that endpoint today. The response is [{"id":"1:108","shortName":"104","longName":"E-Se (Taxi trufi)","mode":"BUS","color":"00FF66","agencyName":"Sindicato 1ro de mayo"},{"id":"1:107","shortName":"104","longName":"So-E (Taxi trufi)","mode":"BUS","color":"00FF66","agencyName":"Sindicato 1ro de mayo"}]

I assume we want to show the shortName, right?

from trufi-core.

aemkei avatar aemkei commented on July 27, 2024

Also a hint: the link above refers to an older API. You might want to use 1.0 instead of 0.15:

http://dev.opentripplanner.org/apidoc/1.0.0/

from trufi-core.

natalyablanco avatar natalyablanco commented on July 27, 2024

Thanks for the link!
I agree, it seems to be too much to get such a simple information. Maybe with a cleaver design we could add this information later on. I'll keep the branch just in case. :)

from trufi-core.

RaimundWege avatar RaimundWege commented on July 27, 2024

I thought about a map tiles overlay which shows the routes when no plan is loaded.

from trufi-core.

mdoelker avatar mdoelker commented on July 27, 2024

Looks like /index/stops in combination with /index/routes will get us all the data that is needed. We could also generate a more condensed version daily and have the app download it alongside the search data.

from trufi-core.

mdoelker avatar mdoelker commented on July 27, 2024

Hmm looked into it a bit more and its not easy to relate them with these endpoints. Having looked into graphql a bit lately I was able to extract the information from the graphql endpoint though pretty easily.

I have also added a script that would convert the data to GeoJSON. (Commit: https://gitlab.com/truffi/data/commit/4578dd1a60b3b0d82e6d8daba949548ea2cdc57c#350e8112e6566b11242ec308a403ff2cb16e747c)

The GraphQL query I used is:

  {
    routes {
      shortName,
      longName,
      color,
      agency {
        name
      },
      stops {
        lat, lon
      }
    }
  }

Details how to request the data in https://gitlab.com/truffi/data/blob/master/src/export-lines-geojson.js

This gave me a slightly updated map. I am excited to see it when we have the OSM routes as well :D
image

I suggest we consume the endpoint from within the app and cache the result a while.

More info on how to get types & fields: https://graphql.org/learn/introspection/

from trufi-core.

mdoelker avatar mdoelker commented on July 27, 2024

We have to query the lines in a way that returns them only for the area we look at though if we keep adding new cities. Will check if the graphql endpoint makes that possible.

from trufi-core.

ValorNaram avatar ValorNaram commented on July 27, 2024

Closing this due to topic inactivity.

Internal future strategy: Attracting more women to work on technical tasks like @annikabock or @natalyablanco . Check reactivation of gender diversity.

from trufi-core.

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.