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