Class OsmNetworkLayerModeConversion


  • public class OsmNetworkLayerModeConversion
    extends OsmModeConversionBase
    Class to support parsing of OSM modes on OSM ways given the configuration provided for each PLANit network layer
    Author:
    markr
    • Constructor Detail

    • Method Detail

      • updateAccessKeyBasedModeRestrictions

        public void updateAccessKeyBasedModeRestrictions​(Map<String,​String> tags,
                                                         Set<Mode> includedModesToUpdate,
                                                         Set<Mode> excludedModesToUpdate)
        Update the included and excluded mode sets passed in based on the key/value information available in the access=? tag.
        Parameters:
        tags - where we extract the access information from
        includedModesToUpdate - the set to supplement with found access information of allowed modes, e.g. access=yes, access=bus, etc.
        excludedModesToUpdate - the set to supplement with found access information of disallowed modes, e.g. access=no, etc.