Improve parsing

This commit is contained in:
Victor Shcherb 2015-06-04 10:16:21 +02:00
parent df12e39f73
commit 2243426d5a
2 changed files with 7 additions and 5 deletions

View file

@ -261,15 +261,17 @@ public class OsmandRegions {
public boolean publish(BinaryMapDataObject object) {
initTypes(object);
String downloadName = getDownloadName(object);
if(downloadName == null) {
return false;
}
downloadName = downloadName.toLowerCase();
String parentFullName = getParentFullName(object);
String fullName = getFullName(object);
if(!Algorithms.isEmpty(parentFullName)) {
parentRelations.put(fullName, parentFullName);
}
if(downloadName == null) {
// continent
return false;
}
downloadName = downloadName.toLowerCase();
downloadNames.put(fullName, downloadName);
String locName = getLocaleName(object);
if(locName != null && locName.length() > 0){

View file

@ -68,7 +68,7 @@ public class FileNameTranslationHelper {
int index = wikiWord.indexOf("(");
if (index >= 0) {
//removing word in "()" from recourse file
return wikiName + wikiWord.substring(0, index);
return wikiName + " " + wikiWord.substring(0, index).trim();
}
return wikiName + " " + ctx.getString(R.string.amenity_type_osmwiki);
}