forked from MapComplete/MapComplete
Added bike services layer and questions
This commit is contained in:
parent
19614369ba
commit
7e2904d3c0
13 changed files with 188 additions and 108 deletions
|
@ -3,8 +3,6 @@ import {Tag} from "../../Logic/TagsFilter";
|
|||
|
||||
|
||||
export class BikeParkingType extends TagRenderingOptions {
|
||||
|
||||
|
||||
private static options = {
|
||||
priority: 5,
|
||||
question: "Van welk type is deze fietsenparking?",
|
||||
|
@ -27,5 +25,4 @@ export class BikeParkingType extends TagRenderingOptions {
|
|||
constructor() {
|
||||
super(BikeParkingType.options);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
22
Customizations/Questions/BikeStationBrand.ts
Normal file
22
Customizations/Questions/BikeStationBrand.ts
Normal file
|
@ -0,0 +1,22 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
export default class BikeStationBrand extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 15,
|
||||
question: "What is the brand of this bike station (name of university, shop, city...)?",
|
||||
freeform: {
|
||||
key: "brand",
|
||||
template: "The brand of this bike station is $$$",
|
||||
renderTemplate: "The brand of this bike station is {operator}",
|
||||
placeholder: "brand"
|
||||
},
|
||||
mappings: [
|
||||
{k: new Tag("brand", "Velo Fix Station"), txt: "Velo Fix Station"}
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationBrand.options);
|
||||
}
|
||||
}
|
18
Customizations/Questions/BikeStationChain.ts
Normal file
18
Customizations/Questions/BikeStationChain.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
|
||||
export default class BikeStationChain extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 5,
|
||||
question: "Does this bike station have a special tool to repair your bike chain?",
|
||||
mappings: [
|
||||
{k: new Tag("service:bicycle:chain_tool", "yes"), txt: "There is a chain tool."},
|
||||
{k: new Tag("service:bicycle:chain_tool", "no"), txt: "There is no chain tool."},
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationChain.options);
|
||||
}
|
||||
}
|
25
Customizations/Questions/BikeStationOperator.ts
Normal file
25
Customizations/Questions/BikeStationOperator.ts
Normal file
|
@ -0,0 +1,25 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
export default class BikeStationOperator extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 15,
|
||||
question: "Who operates this bike station (name of university, shop, city...)?",
|
||||
freeform: {
|
||||
key: "operator",
|
||||
template: "This bike station is operated by $$$",
|
||||
renderTemplate: "This bike station is operated by {operator}",
|
||||
placeholder: "organisatie"
|
||||
},
|
||||
mappings: [
|
||||
{k: new Tag("operator", "KU Leuven"), txt: "KU Leuven"},
|
||||
{k: new Tag("operator", "Stad Halle"), txt: "Stad Halle"},
|
||||
{k: new Tag("operator", "Saint Gilles - Sint Gillis"), txt: "Saint Gilles - Sint Gillis"},
|
||||
{k: new Tag("operator", "private"), txt: "Beheer door een privépersoon"}
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationOperator.options);
|
||||
}
|
||||
}
|
19
Customizations/Questions/BikeStationPumpTools.ts
Normal file
19
Customizations/Questions/BikeStationPumpTools.ts
Normal file
|
@ -0,0 +1,19 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag, And} from "../../Logic/TagsFilter";
|
||||
|
||||
|
||||
export default class BikeStationPumpTools extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 15,
|
||||
question: "Which services are available at this bike station?",
|
||||
mappings: [
|
||||
{k: new And([new Tag("service:bicycle:tools", "no"), new Tag("service:bicycle:pump", "yes")]), txt: "There is only a pump available."},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "no")]), txt: "There are only tools (screwdrivers, pliers...) available."},
|
||||
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "yes")]), txt: "There are both tools and a pump available."}
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationPumpTools.options);
|
||||
}
|
||||
}
|
18
Customizations/Questions/BikeStationStand.ts
Normal file
18
Customizations/Questions/BikeStationStand.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
|
||||
export default class BikeStationStand extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 10,
|
||||
question: "Does this bike station have a hook to suspend your bike with or a stand to elevate it?",
|
||||
mappings: [
|
||||
{k: new Tag("service:bicycle:stand", "yes"), txt: "There is a hook or stand."},
|
||||
{k: new Tag("service:bicycle:stand", "no"), txt: "There is no hook or stand"},
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(BikeStationStand.options);
|
||||
}
|
||||
}
|
|
@ -1,23 +1,18 @@
|
|||
import {TagRenderingOptions} from "../TagRendering";
|
||||
import {UIEventSource} from "../../UI/UIEventSource";
|
||||
import {Changes} from "../../Logic/Changes";
|
||||
import {Tag} from "../../Logic/TagsFilter";
|
||||
|
||||
|
||||
export class PumpManual extends TagRenderingOptions {
|
||||
|
||||
|
||||
export default class PumpManual extends TagRenderingOptions {
|
||||
private static options = {
|
||||
priority: 5,
|
||||
question: "Is dit een manuele pomp?",
|
||||
question: "Is the pump at this bike station manual or automatic (compressed air)?",
|
||||
mappings: [
|
||||
{k: new Tag("manual", "yes"), txt: "Manuele pomp"},
|
||||
{k: new Tag("manual", "no"), txt: "Automatische pomp"}
|
||||
{k: new Tag("manual", "yes"), txt: "Manual"},
|
||||
{k: new Tag("manual", "no"), txt: "Automatic (with compressed air)"}
|
||||
]
|
||||
}
|
||||
|
||||
constructor() {
|
||||
super(PumpManual.options);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue