Skip to content

Commit

Permalink
Privacy (#619)
Browse files Browse the repository at this point in the history
* Add support for a privacy policy url

* Add privacy_policy_url to layers proxied by SOSM
  • Loading branch information
simonpoole authored and grischard committed Jan 30, 2019
1 parent 536577b commit cda2096
Show file tree
Hide file tree
Showing 20 changed files with 5,633 additions and 5,608 deletions.
59 changes: 31 additions & 28 deletions ISSUE_TEMPLATE.md
@@ -1,28 +1,31 @@
When **requesting the addition of an imagery layer**, please provide the following information. Otherwise, delete the text and type your issue.

## URL of the imagery
(required)

## Two letter country code
(required)

## Desired layer name
(required)

## License
(required)<br/>
See FAQ at https://github.com/osmlab/editor-layer-index/blob/gh-pages/FAQ.md#what-imagery-licenses-are-compatible-with-this-index for information
about which licenses are compatible with this index.

## Is the license compatible with OSM?
(required)

## Attribution (text, URL, required?)
(optional)

## Icon
(optional)

## Bounding polygon
(if possible, provide a bounding polygon where the imagery is valid, e.g. as a GeoJSON or OSM file.)<br/>
See FAQ at https://github.com/osmlab/editor-layer-index/blob/gh-pages/FAQ.md#how-can-i-draw-a-bounding-polygon) for information about how to draw a bounding polygon.
When **requesting the addition of an imagery layer**, please provide the following information. Otherwise, delete the text and type your issue.

## URL of the imagery
(required)

## Two letter country code
(required)

## Desired layer name
(required)

## License
(required)<br/>
See FAQ at https://github.com/osmlab/editor-layer-index/blob/gh-pages/FAQ.md#what-imagery-licenses-are-compatible-with-this-index for information
about which licenses are compatible with this index.

## Is the license compatible with OSM?
(required)

## Attribution (text, URL, required?)
(optional)

## Privacy policy (URL)
(optional)

## Icon
(optional)

## Bounding polygon
(if possible, provide a bounding polygon where the imagery is valid, e.g. as a GeoJSON or OSM file.)<br/>
See FAQ at https://github.com/osmlab/editor-layer-index/blob/gh-pages/FAQ.md#how-can-i-draw-a-bounding-polygon) for information about how to draw a bounding polygon.
4 changes: 4 additions & 0 deletions schema.json
Expand Up @@ -73,6 +73,10 @@
"description": "A URL for the license or permissions for the imagery",
"type": "string"
},
"privacy_policy_url": {
"description": "A URL for the privacy policy of the operator",
"type": "string"
},
"id": {
"description": "A unique identifier for the source; used in imagery_used changeset tag",
"pattern": "^[-_.A-Za-z0-9]+$",
Expand Down
3 changes: 2 additions & 1 deletion scripts/convert_geojson_to_legacyjson.py
Expand Up @@ -40,7 +40,8 @@ def convert_json_source(args, source):

for f in ['name', 'type', 'url', 'license_url', 'id', 'description',
'country_code', 'default', 'best', 'start_date', 'end_date',
'overlay', 'available_projections', 'attribution', 'icon']:
'overlay', 'available_projections', 'attribution', 'icon',
'privacy_policy_url']:
thing = properties.get(f)
if thing is not None:
converted[f] = thing
Expand Down

0 comments on commit cda2096

Please sign in to comment.