Class OsmPbfAddressImportUtil
java.lang.Object
com.datengaertnerei.test.dataservice.person.OsmPbfAddressImportUtil
OpenStreetMap address import tool.
- Author:
- Jens Dibbern
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
importAddresses
(String inputUrl, PostalAddressRepository repository) Starts OSM dump parser and exports all addresses within defined country.
-
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 importrepository
- reference to the JPA repository- Returns:
- success
- Throws:
MalformedURLException
- import URL not valid
-