![]() For results falling outside the current view-port, use the Zoom to Data control to locate it. Matches objects globally, without any restriction by location. ![]() Matches objects that are in the vicinity of an object with the name place. Matches objects that are inside an area with the name place. (default) Matches objects that are inside the current map view-port. By specifying a location filter at the end of the search you can also search in different places or even globally: newer:"4 weeks" (selects everything that has been added or modified in the last 4 weeks)Īllowed time units are: second(s), minute(s), hour(s), day(s), week(s), month(s) and year(s).Įxample: amenity=drinking_water and newer:"4 weeks" Location filtersīy default, the Wizard creates queries that search only in the current map view (via a ).newer:1day (selects everything that has been added or modified in the last 24 hours).a relative date indicating the relative amount of time in the past:.an ordinary date, given as an ISO 8601 time string (e.g.In the newer selector, the date can be either Matches objects that have been added or modified more recently than the stated date/time. Matches objects that were last modified by a user with the stated numerical user-id. Matches objects last modified by the user with the stated username. Matches objects that have the stated osm-id. Matches objects of the stated type (node, way or relation). image ~ /wikimedia\.commons/ (the escape character \ makes the expression match a literal ".").name ~ /street$/i (the modifier i makes the match case-insensitive).Regular expressions can be provided either as plain strings or with slashes as delimiters: If a string (for example the value of one of the tag-selectors above) contains whitespace or other special characters (such as colons, dashes, non-ascii characters, etc.) it must be enclosed in quotes: Matches objects that do not have a tag with the key key. objects that do not have a tag with key key.objects that have a tag with key key and whose value does not match the regular expression regex.Matches objects that do not have a tag with key key and the value value. Matches objects that have a tag with key key. ~building~".*" (returns all buildings even with life cycle prefix) Matches objects that have a tag with a key that matches the regular expression keyregex and whose value matches the regular expression regex. Matches objects that have a tag with key key and whose value matches the regular expression regex. Ĭycleway:opp (returns cycleway=opposite, cycleway=opposite_track, cycleway=opposite_lane, etc.) Matches objects that have a tag with the specified key and whose value contains the string given after the. Matches objects that have a tag with the specified key/value pair. This works for all objects for which a preset is defined in the iD editor.įor the meanings of "key" and "value", please see the glossary. For example one can use the terms Hotel, "Drinking Water", Hospital, etc. The simplest way of searching is to use object categories. The Wizard syntax described on this Wiki page is incompatible with Overpass QL itself. Overpass Turbo Wizard uses a simplified query syntax, which has to be always entered in the "Wizard" popup for translation into a new Overpass QL query. ![]() ![]() Here is an example of how to search in a certain city: But the Wizard also understands some other location filters. (highway=primary or highway=secondary) and type:wayīy default, the data to be searched is limited to the current map viewport.Those can be combined with logical operations like and or or. An example: To get drinking water fountains, all you have to do is fire up the Wizard and type in the appropriate tag amenity=drinking_water.Ī search consists of individual filter expressions, for example key=value (for a simple tag search) or type:node (to restrict the result to only nodes). Overpass turbo's Query Wizard helps you by converting simple, human readable search terms into functional Overpass queries. Writing Overpass queries requires knowledge of the Overpass query language, and even then can sometimes be quite tedious, repetitive work. To get information from a database you send it a "query" (a question) in a language the computer can understand (the "query language"). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |