Skip to content

Question about the QuestDefinitionFilter implementation #766

Open
@bickelmeister

Description

@bickelmeister

Because I am willing to dig deeper into Go Map!! as tool for mapping to go, I kinda want to know how the Quest implementation is working:

First Case

{
    "label": "🚲",
    "title": "How many rental bicycle spaces are here?",
    "geometry": {
        "area": true,
        "point": true,
        "vertex": false,
        "line": true
    },
    "filters": [
        {
            "tagValue": "bicycle_rental",
            "relation": "=",
            "tagKey": "amenity",
            "included": "include"
        },
        {
            "tagValue": "docking_station",
            "relation": "=",
            "tagKey": "bicycle_rental",
            "included": "include"
        },
        {
            "included": "include",
            "tagKey": "capacity",
            "relation": "=",
            "tagValue": ""
        }
    ],
    "tagKeys": [
        "capacity"
    ]
}

Is this a valid json for a quest definition and furthermore are the filters combined with OR, XOR or AND?
My expectation how this definition is that it will show me all amenity=bicycle_rental and bicycle_rental=docking_station which are not containing a value for the capacity Is that true?

Second Case

    {
      "label": "🚲",
      "title": "Lastenrad?",
      "geometry": {
        "vertex": true,
        "line": true,
        "area": true,
        "point": true
      },
      "filters": [
        {
          "tagKey": "amenity",
          "relation": "=",
          "tagValue": "bicycle_parking",
          "included": "include"
        },
        {
          "tagKey": "cargo_bike",
          "relation": "=",
          "tagValue": "",
          "included": "include"
        },
        {
          "tagKey": "capacity:cargo_bike",
          "relation": "=",
          "tagValue": "",
          "included": "include"
        }
      ],
      "tagKeys": [
        "cargo_bike",
        "capacity:cargo_bike"
      ]
    }

Will this pop up if one of the values is set? Or have to be both empty?

Thanks in advance. May some day I will master swift and unterstand the implementation ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions