Class OsmPbfAddressImportUtil

java.lang.Object
com.datengaertnerei.test.dataservice.person.OsmPbfAddressImportUtil

public class OsmPbfAddressImportUtil extends Object
OpenStreetMap address import tool.
Author:
Jens Dibbern
  • Method Details

    • importAddresses

      public static boolean importAddresses(String inputUrl, PostalAddressRepository repository) throws MalformedURLException
      Starts OSM dump parser and exports all addresses within defined country.
      Parameters:
      inputUrl - the file to import
      repository - reference to the JPA repository
      Returns:
      success
      Throws:
      MalformedURLException - import URL not valid