Skip to content

feat: Validate presence of location_type and the type of referenced location#500

Merged
barbeau merged 6 commits intoMobilityData:masterfrom
aababilov:location-type
Dec 9, 2020
Merged

feat: Validate presence of location_type and the type of referenced location#500
barbeau merged 6 commits intoMobilityData:masterfrom
aababilov:location-type

Conversation

@aababilov
Copy link
Copy Markdown
Collaborator

  • LocationWithoutParentStationNotice - A location that must have parent_station field does not have it. The following location types must have parent_station: entrance, generic node, boarding area.
  • PlatformWithoutParentStationNotice - A platform has no parent_station field set. This is different from {@code LocationWithoutParentStationNotice} since it is less severe. Here we treat location_type=0 with platform_code as a platform.
  • StationWithParentStationNotice - A station has parent_station field set.
  • WrongParentLocationTypeNotice - incorrect type of the parent location (e.g., parent for a stop must be a station).

@aababilov aababilov changed the title Validate presence of location_type and the type of referenced location feat: Validate presence of location_type and the type of referenced location Dec 3, 2020
This is the common behaviour for all setters that allows to chain them:

new GtfsStop.Builder().setCsvRowNumber(1).setStopId("s1").build()
@aababilov aababilov force-pushed the location-type branch 2 times, most recently from e398738 to 5b69fd9 Compare December 3, 2020 02:15
@lionel-nj lionel-nj linked an issue Dec 3, 2020 that may be closed by this pull request
Copy link
Copy Markdown
Member

@barbeau barbeau left a comment

Choose a reason for hiding this comment

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

Thanks @aababilov! Looks good - a few comments in-line.

@barbeau barbeau merged commit 8f697b9 into MobilityData:master Dec 9, 2020
@aababilov aababilov deleted the location-type branch April 20, 2021 02:25
@isabelle-dr isabelle-dr mentioned this pull request Oct 28, 2021
4 tasks
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