Comments (13)
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.
I also have a GeoJSON and TopJSON file with all the lines:
You can drag this into http://geojson.io/ to see all the lines:
from trufi-core.
Check the index Api for routes and stops:
http://trufiapp.westeurope.cloudapp.azure.com:8080/otp/routers/default/index/stops
from trufi-core.
some doku http://dev.opentripplanner.org/apidoc/0.15.0/resource_IndexAPI.html
from trufi-core.
@natalyablanco does this function help?
This /routers/{routerId}/index/stops/{stopId}/routes
from trufi-core.
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.
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.
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.
I thought about a map tiles overlay which shows the routes when no plan is loaded.
from trufi-core.
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.
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
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.
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.
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)
- Add Points of Interest to Trufi Map HOT 6
- Implement dokumentation of new features on Website HOT 1
- Overlapping Icons
- Bring Search Engine Optimization back to Trufi Core HOT 1
- Add Maplayers like in stadtnavi to Trufi Core
- Issues on the streets - how to report them?
- Finding out if there is a system in the City that could contribute with Data to the APP.
- Research Ma3Route in Kenia
- Report Site on Wordpress for the latest features of Trufi Core HOT 1
- Nairobi: Show price structure in the app HOT 1
- Implement Comments for Users on Trufi
- Add Public Toilettes as Point of Interest
- Adding the fares in Trufi for CBBA HOT 1
- Adding more information about the app in the "About Us" option. HOT 2
- Improvements in the display of the complete route
- Improvements in the display of results HOT 2
- Improved user tracking web page
- Implement improvements to the user tracking webpage
- Email notification for new data on User Tracking Webpage
- Improvements in the Route Tracking option. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trufi-core.