Initial commit

This commit is contained in:
Quincy Morgan 2020-11-05 11:30:34 -05:00
commit bf95421f65
1906 changed files with 55742 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
.DS_Store
.esm-cache
.vscode/
.idea/
/node_modules/
/.tx/tmp/
npm-debug.log
package-lock.json

15
LICENSE.md Normal file
View file

@ -0,0 +1,15 @@
## ISC License
Copyright (c) 2017, iD Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

31
README.md Normal file
View file

@ -0,0 +1,31 @@
# :label: The iD Tagging Schema (ITS)
This is the directory of OpenStreetMap tagging data used by the [iD editor](https://github.com/openstreetmap/iD).
It includes presets, fields, deprecations, and more.
## Background
OpenStreetMap itself does not have a formal tagging [schema](https://en.wikipedia.org/wiki/Database_schema),
but editing tools need to know how tags are used in order to facilitate mapping.
This Tagging Schema fills that need, but with a number of caveats:
- This isn't authoritative or definitive
- Tagging interpretations may vary from mapper to mapper, place to place, and over time
- Our primary aim is to serve the needs of iD mappers (but other tools are welcome to use this too)
- We support tags based on practicality, usage, and community approval
- Sometimes there are reasons we can't support a tag even if it's used or approved
## Integrations
This schema incorporates data from the [name-suggestion-index](https://github.com/osmlab/name-suggestion-index).
## Contributing
iD's [code of conduct](https://github.com/openstreetmap/iD/blob/release/CODE_OF_CONDUCT.md) and
[privacy policy](https://github.com/openstreetmap/iD/blob/release/PRIVACY.md) also apply to this project.
### Making Changes
Documentation for the data formats is located with the [schema-builder](https://github.com/ideditor/schema-builder)
package, which is the technical basis of this project. To make a change, update a
file within the `data` folder and rebuild by running `npm run build` in your terminal.

1641
data/deprecated.json Normal file

File diff suppressed because it is too large Load diff

56
data/discarded.json Normal file
View file

@ -0,0 +1,56 @@
{
"created_by": true,
"odbl": true,
"odbl:note": true,
"tiger:upload_uuid": true,
"tiger:tlid": true,
"tiger:source": true,
"tiger:separated": true,
"geobase:datasetName": true,
"geobase:uuid": true,
"osmarender:nameDirection": true,
"osmarender:renderName": true,
"osmarender:renderRef": true,
"osmarender:rendernames": true,
"sub_sea:type": true,
"KSJ2:ADS": true,
"KSJ2:ARE": true,
"KSJ2:AdminArea": true,
"KSJ2:COP_label": true,
"KSJ2:DFD": true,
"KSJ2:INT": true,
"KSJ2:INT_label": true,
"KSJ2:LOC": true,
"KSJ2:LPN": true,
"KSJ2:OPC": true,
"KSJ2:PubFacAdmin": true,
"KSJ2:RAC": true,
"KSJ2:RAC_label": true,
"KSJ2:RIC": true,
"KSJ2:RIN": true,
"KSJ2:WSC": true,
"KSJ2:coordinate": true,
"KSJ2:curve_id": true,
"KSJ2:curve_type": true,
"KSJ2:filename": true,
"KSJ2:lake_id": true,
"KSJ2:lat": true,
"KSJ2:long": true,
"KSJ2:river_id": true,
"SK53_bulk:load": true,
"yh:LINE_NAME": true,
"yh:LINE_NUM": true,
"yh:STRUCTURE": true,
"yh:TOTYUMONO": true,
"yh:TYPE": true,
"yh:WIDTH": true,
"yh:WIDTH_RANK": true
}

50
data/fields/access.json Normal file
View file

@ -0,0 +1,50 @@
{
"keys": ["access", "foot", "motor_vehicle", "bicycle", "horse"],
"reference": {"key": "access"},
"type": "access",
"label": "Allowed Access",
"placeholder": "Not Specified",
"strings": {
"types": {
"access": "All",
"foot": "Foot",
"motor_vehicle": "Motor Vehicles",
"bicycle": "Bicycles",
"horse": "Horses"
},
"options": {
"yes": {
"title": "Allowed",
"description": "Access allowed by law; a right of way"
},
"no": {
"title": "Prohibited",
"description": "Access not allowed to the general public"
},
"permissive": {
"title": "Permissive",
"description": "Access allowed until such time as the owner revokes the permission"
},
"private": {
"title": "Private",
"description": "Access allowed only with permission of the owner on an individual basis"
},
"designated": {
"title": "Designated",
"description": "Access allowed according to signs or specific local laws"
},
"destination": {
"title": "Destination",
"description": "Access allowed only to reach a destination"
},
"dismount": {
"title": "Dismount",
"description": "Access allowed but rider must dismount"
},
"permit": {
"title": "Permit",
"description": "Access allowed only with a valid permit or license"
}
}
}
}

View file

@ -0,0 +1,5 @@
{
"key": "access_aisle",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,11 @@
{
"key": "access",
"type": "combo",
"label": "Allowed Access",
"options": ["yes", "permissive", "private", "customers", "permit", "no"],
"terms": [
"permitted",
"private",
"public"
]
}

View file

@ -0,0 +1,13 @@
{
"key": "addr:interpolation",
"type": "combo",
"label": "Type",
"strings": {
"options": {
"all": "All",
"even": "Even",
"odd": "Odd",
"alphabetic": "Alphabetic"
}
}
}

71
data/fields/address.json Normal file
View file

@ -0,0 +1,71 @@
{
"type": "address",
"key": "addr",
"keys": [
"addr:block_number",
"addr:city",
"addr:block_number",
"addr:conscriptionnumber",
"addr:county",
"addr:country",
"addr:county",
"addr:district",
"addr:floor",
"addr:hamlet",
"addr:housename",
"addr:housenumber",
"addr:neighbourhood",
"addr:place",
"addr:postcode",
"addr:province",
"addr:quarter",
"addr:state",
"addr:street",
"addr:subdistrict",
"addr:suburb",
"addr:unit"
],
"icon": "address",
"label": "Address",
"strings": {
"placeholders": {
"block_number": "Block Number",
"block_number!jp": "Block No.",
"city": "City",
"city!cn": "City/Prefecture/League",
"city!jp": "City/Town/Village/Tokyo Special Ward",
"city!vn": "City/Town",
"conscriptionnumber": "123",
"country": "Country",
"county": "County",
"county!jp": "District",
"district": "District",
"district!cn": "District/County/Banner",
"district!vn": "Arrondissement/Town/District",
"floor": "Floor",
"hamlet": "Hamlet",
"housename": "Housename",
"housenumber": "123",
"housenumber!jp": "Building No./Lot No.",
"neighbourhood": "Neighbourhood",
"neighbourhood!jp": "Chōme/Aza/Koaza",
"place": "Place",
"postcode": "Postcode",
"province": "Province",
"province!cn": "Province/Municipality/AR/SAR",
"province!jp": "Prefecture",
"quarter": "Quarter",
"quarter!jp": "Ōaza/Machi",
"state": "State",
"street": "Street",
"subdistrict": "Subdistrict",
"subdistrict!vn": "Ward/Commune/Townlet",
"suburb": "Suburb",
"suburb!jp": "Ward",
"unit": "Unit"
}
},
"terms": [
"location"
]
}

View file

@ -0,0 +1,6 @@
{
"key": "admin_level",
"type": "number",
"minValue": 1,
"label": "Admin Level"
}

View file

@ -0,0 +1,5 @@
{
"key": "aerialway",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,12 @@
{
"key": "aerialway:access",
"type": "combo",
"label": "Access",
"strings": {
"options": {
"entry": "Entry",
"exit": "Exit",
"both": "Both"
}
}
}

View file

@ -0,0 +1,5 @@
{
"key": "aerialway:bubble",
"type": "check",
"label": "Bubble"
}

View file

@ -0,0 +1,7 @@
{
"key": "aerialway:capacity",
"type": "number",
"minValue": 0,
"label": "Capacity (per hour)",
"placeholder": "500, 2500, 5000..."
}

View file

@ -0,0 +1,7 @@
{
"key": "aerialway:duration",
"type": "number",
"minValue": 0,
"label": "Duration (minutes)",
"placeholder": "1, 2, 3..."
}

View file

@ -0,0 +1,5 @@
{
"key": "aerialway:heating",
"type": "check",
"label": "Heated"
}

View file

@ -0,0 +1,7 @@
{
"key": "aerialway:occupancy",
"type": "number",
"minValue": 0,
"label": "Occupancy",
"placeholder": "2, 4, 8..."
}

View file

@ -0,0 +1,12 @@
{
"key": "aerialway:summer:access",
"type": "combo",
"label": "Access (summer)",
"strings": {
"options": {
"entry": "Entry",
"exit": "Exit",
"both": "Both"
}
}
}

5
data/fields/aeroway.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "aeroway",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "agrarian",
"type": "semiCombo",
"label": "Products"
}

View file

@ -0,0 +1,9 @@
{
"key": "air_conditioning",
"type": "check",
"label": "Air Conditioning",
"terms": [
"cooling system",
"refrigeration"
]
}

5
data/fields/amenity.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "amenity",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "animal_boarding",
"type": "semiCombo",
"label": "For Animals"
}

View file

@ -0,0 +1,5 @@
{
"key": "animal_breeding",
"type": "semiCombo",
"label": "For Animals"
}

View file

@ -0,0 +1,5 @@
{
"key": "animal_shelter",
"type": "semiCombo",
"label": "For Animals"
}

View file

@ -0,0 +1,8 @@
{
"key": "architect",
"type": "text",
"label": "Architect",
"terms": [
"building designer"
]
}

View file

@ -0,0 +1,5 @@
{
"key": "area:highway",
"type": "typeCombo",
"label": "Type"
}

5
data/fields/artist.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "artist_name",
"type": "text",
"label": "Artist"
}

View file

@ -0,0 +1,5 @@
{
"key": "artwork_type",
"type": "combo",
"label": "Type"
}

11
data/fields/ascent.json Normal file
View file

@ -0,0 +1,11 @@
{
"key": "ascent",
"minValue": 0,
"type": "number",
"label": "Total Ascent",
"terms":[
"ascent",
"climb",
"cumulative elevation gain"
]
}

5
data/fields/atm.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "atm",
"type": "check",
"label": "ATM"
}

View file

@ -0,0 +1,5 @@
{
"key": "attraction",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "automated",
"type": "check",
"label": "Automated"
}

View file

@ -0,0 +1,19 @@
{
"key": "baby_feeding",
"type": "combo",
"label": "Baby Nursing Area",
"strings": {
"options": {
"room": "Dedicated Room",
"yes": "Marked Space",
"no": "None"
}
},
"terms": [
"baby feeding",
"breastfeeding",
"lactation",
"mothers",
"nursing"
]
}

View file

@ -0,0 +1,5 @@
{
"key": "baby",
"type": "check",
"label": "Baby Seat"
}

View file

@ -0,0 +1,5 @@
{
"key": "backcountry",
"type": "check",
"label": "Backcountry"
}

View file

@ -0,0 +1,5 @@
{
"key": "backrest",
"type": "check",
"label": "Backrest"
}

5
data/fields/bar.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "bar",
"type": "check",
"label": "Bar"
}

5
data/fields/barrier.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "barrier",
"type": "typeCombo",
"label": "Type"
}

5
data/fields/basin.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "basin",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "bath:open_air",
"label": "Open Air",
"type": "check"
}

View file

@ -0,0 +1,5 @@
{
"key": "bath:sand_bath",
"label": "Sand Bath",
"type": "check"
}

View file

@ -0,0 +1,5 @@
{
"key": "bath:type",
"type": "combo",
"label": "Specialty"
}

5
data/fields/beauty.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "beauty",
"type": "semiCombo",
"label": "Services"
}

8
data/fields/bench.json Normal file
View file

@ -0,0 +1,8 @@
{
"key": "bench",
"type": "check",
"label": "Bench",
"terms": [
"seating"
]
}

View file

@ -0,0 +1,5 @@
{
"key": "bicycle_parking",
"type": "combo",
"label": "Type"
}

9
data/fields/bin.json Normal file
View file

@ -0,0 +1,9 @@
{
"key": "bin",
"type": "check",
"label": "Waste Bin",
"terms": [
"garbage can",
"trash can"
]
}

16
data/fields/blind.json Normal file
View file

@ -0,0 +1,16 @@
{
"key": "blind",
"type": "radio",
"strings": {
"options": {
"yes": "Yes",
"limited": "Limited",
"no": "No"
}
},
"label": "Blind Person Access",
"terms": [
"sight impairment",
"vision impairment"
]
}

View file

@ -0,0 +1,13 @@
{
"key": "blood:",
"type": "multiCombo",
"label": "Blood Components",
"strings": {
"options": {
"whole": "whole blood",
"plasma": "plasma",
"platelets": "platelets",
"stemcells": "stem cell samples"
}
}
}

View file

@ -0,0 +1,5 @@
{
"key": "board_type",
"type": "combo",
"label": "Type"
}

5
data/fields/bollard.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "bollard",
"type": "combo",
"label": "Type"
}

6
data/fields/booth.json Normal file
View file

@ -0,0 +1,6 @@
{
"key": "booth",
"type": "combo",
"label": "Booth",
"caseSensitive": true
}

5
data/fields/bottle.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "bottle",
"type": "check",
"label": "Bottle Filling"
}

5
data/fields/boules.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "boules",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "boundary",
"type": "combo",
"label": "Type"
}

5
data/fields/brand.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "brand",
"type": "text",
"label": "Brand"
}

8
data/fields/brewery.json Normal file
View file

@ -0,0 +1,8 @@
{
"key": "brewery",
"type": "semiCombo",
"label": "Draft Beers",
"terms": [
"on tap"
]
}

7
data/fields/bridge.json Normal file
View file

@ -0,0 +1,7 @@
{
"key": "bridge",
"type": "typeCombo",
"label": "Type",
"usage": "group",
"placeholder": "Default"
}

View file

@ -0,0 +1,5 @@
{
"key": "bridge:support",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "bridge",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,8 @@
{
"key": "building",
"type": "combo",
"label": "Building",
"terms": [
"structure"
]
}

View file

@ -0,0 +1,7 @@
{
"key": "building:flats",
"type": "number",
"minValue": 0,
"label": "Units",
"placeholder": "2, 4, 6, 8..."
}

View file

@ -0,0 +1,7 @@
{
"key": "building:levels",
"type": "number",
"minValue": 0,
"label": "Levels",
"placeholder": "2, 4, 6..."
}

View file

@ -0,0 +1,10 @@
{
"key": "building:levels:underground",
"type": "number",
"minValue": 0,
"label": "Underground Levels",
"placeholder": "2, 4, 6...",
"terms": [
"basement levels"
]
}

View file

@ -0,0 +1,11 @@
{
"key": "building:levels",
"type": "number",
"minValue": 0,
"label": "Building Levels",
"placeholder": "2, 4, 6...",
"prerequisiteTag": {
"key": "building",
"valueNot": "no"
}
}

View file

@ -0,0 +1,5 @@
{
"key": "building:material",
"type": "combo",
"label": "Material"
}

View file

@ -0,0 +1,7 @@
{
"key": "building",
"type": "combo",
"default": "yes",
"geometry": ["area"],
"label": "Building"
}

View file

@ -0,0 +1,5 @@
{
"key": "bunker_type",
"type": "combo",
"label": "Type"
}

7
data/fields/cables.json Normal file
View file

@ -0,0 +1,7 @@
{
"key": "cables",
"type": "number",
"minValue": 1,
"label": "Cables",
"placeholder": "1, 2, 3..."
}

View file

@ -0,0 +1,6 @@
{
"key": "camera:direction",
"type": "number",
"label": "Direction (Degrees Clockwise)",
"placeholder": "45, 90, 180, 270"
}

View file

@ -0,0 +1,5 @@
{
"key": "camera:mount",
"type": "combo",
"label": "Camera Mount"
}

View file

@ -0,0 +1,12 @@
{
"key": "camera:type",
"type": "combo",
"label": "Camera Type",
"strings": {
"options": {
"fixed": "Fixed",
"panning": "Panning",
"dome": "Dome"
}
}
}

View file

@ -0,0 +1,7 @@
{
"key": "capacity",
"type": "number",
"minValue": 0,
"label": "Capacity",
"placeholder": "50, 100, 200..."
}

View file

@ -0,0 +1,7 @@
{
"key": "capacity:disabled",
"type": "number",
"minValue": 0,
"label": "Accessible Spaces",
"placeholder": "1, 2, 3..."
}

View file

@ -0,0 +1,7 @@
{
"key": "capacity",
"type": "number",
"minValue": 0,
"label": "Total Spaces",
"placeholder": "10, 20, 30..."
}

View file

@ -0,0 +1,7 @@
{
"key": "capacity",
"type": "number",
"minValue": 0,
"label": "Capacity (Cubic Meters)",
"placeholder": "50, 100, 200..."
}

5
data/fields/cash_in.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "cash_in",
"type": "check",
"label": "Cash In"
}

View file

@ -0,0 +1,5 @@
{
"key": "castle_type",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "changing_table",
"type": "check",
"label": "Diaper Changing Table"
}

View file

@ -0,0 +1,10 @@
{
"key": "charge",
"type": "text",
"label": "Fee Amount",
"placeholder": "1 EUR, 5 USD, 10 JPY…",
"prerequisiteTag": {
"key": "fee",
"valueNot": "no"
}
}

View file

@ -0,0 +1,10 @@
{
"key": "charge",
"type": "text",
"label": "Toll Amount",
"placeholder": "1 EUR, 5 USD, 10 JPY…",
"prerequisiteTag": {
"key": "toll",
"valueNot": "no"
}
}

View file

@ -0,0 +1,6 @@
{
"key": "check_date",
"type": "text",
"label": "Last Checked Date",
"placeholder": "YYYY-MM-DD"
}

View file

@ -0,0 +1,7 @@
{
"key": "circumference",
"type": "combo",
"label": "Circumference",
"snake_case": false,
"placeholder": "1 m, 20 cm, 30 in…"
}

5
data/fields/clothes.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "clothes",
"type": "semiCombo",
"label": "Clothes"
}

5
data/fields/club.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "club",
"type": "typeCombo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "collection_times",
"type": "text",
"label": "Collection Times"
}

View file

@ -0,0 +1,5 @@
{
"key": "collector",
"type": "semiCombo",
"label": "Items"
}

5
data/fields/colour.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "colour",
"type": "text",
"label": "Color"
}

7
data/fields/comment.json Normal file
View file

@ -0,0 +1,7 @@
{
"key": "comment",
"type": "textarea",
"label": "Changeset Comment",
"usage": "changeset",
"placeholder": "Brief description of your contributions (required)"
}

View file

@ -0,0 +1,5 @@
{
"key": "communication:",
"type": "multiCombo",
"label": "Communication Types"
}

View file

@ -0,0 +1,5 @@
{
"key": "connectivity",
"type": "text",
"label": "Connectivity"
}

View file

@ -0,0 +1,5 @@
{
"key": "construction",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "consulate",
"type": "combo",
"label": "Type"
}

View file

@ -0,0 +1,5 @@
{
"key": "consulting",
"type": "semiCombo",
"label": "Expertise"
}

View file

@ -0,0 +1,7 @@
{
"key": "contact:webcam",
"type": "url",
"icon": "website",
"label": "Webcam URL",
"placeholder": "http://example.com/"
}

6
data/fields/content.json Normal file
View file

@ -0,0 +1,6 @@
{
"key": "content",
"type": "combo",
"label": "Content",
"options": ["silage", "water", "oil", "fuel", "slurry", "gas", "manure", "sewage"]
}

View file

@ -0,0 +1,13 @@
{
"key": "conveying",
"type": "typeCombo",
"label": "Movement Direction",
"strings": {
"options": {
"forward": "Forward",
"backward": "Backward",
"reversible": "Reversible"
}
}
}

View file

@ -0,0 +1,5 @@
{
"key": "conveying",
"type": "check",
"label": "Escalator"
}

5
data/fields/country.json Normal file
View file

@ -0,0 +1,5 @@
{
"key": "country",
"type": "combo",
"label": "Country"
}

Some files were not shown because too many files have changed in this diff Show more