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

Replace location groups with stop areas #375

Merged
merged 6 commits into from
May 16, 2023

Conversation

br648
Copy link
Collaborator

@br648 br648 commented Mar 24, 2023

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Deprecated location groups and replace with stop areas and areas.

Copy link
Collaborator

@philip-cline philip-cline left a comment

Choose a reason for hiding this comment

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

This works well for me testing against the front end PR. A couple questions, mostly for my info.

@philip-cline philip-cline assigned br648 and unassigned philip-cline May 5, 2023
Copy link
Collaborator

@philip-cline philip-cline left a comment

Choose a reason for hiding this comment

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

Just one quick fix for a bug around pattern names

src/main/java/com/conveyal/gtfs/PatternFinder.java Outdated Show resolved Hide resolved
Copy link
Collaborator

@philip-cline philip-cline left a comment

Choose a reason for hiding this comment

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

Looking good to me. Thanks for the fixes!

@br648 br648 assigned miles-grant-ibigroup and unassigned br648 May 10, 2023
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

Wow this is a heavy set of changes.

Just a few small questions but overall thanks for this! This does not look like it was easy work.

src/main/java/com/conveyal/gtfs/PatternFinder.java Outdated Show resolved Hide resolved
return locationGroupById.get(haltId).location_group_name;
} else if (stopAreaById.containsKey(haltId)) {
Area area = areaById.get(haltId);
return area.area_name != null ? area.area_name : area.area_id;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we return the id as a fallback?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@philip-cline Does the UI require the area_id? If not, can the default fromTerminusNameUnknown or toTerminusNameUnknown value be used?

Copy link
Collaborator

Choose a reason for hiding this comment

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

The UI doesn't require the area_id but I think it looks a lot better while we work on implementing area names.

@br648 br648 merged commit df937fd into dev-flex May 16, 2023
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.

3 participants