Class OSMTemporalAccessParser
java.lang.Object
com.graphhopper.routing.util.parsers.OSMTemporalAccessParser
- All Implemented Interfaces:
TagParser
This parser fills the different XYTemporalAccess enums from the OSM conditional
restrictions based on the specified dateRangeParserDate. 'Temporal' means that both, temporary
and seasonal restrictions will be considered. Node tags will be ignored for now.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOSMTemporalAccessParser
(Collection<String> conditionals, OSMTemporalAccessParser.Setter restrictionSetter, String dateRangeParserDate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleWayTags
(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) static boolean
hasTemporalRestriction
(ReaderWay way, int firstIndex, List<String> restrictions)
-
Constructor Details
-
OSMTemporalAccessParser
public OSMTemporalAccessParser(Collection<String> conditionals, OSMTemporalAccessParser.Setter restrictionSetter, String dateRangeParserDate)
-
-
Method Details
-
handleWayTags
public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) - Specified by:
handleWayTags
in interfaceTagParser
-
hasTemporalRestriction
-