Challenge Model¶
This module contains the definition of a Challenge object in MapRoulette.
-
class
maproulette.models.challenge.ChallengeModel(name, id=None, description=None, parent=None, instruction=None, difficulty=None, blurb=None, enabled=None, challenge_type=None, featured=None, overpassQL=None, default_priority=None, high_priority_rule=None, medium_priority_rule=None, low_priority_rule=None, default_zoom=None, min_zoom=None, max_zoom=None, osm_id_property=None, cooperative_type=None, popularity=None, check_in_comment=None, check_in_source=None, requires_local=None, default_basemap=None, default_basemap_id=None, custom_basemap=None, update_tasks=None, exportable_properties=None, preferred_tags=None, task_styles=None, remote_geojson=None, keywords=None)¶ Bases:
objectDefinition for a MapRoulette Challenge
-
property
blurb¶ The blurb for the challenge
-
property
challenge_type¶ The type for this challenge
-
property
check_in_comment¶ Comment to be associated with changes made by users
-
property
check_in_source¶ Hashtag appended to changeset comments
-
property
cooperative_type¶
-
property
custom_basemap¶ The custom basemap of this challenge
-
property
default_basemap¶ The default basemap to use for this challenge
-
property
default_basemap_id¶ The id of the default basemap
-
property
default_priority¶ The default priority for this challenge
-
property
default_zoom¶ The default zoom level for this challenge
-
property
description¶ The description for the challenge
-
property
difficulty¶ The difficulty setting for the challenge
-
property
enabled¶ Whether this challenge is enabled for use or not
-
property
exportable_properties¶ Comma separated list of properties to be exportable
-
property
featured¶ Whether or not this challenge is featured
-
property
high_priority_rule¶ The high priority for this challenge
-
property
id¶ The ID of the challenge
-
property
instruction¶ The instruction for the challenge
-
property
keywords¶ A string or list of strings pertaining to the keywords of this challenge
-
property
low_priority_rule¶ The low priority of this challenge
-
property
max_zoom¶ The maximum zoom level for this challenge
-
property
medium_priority_rule¶ The medium priority for this challenge
-
property
min_zoom¶ The minimum zoom level for this challenge
-
property
name¶ The internal name of the challenge
-
property
osm_id_property¶ The id property of an osm feature
-
property
overpassQL¶ The Overpass query for this challenge
-
property
parent¶ The parent ID for the challenge
-
property
path¶ The path to the challenge
-
property
popularity¶ The popularity of a challenge
List of preferred tags the user can use when completing tasks
-
property
remote_geojson¶ Create a challenge from a GeoJSON URL
-
property
requires_local¶ Whether or not tasks require local knowledge to complete
-
property
task_styles¶ Custom task styling based on specific task feature properties
-
to_dict()¶ Converts all non-null properties of a challenge object into a dictionary
-
to_json()¶ Converts all non-null properties of a challenge object into a JSON object
-
property
update_tasks¶ Whether or not to periodically delete old tasks
-
property