Changes between Version 148 and Version 149 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2018-11-11T20:15:51+01:00 (5 years ago)
Author:
Klumbumbus
Comment:

add is_similar(), see r14371

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v148 v149  
    11471147 at(lat,lon)::
    11481148  returns true if the object centroid lies at given ''lat''/''lon'' coordinates, e.g. to check for nodes at "null island" `node[at(0.0,0.0)]` [''since 12514'']
    1149 
     1149 is_similar(''str1'', ''str2'')::
     1150  returns true if the two strings are similar, but not identical, i.e., have a Levenshtein distance of 1 or 2. Example: {{{way[highway][name][is_similar(tag(name), "Main Street")]}}} checks for streets with a possible typo in the name (e.g. Main Streeg). [''since 14371'']
    11501151
    11511152=== Examples ===