Skip to content

Add parser support for parking opening hours (AvailabilityCondition)#309

Open
teppope wants to merge 1 commit into
entur:masterfrom
tmfg:feat/parking-availability-conditions
Open

Add parser support for parking opening hours (AvailabilityCondition)#309
teppope wants to merge 1 commit into
entur:masterfrom
tmfg:feat/parking-availability-conditions

Conversation

@teppope

@teppope teppope commented Jul 21, 2026

Copy link
Copy Markdown

Summary

Add a dedicated index for AvailabilityCondition elements found inside Parking.validityConditions. This allows downstream consumers to look up parking opening hours by parking id without having to manually traverse the raw JAXB object.

Changes

  • NetexEntitiesIndex: new getAvailabilityConditionsByParkingIdIndex() method returning Multimap<String, AvailabilityCondition>
  • NetexEntitiesIndexImpl: backing Multimap field and getter implementation
  • SiteFrameParser: extracts AvailabilityCondition entries from each parking's validityConditions list during parsing
  • New test fixture and test class covering parkings with/without availability conditions

Motivation

Parking opening hours are modelled as AvailabilityCondition elements in validityConditions. Without this change they were parsed into the raw Parking JAXB object but not indexed, so downstream consumers had no convenient query path.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant