name |
Marker/Line name |
name == "Berlin" |
type |
marker / line |
type == "marker" |
typeId |
/ {{type.id}} ({{type.name}}) |
typeId == 1 |
data.<field> / prop(data, <field>) |
Field values (example: data.Description or prop(data, "Description") |
data.Description ~= "camp" |
lat , lon |
Marker coordinates |
lat < 50 |
colour |
Marker/line colour |
colour == "ff0000" |
size |
Marker size |
size > 30 |
symbol |
Marker icon |
symbol == "accommodation_camping" |
shape |
Marker shape |
shape == "circle" |
ele |
Marker elevation |
ele > 500 |
mode |
Line routing mode (empty / car / bicycle / pedestrian / track ) |
mode in ("bicycle", "pedestrian") |
width |
Line width |
width > 10 |
distance |
Line distance in kilometers |
distance < 50 |
time |
Line routing time in seconds |
time > 3600 |
ascent , descent |
Total ascent/descent of line |
ascent > 1000 |
routePoints |
Line point coordinates |
routePoints.0.lon > 60 and routePoints.2.lat < 50 |
Operator |
Description |
Example |
number |
Numerical value |
distance < 1.5 |
"text" |
Text value |
name == "Athens" |
+ , - , * , / , % , ^ |
Mathematical operations (% : modulo, ^ : power) |
distance / time > 30 |
and , or , not , () |
Logical operators |
not (size>10) or (type=="line" and length<=10) |
? : |
if/then/else operator |
(type=="marker" ? size : width) > 10 |
== , != , < , <= , > , >= |
Comparison (!= : not equal) (case sensitive) |
type != "marker" |
in , not in |
List operator (case sensitive) |
typeId not in (1,2) |
~= |
Regular expression match (case sensitive) |
name ~= "^[Cc]amp$" |
ceil() , floor() , round() |
Round (ceil : up, floor : down) |
floor(distance/100) == 5 |
abs() , log() , sqrt() |
Mathematical functions |
abs(lat) < 30 |
min() , max() |
Smallest/highest value |
min(routePoints.0.lat,routePoints.1.lat) < 50 |