- el1['id'] = self.id.to_s
- el1['name'] = self.name.to_s
- el1['lat'] = self.latitude.to_s if self.inserted
- el1['lon'] = self.longitude.to_s if self.inserted
- el1['user'] = self.user.display_name
- el1['visibility'] = self.visibility
- el1['pending'] = (!self.inserted).to_s
- el1['timestamp'] = self.timestamp.xmlschema
+ el1['id'] = id.to_s
+ el1['name'] = name.to_s
+ el1['lat'] = latitude.to_s if inserted
+ el1['lon'] = longitude.to_s if inserted
+ el1['user'] = user.display_name
+ el1['visibility'] = visibility
+ el1['pending'] = (!inserted).to_s
+ el1['timestamp'] = timestamp.xmlschema