public class TemplateLibrary extends Object
Constructor and Description |
---|
TemplateLibrary() |
Modifier and Type | Method and Description |
---|---|
static String |
generate(String pattern,
OSMWithTags way) |
static Map<String,String> |
generateI18N(String pattern,
OSMWithTags way)
Replace various pattern by the OSM tag values, with I18n support.
|
public static String generate(String pattern, OSMWithTags way)
public static Map<String,String> generateI18N(String pattern, OSMWithTags way)
pattern
- Pattern containing options tags to replace, such as "text" or "note: {note}".
Tag names between {} are replaced by the OSM tag value, if it is present (or the empty
string if not).way
- The way containing the tag valuesCopyright © 2019. All rights reserved.