Skip to content

Commit

Permalink
Update various presets to specify the preferred geometry type
Browse files Browse the repository at this point in the history
Add documentation about the geometry array order
  • Loading branch information
quincylvania committed Aug 15, 2019
1 parent 9c730c4 commit b45dc7e
Show file tree
Hide file tree
Showing 41 changed files with 168 additions and 166 deletions.
4 changes: 3 additions & 1 deletion data/presets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ An array of possible geometry types that a feature must have in order to match t

Closed ways can be treated as both `line` or `area` geometry. If a preset allows both, iD will add an additional `area=yes` tag when choosing the preset for an area feature.

The geometry types should be listed in order of preference. For example, the preset for `leisure=swimming_pool` lists `area` before `point`.

This property is required. There is no default.

##### `tags`
Expand Down Expand Up @@ -203,7 +205,7 @@ When possible, use `deprecated.json` instead to specify upgrade paths for old ta

A key and optionally a value to link to the wiki documentation for this preset. Only necessary if the preset consists of several tags.

For example,
For example,
```javascript
"reference": {
"key": "tower:type",
Expand Down
76 changes: 38 additions & 38 deletions data/presets/presets.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions data/presets/presets/aeroway/aerodrome.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-airport",
"geometry": [
"point",
"area"
"area",
"point"
],
"fields": [
"name",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/aeroway/helipad.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-heliport",
"geometry": [
"point",
"area"
"area",
"point"
],
"fields": [
"name",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/bleachers.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "bleachers"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"website"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"fields": [
"name"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/disc_golf_course.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"wheelchair"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "disc_golf_course"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/golf_course.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"fax"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"terms": [
"links"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/ice_rink.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"fax"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"terms": [
"hockey",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/marina.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"fax"
],
"geometry": [
"area",
"point",
"vertex",
"area"
"vertex"
],
"terms": [
"boat"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/miniature_golf.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"fax"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"terms": [
"crazy golf",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/nature_reserve.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-park",
"geometry": [
"point",
"area"
"area",
"point"
],
"fields": [
"name",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"payment_multi_fee"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch"
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/american_football.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-american-football",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/australian_football.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-american-football",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/badminton.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"access_simple"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/baseball.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-baseball",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/basketball.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"access_simple"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/beachvolleyball.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-volleyball",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/boules.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"{leisure/pitch}"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/bowls.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-pitch",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/cricket.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-cricket",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/equestrian.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"building"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/field_hockey.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-pitch",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/horseshoes.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "temaki-horseshoes",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/netball.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-volleyball",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/rugby_league.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-american-football",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/rugby_union.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-american-football",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/shuffleboard.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "temaki-shuffleboard",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/skateboard.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-skateboard",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/soccer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"icon": "maki-soccer",
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
36 changes: 18 additions & 18 deletions data/presets/presets/leisure/pitch/softball.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"icon": "maki-baseball",
"geometry": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "softball"
},
"reference": {
"key": "sport",
"value": "softball"
},
"terms": [
"softball",
"diamond"
],
"name": "Softball Field"
"icon": "maki-baseball",
"geometry": [
"area",
"point"
],
"tags": {
"leisure": "pitch",
"sport": "softball"
},
"reference": {
"key": "sport",
"value": "softball"
},
"terms": [
"softball",
"diamond"
],
"name": "Softball Field"
}
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/table_tennis.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"access_simple"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
4 changes: 2 additions & 2 deletions data/presets/presets/leisure/pitch/tennis.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"access_simple"
],
"geometry": [
"point",
"area"
"area",
"point"
],
"tags": {
"leisure": "pitch",
Expand Down
Loading

0 comments on commit b45dc7e

Please sign in to comment.