Skip to content

Instantly share code, notes, and snippets.

@defvol
Forked from planemad/map-qa-spec.md
Last active August 23, 2016 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defvol/0bd87524ee8c6c5594d7bffd1e5ea29a to your computer and use it in GitHub Desktop.
Save defvol/0bd87524ee8c6c5594d7bffd1e5ea29a to your computer and use it in GitHub Desktop.

Map QA Issues Specs v2.0 [DRAFT]

JSON schema to represent data quality issues on a map. A QA project is a collection of data quality issues generated from a source or queried live from OSM.

Project Metadata

A JSON-compliant schema to describe a project

{
	"project": {
		"uid": "1001",
		// Warning | Error
		"category": "error",
		"name": "Fixing one-ways",
		"description": "Let's fix all the wrong one-ways",
		"difficulty": "intermediate",
		"priority": "low",
		"basemap": "",
		// Status: "Unpublished" | "Published" | "Completed" | "Validated" | "Invalid"
		"status": "published",
		"statusUpdatedAt": "2015-01-01T15:00:00Z",
		"issues": {
			"source": "https://github.com/osmlab/to-fix/issues/150",
			"sourceUpdatedAt": "2015-01-01T10:00:00Z",
			"total": 100,
			"resolved": 50,
			"validated": 25
		},
		"contributors": 8,
		"severityUnits": "?"
	}
}

Project Issues

A line-delimited list of GeoJSON Features

{ "type": "Feature", "properties": { "status": "fixed", "severity": "low", "osm_id": 1234567890, "project_id": 1001 }, "geometry": { "type": "Point", "coordinates": [ 0, 0 ] } }
{ "type": "Feature", "properties": { "status": "fixed", "severity": "low", "osm_id": 2345678901, "project_id": 1001 }, "geometry": { "type": "Point", "coordinates": [ 1, 0 ] } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment