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);
 }
Beispiel #2
0
 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());
     }
   }
 }
Beispiel #3
0
 public void setOpeningHours(String openingHours) {
   setAdditionalInfo(OPENING_HOURS, openingHours);
 }
Beispiel #4
0
 public void setDescription(String description) {
   setAdditionalInfo(DESCRIPTION, description);
 }
Beispiel #5
0
 public void setPhone(String phone) {
   setAdditionalInfo(PHONE, phone);
 }
Beispiel #6
0
 public void setSite(String site) {
   setAdditionalInfo(WEBSITE, site);
 }