public-transport / friendly-public-transport-format

A format for APIs, libraries and datasets containing and working with public transport data.
Creative Commons Attribution Share Alike 4.0 International
125 stars 1 forks source link

add price attribute for journey legs #45

Closed juliuste closed 6 years ago

juliuste commented 6 years ago

When working with data from 🇵🇱 PKP, 🇦🇹 ÖBB or 🇲🇪 ŽPCG, I encountered the issue that there was pricing information available for specific journey legs, but not for the entire (combined) journey, as long as the price for at least one leg remained unknown.

I think it makes sense to give legs an optional price attribute as well (as in journey). I know that I could already implement that without adding it to FPTF since the spec doesn't forbid it, but IMHO it makes sense to standardize this since I encountered the issue multiple times. Opinions?

derhuerst commented 6 years ago

Fine with making it optional. Should have the same structure as journey.price.