Commit a2584b03 authored by Matija Obreza's avatar Matija Obreza
Browse files

URL to alternateNames.zip from geonames.org

parent 804afc6b
......@@ -55,8 +55,7 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
@Component
public class CountryAlternateNamesUpdater implements CountryNamesUpdater {
// TODO
public static String ALTERNATE_NAMES_URL = "...";
public static String ALTERNATE_NAMES_URL = "http://download.geonames.org/export/dump/alternateNames.zip";
private static String ALTERNATE_NAMES_FILE = "/Users/mobreza/Downloads/alternateNames/alternateNames.txt";
......@@ -111,7 +110,7 @@ public class CountryAlternateNamesUpdater implements CountryNamesUpdater {
}
} while (zipEntry != null);
if (zipEntry == null || !zipEntry.getName().equals("alternateNames.zip")) {
if (alternateNamesStream == null) {
LOG.warn("Didn't find alternateNames.zip, stopping update.");
IOUtils.closeQuietly(instream);
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment