Skip to content
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

stick a bit more to the siri spec #72

Merged
merged 4 commits into from
Feb 13, 2019
Merged

Conversation

antoine-de
Copy link
Member

add 2 filters:

  • MaximumStopVisits
  • PreviewInterval

fill the field operator_ref

I updated #19 with the remaining params

.get_corresponding_from_idx(connection.dated_vj.vj_idx)
.into_iter()
.next();
let operator_ref = operator_idx.map(|idx| data.ntm.companies[idx].id.clone());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not chain the map directly, instead of storing the index?

start_time: chrono::NaiveDateTime,
duration: &Option<utils::Duration>,
) -> bool {
if let Some(duration) = duration {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn’t a map_or be clearer ? at least a match

@Tristramg Tristramg merged commit 6becf05 into etalab:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants