Fix text types

This commit is contained in:
vshcherb 2013-11-24 20:24:14 +01:00
parent 02f0be7d22
commit bf9f0e5220

View file

@ -67,9 +67,15 @@ public class Amenity extends MapObject {
if(this.additionalInfo == null){
this.additionalInfo = new LinkedHashMap<String, String>();
}
this.additionalInfo.put(tag, value);
if(OPENING_HOURS.equals(tag)) {
this.openingHours = value;
if("name".equals(tag)) {
setName(value);
} else if("name:en".equals(tag)) {
setEnName(value);
} else {
this.additionalInfo.put(tag, value);
if (OPENING_HOURS.equals(tag)) {
this.openingHours = value;
}
}
}