Kaart: Useful JOSM Filters

From OpenStreetMap Wiki
Jump to navigation Jump to search

Introduction

Filters allow to either highlight or hide specific features with the downloaded data on JOSM. Included is a list of some useful filters. There are filters for different areas of editing. Each section includes the filter, what it does, and the settings you will need for it to work properly. Combining 2 or more filters help pinpoint searched features very rapidly. Try creating and combining those that will help you out in determined tasks.

Prerequisites

It is recommended that you familiarize yourself with how to create both basic and advanced filters as well as the filter syntax. For more information on filters see the JOSM Filters, Presets, Paint Styles and Validator(link) page.

Quick Reference Guide for Filter Settings
E Enabled:
  • Your filter is active.
H Hide:
  • This will hide the specified data when the filter is enabled.
  • Note: Be aware that this is active while editing to avoid affecting unseen features.
Text Your filter:
  • This is where you can seee your filter.
  • Note: Make sure the syntax of your filter is correct or it won't work/work properly.
I Inverse:
  • This will do the opposite function of the filter. i.e. A filter that filters out non-highway features when inverted will only show those features.
M Mode:

How a filter is combined with filters above it:

  • R = Replace selection: Disables all filters above this one when enabled.
  • A = Add to selection: Makes filters work independently of each other. (Default)
  • D = Remove from selection: Remove all matched elements.
  • F = Find in selection: Locate all matched elements.

Quality of Life/Tags Fiters

Quality of Life/Tags
Filter What it does Settings
type:node Disables nodes including POIs
E H I M
☑️ A
type:node child Disables child nodes
E H I M
☑️ A
highway: Disables all non-highway features
E H I M
☑️ ☑️ ☑️ A
("area:highway"=steps) Filters for tags that have a ":" separator in the key. You can change the key/value to match any tag.
E H I M
☑️ ☑️ A

Highways/Related Features Filters

Highways/Related Features
Filter What it does Settings

-(surface=unpaved) & type:way highway= motorway|trunk|primary|secondary|tertiary|*_link| residential|unclassified|living_street|service| footway|steps|track|path|pedestrian|cycleway

Shows highways that have the specified surface type. Surface type value can be changed to look for a different value.
E H I M
☑️ A

(-(lanes=*) & (type:way highway=motorway|trunk|primary|secondary|tertiary|_link))

Shows highways that are missing lanes. Can be expanded to include more highway types.
E H I M
☑️ ☑️ A

type:way -junction=roundabout AND -junction=circular

Shows roundabouts and circular junctions.
E H I M
☑️ A

type:way ref=*|(_link & oneway=yes)|_link "destination:ref"

Show ways that have a ref, links that have a destination:ref and oneway links that are missing a destination:ref.
E H I M
☑️ ☑️ A

type:way highway=motorway|trunk|primary|secondary|tertiary|_link

Shows high priority ways(HPR) ways.
E H I M
☑️ ☑️ ☑️ A

type:way highway=residential|unclassified|service|living_street

Shows low priority ways(LPR) ways.
E H I M
☑️ ☑️ ☑️ A

type:way highway=footway|cycleway|pedestrian|steps|path

Shows pedestrian ways.
E H I M
☑️ ☑️ ☑️ A

(("type:node" & -"type:way highway") | -(oneway=yes|junction=roundabout|junction=circular & oneway=yes))

Shows highways that have a oneway tag as well as roundabouts and circular junctions.
E H I M
☑️ A

((-"barrier=*" & -"access=*") | (-user:username) & (-user:username) & (-user:"user name"))

Shows features with barriers and access tags that were added by specific editors. You can update/add more users.
E H I M
☑️ A

Filter Settings:

  • Add to selection
  • Case sensitive
  • Regular expression

width:"^([0-2](\.\d{1,2})?|2(\.0{1,2})?)$"

Regex filter that shows features with a width equal to or less than 2.5.
E H I M
☑️ A

Filter Settings:

  • Add to selection
  • Regular expression

Public Transportation Filters

Public Transportation
Filter What it does Settings
-(highway:|highway=bus_stop|public_transport=platform|

public_transport=stop_position|public_transport=station)

Shows bus related features for working with bus routes.
E H I M
☑️ ☑️ A
((highway=*|route=ferry)|(amenity=ferry_terminal OR barrier=*)|man_made=pier) Shows features relating to ferry routes.
E H I M
☑️ ☑️ A

Name Filters

Names
Filter What it does Settings
name=* AND highway=* Shows highways that have names.
E H I M
☑️ ☑️ A
name:"(?!)\\b(\\p{L}+)\\b(?:\\s+\\1\\b)+" Regex filter that shows roads that have duplicate prefixes in the name tag.
E H I M
☑️ ☑️ A

Filter settings:

  • Add to selection
  • Regular expression
-name:"^[a-z]{2,}" Regex filter that shows names that are all lowercase.
E H I M
☑️ A

Filter settings:

  • Add to selection
  • Regular expression
-name:"^[a-z]{2,}" Regex filter that shows names that are all lowercase.
E H I M
☑️ A

Filter settings:

  • Add to selection
  • Regular expression
-[A-Z]{2,} Regex filter that shows features with words that are all capitalized.

This can be modified for features with a name tag by matching the syntax of the filter above.

E H I M
☑️ A

Filter settings:

  • Add to selection
  • Case sensitive
  • Regular expression

Address Filters

Addresses
Filter What it does Settings
type:node child|-"addr:street"|(-user:username) & (-user:username) & (-user:"user name") Shows addresses that were added by a specific user.

You can update/add more usernames.

E H I M
☑️ A
(type:node child & highway:)|-(highway=*|("addr:street")|("addr:housenumber")) Address filter that ONLY shows features with an address tag(both housenumber & street).
E H I M
☑️ A
ref=*|highway=*|("addr:street") Shows features that use the ref as the addr:street value for POIs.
E H I M
☑️ ☑️ A

Relation Filters

Relations
Filter What it does Settings
(child(type:relation(route=*))) Shows ways that have route relations on them.

Used in conjunction with Kaart QC paint style to find gaps in relations we edited.

E H I M
☑️ ☑️ A
(child(type:relation(boundary=*))) Shows features that have boundary relations on them.

Used in conjunction with QC paint style to find gaps in relations we edited.

E H I M
☑️ ☑️ A
-(child(type:relation(restriction|":conditional"))) Shows features that have conditional restrictions in a relation.
E H I M
☑️ A

Filter settings:

  • Add to selection
  • Regular expression
type:way route|boundary=*|landuse=*|area=*|type=boundary Shows routes and polygons.
E H I M
☑️ A

History Filters

History
Filter What it does Settings
user:username Shows features edited by a specific user.

If a user name has spaces in it, encase it in quotes. Ie. user:”user name”

E H I M
☑️ ☑️ A
timestamp:YYYY-MM-DD Will hide any objects last modified after the specified date.
E H I M
☑️ ☑️ A
timestamp:YYYY-MM-DD/YYYY-MM-DD Shows features edited between two dates.
  • The end date must be one day in the future to also see present day edits.
E H I M
☑️ ☑️ A

Suggested Bookmarks