chore: add road transport to airport or to port#1782
Conversation
|
Note : I have to fix the prettier issue (this file should not be checked by prettier, as it is formatted on the data side |
n1k0
left a comment
There was a problem hiding this comment.
LGTM, client needs to be updated to consume this new format, I'll do that on top of this branch
|
@cedricr build is failing with a json formatting issue you might want to fix before I take over the patch :) Edit: damn missed your comment about this, scratch my comment |
6afda52 to
c88e9f5
Compare
|
@paulboosz I’ve fixed the prettier issue, but maybe we should consider excluding all the public/data folder, instead of adding all its files one by one 😅. Or, if some of the files inside are not coming from the data repo, establish a clearer separation. |
|
@nicolaspkandeel looks good to you too ? We can even add other transportation means later on (rail, etc.) |
@n1k0 the prettier problem is fixed, but the tests fails, which… is expected for now I guess. |
Indeed, I'll take over from there 👍 |
Looks like there is only 500km truck in this config, not 1000 (500km in the country of departure + 500km in the country of arrival). For transport within a country it is fine (there is a rule to refuse the distance for very small distance) but not in other situations. It would be more intuitive to me to have the 500km as a parameter attached to a country/région, and not directly written in the table of distances.
Did you considered this option ? Then, I see that the distances with unknown region is still defined here, whereas it is a default value. It is confusing. If there is a good reason for that just ignore this last comment. |
@nicolaspkandeel Excellent points ! I’ll migrate the values to the countries file. |
78ebefc to
8aee599
Compare
|
@nicolaspkandeel I’ve added to each country. We can talk later on about how to get a more precise estimate. @n1k0 works for you? |
There was a problem hiding this comment.
Woah for some reason I missed I was tagged with an open question asked, sorry! The latest changes to the format looks good and I feel like countries.json file is indeed the right place to have country-specific internal transportation distances information defined and handled. So, that works for me!
I'm taking over the branch and will implement #1531 right here.
8aee599 to
319577c
Compare
b561ef1 to
5dcae3a
Compare
## 🔧 Problem Fix MTES-MCT/ecobalyse#1778 See also MTES-MCT/ecobalyse#1782 ## 🍰 Solution Updates the transports.json file with nested values for sea and air transport. The new format is ``` { "air": { "byPlane": 500, "byTruck": 500 }, "road": 500, "sea": { "byBoat": null, "byTruck": null } } ``` ## 🚨 Points to watch/comments This should not be merged until the frontend is ready!
🔧 Problem
Fix #1778
See also: MTES-MCT/ecobalyse-data#211
🍰 Solution
Updates the countries.json file with values for distances to port and airport. The new format is
🚨 Points to watch/comments
This should not be merged until the frontend is ready!