Repr.Objectinclude Cosmetyc.Signatures.ObjectCommon
with type t = object_type
with type object_type = object_typetype t = object_typeval id : t -> Cosmetyc.Common.Id.tObject identifier.
val tags : t -> Cosmetyc.Common.Tags.tGet all the tags of an object.
val has_key : Cosmetyc.Common.Tags.key -> t -> boolCheck if a key is present.
val get_key :
Cosmetyc.Common.Tags.key ->
t ->
Cosmetyc.Common.Tags.value optionValue associated to a key
val has_tag_with :
Cosmetyc.Common.Tags.key ->
value:Cosmetyc.Common.Tags.value ->
t ->
boolCheck if a tag has the provided value.
val has_tag_contains :
Cosmetyc.Common.Tags.key ->
values:Cosmetyc.Common.Tags.value list ->
t ->
boolCheck if a tag has one of the provided values.
If stored or inferred, these functions return the hints provided to the create function (see type object_create above).
val version : t -> int optionObject version.
val changeset : t -> Cosmetyc.Common.Id.changeset optionThe last changeset that changed the object.
val visible : t -> bool optionWhether it should be visible when editing.
val uid : t -> Cosmetyc.Common.Id.user optionThe identifier of the last user who edited this object.
val user : t -> string optionThe UTF-8-encoded name of this last user.
val timestamp : t -> CalendarLib.Calendar.t optionThe last time when this object was modified.
val area : t -> bool optionval has_changed : t -> bool optiontype object_type = object_typeval to_object : t -> object_typeConvert a node to an object.
val of_object : object_type -> t optionSynonym of Object.to_node.
type node = Node.ttype way = Way.ttype relation = Relation.tval get_kind : t -> Cosmetyc.Common.Id.kindReturn the kind of an object (Node/Way/Relation).
Convert an object to a relation (or None if it isn't a relation).
val is_node : t -> boolWhether an object can be converted into a node with to_node.
val is_way : t -> boolWhether an object can be converted into a way with to_way.
val is_relation : t -> boolWhether an object can be converted into a relation with to_relation.