Class Osm2PlanitConversionTemplates


  • public class Osm2PlanitConversionTemplates
    extends Object
    some example templates for converting OSM files to Planit network files with various predefined configurations
    Author:
    markr
    • Constructor Detail

      • Osm2PlanitConversionTemplates

        public Osm2PlanitConversionTemplates()
    • Method Detail

      • osm2PlanitCarSimple

        public static void osm2PlanitCarSimple​(String inputFile,
                                               String outputPath,
                                               String countryName,
                                               Long... excludedOsmWays)
                                        throws PlanItException
        Template for simple car centric conversion of OSM network to PLANit network, with only the main road types active
        Parameters:
        inputFile - the input file
        outputPath - the output dir
        countryName - the country name
        excludedOsmWays - allow to exclude certain ways by id (if any)
        Throws:
        PlanItException - thrown if error
      • osm2PlanitNetworkComprehensive

        public static void osm2PlanitNetworkComprehensive​(String inputFile,
                                                          String outputPath,
                                                          String countryName)
                                                   throws PlanItException
        Template for parsing all road, pedestrian, bicycle, and rail infrastructure of OSM network to PLANit network
        Parameters:
        inputFile - the input file
        outputPath - the output path
        countryName - the country name
        Throws:
        PlanItException - thrown if error
      • osm2PlanitBasicIntermodalNoServices

        public static void osm2PlanitBasicIntermodalNoServices​(String inputFile,
                                                               String outputPath,
                                                               String countryName)
                                                        throws PlanItException
        Template for parsing intermodal road and rail infrastructure of OSM network to PLANit network for your typical assignment but without pedestrian or cyclist infrastructure
        Parameters:
        inputFile - the input file
        outputPath - the output path
        countryName - the country name
        Throws:
        PlanItException - thrown if error