/* Copyright (c) 2021, MapTiler.com & OpenMapTiles contributors. All rights reserved. Code license: BSD 3-Clause License Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Design license: CC-BY 4.0 See https://github.com/openmaptiles/openmaptiles/blob/master/LICENSE.md for details on usage */ // AUTOGENERATED BY Generate.java -- DO NOT MODIFY package com.onthegomap.planetiler.basemap.generated; import static com.onthegomap.planetiler.expression.Expression.*; import com.onthegomap.planetiler.basemap.Layer; import com.onthegomap.planetiler.config.PlanetilerConfig; import com.onthegomap.planetiler.expression.MultiExpression; import com.onthegomap.planetiler.stats.Stats; import com.onthegomap.planetiler.util.Translations; import java.util.List; import java.util.Set; /** * All vector tile layer definitions, attributes, and allowed values generated from the * OpenMapTiles vector tile schema * v3.13. */ @SuppressWarnings("unused") public class OpenMapTilesSchema { public static final String NAME = "OpenMapTiles"; public static final String DESCRIPTION = "A tileset showcasing all layers in OpenMapTiles. https://openmaptiles.org"; public static final String VERSION = "3.13.0"; public static final String ATTRIBUTION = "© OpenMapTiles © OpenStreetMap contributors"; public static final List LANGUAGES = List.of("am", "ar", "az", "be", "bg", "br", "bs", "ca", "co", "cs", "cy", "da", "de", "el", "en", "eo", "es", "et", "eu", "fi", "fr", "fy", "ga", "gd", "he", "hi", "hr", "hu", "hy", "id", "is", "it", "ja", "ja_kana", "ja_rm", "ja-Latn", "ja-Hira", "ka", "kk", "kn", "ko", "ko-Latn", "ku", "la", "lb", "lt", "lv", "mk", "mt", "ml", "nl", "no", "oc", "pl", "pt", "rm", "ro", "ru", "sk", "sl", "sq", "sr", "sr-Latn", "sv", "ta", "te", "th", "tr", "uk", "zh"); /** Returns a list of expected layer implementation instances from the {@code layers} package. */ public static List createInstances(Translations translations, PlanetilerConfig config, Stats stats) { return List.of( new com.onthegomap.planetiler.basemap.layers.Water(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Waterway(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Landcover(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Landuse(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.MountainPeak(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Park(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Boundary(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Aeroway(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Transportation(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Building(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.WaterName(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.TransportationName(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Place(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Housenumber(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.Poi(translations, config, stats), new com.onthegomap.planetiler.basemap.layers.AerodromeLabel(translations, config, stats) ); } /** * Water polygons representing oceans and lakes. Covered watered areas are excluded (covered=yes). On low * zoom levels all water originates from Natural Earth. To get a more correct display of the south pole you should * also style the covering ice shelves over the water. On higher zoom levels water polygons from * OpenStreetMapData are used. The polygons are split into many smaller * polygons to improve rendering performance. This however can lead to less rendering options in clients since these * boundaries show up. So you might not be able to use border styling for ocean water features. * * Generated from * water.yaml */ public interface Water extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "water"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the water layer. */ final class Fields { /** * All water polygons from OpenStreetMapData have the class * ocean. Water bodies with the * waterway=riverbank or * water=river tag are classified as * river. Wet and dry docks tagged * waterway=dock are classified as * a dock. All other water bodies are classified as lake. *

* allowed values: *

*/ public static final String CLASS = "class"; /** * Mark with 1 if it is an * intermittent water polygon. *

* allowed values: *

*/ public static final String INTERMITTENT = "intermittent"; /** * Identifies the type of crossing as either a bridge or a tunnel. *

* allowed values: *

*/ public static final String BRUNNEL = "brunnel"; } /** Attribute values for map elements in the water layer. */ final class FieldValues { public static final String CLASS_DOCK = "dock"; public static final String CLASS_RIVER = "river"; public static final String CLASS_LAKE = "lake"; public static final String CLASS_OCEAN = "ocean"; public static final Set CLASS_VALUES = Set.of("dock", "river", "lake", "ocean"); public static final String BRUNNEL_BRIDGE = "bridge"; public static final String BRUNNEL_TUNNEL = "tunnel"; public static final Set BRUNNEL_VALUES = Set.of("bridge", "tunnel"); } /** Complex mappings to generate attribute values from OSM element tags in the water layer. */ final class FieldMappings { public static final MultiExpression Class = MultiExpression.of(List.of(MultiExpression.entry("dock", matchAny("waterway", "dock")), MultiExpression.entry("river", or(matchAny("water", "river"), matchAny("waterway", "riverbank"))), MultiExpression.entry("lake", matchAny("waterway", "")), MultiExpression.entry("ocean", FALSE))); } } /** * OpenStreetMap waterways for higher zoom levels (z9 and * more) and Natural Earth rivers and lake centerlines for low zoom levels (z3 - z8). Linestrings without a name or * which are too short are filtered out at low zoom levels. Till z11 there is river class only, in z12 * there is also canal generated, starting z13 there is no generalization according to class * field applied. Waterways do not have a subclass field. * * Generated from * waterway.yaml */ public interface Waterway extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "waterway"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the waterway layer. */ final class Fields { /** * The OSM name value of the waterway. The * name field may be empty for NaturalEarth data or at lower zoom levels. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * The original value of the waterway * tag. *

* allowed values: *

    *
  • "stream" *
  • "river" *
  • "canal" *
  • "drain" *
  • "ditch" *
*/ public static final String CLASS = "class"; /** * Mark whether way is a tunnel or bridge. *

* allowed values: *

    *
  • "bridge" *
  • "tunnel" *
*/ public static final String BRUNNEL = "brunnel"; /** * Mark with 1 if it is an * intermittent waterway. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String INTERMITTENT = "intermittent"; } /** Attribute values for map elements in the waterway layer. */ final class FieldValues { public static final String CLASS_STREAM = "stream"; public static final String CLASS_RIVER = "river"; public static final String CLASS_CANAL = "canal"; public static final String CLASS_DRAIN = "drain"; public static final String CLASS_DITCH = "ditch"; public static final Set CLASS_VALUES = Set.of("stream", "river", "canal", "drain", "ditch"); public static final String BRUNNEL_BRIDGE = "bridge"; public static final String BRUNNEL_TUNNEL = "tunnel"; public static final Set BRUNNEL_VALUES = Set.of("bridge", "tunnel"); } /** Complex mappings to generate attribute values from OSM element tags in the waterway layer. */ final class FieldMappings { } } /** * Landcover is used to describe the physical material at the surface of the earth. At lower zoom levels this is from * Natural Earth data for glaciers and ice shelves and at higher zoom levels the landcover is * implied by OSM tags. The most common use case for this * layer is to style wood (class=wood) and grass (class=grass) areas. * * Generated from landcover.yaml */ public interface Landcover extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "landcover"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the landcover layer. */ final class Fields { /** * Use the class to assign natural colors for landcover. *

* allowed values: *

    *
  • farmland *
  • ice *
  • wood *
  • rock *
  • grass *
  • wetland *
  • sand *
*/ public static final String CLASS = "class"; /** * Use subclass to do more precise styling. Original value of either the * natural, * landuse, * leisure, or * wetland tag. *

* allowed values: *

    *
  • "allotments" *
  • "bare_rock" *
  • "beach" *
  • "bog" *
  • "dune" *
  • "scrub" *
  • "farm" *
  • "farmland" *
  • "fell" *
  • "forest" *
  • "garden" *
  • "glacier" *
  • "grass" *
  • "grassland" *
  • "golf_course" *
  • "heath" *
  • "mangrove" *
  • "marsh" *
  • "meadow" *
  • "orchard" *
  • "park" *
  • "plant_nursery" *
  • "recreation_ground" *
  • "reedbed" *
  • "saltern" *
  • "saltmarsh" *
  • "sand" *
  • "scree" *
  • "swamp" *
  • "tidalflat" *
  • "tundra" *
  • "village_green" *
  • "vineyard" *
  • "wet_meadow" *
  • "wetland" *
  • "wood" *
*/ public static final String SUBCLASS = "subclass"; } /** Attribute values for map elements in the landcover layer. */ final class FieldValues { public static final String CLASS_FARMLAND = "farmland"; public static final String CLASS_ICE = "ice"; public static final String CLASS_WOOD = "wood"; public static final String CLASS_ROCK = "rock"; public static final String CLASS_GRASS = "grass"; public static final String CLASS_WETLAND = "wetland"; public static final String CLASS_SAND = "sand"; public static final Set CLASS_VALUES = Set.of("farmland", "ice", "wood", "rock", "grass", "wetland", "sand"); public static final String SUBCLASS_ALLOTMENTS = "allotments"; public static final String SUBCLASS_BARE_ROCK = "bare_rock"; public static final String SUBCLASS_BEACH = "beach"; public static final String SUBCLASS_BOG = "bog"; public static final String SUBCLASS_DUNE = "dune"; public static final String SUBCLASS_SCRUB = "scrub"; public static final String SUBCLASS_FARM = "farm"; public static final String SUBCLASS_FARMLAND = "farmland"; public static final String SUBCLASS_FELL = "fell"; public static final String SUBCLASS_FOREST = "forest"; public static final String SUBCLASS_GARDEN = "garden"; public static final String SUBCLASS_GLACIER = "glacier"; public static final String SUBCLASS_GRASS = "grass"; public static final String SUBCLASS_GRASSLAND = "grassland"; public static final String SUBCLASS_GOLF_COURSE = "golf_course"; public static final String SUBCLASS_HEATH = "heath"; public static final String SUBCLASS_MANGROVE = "mangrove"; public static final String SUBCLASS_MARSH = "marsh"; public static final String SUBCLASS_MEADOW = "meadow"; public static final String SUBCLASS_ORCHARD = "orchard"; public static final String SUBCLASS_PARK = "park"; public static final String SUBCLASS_PLANT_NURSERY = "plant_nursery"; public static final String SUBCLASS_RECREATION_GROUND = "recreation_ground"; public static final String SUBCLASS_REEDBED = "reedbed"; public static final String SUBCLASS_SALTERN = "saltern"; public static final String SUBCLASS_SALTMARSH = "saltmarsh"; public static final String SUBCLASS_SAND = "sand"; public static final String SUBCLASS_SCREE = "scree"; public static final String SUBCLASS_SWAMP = "swamp"; public static final String SUBCLASS_TIDALFLAT = "tidalflat"; public static final String SUBCLASS_TUNDRA = "tundra"; public static final String SUBCLASS_VILLAGE_GREEN = "village_green"; public static final String SUBCLASS_VINEYARD = "vineyard"; public static final String SUBCLASS_WET_MEADOW = "wet_meadow"; public static final String SUBCLASS_WETLAND = "wetland"; public static final String SUBCLASS_WOOD = "wood"; public static final Set SUBCLASS_VALUES = Set.of("allotments", "bare_rock", "beach", "bog", "dune", "scrub", "farm", "farmland", "fell", "forest", "garden", "glacier", "grass", "grassland", "golf_course", "heath", "mangrove", "marsh", "meadow", "orchard", "park", "plant_nursery", "recreation_ground", "reedbed", "saltern", "saltmarsh", "sand", "scree", "swamp", "tidalflat", "tundra", "village_green", "vineyard", "wet_meadow", "wetland", "wood"); } /** Complex mappings to generate attribute values from OSM element tags in the landcover layer. */ final class FieldMappings { public static final MultiExpression Class = MultiExpression .of(List.of( MultiExpression.entry("farmland", matchAny("subclass", "farmland", "farm", "orchard", "vineyard", "plant_nursery")), MultiExpression.entry("ice", matchAny("subclass", "glacier", "ice_shelf")), MultiExpression.entry("wood", matchAny("subclass", "wood", "forest")), MultiExpression.entry("rock", matchAny("subclass", "bare_rock", "scree")), MultiExpression.entry("grass", matchAny("subclass", "fell", "grassland", "heath", "scrub", "tundra", "grass", "meadow", "allotments", "park", "village_green", "recreation_ground", "garden", "golf_course")), MultiExpression.entry("wetland", matchAny("subclass", "wetland", "bog", "swamp", "wet_meadow", "marsh", "reedbed", "saltern", "tidalflat", "saltmarsh", "mangrove")), MultiExpression.entry("sand", matchAny("subclass", "beach", "sand", "dune")))); } } /** * Landuse is used to describe use of land by humans. At lower zoom levels this is from Natural Earth data for * residential (urban) areas and at higher zoom levels mostly OSM landuse tags. * * Generated from * landuse.yaml */ public interface Landuse extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "landuse"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the landuse layer. */ final class Fields { /** * Use the class to assign special colors to areas. Original value of either the * landuse, * amenity, * leisure, * tourism, * place or * waterway tag. *

* allowed values: *

    *
  • "railway" *
  • "cemetery" *
  • "military" *
  • "residential" *
  • "commercial" *
  • "industrial" *
  • "garages" *
  • "retail" *
  • "bus_station" *
  • "school" *
  • "university" *
  • "kindergarten" *
  • "college" *
  • "library" *
  • "hospital" *
  • "stadium" *
  • "pitch" *
  • "playground" *
  • "track" *
  • "theme_park" *
  • "zoo" *
  • "suburb" *
  • "quarter" *
  • "neighbourhood" *
  • "dam" *
*/ public static final String CLASS = "class"; } /** Attribute values for map elements in the landuse layer. */ final class FieldValues { public static final String CLASS_RAILWAY = "railway"; public static final String CLASS_CEMETERY = "cemetery"; public static final String CLASS_MILITARY = "military"; public static final String CLASS_RESIDENTIAL = "residential"; public static final String CLASS_COMMERCIAL = "commercial"; public static final String CLASS_INDUSTRIAL = "industrial"; public static final String CLASS_GARAGES = "garages"; public static final String CLASS_RETAIL = "retail"; public static final String CLASS_BUS_STATION = "bus_station"; public static final String CLASS_SCHOOL = "school"; public static final String CLASS_UNIVERSITY = "university"; public static final String CLASS_KINDERGARTEN = "kindergarten"; public static final String CLASS_COLLEGE = "college"; public static final String CLASS_LIBRARY = "library"; public static final String CLASS_HOSPITAL = "hospital"; public static final String CLASS_STADIUM = "stadium"; public static final String CLASS_PITCH = "pitch"; public static final String CLASS_PLAYGROUND = "playground"; public static final String CLASS_TRACK = "track"; public static final String CLASS_THEME_PARK = "theme_park"; public static final String CLASS_ZOO = "zoo"; public static final String CLASS_SUBURB = "suburb"; public static final String CLASS_QUARTER = "quarter"; public static final String CLASS_NEIGHBOURHOOD = "neighbourhood"; public static final String CLASS_DAM = "dam"; public static final Set CLASS_VALUES = Set.of("railway", "cemetery", "military", "residential", "commercial", "industrial", "garages", "retail", "bus_station", "school", "university", "kindergarten", "college", "library", "hospital", "stadium", "pitch", "playground", "track", "theme_park", "zoo", "suburb", "quarter", "neighbourhood", "dam"); } /** Complex mappings to generate attribute values from OSM element tags in the landuse layer. */ final class FieldMappings { } } /** * Natural peaks * * Generated from mountain_peak.yaml */ public interface MountainPeak extends Layer { double BUFFER_SIZE = 64.0; String LAYER_NAME = "mountain_peak"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the mountain_peak layer. */ final class Fields { /** The OSM name value of the peak. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * Use the class to differentiate between mountain peak and volcano. *

* allowed values: *

    *
  • "peak" *
  • "volcano" *
  • "ridge" *
  • "cliff" *
  • "arete" *
*/ public static final String CLASS = "class"; /** Elevation (ele) in meters. */ public static final String ELE = "ele"; /** Elevation (ele) in feet. */ public static final String ELE_FT = "ele_ft"; /** * Value 1 for peaks in location where feet is used as customary unit (USA). *

* allowed values: *

    *
  • 1 *
  • null *
*/ public static final String CUSTOMARY_FT = "customary_ft"; /** Rank of the peak within one tile (starting at 1 that is the most important peak). */ public static final String RANK = "rank"; } /** Attribute values for map elements in the mountain_peak layer. */ final class FieldValues { public static final String CLASS_PEAK = "peak"; public static final String CLASS_VOLCANO = "volcano"; public static final String CLASS_RIDGE = "ridge"; public static final String CLASS_CLIFF = "cliff"; public static final String CLASS_ARETE = "arete"; public static final Set CLASS_VALUES = Set.of("peak", "volcano", "ridge", "cliff", "arete"); } /** Complex mappings to generate attribute values from OSM element tags in the mountain_peak layer. */ final class FieldMappings { } } /** * The park layer contains parks from OpenStreetMap tagged with * boundary=national_park, * boundary=protected_area, or * leisure=nature_reserve. * * Generated from * park.yaml */ public interface Park extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "park"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the park layer. */ final class Fields { /** * Use the class to differentiate between different parks. The class for * boundary=protected_area parks is the lower-case of the * protection_title value with * blanks replaced by _. national_park is the class of * protection_title=National Park and boundary=national_park. * nature_reserve is the class of protection_title=Nature Reserve and * leisure=nature_reserve. The class for other * protection_title values is * similarly assigned. */ public static final String CLASS = "class"; /** * The OSM name value of the park (point * features only). */ public static final String NAME = "name"; /** English name name:en if available, otherwise name (point features only). */ public static final String NAME_EN = "name_en"; /** * German name name:de if available, otherwise name or name:en (point * features only). */ public static final String NAME_DE = "name_de"; /** Rank of the park within one tile, starting at 1 that is the most important park (point features only). */ public static final String RANK = "rank"; } /** Attribute values for map elements in the park layer. */ final class FieldValues { } /** Complex mappings to generate attribute values from OSM element tags in the park layer. */ final class FieldMappings { } } /** * Contains administrative boundaries as linestrings. Until z4 * Natural Earth data is used after which OSM boundaries * (boundary=administrative) are * present from z5 to z14 (also for maritime boundaries with admin_level <= 2 at z4). OSM data * contains several * admin_level * but for most styles it makes sense to just style admin_level=2 and admin_level=4. * * Generated from * boundary.yaml */ public interface Boundary extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "boundary"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the boundary layer. */ final class Fields { /** * OSM admin_level * indicating the level of importance of this boundary. The admin_level corresponds to the lowest * admin_level the line participates in. At low zoom levels the Natural Earth boundaries are mapped * to the equivalent admin levels. */ public static final String ADMIN_LEVEL = "admin_level"; /** State name on the left of the border. For country boundaries only (admin_level = 2). */ public static final String ADM0_L = "adm0_l"; /** State name on the right of the border. For country boundaries only (admin_level = 2). */ public static final String ADM0_R = "adm0_r"; /** * Mark with 1 if the border is disputed. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String DISPUTED = "disputed"; /** * Field containing name of the disputed area (extracted from border relation in OSM, without spaces). For country * boundaries only (admin_level = 2). Value examples from Asian OSM pbf extract *

* allowed values: *

    *
  • "AbuMusaIsland" *
  • "BaraHotiiValleys" *
  • "ChineseClaim" *
  • "Crimea" *
  • "Demchok" *
  • "Dokdo" *
  • "IndianClaim-North" *
  • "IndianClaimwesternKashmir" *
  • "PakistaniClaim" *
  • "SamduValleys" *
  • "TirpaniValleys" *
*/ public static final String DISPUTED_NAME = "disputed_name"; /** * ISO2 code of country, which wants to see the boundary line. For country boundaries only * (admin_level = 2). */ public static final String CLAIMED_BY = "claimed_by"; /** * Mark with 1 if it is a maritime border. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String MARITIME = "maritime"; } /** Attribute values for map elements in the boundary layer. */ final class FieldValues { public static final String DISPUTED_NAME_ABUMUSAISLAND = "AbuMusaIsland"; public static final String DISPUTED_NAME_BARAHOTIIVALLEYS = "BaraHotiiValleys"; public static final String DISPUTED_NAME_CHINESECLAIM = "ChineseClaim"; public static final String DISPUTED_NAME_CRIMEA = "Crimea"; public static final String DISPUTED_NAME_DEMCHOK = "Demchok"; public static final String DISPUTED_NAME_DOKDO = "Dokdo"; public static final String DISPUTED_NAME_INDIANCLAIM_NORTH = "IndianClaim-North"; public static final String DISPUTED_NAME_INDIANCLAIMWESTERNKASHMIR = "IndianClaimwesternKashmir"; public static final String DISPUTED_NAME_PAKISTANICLAIM = "PakistaniClaim"; public static final String DISPUTED_NAME_SAMDUVALLEYS = "SamduValleys"; public static final String DISPUTED_NAME_TIRPANIVALLEYS = "TirpaniValleys"; public static final Set DISPUTED_NAME_VALUES = Set.of("AbuMusaIsland", "BaraHotiiValleys", "ChineseClaim", "Crimea", "Demchok", "Dokdo", "IndianClaim-North", "IndianClaimwesternKashmir", "PakistaniClaim", "SamduValleys", "TirpaniValleys"); } /** Complex mappings to generate attribute values from OSM element tags in the boundary layer. */ final class FieldMappings { } } /** * Aeroway polygons based of OpenStreetMap aeroways. Airport * buildings are contained in the building layer but all other airport related polygons can be found * in the aeroway layer. * * Generated from * aeroway.yaml */ public interface Aeroway extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "aeroway"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the aeroway layer. */ final class Fields { /** * The OSM ref tag of the runway/taxiway. */ public static final String REF = "ref"; /** * The original value of aeroway or * area:aeroway tag. *

* allowed values: *

    *
  • "aerodrome" *
  • "heliport" *
  • "runway" *
  • "helipad" *
  • "taxiway" *
  • "apron" *
  • "gate" *
*/ public static final String CLASS = "class"; } /** Attribute values for map elements in the aeroway layer. */ final class FieldValues { public static final String CLASS_AERODROME = "aerodrome"; public static final String CLASS_HELIPORT = "heliport"; public static final String CLASS_RUNWAY = "runway"; public static final String CLASS_HELIPAD = "helipad"; public static final String CLASS_TAXIWAY = "taxiway"; public static final String CLASS_APRON = "apron"; public static final String CLASS_GATE = "gate"; public static final Set CLASS_VALUES = Set.of("aerodrome", "heliport", "runway", "helipad", "taxiway", "apron", "gate"); } /** Complex mappings to generate attribute values from OSM element tags in the aeroway layer. */ final class FieldMappings { } } /** * transportation contains roads, railways, aerial ways, and shipping lines. This layer is directly * derived from the OSM road hierarchy. At lower zoom levels major highways from Natural Earth are used. It contains * all roads from motorways to primary, secondary and tertiary roads to residential roads and foot paths. Styling the * roads is the most essential part of the map. The transportation layer also contains polygons for * features like plazas. * * Generated from transportation.yaml */ public interface Transportation extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "transportation"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the transportation layer. */ final class Fields { /** * Distinguish between more and less important roads or railways and roads under construction. Class is derived * from the value of the highway, * construction, * railway, * aerialway, * route tag (for shipping ways), or * man_made. *

* allowed values: *

    *
  • motorway *
  • trunk *
  • primary *
  • secondary *
  • tertiary *
  • minor *
  • path *
  • service *
  • track *
  • raceway *
  • busway *
  • motorway_construction *
  • trunk_construction *
  • primary_construction *
  • secondary_construction *
  • tertiary_construction *
  • minor_construction *
  • path_construction *
  • service_construction *
  • track_construction *
  • raceway_construction *
*/ public static final String CLASS = "class"; /** * Distinguish more specific classes of railway and path: Subclass is value of the * railway, * highway (for paths), or * public_transport (for * platforms) tag. *

* allowed values: *

    *
  • "rail" *
  • "narrow_gauge" *
  • "preserved" *
  • "funicular" *
  • "subway" *
  • "light_rail" *
  • "monorail" *
  • "tram" *
  • "pedestrian" *
  • "path" *
  • "footway" *
  • "cycleway" *
  • "steps" *
  • "bridleway" *
  • "corridor" *
  • "platform" *
*/ public static final String SUBCLASS = "subclass"; /** * The network type derived mainly from * network tag of the road. See more * info about us- , * ca-transcanada, or * gb- . */ public static final String NETWORK = "network"; /** * Mark whether way is a tunnel or bridge. *

* allowed values: *

    *
  • "bridge" *
  • "tunnel" *
  • "ford" *
*/ public static final String BRUNNEL = "brunnel"; /** * Mark with 1 whether way is a oneway in the direction of the way, with -1 whether way * is a oneway in the opposite direction of the way or not a oneway with 0. *

* allowed values: *

    *
  • 0 *
  • 1 *
  • -1 *
*/ public static final String ONEWAY = "oneway"; /** * Mark with 1 whether way is a ramp (link or steps) or not with 0. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String RAMP = "ramp"; /** * Original value of the service tag. *

* allowed values: *

    *
  • "spur" *
  • "yard" *
  • "siding" *
  • "crossover" *
  • "driveway" *
  • "alley" *
  • "parking_aisle" *
*/ public static final String SERVICE = "service"; /** * Access restrictions on this road. Supported values of the * access tag are no and * private, which resolve to no. *

* allowed values: *

    *
  • false *
*/ public static final String ACCESS = "access"; /** * Whether this is a toll road, based on the * toll tag. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String TOLL = "toll"; /** * Whether this is an expressway, based on the * expressway tag. *

* allowed values: *

    *
  • 1 *
*/ public static final String EXPRESSWAY = "expressway"; /** Original value of the layer tag. */ public static final String LAYER = "layer"; /** * Experimental feature! Filled only for steps and footways. Original value of the * level tag. */ public static final String LEVEL = "level"; /** * Experimental feature! Filled only for steps and footways. Original value of the * indoor tag. *

* allowed values: *

    *
  • 1 *
*/ public static final String INDOOR = "indoor"; /** * Original value of the bicycle tag * (highways only). */ public static final String BICYCLE = "bicycle"; /** * Original value of the foot tag (highways * only). */ public static final String FOOT = "foot"; /** * Original value of the horse tag * (highways only). */ public static final String HORSE = "horse"; /** * Original value of the mtb:scale tag * (highways only). */ public static final String MTB_SCALE = "mtb_scale"; /** * Values of surface tag devided into 2 * groups paved (paved, asphalt, cobblestone, concrete, concrete:lanes, concrete:plates, metal, * paving_stones, sett, unhewn_cobblestone, wood) and unpaved (unpaved, compacted, dirt, earth, * fine_gravel, grass, grass_paver, gravel, gravel_turf, ground, ice, mud, pebblestone, salt, sand, snow, * woodchips). *

* allowed values: *

    *
  • "paved" *
  • "unpaved" *
*/ public static final String SURFACE = "surface"; } /** Attribute values for map elements in the transportation layer. */ final class FieldValues { public static final String CLASS_MOTORWAY = "motorway"; public static final String CLASS_TRUNK = "trunk"; public static final String CLASS_PRIMARY = "primary"; public static final String CLASS_SECONDARY = "secondary"; public static final String CLASS_TERTIARY = "tertiary"; public static final String CLASS_MINOR = "minor"; public static final String CLASS_PATH = "path"; public static final String CLASS_SERVICE = "service"; public static final String CLASS_TRACK = "track"; public static final String CLASS_RACEWAY = "raceway"; public static final String CLASS_BUSWAY = "busway"; public static final String CLASS_MOTORWAY_CONSTRUCTION = "motorway_construction"; public static final String CLASS_TRUNK_CONSTRUCTION = "trunk_construction"; public static final String CLASS_PRIMARY_CONSTRUCTION = "primary_construction"; public static final String CLASS_SECONDARY_CONSTRUCTION = "secondary_construction"; public static final String CLASS_TERTIARY_CONSTRUCTION = "tertiary_construction"; public static final String CLASS_MINOR_CONSTRUCTION = "minor_construction"; public static final String CLASS_PATH_CONSTRUCTION = "path_construction"; public static final String CLASS_SERVICE_CONSTRUCTION = "service_construction"; public static final String CLASS_TRACK_CONSTRUCTION = "track_construction"; public static final String CLASS_RACEWAY_CONSTRUCTION = "raceway_construction"; public static final Set CLASS_VALUES = Set.of("motorway", "trunk", "primary", "secondary", "tertiary", "minor", "path", "service", "track", "raceway", "busway", "motorway_construction", "trunk_construction", "primary_construction", "secondary_construction", "tertiary_construction", "minor_construction", "path_construction", "service_construction", "track_construction", "raceway_construction"); public static final String SUBCLASS_RAIL = "rail"; public static final String SUBCLASS_NARROW_GAUGE = "narrow_gauge"; public static final String SUBCLASS_PRESERVED = "preserved"; public static final String SUBCLASS_FUNICULAR = "funicular"; public static final String SUBCLASS_SUBWAY = "subway"; public static final String SUBCLASS_LIGHT_RAIL = "light_rail"; public static final String SUBCLASS_MONORAIL = "monorail"; public static final String SUBCLASS_TRAM = "tram"; public static final String SUBCLASS_PEDESTRIAN = "pedestrian"; public static final String SUBCLASS_PATH = "path"; public static final String SUBCLASS_FOOTWAY = "footway"; public static final String SUBCLASS_CYCLEWAY = "cycleway"; public static final String SUBCLASS_STEPS = "steps"; public static final String SUBCLASS_BRIDLEWAY = "bridleway"; public static final String SUBCLASS_CORRIDOR = "corridor"; public static final String SUBCLASS_PLATFORM = "platform"; public static final Set SUBCLASS_VALUES = Set.of("rail", "narrow_gauge", "preserved", "funicular", "subway", "light_rail", "monorail", "tram", "pedestrian", "path", "footway", "cycleway", "steps", "bridleway", "corridor", "platform"); public static final String BRUNNEL_BRIDGE = "bridge"; public static final String BRUNNEL_TUNNEL = "tunnel"; public static final String BRUNNEL_FORD = "ford"; public static final Set BRUNNEL_VALUES = Set.of("bridge", "tunnel", "ford"); public static final String SERVICE_SPUR = "spur"; public static final String SERVICE_YARD = "yard"; public static final String SERVICE_SIDING = "siding"; public static final String SERVICE_CROSSOVER = "crossover"; public static final String SERVICE_DRIVEWAY = "driveway"; public static final String SERVICE_ALLEY = "alley"; public static final String SERVICE_PARKING_AISLE = "parking_aisle"; public static final Set SERVICE_VALUES = Set.of("spur", "yard", "siding", "crossover", "driveway", "alley", "parking_aisle"); public static final String SURFACE_PAVED = "paved"; public static final String SURFACE_UNPAVED = "unpaved"; public static final Set SURFACE_VALUES = Set.of("paved", "unpaved"); } /** Complex mappings to generate attribute values from OSM element tags in the transportation layer. */ final class FieldMappings { public static final MultiExpression Class = MultiExpression.of(List.of(MultiExpression.entry("motorway", matchAny("highway", "motorway", "motorway_link")), MultiExpression.entry("trunk", matchAny("highway", "trunk", "trunk_link")), MultiExpression.entry("primary", matchAny("highway", "primary", "primary_link")), MultiExpression.entry("secondary", matchAny("highway", "secondary", "secondary_link")), MultiExpression.entry("tertiary", matchAny("highway", "tertiary", "tertiary_link")), MultiExpression.entry("minor", matchAny("highway", "unclassified", "residential", "living_street", "road")), MultiExpression.entry("path", or(matchAny("highway", "pedestrian", "path", "footway", "cycleway", "steps", "bridleway", "corridor"), matchAny("public_transport", "platform"))), MultiExpression.entry("service", matchAny("highway", "service")), MultiExpression.entry("track", matchAny("highway", "track")), MultiExpression.entry("raceway", matchAny("highway", "raceway")), MultiExpression.entry("busway", matchAny("highway", "busway")), MultiExpression.entry("motorway_construction", and(matchAny("highway", "construction"), matchAny("construction", "motorway", "motorway_link"))), MultiExpression.entry("trunk_construction", and(matchAny("highway", "construction"), matchAny("construction", "trunk", "trunk_link"))), MultiExpression.entry("primary_construction", and(matchAny("highway", "construction"), matchAny("construction", "primary", "primary_link"))), MultiExpression.entry("secondary_construction", and(matchAny("highway", "construction"), matchAny("construction", "secondary", "secondary_link"))), MultiExpression.entry("tertiary_construction", and(matchAny("highway", "construction"), matchAny("construction", "tertiary", "tertiary_link"))), MultiExpression.entry( "minor_construction", and(matchAny("highway", "construction"), matchAny("construction", "", "unclassified", "residential", "living_street", "road"))), MultiExpression.entry("path_construction", and(matchAny("highway", "construction"), or(matchAny("construction", "pedestrian", "path", "footway", "cycleway", "steps", "bridleway", "corridor"), matchAny("public_transport", "platform")))), MultiExpression.entry("service_construction", and(matchAny("highway", "construction"), matchAny("construction", "service"))), MultiExpression.entry("track_construction", and(matchAny("highway", "construction"), matchAny("construction", "track"))), MultiExpression.entry("raceway_construction", and(matchAny("highway", "construction"), matchAny("construction", "raceway"))))); } } /** * All OSM Buildings. All building tags are imported * (building= ). The buildings are not yet * ready for 3D rendering support and any help to improve this is welcomed. * * Generated from * building.yaml */ public interface Building extends Layer { double BUFFER_SIZE = 4.0; String LAYER_NAME = "building"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the building layer. */ final class Fields { /** * An approximated height from levels and height of the building or building:part after the method of Paul Norman * in OSM Clear. For future 3D rendering of buildings. */ public static final String RENDER_HEIGHT = "render_height"; /** * An approximated height from levels and height of the bottom of the building or building:part after the method * of Paul Norman in OSM Clear. For future 3D rendering of * buildings. */ public static final String RENDER_MIN_HEIGHT = "render_min_height"; /** Colour */ public static final String COLOUR = "colour"; /** * If True, building (part) should not be rendered in 3D. Currently, * building outlines are marked as hide_3d. */ public static final String HIDE_3D = "hide_3d"; } /** Attribute values for map elements in the building layer. */ final class FieldValues { } /** Complex mappings to generate attribute values from OSM element tags in the building layer. */ final class FieldMappings { } } /** * Lake center lines for labelling lake bodies. This is based of the * osm-lakelines project which derives nice centerlines * from OSM water bodies. Only the most important lakes contain labels. * * Generated from water_name.yaml */ public interface WaterName extends Layer { double BUFFER_SIZE = 256.0; String LAYER_NAME = "water_name"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the water_name layer. */ final class Fields { /** * The OSM name value of the water body. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * At the moment only lake since no ocean parts are labelled. Reserved for future use. *

* allowed values: *

    *
  • "lake" *
*/ public static final String CLASS = "class"; /** * Mark with 1 if it is an * intermittent lake. *

* allowed values: *

    *
  • 0 *
  • 1 *
*/ public static final String INTERMITTENT = "intermittent"; } /** Attribute values for map elements in the water_name layer. */ final class FieldValues { public static final String CLASS_LAKE = "lake"; public static final Set CLASS_VALUES = Set.of("lake"); } /** Complex mappings to generate attribute values from OSM element tags in the water_name layer. */ final class FieldMappings { } } /** * This is the layer for labelling the highways. Only highways that are named name= and are long enough * to place text upon appear. The OSM roads are stitched together if they contain the same name to have better label * placement than having many small linestrings. For motorways you should use the ref field to label them * while for other roads you should use name. * * Generated from transportation_name.yaml */ public interface TransportationName extends Layer { double BUFFER_SIZE = 8.0; String LAYER_NAME = "transportation_name"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the transportation_name layer. */ final class Fields { /** * The OSM name value * of the highway. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * The OSM ref tag of the motorway or its * network. */ public static final String REF = "ref"; /** Length of the ref field. Useful for having a shield icon as background for labeling motorways. */ public static final String REF_LENGTH = "ref_length"; /** * The network type derived mainly from * network tag of the road. See more * info about us- , * ca-transcanada, or * gb- . *

* allowed values: *

    *
  • "us-interstate" *
  • "us-highway" *
  • "us-state" *
  • "ca-transcanada" *
  • "gb-motorway" *
  • "gb-trunk" *
  • "road (default)" *
*/ public static final String NETWORK = "network"; /** * Distinguish between more and less important roads and roads under construction. *

* allowed values: *

    *
  • "motorway" *
  • "trunk" *
  • "primary" *
  • "secondary" *
  • "tertiary" *
  • "minor" *
  • "service" *
  • "track" *
  • "path" *
  • "raceway" *
  • "motorway_construction" *
  • "trunk_construction" *
  • "primary_construction" *
  • "secondary_construction" *
  • "tertiary_construction" *
  • "minor_construction" *
  • "service_construction" *
  • "track_construction" *
  • "path_construction" *
  • "raceway_construction" *
  • "rail" *
  • "transit" *
  • "motorway_junction" *
*/ public static final String CLASS = "class"; /** * Distinguish more specific classes of path: Subclass is value of the * highway (for paths), and * "junction" for * motorway junctions. *

* allowed values: *

    *
  • "pedestrian" *
  • "path" *
  • "footway" *
  • "cycleway" *
  • "steps" *
  • "bridleway" *
  • "corridor" *
  • "platform" *
  • "junction" *
*/ public static final String SUBCLASS = "subclass"; /** * Mark whether way is a bridge, a tunnel or a ford. *

* allowed values: *

    *
  • "bridge" *
  • "tunnel" *
  • "ford" *
*/ public static final String BRUNNEL = "brunnel"; /** * Experimental feature! Filled only for steps and footways. Original value of * level tag. */ public static final String LEVEL = "level"; /** * Experimental feature! Filled only for steps and footways. Original value of * layer tag. */ public static final String LAYER = "layer"; /** * Experimental feature! Filled only for steps and footways. Original value of * indoor tag. *

* allowed values: *

    *
  • 1 *
*/ public static final String INDOOR = "indoor"; /** 1st route concurrency. */ public static final String ROUTE_1 = "route_1"; /** 2nd route concurrency. */ public static final String ROUTE_2 = "route_2"; /** 3rd route concurrency. */ public static final String ROUTE_3 = "route_3"; /** 4th route concurrency. */ public static final String ROUTE_4 = "route_4"; /** 5th route concurrency. */ public static final String ROUTE_5 = "route_5"; /** 6th route concurrency. */ public static final String ROUTE_6 = "route_6"; } /** Attribute values for map elements in the transportation_name layer. */ final class FieldValues { public static final String NETWORK_US_INTERSTATE = "us-interstate"; public static final String NETWORK_US_HIGHWAY = "us-highway"; public static final String NETWORK_US_STATE = "us-state"; public static final String NETWORK_CA_TRANSCANADA = "ca-transcanada"; public static final String NETWORK_GB_MOTORWAY = "gb-motorway"; public static final String NETWORK_GB_TRUNK = "gb-trunk"; public static final String NETWORK_ROAD = "road"; public static final Set NETWORK_VALUES = Set.of("us-interstate", "us-highway", "us-state", "ca-transcanada", "gb-motorway", "gb-trunk", "road"); public static final String CLASS_MOTORWAY = "motorway"; public static final String CLASS_TRUNK = "trunk"; public static final String CLASS_PRIMARY = "primary"; public static final String CLASS_SECONDARY = "secondary"; public static final String CLASS_TERTIARY = "tertiary"; public static final String CLASS_MINOR = "minor"; public static final String CLASS_SERVICE = "service"; public static final String CLASS_TRACK = "track"; public static final String CLASS_PATH = "path"; public static final String CLASS_RACEWAY = "raceway"; public static final String CLASS_MOTORWAY_CONSTRUCTION = "motorway_construction"; public static final String CLASS_TRUNK_CONSTRUCTION = "trunk_construction"; public static final String CLASS_PRIMARY_CONSTRUCTION = "primary_construction"; public static final String CLASS_SECONDARY_CONSTRUCTION = "secondary_construction"; public static final String CLASS_TERTIARY_CONSTRUCTION = "tertiary_construction"; public static final String CLASS_MINOR_CONSTRUCTION = "minor_construction"; public static final String CLASS_SERVICE_CONSTRUCTION = "service_construction"; public static final String CLASS_TRACK_CONSTRUCTION = "track_construction"; public static final String CLASS_PATH_CONSTRUCTION = "path_construction"; public static final String CLASS_RACEWAY_CONSTRUCTION = "raceway_construction"; public static final String CLASS_RAIL = "rail"; public static final String CLASS_TRANSIT = "transit"; public static final String CLASS_MOTORWAY_JUNCTION = "motorway_junction"; public static final Set CLASS_VALUES = Set.of("motorway", "trunk", "primary", "secondary", "tertiary", "minor", "service", "track", "path", "raceway", "motorway_construction", "trunk_construction", "primary_construction", "secondary_construction", "tertiary_construction", "minor_construction", "service_construction", "track_construction", "path_construction", "raceway_construction", "rail", "transit", "motorway_junction"); public static final String SUBCLASS_PEDESTRIAN = "pedestrian"; public static final String SUBCLASS_PATH = "path"; public static final String SUBCLASS_FOOTWAY = "footway"; public static final String SUBCLASS_CYCLEWAY = "cycleway"; public static final String SUBCLASS_STEPS = "steps"; public static final String SUBCLASS_BRIDLEWAY = "bridleway"; public static final String SUBCLASS_CORRIDOR = "corridor"; public static final String SUBCLASS_PLATFORM = "platform"; public static final String SUBCLASS_JUNCTION = "junction"; public static final Set SUBCLASS_VALUES = Set.of("pedestrian", "path", "footway", "cycleway", "steps", "bridleway", "corridor", "platform", "junction"); public static final String BRUNNEL_BRIDGE = "bridge"; public static final String BRUNNEL_TUNNEL = "tunnel"; public static final String BRUNNEL_FORD = "ford"; public static final Set BRUNNEL_VALUES = Set.of("bridge", "tunnel", "ford"); } /** Complex mappings to generate attribute values from OSM element tags in the transportation_name layer. */ final class FieldMappings { } } /** * The place layer consists out of countries, * states and * cities. Apart from the roads this is also one of the * more important layers to create a beautiful map. We suggest you use different font styles and sizes to create a * text hierarchy. * * Generated from * place.yaml */ public interface Place extends Layer { double BUFFER_SIZE = 256.0; String LAYER_NAME = "place"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the place layer. */ final class Fields { /** The OSM name value of the POI. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * The capital field marks the admin_level of * the boundary the place is a capital of. *

* allowed values: *

    *
  • 2 *
  • 4 *
*/ public static final String CAPITAL = "capital"; /** * Original value of the place tag. * Distinguish between continents, countries, states and places like settlements or smaller entities. Use * class to separately style the different places and build a text hierarchy according to their * importance. *

* allowed values: *

    *
  • "continent" *
  • "country" *
  • "state" *
  • "province" *
  • "city" *
  • "town" *
  • "village" *
  • "hamlet" *
  • "suburb" *
  • "quarter" *
  • "neighbourhood" *
  • "isolated_dwelling" *
*/ public static final String CLASS = "class"; /** * Two-letter country code ISO 3166-1 alpha-2. * Available only for class=country. Original value of the country_code_iso3166_1_alpha_2 tag. */ public static final String ISO_A2 = "iso_a2"; /** * Countries, states and the most important cities all have a rank to boost their importance on * the map. The rank field for counries and states ranges from 1 to 6 * while the rank field for cities ranges from 1 to 10 for the most * important cities and continues from 10 serially based on the local importance of the city (derived * from population and city class). You can use the rank to limit density of labels or improve * the text hierarchy. The rank value is a combination of the Natural Earth scalerank, * labelrank and datarank values for countries and states and for cities consists out of * a shifted Natural Earth scalerank combined with a local rank within a grid for cities that do not * have a Natural Earth scalerank. */ public static final String RANK = "rank"; } /** Attribute values for map elements in the place layer. */ final class FieldValues { public static final String CLASS_CONTINENT = "continent"; public static final String CLASS_COUNTRY = "country"; public static final String CLASS_STATE = "state"; public static final String CLASS_PROVINCE = "province"; public static final String CLASS_CITY = "city"; public static final String CLASS_TOWN = "town"; public static final String CLASS_VILLAGE = "village"; public static final String CLASS_HAMLET = "hamlet"; public static final String CLASS_SUBURB = "suburb"; public static final String CLASS_QUARTER = "quarter"; public static final String CLASS_NEIGHBOURHOOD = "neighbourhood"; public static final String CLASS_ISOLATED_DWELLING = "isolated_dwelling"; public static final Set CLASS_VALUES = Set.of("continent", "country", "state", "province", "city", "town", "village", "hamlet", "suburb", "quarter", "neighbourhood", "isolated_dwelling"); } /** Complex mappings to generate attribute values from OSM element tags in the place layer. */ final class FieldMappings { } } /** * Everything in OpenStreetMap which contains a addr:housenumber tag useful for labelling housenumbers on * a map. This adds significant size to z14. For buildings the centroid of the building is used as * housenumber. * * Generated from housenumber.yaml */ public interface Housenumber extends Layer { double BUFFER_SIZE = 8.0; String LAYER_NAME = "housenumber"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the housenumber layer. */ final class Fields { /** Value of the addr:housenumber tag. */ public static final String HOUSENUMBER = "housenumber"; } /** Attribute values for map elements in the housenumber layer. */ final class FieldValues { } /** Complex mappings to generate attribute values from OSM element tags in the housenumber layer. */ final class FieldMappings { } } /** * Points of interests containing a of a variety * of OpenStreetMap tags. Mostly contains amenities, sport, shop and tourist POIs. * * Generated from poi.yaml */ public interface Poi extends Layer { double BUFFER_SIZE = 64.0; String LAYER_NAME = "poi"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the poi layer. */ final class Fields { /** The OSM name value of the POI. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * More general classes of POIs. If there is no more general class for the subclass this * field will contain the same value as subclass. But for example for schools you only need to style * the class school to filter the subclasses school and kindergarten. Or * use the class shop to style all shops. *

* allowed values: *

    *
  • shop *
  • town_hall *
  • golf *
  • fast_food *
  • park *
  • bus *
  • railway *
  • aerialway *
  • entrance *
  • campsite *
  • laundry *
  • grocery *
  • library *
  • college *
  • lodging *
  • ice_cream *
  • post *
  • cafe *
  • school *
  • alcohol_shop *
  • bar *
  • harbor *
  • car *
  • hospital *
  • cemetery *
  • attraction *
  • beer *
  • music *
  • stadium *
  • art_gallery *
  • clothing_store *
  • swimming *
  • castle *
*/ public static final String CLASS = "class"; /** * Original value of either the amenity, * barrier, * historic, * information, * landuse, * leisure, * railway, * shop, * sport, * station, * religion, * tourism, * aerialway, * building, * highway or * waterway tag. Use this to do more * precise styling. */ public static final String SUBCLASS = "subclass"; /** * The POIs are ranked ascending according to their importance within a grid. The rank value shows * the local relative importance of a POI within it's cell in the grid. This can be used to reduce label density * at z14. Since all POIs already need to be contained at z14 you can use * less than rank=10 epxression to limit POIs. At some point like z17 you can show all POIs. */ public static final String RANK = "rank"; /** * Experimental feature! Indicates main platform of public transport stops (buses, trams, and subways). Grouping * of platforms is implemented using * uic_ref tag that is not used * worldwide. *

* allowed values: *

    *
  • 1 *
*/ public static final String AGG_STOP = "agg_stop"; /** Original value of level tag. */ public static final String LEVEL = "level"; /** Original value of layer tag. */ public static final String LAYER = "layer"; /** * Original value of indoor tag. *

* allowed values: *

    *
  • 1 *
*/ public static final String INDOOR = "indoor"; } /** Attribute values for map elements in the poi layer. */ final class FieldValues { public static final String CLASS_SHOP = "shop"; public static final String CLASS_TOWN_HALL = "town_hall"; public static final String CLASS_GOLF = "golf"; public static final String CLASS_FAST_FOOD = "fast_food"; public static final String CLASS_PARK = "park"; public static final String CLASS_BUS = "bus"; public static final String CLASS_RAILWAY = "railway"; public static final String CLASS_AERIALWAY = "aerialway"; public static final String CLASS_ENTRANCE = "entrance"; public static final String CLASS_CAMPSITE = "campsite"; public static final String CLASS_LAUNDRY = "laundry"; public static final String CLASS_GROCERY = "grocery"; public static final String CLASS_LIBRARY = "library"; public static final String CLASS_COLLEGE = "college"; public static final String CLASS_LODGING = "lodging"; public static final String CLASS_ICE_CREAM = "ice_cream"; public static final String CLASS_POST = "post"; public static final String CLASS_CAFE = "cafe"; public static final String CLASS_SCHOOL = "school"; public static final String CLASS_ALCOHOL_SHOP = "alcohol_shop"; public static final String CLASS_BAR = "bar"; public static final String CLASS_HARBOR = "harbor"; public static final String CLASS_CAR = "car"; public static final String CLASS_HOSPITAL = "hospital"; public static final String CLASS_CEMETERY = "cemetery"; public static final String CLASS_ATTRACTION = "attraction"; public static final String CLASS_BEER = "beer"; public static final String CLASS_MUSIC = "music"; public static final String CLASS_STADIUM = "stadium"; public static final String CLASS_ART_GALLERY = "art_gallery"; public static final String CLASS_CLOTHING_STORE = "clothing_store"; public static final String CLASS_SWIMMING = "swimming"; public static final String CLASS_CASTLE = "castle"; public static final Set CLASS_VALUES = Set.of("shop", "town_hall", "golf", "fast_food", "park", "bus", "railway", "aerialway", "entrance", "campsite", "laundry", "grocery", "library", "college", "lodging", "ice_cream", "post", "cafe", "school", "alcohol_shop", "bar", "harbor", "car", "hospital", "cemetery", "attraction", "beer", "music", "stadium", "art_gallery", "clothing_store", "swimming", "castle"); } /** Complex mappings to generate attribute values from OSM element tags in the poi layer. */ final class FieldMappings { public static final MultiExpression Class = MultiExpression.of(List.of( MultiExpression.entry("shop", matchAny("subclass", "accessories", "antiques", "beauty", "bed", "boutique", "camera", "carpet", "charity", "chemist", "coffee", "computer", "convenience", "copyshop", "cosmetics", "garden_centre", "doityourself", "erotic", "electronics", "fabric", "florist", "frozen_food", "furniture", "video_games", "video", "general", "gift", "hardware", "hearing_aids", "hifi", "ice_cream", "interior_decoration", "jewelry", "kiosk", "locksmith", "lamps", "mall", "massage", "motorcycle", "mobile_phone", "newsagent", "optician", "outdoor", "perfumery", "perfume", "pet", "photo", "second_hand", "shoes", "sports", "stationery", "tailor", "tattoo", "ticket", "tobacco", "toys", "travel_agency", "watches", "weapons", "wholesale")), MultiExpression.entry("town_hall", matchAny("subclass", "townhall", "public_building", "courthouse", "community_centre")), MultiExpression.entry("golf", matchAny("subclass", "golf", "golf_course", "miniature_golf")), MultiExpression.entry("fast_food", matchAny("subclass", "fast_food", "food_court")), MultiExpression.entry("park", matchAny("subclass", "park", "bbq")), MultiExpression.entry("bus", matchAny("subclass", "bus_stop", "bus_station")), MultiExpression.entry("railway", or(and(matchAny("subclass", "station"), matchAny("mapping_key", "railway")), matchAny("subclass", "halt", "tram_stop", "subway"))), MultiExpression.entry("aerialway", and(matchAny("subclass", "station"), matchAny("mapping_key", "aerialway"))), MultiExpression.entry("entrance", matchAny("subclass", "subway_entrance", "train_station_entrance")), MultiExpression.entry("campsite", matchAny("subclass", "camp_site", "caravan_site")), MultiExpression.entry("laundry", matchAny("subclass", "laundry", "dry_cleaning")), MultiExpression.entry("grocery", matchAny("subclass", "supermarket", "deli", "delicatessen", "department_store", "greengrocer", "marketplace")), MultiExpression.entry("library", matchAny("subclass", "books", "library")), MultiExpression.entry("college", matchAny("subclass", "university", "college")), MultiExpression.entry("lodging", matchAny("subclass", "hotel", "motel", "bed_and_breakfast", "guest_house", "hostel", "chalet", "alpine_hut", "dormitory")), MultiExpression.entry("ice_cream", matchAny("subclass", "chocolate", "confectionery")), MultiExpression.entry("post", matchAny("subclass", "post_box", "post_office")), MultiExpression.entry("cafe", matchAny("subclass", "cafe")), MultiExpression.entry("school", matchAny("subclass", "school", "kindergarten")), MultiExpression.entry("alcohol_shop", matchAny("subclass", "alcohol", "beverages", "wine")), MultiExpression.entry("bar", matchAny("subclass", "bar", "nightclub")), MultiExpression.entry("harbor", matchAny("subclass", "marina", "dock")), MultiExpression.entry("car", matchAny("subclass", "car", "car_repair", "car_parts", "taxi")), MultiExpression.entry("hospital", matchAny("subclass", "hospital", "nursing_home", "clinic")), MultiExpression.entry("cemetery", matchAny("subclass", "grave_yard", "cemetery")), MultiExpression.entry("attraction", matchAny("subclass", "attraction", "viewpoint")), MultiExpression.entry("beer", matchAny("subclass", "biergarten", "pub")), MultiExpression.entry("music", matchAny("subclass", "music", "musical_instrument")), MultiExpression.entry("stadium", matchAny("subclass", "american_football", "stadium", "soccer")), MultiExpression.entry("art_gallery", matchAny("subclass", "art", "artwork", "gallery", "arts_centre")), MultiExpression.entry("clothing_store", matchAny("subclass", "bag", "clothes")), MultiExpression.entry("swimming", matchAny("subclass", "swimming_area", "swimming")), MultiExpression.entry("castle", matchAny("subclass", "castle", "ruins")))); } } /** * Aerodrome labels * * Generated from aerodrome_label.yaml */ public interface AerodromeLabel extends Layer { double BUFFER_SIZE = 64.0; String LAYER_NAME = "aerodrome_label"; @Override default String name() { return LAYER_NAME; } /** Attribute names for map elements in the aerodrome_label layer. */ final class Fields { /** The OSM name value of the aerodrome. */ public static final String NAME = "name"; /** English name name:en if available, otherwise name. */ public static final String NAME_EN = "name_en"; /** German name name:de if available, otherwise name or name:en. */ public static final String NAME_DE = "name_de"; /** * Distinguish between more and less important aerodromes. Class is derived from the value of * aerodrome and * aerodrome:type tags. *

* allowed values: *

    *
  • international *
  • public *
  • regional *
  • military *
  • private *
  • other *
*/ public static final String CLASS = "class"; /** 3-character code issued by the IATA. */ public static final String IATA = "iata"; /** 4-letter code issued by the ICAO. */ public static final String ICAO = "icao"; /** Elevation (ele) in meters. */ public static final String ELE = "ele"; /** Elevation (ele) in feets. */ public static final String ELE_FT = "ele_ft"; } /** Attribute values for map elements in the aerodrome_label layer. */ final class FieldValues { public static final String CLASS_INTERNATIONAL = "international"; public static final String CLASS_PUBLIC = "public"; public static final String CLASS_REGIONAL = "regional"; public static final String CLASS_MILITARY = "military"; public static final String CLASS_PRIVATE = "private"; public static final String CLASS_OTHER = "other"; public static final Set CLASS_VALUES = Set.of("international", "public", "regional", "military", "private", "other"); } /** Complex mappings to generate attribute values from OSM element tags in the aerodrome_label layer. */ final class FieldMappings { public static final MultiExpression Class = MultiExpression.of(List.of( MultiExpression.entry("international", or(matchAny("aerodrome", "international"), matchAny("aerodrome_type", "international"))), MultiExpression.entry("public", or(matchAny("aerodrome", "public"), matchAny("aerodrome_type", "%public%", "civil"))), MultiExpression.entry("regional", or(matchAny("aerodrome", "regional"), matchAny("aerodrome_type", "regional"))), MultiExpression.entry("military", or(matchAny("aerodrome", "military"), matchAny("aerodrome_type", "%military%"), matchAny("military", "airfield"))), MultiExpression.entry("private", or(matchAny("aerodrome", "private"), matchAny("aerodrome_type", "private"))), MultiExpression.entry("other", FALSE))); } } }