-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Export Quays for NeTEx France #520
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me at functional level
@@ -10,7 +10,7 @@ The fare data expected at the input of the connector comes in the form of XML fi | |||
|
|||
The supported fare structures depend on origin-destination (OD) stop pairs in two ways: | |||
- the ticket price between an origin and a destination is directly specified (*DirectPriceMatrix*) | |||
- the price for a fare distance unit is specified, as well as the fare distance between an origin and a destination (*UnitPrice* & *DirectMatrix*). The ticket price between the origin and destination stops is computed by multiplying the fare distance by the fare distance unit. In this case, one and only one frame of type *UnitPrice* is expected: if none or more than two are provided, the file is considered invalid and should be discarded. | |||
- the price for a fare distance unit is specified, as well as the fare distance between an origin and a destination (*UnitPrice* & *DistanceMatrix*). The ticket price between the origin and destination stops is computed by multiplying the fare distance by the fare distance unit. In this case, one and only one frame of type *UnitPrice* is expected: if none or more than two are provided, the file is considered invalid and should be discarded. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strange to have this here, but thx for the fix 👍
d459ab9
to
c8db079
Compare
src/netex_france/stops.rs
Outdated
// FIXME: String 'EPSG:4326' is failing at runtime (string below is equivalent but works) | ||
let from = "+proj=longlat +datum=WGS84 +no_defs"; // See https://epsg.io/4326 | ||
let to = "EPSG:2154"; | ||
let converter = Proj::new_known_crs(from, to, None).ok_or_else(|| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we have a performance issue if we instantiate proj for each stop point?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, I should be able to create a field of StopPointExporter
and initialize it at the construction... I'll rework that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6039817.
7628b7b
to
f1006a1
Compare
No description provided.