public static EditPoiDialogFragment createAddPoiInstance( double latitude, double longitude, OsmandApplication application) { Node node = new Node(latitude, longitude, -1); Amenity amenity; amenity = new Amenity(); amenity.setType(application.getPoiTypes().getOtherPoiCategory()); amenity.setSubType(""); amenity.setAdditionalInfo(OSMSettings.OSMTagKey.OPENING_HOURS.getValue(), ""); return createInstance(node, amenity); }
public void setAdditionalInfo(Map<String, String> additionalInfo) { this.additionalInfo = null; openingHours = null; if (additionalInfo != null) { Iterator<Entry<String, String>> it = additionalInfo.entrySet().iterator(); while (it.hasNext()) { Entry<String, String> e = it.next(); setAdditionalInfo(e.getKey(), e.getValue()); } } }
public void setOpeningHours(String openingHours) { setAdditionalInfo(OPENING_HOURS, openingHours); }
public void setDescription(String description) { setAdditionalInfo(DESCRIPTION, description); }
public void setPhone(String phone) { setAdditionalInfo(PHONE, phone); }
public void setSite(String site) { setAdditionalInfo(WEBSITE, site); }