Parent Operation Model

class maproulette.models.parent_operation.ParentOperationModel(operation_type=None, element_type=None, osm_id=None, child_operations=None)

Bases: object

property child_operations

The set of operations that will be applied according to the operation type and object specified in the parent relation

property element_type

The element type of the object to which the operation is applied (‘way’, ‘node’, ‘relation’)

property operation_type

The operation type to be applied to the OSM object (‘createElement’, ‘modifyElement’, ‘deleteElement’)

property osm_id

The OSM ID of the object to which the operation is applied

to_dict()
to_json()

Converts all non-null properties of a task object into a JSON object