mapcomplete/assets/layers/speed_camera/speed_camera.json

135 lines
No EOL
3 KiB
JSON

{
"id": "speed_camera",
"name": {
"en": "Speed Camera",
"de": "Blitzer"
},
"description": {
"en": "Layer showing speed cameras",
"de": "Ebene mit Blitzern"
},
"title": {
"render": {
"en": "Speed Camera",
"de": "Blitzer"
}
},
"minzoom": 12,
"source": {
"osmTags": "highway=speed_camera"
},
"tagRenderings": [
{
"id": "maxspeed",
"question": {
"en": "What is the maximum speed allowed at this speed camera?",
"de": "Wie hoch ist die zulässige Höchstgeschwindigkeit an diesem Blitzer?"
},
"freeform": {
"key": "maxspeed",
"type": "pnat",
"placeholder": {
"en": "Maximum speed allowed",
"de": "Zulässige Höchstgeschwindigkeit"
}
},
"render": {
"en": "The maximum speed allowed is {canonical(maxspeed)}",
"de": "Die zulässige Höchstgeschwindigkeit beträgt {canonical(maxspeed)}"
}
},
{
"id": "ref",
"render": {
"en": "The reference number of this speed camera is {ref}",
"de": "Die Referenznummer dieses Blitzers ist {ref}"
},
"condition": "ref~*"
}
],
"presets": [
{
"tags": [
"highway=speed_camera"
],
"title": {
"en": "a speed camera",
"de": "einen Blitzer"
},
"preciseInput": {
"preferredBackground": "photo",
"maxSnapDistance": 10,
"snapToLayer": [
"maxspeed"
]
}
}
],
"mapRendering": [
{
"icon": "square:white;./assets/layers/speed_camera/speed_camera.svg",
"location": [
"point",
"centroid"
]
}
],
"units": [
{
"appliesToKey": [
"maxspeed"
],
"applicableUnits": [
{
"#": "km/h is the default for a maxspeed; should be empty string",
"canonicalDenomination": "",
"alternativeDenomination": [
"km/u",
"kmh",
"kph"
],
"human": {
"en": "kilometers/hour",
"ca": "quilòmetres/hora",
"es": "kilómetros/hora",
"nl": "kilometers/uur",
"de": "Kilometer/Stunde"
},
"humanShort": {
"en": "km/h",
"ca": "km/h",
"es": "km/h",
"nl": "km/u",
"de": "km/h"
}
},
{
"canonicalDenomination": "mph",
"useIfNoUnitGiven": [
"gb",
"us"
],
"alternativeDenomination": [
"m/u",
"mh",
"m/ph"
],
"human": {
"en": "miles/hour",
"ca": "milles/hora",
"es": "millas/hora",
"nl": "miles/uur",
"de": "Meilen/Stunde"
},
"humanShort": {
"en": "mph",
"ca": "mph",
"es": "mph",
"nl": "mph",
"de": "mph"
}
}
]
}
]
}