Comments (4)
Has this secretly been fixed?
A query like this http://api.navitia.io/v1/coverage/fr-idf/stop_areas/stop_area:OIF:SA:8775862/departures?from_datetime=20160519T223512&count=12&duration=86400&depth=0
now returns a list of departures that has a route
and in this route seem always to be physical_modes
like this:
"physical_modes": [
{
"id": "physical_mode:Bus",
"name": "Bus"
}
]
"physical_modes": [
{
"id": "physical_mode:RapidTransit",
"name": "Train de banlieue / RER"
}
]
Is this now reliable and stable for all /departures
queries?
from navitia.
I'd say stable, but not fully reliable.
We added this to route
objects, and this information is "most of the time" true. That is to say when a route only uses one physical_mode
, it's true (as we only retrieve the first physical_mode
linked to that route).
In the ideal model of the real world, this information linked to a route is a list, but in the real world it would be hard to find an instance where there are multiple physical_modes
.
What you really want if I understand well is the departures/display_information/physical_mode
to be an id and not a name (this information is reliable, as it is linked to the vehicle_journey). If so we will have a look to see if it's doable and how.
from navitia.
As long as every departure query gives me a route
object that contains the physical mode of that departure I am happy and consider this issue resolved. I've never seen a line with two different physical modes in the wild.
The problem was that this information was sometimes there in the display information, but not reliable as it could not always be mapped to the officially supported physical modes.
from navitia.
If it's Ok for you, then I close this issue.
I did a little mistake, as we have a physical_mode
list in route
, so the information is reliable (but hard to read into if you have more than one mode).
We might look into enriching departures/display_information
with a physical_mode id somehow, but not sure we will do, as this seems enough as it is.
Don't hesitate to reopen and we would probably look into that solution.
from navitia.
Related Issues (20)
- Taxi support HOT 2
- N- Voie HOT 1
- Data handling HOT 3
- Missing data in NTFS files ? HOT 1
- GTFS - Slovenia
- Random spots using Ile-de-France Mobilités isochrones HOT 1
- Coverage shape : how is it computed ? HOT 8
- How does Navitia compare to alternatives? HOT 2
- Cannot find a region with stop_area:IDFM:74162 and stop_area:STE:OCE87611004 in the same time HOT 1
- Reporting a vulnerability HOT 1
- Pagination on isochrone/journeys endpoint not working as expected
- How to contribute?
- Missing submodules HOT 2
- Deleted Docker images
- Cannot get submodules needed for compilation
- Link to OpenDataSoft broken HOT 1
- GET Api /coords returns a 403 HOT 2
- [SNCF] Issues with /v1/coverage/sncf/journeys HOT 1
- Contact Navtia team for collaboration
- Add direction in path item as specified in https://doc.navitia.io/#path-item
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 navitia.