Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
a2584b03
Commit
a2584b03
authored
Oct 11, 2013
by
Matija Obreza
Browse files
URL to alternateNames.zip from geonames.org
parent
804afc6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/server/service/impl/CountryAlternateNamesUpdater.java
View file @
a2584b03
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment