Add field parking:$side and parking:$side:orientation#674
Add field parking:$side and parking:$side:orientation#674tordans wants to merge 11 commits intoopenstreetmap:mainfrom
Conversation
0aefeb2 to
bd84550
Compare
| "perpendicular": "Meets the Street at a Straight Angle" | ||
| } | ||
| }, | ||
| "autoSuggestions": false, |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
In principle, this would be a good fit for the The field json would look like this:{
"keys": [
"parking:both",
"parking:left",
"parking:right"
],
"type": "<<cycleway>>",
"label": "Street Parking Type",
"strings": {
"types": {
"parking:left": "Left side",
"parking:right": "Right side"
},
"options": {
"lane": "Roadside Lane",
"street_side": "Street-Side",
"on_kerb": "On Kerb",
"half_on_kerb": "Half On Kerb",
"shoulder": "Shoulder",
"no": "No",
"separate": "Parking mapped separately",
"yes": "Yes (unspecified)"
}
},
"autoSuggestions": false,
"customValues": false
}However, the implementation is pretty much hardcoded for the literal For this type of field, it would make sense if the "prerequsiteTag": {
"field": "parking/side"
} |
See ideditor/schema-builder#83 for more about the rename.
Options still need a description.
This will only work once openstreetmap/iD#9212 (comment) is done.
|
@tyrasd thanks for the input in your comment above and the update on iD. I updated this PR-description with a list of things that need to happen next from my point of view. Would you be up to merging this with "must have" solved? And handle the other issues as follow ups? On the topic of This needs an update to the schema-builder. But how to specify best, what we want? IMO, we want…
We need the "not" part, since we don't users to provide an This has two issues:
Update 2022-12-29: In 47f61c8#diff-ffcc47af10b2693db223dcfd1da1260b54c5524e4af34ba8d4776ee24cb041eaR21-R79 I added a bit of code to experiment with options to solve the requirement to extend the Let me know what you think. |
…onalCombo) Those commits also hold some todo comments on the `prerequisiteTag`.
…mbo) This way the left/right is exposed to the users. However, there is no convenient way to switch between those types, other than changing the raw tags. Ping openstreetmap/iD#9212 (comment)
The cycleway use it, so we will likely want it here as well, right?
981af53 to
364e352
Compare
|
I will close this now in favor of #744. It will be a while until the |

Solves #675
Update 2022-12-29
I created #722 (and #723) as minimal versions of this PR. More about that over there.
I consider this PR a collection of TODOs and know how. Once the issues are solved, we should create separate PRs.
Update 2022-12-28
This part is a must have:
cyclewaytodirectionalComboideditor/schema-builder#83This part is a nice to have and IMO can be follow up tickets:
:bothcase needs to be solved, see Cycleway:both is ignored iD#9212 (comment) for some more info about it:left,:right,:bothwould be sufficient.:<null>and:<null>+oneway=yescase, which makes it quite a bit more complex, so maybe we can split this in two issues?cyclewayfield will need a review once this is solved ede72b7.prerequisiteTagneeds to be figured outdescriptionshows as a tooltip when hovering the dropdown option