[mkgmap-dev] Changes that I made in a recent set of default style files and the reason I have for making those changes.
From Randolph J. Herber army.bronze.star at gmail.com on Tue Jul 28 00:28:45 BST 2020
In case that I grabbed points and polygons files that I had already modified, I included both before and after versions as well as a patch file for each. I never really liked the cities, towns, villages, suburbs, and hamlets handling. Now, they are by size only. In the USA, the difference has more to do with legal privileges than anything else. There are such entities with populations over 20 million: Shanghai, Beijing and Lagos and there are extant entities with names and no recorded population. They are often called ghost towns. In some states, they even have legal protection. I wanted to break out places of worship by religion for at least some of the major religions. I can supply icons for them. Making icons is easy for me. amenity=place_of_worship & religion=christian [0x2c0e resolution 24] amenity=place_of_worship & religion=muslim [0x2c0d resolution 24] amenity=place_of_worship & religion=jewish [0x2c10 resolution 24] amenity=place_of_worship & religion=buddhist [0x2c0f resolution 24] amenity=place_of_worship & religion=hindu [0x2c1f resolution 24] amenity=place_of_worship & religion=bahai [0x2c1e resolution 24] amenity=place_of_worship [0x2c0b resolution 24] Therefore, I changed the code in this line to move that item out of the block of codes that I am using. tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2f00 resolution 24] I used Wolfram Mathematica (mostly, just because it was convenient) to process the style files and some lists from the Maps Tool Kit to see what codes are available and which mkgmap style files were using. I attached that file as well in case it may be of use to you. I separated prisons and military areas in both points and polygons. -------------- next part -------------- inc\contour_lines 20 contour contour=elevation & contour_ext=elevation_minor { name '${ele | conv:m=>ft}'; } [0x20 resolution 23] 21 contour contour=elevation & contour_ext=elevation_medium { name '${ele | conv:m=>ft}'; } [0x21 resolution 21] contour=elevation | contour_ext=elevation { name '${ele | conv:m=>ft}'; } [0x21 resolution 20] 22 contour contour=elevation & contour_ext=elevation_major { name '${ele | conv:m=>ft}'; } [0x22 resolution 20] 23 contour Available 24 contour Available 25 contour Available lines 01 highway=motorway & mkgmap:fast_road=yes [0x01 road_class=4 road_speed=7 resolution 14] highway=motorway [0x01 road_class=4 road_speed=7 resolution 15] 02 highway=trunk & mkgmap:fast_road=yes [0x02 road_class=4 road_speed=5 resolution 15] highway=trunk [0x02 road_class=4 road_speed=5 resolution 18] highway=* & motorroad=yes [0x02 road_class=4 road_speed=4 resolution 18] 03 highway=primary & mkgmap:fast_road=yes [0x03 road_class=4 road_speed=4 resolution 17] highway=primary [0x03 road_class=3 road_speed=4 resolution 19] 04 highway=secondary & mkgmap:fast_road=yes [0x04 road_class=3 road_speed=3 resolution 18] highway=secondary [0x04 road_class=2 road_speed=3 resolution 20] 05 highway=tertiary [0x05 road_class=1 road_speed=3 resolution 20] 06 highway=minor [0x06 road_class=1 road_speed=3 resolution 21] highway=unclassified [0x06 road_class=0 road_speed=3 resolution 21] highway=living_street [0x06 road_class=0 road_speed=1 resolution 22] highway=residential [0x06 road_class=0 road_speed=2 resolution 22] highway=road {add mkgmap:dead-end-check=false} [0x06 road_class=0 road_speed=1 resolution 22] 07 highway=bridleway [0x07 road_class=0 road_speed=0 resolution 23] highway=service & service=parking_aisle [0x07 road_class=0 road_speed=1 resolution 24] highway=service & (service=alley | service=driveway) [0x07 road_class=0 road_speed=0 resolution 23] highway=service [0x07 road_class=0 road_speed=2 resolution 22] highway=turning_loop | highway=turning_circle | highway=layby | highway=escape | highway=emergency_bay [0x07 road_class=0 road_speed=0 resolution 24] 08 highway=primary_link & mkgmap:fast_road=yes [0x08 road_class=4 road_speed=1 resolution 21] highway=primary_link [0x08 road_class=3 road_speed=1 resolution 21] highway=secondary_link & mkgmap:fast_road=yes [0x08 road_class=3 road_speed=1 resolution 22] highway=secondary_link [0x08 road_class=2 road_speed=1 resolution 22] highway=tertiary_link [0x08 road_class=1 road_speed=1 resolution 22] 09 highway=motorway_link [0x09 road_class=4 road_speed=2 resolution 20] highway=trunk_link [0x09 road_class=4 road_speed=2 resolution 20] 0a highway=track [0x0a road_class=0 road_speed=1 resolution 22] highway=unsurfaced [0x0a road_class=0 road_speed=1 resolution 22] 0b highway=motorway_link & (mkgmap:exit_hint=true | mkgmap:dest_hint=*) [0x0b road_class=4 road_speed=2 resolution 20] highway=trunk_link & (mkgmap:exit_hint=true | mkgmap:dest_hint=*) [0x0b road_class=4 road_speed=2 resolution 20] highway=primary_link & (mkgmap:exit_hint=true | mkgmap:dest_hint=*) & mkgmap:fast_road=yes [0x0b road_class=4 road_speed=1 resolution 21] highway=primary_link & (mkgmap:exit_hint=true | mkgmap:dest_hint=*) [0x0b road_class=3 road_speed=1 resolution 21] 0c junction=roundabout & (highway=trunk | highway=trunk_link) [0x0c road_class=4 road_speed=2 resolution 24 continue] junction=roundabout & (highway=primary | highway=primary_link) & mkgmap:fast_road=yes [0x0c road_class=4 road_speed=2 resolution 24 continue] junction=roundabout & (highway=primary | highway=primary_link) [0x0c road_class=3 road_speed=2 resolution 24 continue] junction=roundabout & (highway=secondary | highway=secondary_link) & mkgmap:fast_road=yes [0x0c road_class=3 road_speed=2 resolution 24 continue] junction=roundabout & (highway=secondary | highway=secondary_link) [0x0c road_class=2 road_speed=2 resolution 24 continue] junction=roundabout & (highway=tertiary | highway=tertiary_link) [0x0c road_class=1 road_speed=1 resolution 24 continue] junction=roundabout & (highway=unclassified | highway=minor) [0x0c road_class=1 road_speed=1 resolution 21] junction=roundabout & highway=* [0x0c road_class=0 road_speed=1 resolution 22] 10801 junction=roundabout & (highway=trunk | highway=trunk_link) [0x10801 resolution 18] 10802 junction=roundabout & (highway=primary | highway=primary_link) & mkgmap:fast_road=yes [0x10802 resolution 19] junction=roundabout & (highway=primary | highway=primary_link) [0x10802 resolution 19] 10803 junction=roundabout & (highway=secondary | highway=secondary_link) & mkgmap:fast_road=yes [0x10803 resolution 20] junction=roundabout & (highway=secondary | highway=secondary_link) [0x10803 resolution 20] 10804 junction=roundabout & (highway=tertiary | highway=tertiary_link) [0x10804 resolution 21] 11 highway=cycleway [0x11 road_class=0 road_speed=1 resolution 23] 14 (railway=rail | railway=tram | railway=disused | railway=subway | railway=narrow_gauge | railway=light_rail | railway=preserved) & !(tunnel=yes) [0x14 resolution 22] 15 natural=coastline [0x15 resolution 12] 16 highway=construction {add mkgmap:dead-end-check=false} [0x16 road_class=0 road_speed=0 resolution 23] highway=pedestrian {set tmp:stopMopUp=yes} [0x16 road_class=0 road_speed=0 resolution 22 continue with_actions] highway=byway [0x16 road_class=0 road_speed=0 resolution 23] highway=footway {set tmp:stopMopUp=yes} [0x16 road_class=0 road_speed=0 resolution 23 continue with_actions] highway=path [0x16 road_class=0 road_speed=0 resolution 23] railway=platform [0x16 road_class=0 road_speed=0 resolution 23] 17 man_made=breakwater & is_closed()=false & mkgmap:mp_created!=true [0x17 resolution 22 default_name 'Breakwater'] barrier=wall | barrier=fence | barrier=hedge | barrier=ditch {add name='${barrier | subst:"_=> "}'} [0x17 resolution 24] 18 waterway=stream | waterway=drain [0x18 resolution 22] 1a route=ferry [0x1a road_class=3 road_speed=0 resolution 19] 1b route=ferry & (motorcar=no | motor_vehicle=no) [0x1b road_class=0 road_speed=0 resolution 23] 1c boundary=administrative & admin_level7<7 [0x1c resolution 16] boundary=political [0x1c resolution 19] 1d boundary=administrative & admin_level<5 [0x1d resolution 12] boundary=aboriginal_lands [0x1d resolution 12] boundary=protected_area& protect_class=24 [0x1d resolution 12] 1e boundary=administrative & admin_level<3 [0x1e resolution 12] boundary=national [0x1e resolution 17] 1f waterway=canal [0x1f resolution 21] waterway=river [0x1f resolution 18] waterway=rapids | waterway=waterfall [0x1f resolution 22] 26 (waterway=river | waterway=canal) & intermittent=yes [0x26 resolution 20] (waterway=stream | waterway=drain) & intermittent=yes [0x26 resolution 22] waterway=* & waterway!=no & (area=no | (is_closed()=false & mkgmap:mp_created!=true)) {add name='${waterway | subst:"_=> "}'} [0x26 resolution 24] 27 aeroway=runway & area!=yes {name '${ref}'} [0x27 resolution 20 continue] (aeroway=taxiway | aeroway=taxilane) & area!=yes {name '${ref}'} [0x27 resolution 24 continue] 28 (man_made=cable | (man_made=* & man_made~'.*pipe.*')) & area!=yes & tunnel!=yes & location!=underground {name '${name} (${operator})' | '${name}' | '${operator}'} [0x28 resolution 23] 29 power=line [0x29 resolution 21] 30 leisure=track & area!=yes {name '${name} (${sport})' | '${sport}'} [0x30 resolution 22] highway=raceway | highway=gallop {add name='${highway}'} [0x30 resolution 23] points 0000 Flag,Blue Available 0100 City(Capitol) place=city & population > 999999 & name=* [0x0100 resolution 12] 0200 City(Capitol) place=city & population > 799999 & name=* [0x0200 resolution 14] 0300 City(Capitol) place=city & population > 399999 & name=* [0x0300 resolution 15] 0400 City(Large) place=city & population > 299999 & name=* [0x0400 resolution 16] 0500 City(Large) place=city & population > 199999 & name=* [0x0500 resolution 16] 0600 City(Large) place=city & population > 99999 & name=* [0x0600 resolution 17] place=town & population > 69999 & name=* [0x0600 resolution 17] 0700 City(Large) place=city & population > 49999 & name=* [0x0700 resolution 17] place=city & name=* [0x0700 resolution 18] place=town & population > 19999 & name=* [0x0700 resolution 18] 0800 City(Medium) place=city & population > 9999 & name=* [0x0800 resolution 18] place=city & population > 0 & name=* [0x0800 resolution 18] place=town & population > 9999 & name=* [0x0800 resolution 19] place=town & name=* [0x0800 resolution 19] 0900 City(Medium) place=town & population > 4999 & name=* [0x0900 resolution 19] place=village & name=* [0x0900 resolution 22] 0a00 City(Medium) place=town & population > 999 & name=* [0x0a00 resolution 19] place=suburb & name=* [0x0a00 resolution 22] 0b00 City(Medium) place=town & population > 0 & name=* [0x0b00 resolution 20] place=hamlet & name=* [0x0b00 resolution 24] 0c00 City(Medium) Available 0d00 City(Small) Available 0e00 City(Small) Available 0f00 City(Small) Available 1000 City(Small) Available 1100 City(Small) Available 1602 ShortTower Available 1610 Flag,Red Available 1611 Flag,Green Available 2000 highway=motorway_junction & exit:road_ref=* {add exit:to='${exit_to}' | '${destination}'} [0x2000 resolution 24] 230f highway=services {add exit:facility="0x02,I,0x47,Features"} [0x230f resolution 20 default_name 'Services'] 2700 Exit Available 2a00 Restaurant amenity=restaurant & cuisine!=* [0x2a00 resolution 24] 2a01 Restaurant cuisine=american | cuisine=burger [0x2a01 resolution 24] 2a02 Restaurant cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean [0x2a02 resolution 24] 2a03 cuisine=barbecue | cuisine=bbq | cuisine=kebab | cuisine=chicken [0x2a03 resolution 24] 2a04 Restaurant cuisine=chinese | cuisine=vietnamese [0x2a04 resolution 24] 2a05 cuisine=deli | cuisine=sandwich [0x2a05 resolution 24] 2a06 Restaurant cuisine=international [0x2a06 resolution 24] 2a07 FastFood amenity=fast_food & cuisine=* {add name='${cuisine | subst:"_=> "}'} [0x2a07 resolution 24] amenity=fast_food [0x2a07 resolution 24] cuisine=fast_food [0x2a07 resolution 24] 2a08 Restaurant cuisine=italian | cuisine=pasta [0x2a08 resolution 24] 2a09 cuisine=mexican | cuisine=spanish | cuisine=tapas [0x2a09 resolution 24] 2a0a Pizza amenity=fast_food & cuisine ~ '.*[Pp]izza.*' [0x2a0a resolution 24] cuisine~'.*pizza.*' [0x2a0a resolution 24] 2a0b Restaurant cuisine=seafood | cuisine=sea_food | cuisine=fish [0x2a0b resolution 24] 2a0c cuisine=steak | cuisine=grill | cuisine=steak_house [0x2a0c resolution 24] 2a0d cuisine=bagel | cuisine=donut [0x2a0d resolution 24] 2a0e amenity=cafe {delete cuisine} [0x2a0e resolution 24 continue with_actions] cuisine=cafe | cuisine=diner | cuisine=coffee_shop [0x2a0e resolution 24] 2a0f Restaurant cuisine=french [0x2a0f resolution 24] 2a10 Restaurant cuisine=german | cuisine=bavarian [0x2a10 resolution 24] 2a11 Restaurant cuisine=british | cuisine=fish_and_chips [0x2a11 resolution 24] 2a12 Restaurant cuisine=speciality | cuisine=local | cuisine=regional [0x2a12 resolution 24] 2a13 amenity=food_court [0x2a13 resolution 24] amenity=restaurant {add name='${cuisine | subst:"_=> "}'} [0x2a13 resolution 24] 2b00 Lodging Available 2b01 Lodging tourism=hotel | tourism=motel {set tmp:stopMopUp=yes} [0x2b01 resolution 24 continue with_actions] 2b02 Lodging tourism=alpine_hut [0x2b02 resolution 24] tourism=bed_and_breakfast [0x2b02 resolution 24] tourism=chalet [0x2b02 resolution 24] tourism=guest_house [0x2b02 resolution 24] tourism=hostel [0x2b02 resolution 24] 2b03 Campground tourism=camp_site [0x2b03 resolution 24] [0x2b05 resolution 24] tourism=caravan_site [0x2b03 resolution 24] [0x2b05 resolution 24] 2b04 Lodge tourism=resort [0x2b04 resolution 24] 2b05 tourism=lean_to [0x2b05 resolution 24 default_name 'lean-to'] 2b06 amenity=shelter & shelter_type=basic_hut [0x2b06 resolution 24 default_name 'Shelter'] 2b07 tourism=wilderness_hut [0x2b07 resolution 24 default_name 'wilderness hut'] 2c00 Scenic Area Available 2c01 RV Park tourism=theme_park [0x2c01 resolution 24] 2c02 Museum historic=museum [0x2c02 resolution 24] historic=archaeological_site | historic=ruins [0x2c02 resolution 24] historic=memorial [0x2c02 resolution 24] tourism=attraction & historic=* [0x2c02 resolution 24] tourism=museum [0x2c02 resolution 24] 2c03 amenity=library [0x2c03 resolution 24] 2c04 Dot,White amenity=arts_centre [0x2c04 resolution 24] tourism=attraction [0x2c04 resolution 24] tourism=artwork [0x2c04 resolution 24] tourism=viewpoint {name '${name} - ${description}' | '${name}'} [0x2c04 resolution 24] 2c05 amenity=college [0x2c05 resolution 24] amenity=kindergarten [0x2c05 resolution 24] amenity=school [0x2c05 resolution 24] amenity=university [0x2c05 resolution 24] 2c06 Park landuse=village_green & name=* [0x2c06 resolution 24] leisure=common & name=* [0x2c06 resolution 24] leisure=garden & name=* [0x2c06 resolution 24] leisure=park [0x2c06 resolution 24] leisure=playground [0x2c06 resolution 24 default_name 'Playground'] 2c07 Zoo amenity=zoo [0x2c07 resolution 24] tourism=aquarium [0x2c07 resolution 24] tourism=zoo [0x2c07 resolution 24] 2c08 Fitness Center leisure=pitch & (name=* | sport=*) {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=recreation_ground [0x2c08 resolution 24 default_name 'Rec.'] leisure=stadium {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=track {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] 2c09 Building amenity=concert_hall [0x2c09 resolution 24] amenity=conference_centre [0x2c09 resolution 24] amenity=convention_center [0x2c09 resolution 24] 2c0a tourism=wine_cellar [0x2c0a resolution 24] 2c0b Church amenity=place_of_worship [0x2c0b resolution 24] 2c0c natural=volcano [0x2c0c resolution 24] 2c0d amenity=place_of_worship & religion=muslim [0x2c0d resolution 24] tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2c0d resolution 24] 2c0e amenity=place_of_worship & religion=christian [0x2c0e resolution 24] 2c0f amenity=place_of_worship & religion=buddhist [0x2c0f resolution 24] 2c10 amenity=place_of_worship & religion=jewish [0x2c10 resolution 24] 2c1e amenity=place_of_worship & religion=bahai [0x2c1e resolution 24] 2c1f amenity=place_of_worship & religion=hindu [0x2c1f resolution 24] 2d01 LiveTheater amenity=theatre [0x2d01 resolution 24] 2d02 Bar amenity=bar [0x2d02 resolution 24 continue] amenity=biergarten [0x2d02 resolution 24] amenity=nightclub [0x2d02 resolution 24] amenity=pub [0x2d02 resolution 24] 2d03 MovieTheater amenity=cinema [0x2d03 resolution 24] 2d04 amenity=casino [0x2d04 resolution 24] 2d05 GolfCourse leisure=golf_course [0x2d05 resolution 24] 2d06 SkiingArea sport=skiing [0x2d06 resolution 24] 2d07 Bowling sport=9pin [0x2d07 resolution 24] sport=10pin | leisure=bowling_alley [0x2d07 resolution 24] 2d08 IceSkating leisure=ice_rink [0x2d08 resolution 24] sport=skating [0x2d08 resolution 24] 2d09 SwimmingArea (leisure=swimming_pool | amenity=swimming_pool) & access!=private & access!=no [0x2d09 resolution 24] leisure=water_park [0x2d09 resolution 24] sport=swimming [0x2d09 resolution 24] 2d0a leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${sport}'} [0x2d0a resolution 24] sport=multi [0x2d0a resolution 24] 2d0b Airport sport=airport [0x2d0b resolution 24] 2e00 ShoppingCenter Available 2e01 DepartmentStore shop=department_store [0x2e01 resolution 24] 2e02 amenity=supermarket [0x2e02 resolution 24] shop=bakers [0x2e02 resolution 24] shop=bakery [0x2e02 resolution 24] shop=convenience [0x2e02 resolution 24] shop=supermarket [0x2e02 resolution 24] 2e03 shop=general [0x2e03 resolution 24] 2e04 Restroom shop=mall [0x2e04 resolution 24] 2e05 Pharmacy amenity=pharmacy [0x2e05 resolution 24] amenity=drugstore [0x2e05 resolution 24] shop=chemist [0x2e05 resolution 24] 2e06 ConvenienceStore amenity=fuel & shop=convenience [0x2e06 resolution 24] 2e07 shop=clothes [0x2e07 resolution 24] shop=fashion [0x2e07 resolution 24] shop=shoes [0x2e07 resolution 24] 2e08 shop=garden_centre [0x2e08 resolution 24] shop=garden_center [0x2e08 resolution 24] shop=outdoor [0x2e08 resolution 24] 2e09 shop=doityourself [0x2e09 resolution 24] shop=furniture [0x2e09 resolution 24] shop=hardware [0x2e09 resolution 24] 2e0a shop=organic [0x2e0a resolution 24] 2e0b shop=computer [0x2e0b resolution 24] 2e0c shop=butcher [0x2e0c resolution 24] shop=* & name=* [0x2e0c resolution 24] 2e1c mkgmap:country=USA & name~".*National Park.*" [0x2e1c resolution 24] 2e1d mkgmap:country=USA & name~".*National Forest.*" [0x2e1d resolution 24] 2e1e mkgmap:country=CAN & name~".*National Park.*" [0x2e1e resolution 24] name~".*National Park.*" [0x2e1e resolution 24] 2f00 Car Available 2f01 Gas Station amenity=charging_station [0x2f01 resolution 24 default_name 'Car charging'] amenity=fuel [0x2f01 resolution 24] 2f02 Car amenity=car_rental [0x2f02 resolution 24] amenity=car_sharing [0x2f02 resolution 24] shop=car_rental [0x2f02 resolution 24] 2f03 Car Repair shop=car_repair [0x2f03 resolution 24] 2f04 aeroway=airport [0x2f04 resolution 22] aeroway=aerodrome [0x2f04 resolution 22] aeroway=terminal [0x2f04 resolution 24] 2f05 PostOffice amenity=post_office [0x2f05 resolution 24] 2f06 Bank amenity=atm [0x2f06 resolution 24 continue] amenity=bank [0x2f06 resolution 24] 2f07 shop=car [0x2f07 resolution 24] shop=car_dealer [0x2f07 resolution 24] shop=car_parts [0x2f07 resolution 24] shop=tires [0x2f07 resolution 24] shop=tyres [0x2f07 resolution 24] 2f08 GroundTransportation amenity=bus_station [0x2f08 resolution 23] amenity=ferry_terminal [0x2f08 resolution 22] railway=station [0x2f08 resolution 22] railway=halt [0x2f08 resolution 23] (railway=platform | (public_transport=platform & railway=*)) & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f08 resolution 23] 2f09 leisure=marina [0x2f09 resolution 24] shop=boat [0x2f09 resolution 24] 2f0a shop=car_wrecker [0x2f0a resolution 24] 2f0b ParkingArea (amenity=parking | amenity=parking_entrance) & access!=private & access!=no {add name='${access} parking' | 'Parking'} [0x2f0b resolution 24] 2f0c amenity=toilets & highway=rest_area [0x2f0c resolution 24] amenity=toilets [0x2f0c resolution 24 default_name 'Toilets'] 2f0d amenity=car_club [0x2f0d resolution 24] 2f0e amenity=car_wash [0x2f0e resolution 24] 2f10 shop=beauty [0x2f10 resolution 24] shop=hairdresser [0x2f10 resolution 24] 2f12 internet_access=yes {name 'Internet ${name}' | 'Internet'} [0x2f12 resolution 24 continue] internet_access=* & internet_access!=no & internet_access!=yes {name 'Internet(${internet_access}) ${name}' | 'Internet(${internet_access})'} [0x2f12 resolution 24 continue] amenity=emergency_phone [0x2f12 resolution 24 default_name 'Emergency Phone'] amenity=telephone [0x2f12 resolution 24 default_name 'Telephone'] 2f13 shop=bicycle [0x2f13 resolution 24] 2f14 amenity=nursing_home [0x2f14 resolution 24] 2f15 amenity=post_box [0x2f15 resolution 24 default_name 'Post box'] amenity=recycling [0x2f15 resolution 24 default_name 'Recycling'] 2f16 amenity=fuel & fuel:HGV_diesel=yes [0x2f16 resolution 23] 2f17 amenity=taxi [0x2f17 resolution 24] public_transport=platform & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f17 resolution 24] highway=bus_stop | railway=tram_stop [0x2f17 resolution 24] 2f18 GroundTransportation Available 3000 CityHall Available 3001 Police Station amenity=police [0x3001 resolution 24] 3002 Medical Facility healthcare=hospital | amenity=hospital | amenity=clinic [0x3002 resolution 22] healthcare=* | amenity=dentist | amenity=doctors [0x3002 resolution 24] 3003 CityHall amenity=embassy & country=* {set name='${country} ${name | def:Embassy}'} [0x3003 resolution 24] amenity=embassy & country!=* [0x3003 resolution 24 default_name 'Embassy'] amenity=townhall [0x3003 resolution 24] 3004 amenity=courthouse [0x3004 resolution 24] 3005 amenity=community_centre [0x3005 resolution 24] amenity=community_center [0x3005 resolution 24] 3006 TollBooth amenity=border_control | barrier=border_control [0x3006 resolution 20] 3007 amenity=prison [0x3007 resolution 24 default_name 'Prison'] amenity=public_building [0x3007 resolution 24] 3008 Civil amenity=fire_station [0x3008 resolution 24] 3009 Church Available 3200 barrier=stile | barrier=kissing_gate | barrier=lift_gate | barrier=swing_gate {add name='${barrier | subst:"_=> "}'} [0x3200 resolution 24] 4500 Restaurant Available 4600 Bar Available 4900 Park Available 4a00 Picnic Area tourism=picnic_site [0x4a00 resolution 24] 4c00 tourism=information [0x4c00 resolution 24] 5000 Drinking Water amenity=drinking_water [0x5000 resolution 24 default_name 'Water'] 5100 Bell Available 5200 Scenic Area Available 5300 SkiingArea Available 5400 SwimmingArea Available 5903 Airport Available 5904 Heliport aeroway=helipad [0x5904 resolution 23] 5a00 Mile Marker Available 5b00 Bell Available 6300 Summit Available 6400 Triangle, Red Available 6401 Crossing Available 6402 Building Available 6403 amenity=grave_yard | amenity=crematorium [0x6403 resolution 24] landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x6403 resolution 24] 640b landuse=military [0x640b resolution 24] 6411 man_made=tower | man_made=mast | landmark=chimney [0x6411 resolution 24] 6503 natural=bay & name=* [0x6503 resolution 20] 6505 natural=water & (water=canal | water=lock) & name=* [0x6505 resolution 24] 6508 natural=waterfall | waterway=waterfall [0x6508 resolution 24] 650a natural=glacier [0x650a resolution 24] 650c place=island & name=* [0x650c resolution 20] place=islet & name=* [0x650c resolution 22] 650d (water=lake | water=pond) & name=* [0x650d resolution 24] 650f landuse=reservoir | water=reservoir [0x650f resolution 22] 6511 natural=spring [0x6511 resolution 24] 6512 natural=stream [0x6512 resolution 24] 6513 natural=wetland & name=* [0x6513 resolution 24] 6601 natural=cave_entrance [0x6601 resolution 24] 6603 landuse=basin [0x6603 resolution 24] natural=water & name=* [0x6603 resolution 24] 6604 natural=beach [0x6604 resolution 24] 6605 amenity=bench [0x6605 resolution 24 continue] 6606 natural=cape [0x6606 resolution 24] 6607 natural=cliff & name=* [0x6607 resolution 24] 6612 leisure=nature_reserve [0x6612 resolution 24] 6614 natural=rock [0x6614 resolution 24] 6616 natural=peak {name '${name | def:}${ele | height:m=>ft | def:}'} [0x6616 resolution 24] 6618 (landuse=wood | landuse=forest | natural=wood) & name=* [0x6618 resolution 24] polygons 02 place=suburb [0x02 resolution 19] 03 place=village [0x03 resolution 19] 04 amenity=prison [0x04 resolution 22] landuse=military [0x04 resolution 19] military=airfield [0x04 resolution 20] military=barracks [0x04 resolution 23] military=range [0x04 resolution 20] 05 amenity=parking | parking=surface [0x05 resolution 22] highway=rest_area & area!=no [0x05 resolution 22] 06 parking=underground | parking=multi-storey [0x06 resolution 22] 07 aeroway=airport [0x07 resolution 20] aeroway=aerodrome [0x07 resolution 20] aeroway=heliport [0x07 resolution 20] 08 amenity=cafe | amenity=fast_food | amenity=restaurant [0x08 resolution 24] amenity=food_court [0x08 resolution 22] amenity=supermarket [0x08 resolution 22] shop=* {add name='${shop | subst:"_=> "}'} [0x08 resolution 22] 09 leisure=water_park [0x09 resolution 21] 0a amenity=kindergarten [0x0a resolution 22] amenity=college [0x0a resolution 22] amenity=school [0x0a resolution 22] amenity=university [0x0a resolution 21] 0b healthcare=hospital | amenity=hospital | amenity=clinic [0x0b resolution 22] healthcare=* | amenity=dentist | amenity=doctors | amenity=nursing_home [0x0b resolution 23] 0c landuse=construction [0x0c resolution 21] landuse=quarry [0x0c resolution 19] landuse=industrial [0x0c resolution 19-23] 0e aeroway=runway & area=yes {name '${ref}'} [0x0e resolution 20] (aeroway=taxiway | aeroway=taxilane) & area=yes {name '${ref}'} [0x0e resolution 24] aeroway=helipad [0x0e resolution 22] 0f landuse=commercial [0x0f resolution 19] 10 landuse=residential [0x10 resolution 19-23] 11 military=danger_area [0x11 resolution 20] 12 highway=services [0x12 resolution 22] landuse=retail [0x12 resolution 20-23] 13 building=* & building!=no [0x13 resolution 24] 15 landuse=village_green [0x15 resolution 20] 16 leisure=nature_reserve [0x16 resolution 19] 17 leisure=park [0x17 resolution 20] leisure=playground [0x17 resolution 22] 18 leisure=golf_course [0x18 resolution 21] 19 leisure=ice_rink [0x19 resolution 22] leisure=pitch [0x19 resolution 21] leisure=recreation_ground [0x19 resolution 21] leisure=sports_center | leisure=sports_centre [0x19 resolution 20] leisure=stadium [0x19 resolution 20] leisure=track & area=yes [0x19 resolution 21] landuse=recreation_ground [0x19 resolution 19] 1a landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x1a resolution 21] 1c landuse=farmland [0x1c resolution 20] landuse=greenfield [0x1c resolution 20] landuse=meadow | landuse=grass [0x1c resolution 19] 1d leisure=common [0x1d resolution 21] 20 leisure=garden [0x20 resolution 21] 21 tourism=* & area!=no & waterway!=* {add name='${tourism | subst:"_=> "}'} [0x21 resolution 24] 22 historic=* & historic!=no & historic!=yes & boundary!=* {add name='${historic | subst:"_=> "}'} [0x22 resolution 21] 23 amenity=* & area!=no & amenity!=grave_yard {add name='${amenity | subst:"_=> "}'} [0x23 resolution 24] 24 man_made=* & area!=no {add name='${man_made | subst:"_=> "}'} [0x24 resolution 24] 25 place=square [0x25 resolution 22] highway=pedestrian & (area=yes | mkgmap:mp_created=true) [0x25 resolution 22] highway=pedestrian & area!=no [0x25 resolution 22] highway=footway & area=yes [0x25 resolution 24] 26 landuse=farm [0x26 resolution 22] landuse=farmyard [0x26 resolution 22] 32 natural=sea {add mkgmap:skipSizeFilter=true; set mkgmap:drawLevel=2} [0x32 resolution 10] 3b waterway=* & waterway!=no & area!=no {add name='${waterway | subst:"_=> "}'} [0x3b resolution 22] 3c natural=water [0x3c resolution 18] 3d natural=bay [0x3d resolution 18] 3f landuse=basin [0x3f resolution 20] landuse=reservoir | (natural=water & water=reservoir) [0x3f resolution 20] 41 natural=water & area_size() < 100000 [0x41 resolution 22] 46 waterway=riverbank [0x46 resolution 20] 47 natural=waterfall | waterway=waterfall [0x47 resolution 21] 48 natural=water & water=canal [0x48 resolution 22] 4c dock=drydock [0x4c resolution 22] natural=water & water=lock [0x4c resolution 22 default_name 'Lock'] 4d natural=glacier [0x4d resolution 18] 4e landuse=allotments [0x4e resolution 21] landuse=vineyard [0x4e resolution 20] landuse=orchard [0x4e resolution 20] 4f natural=scrub [0x4f resolution 20] 50 landuse=forest | landuse=wood [0x50 resolution 20] natural=wood [0x50 resolution 20] 51 natural=marsh [0x51 resolution 20] natural=mud [0x51 resolution 20] natural=wetland [0x51 resolution 20] 52 natural=tundra [0x52 resolution 18] 53 natural=beach | natural=sand [0x53 resolution 20] place=island & name=* & area_size() < 1000000 [0x53 resolution 19] place=islet & name=* [0x53 resolution 20] -------------- next part -------------- # ------------------------------------------------------------------- # This is the default mkgmap style file for converting OSM nodes # into Garmin POIs. # Any line prefaced with # is a comment and will not be applied. # Each line is a rule, of the generalised format: # OSM_tag(s)_to_match [Garmin_type_code resolution] # See http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules # and http://wiki.openstreetmap.org/wiki/Mkgmap/help/Custom_styles # for more information. addr:housenumber=* {set mkgmap:execute_finalize_rules=true} # impose routing/speed restrictions due to access/barrier. See option --link-pois-to-ways vehicle=* { add bicycle='${vehicle}'; add motor_vehicle='${vehicle}'; } motor_vehicle=* { add motorcar='${motor_vehicle}'; add goods='${motor_vehicle}'; add hgv='${motor_vehicle}'; add psv='${motor_vehicle}'; add emergency='${motor_vehicle}'; } psv=* { add taxi='${psv}'; add bus='${psv}'; } barrier=* & bicycle=* {set mkgmap:bicycle = '${bicycle|subst:private=>no}'} barrier=* & foot=* {set mkgmap:foot = '${foot|subst:private=>no}'} barrier=* & hgv=* {set mkgmap:truck = '${hgv|subst:private=>no}'} barrier=* & motorcar=* {set mkgmap:car = '${motorcar|subst:private=>no}'} barrier=* & bus=* {set mkgmap:bus = '${bus|subst:private=>no}'} barrier=* & taxi=* {set mkgmap:taxi = '${taxi|subst:private=>no}'} barrier=* & emergency=* {set mkgmap:emergency='${emergency|subst:private=>no}'} barrier=* & goods=* {set mkgmap:delivery = '${goods|subst:private=>no}'} barrier=bollard | barrier=block { add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:bus=no; add mkgmap:taxi=no; add mkgmap:emergency=no; } barrier=cycle_barrier | barrier=kissing_gate | barrier=stile { add mkgmap:bicycle=no; add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:bus=no; add mkgmap:taxi=no; add mkgmap:emergency=no; set mkgmap:road-speed=0; } barrier=bus_trap { add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:taxi=no; } barrier=gate | barrier=lift_gate | barrier=swing_gate { set mkgmap:road-speed=0; } barrier=* {add mkgmap:road-speed=1} barrier=* & access=* {addaccess '${access|subst:private=>no}'} internet_access=yes {name 'Internet ${name}' | 'Internet'} [0x2f12 resolution 24 continue] internet_access=* & internet_access!=no & internet_access!=yes {name 'Internet(${internet_access}) ${name}' | 'Internet(${internet_access})'} [0x2f12 resolution 24 continue] (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & (ref=* | route_ref=*) {set ref='${ref|def:}(${route_ref})'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & lit=yes & (shelter=yes | covered=yes) {set ref='${ref|def:}*'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & lit!=yes & (shelter=yes | covered=yes) {set ref='${ref|def:}+'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & (shelter=no | covered=no) {set ref='${ref|def:}-'} include 'inc/name'; place=city & population > 999999 & name=* [0x0100 resolution 12] place=city & population > 799999 & name=* [0x0200 resolution 14] place=city & population > 399999 & name=* [0x0300 resolution 15] place=city & population > 299999 & name=* [0x0400 resolution 16] place=city & population > 199999 & name=* [0x0500 resolution 16] place=city & population > 99999 & name=* [0x0600 resolution 17] place=city & population > 49999 & name=* [0x0700 resolution 17] place=city & population > 9999 & name=* [0x0800 resolution 18] place=city & population > 0 & name=* [0x0800 resolution 18] place=city & name=* [0x0700 resolution 18] place=town & population > 69999 & name=* [0x0600 resolution 17] place=town & population > 19999 & name=* [0x0700 resolution 18] place=town & population > 9999 & name=* [0x0800 resolution 19] place=town & population > 4999 & name=* [0x0900 resolution 19] place=town & population > 999 & name=* [0x0a00 resolution 19] place=town & population > 0 & name=* [0x0b00 resolution 20] place=town & name=* [0x0800 resolution 19] place=village & name=* [0x0900 resolution 22] place=suburb & name=* [0x0a00 resolution 22] place=hamlet & name=* [0x0b00 resolution 24] place=island & name=* [0x650c resolution 20] place=islet & name=* [0x650c resolution 22] #aeroway=airport [0x5900 resolution 22] aeroway=airport [0x2f04 resolution 22] aeroway=aerodrome [0x2f04 resolution 22] aeroway=helipad [0x5904 resolution 23] aeroway=terminal [0x2f04 resolution 24] # To separate pizza places from Italian restaurants. In the US, these are quite different amenity=fast_food & cuisine ~ '.*[Pp]izza.*' [0x2a0a resolution 24] amenity=atm [0x2f06 resolution 24 continue] amenity=arts_centre [0x2c04 resolution 24] amenity=bank [0x2f06 resolution 24] amenity=bar [0x2d02 resolution 24 continue] amenity=bench [0x6605 resolution 24 continue] amenity=biergarten [0x2d02 resolution 24] amenity=border_control | barrier=border_control [0x3006 resolution 20] amenity=bus_station [0x2f08 resolution 23] amenity=cafe {delete cuisine} [0x2a0e resolution 24 continue with_actions] amenity=car_club [0x2f0d resolution 24] amenity=car_rental [0x2f02 resolution 24] amenity=car_sharing [0x2f02 resolution 24] amenity=car_wash [0x2f0e resolution 24] amenity=casino [0x2d04 resolution 24] amenity=charging_station [0x2f01 resolution 24 default_name 'Car charging'] amenity=cinema [0x2d03 resolution 24] amenity=college [0x2c05 resolution 24] amenity=concert_hall [0x2c09 resolution 24] amenity=conference_centre [0x2c09 resolution 24] amenity=convention_center [0x2c09 resolution 24] amenity=community_centre [0x3005 resolution 24] amenity=community_center [0x3005 resolution 24] amenity=courthouse [0x3004 resolution 24] amenity=drinking_water [0x5000 resolution 24 default_name 'Water'] amenity=embassy & country=* {set name='${country} ${name|def:Embassy}'} [0x3003 resolution 24] amenity=embassy & country!=* [0x3003 resolution 24 default_name 'Embassy'] amenity=emergency_phone [0x2f12 resolution 24 default_name 'Emergency Phone'] amenity=ferry_terminal [0x2f08 resolution 22] # handle amenity=fast_food rules later in file amenity=fire_station [0x3008 resolution 24] amenity=food_court [0x2a13 resolution 24] amenity=fuel & fuel:HGV_diesel=yes [0x2f16 resolution 23] amenity=fuel & shop=convenience [0x2e06 resolution 24] amenity=fuel [0x2f01 resolution 24] amenity=grave_yard | amenity=crematorium [0x6403 resolution 24] amenity=kindergarten [0x2c05 resolution 24] amenity=library [0x2c03 resolution 24] amenity=nightclub [0x2d02 resolution 24] amenity=nursing_home [0x2f14 resolution 24] (amenity=parking | amenity=parking_entrance) & access!=private & access!=no {add name='${access} parking'| 'Parking'} [0x2f0b resolution 24] amenity=pharmacy [0x2e05 resolution 24] amenity=drugstore [0x2e05 resolution 24] amenity=place_of_worship & religion=christian [0x2c0e resolution 24] amenity=place_of_worship & religion=muslim [0x2c0d resolution 24] amenity=place_of_worship & religion=jewish [0x2c10 resolution 24] amenity=place_of_worship & religion=buddhist [0x2c0f resolution 24] amenity=place_of_worship & religion=hindu [0x2c1f resolution 24] amenity=place_of_worship & religion=bahai [0x2c1e resolution 24] amenity=place_of_worship [0x2c0b resolution 24] amenity=police [0x3001 resolution 24] amenity=post_box [0x2f15 resolution 24 default_name 'Post box'] amenity=post_office [0x2f05 resolution 24] amenity=prison [0x3007 resolution 24 default_name 'Prison'] amenity=pub [0x2d02 resolution 24] amenity=public_building [0x3007 resolution 24] amenity=recycling [0x2f15 resolution 24 default_name 'Recycling'] # handle amenity=restaurant rules later in file amenity=school [0x2c05 resolution 24] # amenity=shelter is ambiguous; when possible, consider using other tags: # tourism=lean_to or tourism=picnic_site # shelter=yes on highway=bus_stop or highway=tram_stop or railway=halt amenity=shelter & shelter_type=basic_hut [0x2b06 resolution 24 default_name 'Shelter'] # amenity=supermarket is superceded by shop=supermarket amenity=supermarket [0x2e02 resolution 24] amenity=taxi [0x2f17 resolution 24] amenity=telephone [0x2f12 resolution 24 default_name 'Telephone'] amenity=theatre [0x2d01 resolution 24] amenity=toilets & highway=rest_area [0x2f0c resolution 24] amenity=toilets [0x2f0c resolution 24 default_name 'Toilets'] amenity=townhall [0x3003 resolution 24] amenity=university [0x2c05 resolution 24] # amenity=zoo is superceded by tourism=zoo amenity=zoo [0x2c07 resolution 24] landuse=military [0x640b resolution 24] landuse=village_green & name=* [0x2c06 resolution 24] healthcare=hospital | amenity=hospital | amenity=clinic [0x3002 resolution 22] healthcare=* | amenity=dentist | amenity=doctors [0x3002 resolution 24] highway=motorway_junction & exit:road_ref=* {add exit:to='${exit_to}' | '${destination}'} [0x2000 resolution 24] highway=services {add exit:facility="0x02,I,0x47,Features"} [0x230f resolution 20 default_name 'Services'] historic=museum [0x2c02 resolution 24] historic=archaeological_site | historic=ruins [0x2c02 resolution 24] historic=memorial [0x2c02 resolution 24] leisure=common & name=* [0x2c06 resolution 24] leisure=garden & name=* [0x2c06 resolution 24] leisure=golf_course [0x2d05 resolution 24] leisure=ice_rink [0x2d08 resolution 24] leisure=marina [0x2f09 resolution 24] leisure=nature_reserve [0x6612 resolution 24] # leisure=park is not a good indicator of a national park in the US or Canada! mkgmap:country=USA & name~".*National Forest.*" [0x2e1d resolution 24] mkgmap:country=USA & name~".*National Park.*" [0x2e1c resolution 24] mkgmap:country=CAN & name~".*National Park.*" [0x2e1e resolution 24] name~".*National Park.*" [0x2e1e resolution 24] leisure=park [0x2c06 resolution 24] leisure=pitch & (name=* | sport=*) {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=playground [0x2c06 resolution 24 default_name 'Playground'] leisure=recreation_ground [0x2c08 resolution 24 default_name 'Rec.'] leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${sport}'} [0x2d0a resolution 24] leisure=stadium {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] (leisure=swimming_pool | amenity=swimming_pool) & access!=private & access!=no [0x2d09 resolution 24] leisure=track {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=water_park [0x2d09 resolution 24] man_made=tower | man_made=mast | landmark=chimney [0x6411 resolution 24] # Edge 705 displays 0x650a,0x6511,0x6512,0x6513,0x6603,0x6614 as hollow white circles, no menu natural=cave_entrance [0x6601 resolution 24] natural=cape [0x6606 resolution 24] natural=cliff & name=* [0x6607 resolution 24] natural=peak {name '${name|def:}${ele|height:m=>ft|def:}'} [0x6616 resolution 24] natural=rock [0x6614 resolution 24] natural=volcano [0x2c0c resolution 24] natural=bay & name=* [0x6503 resolution 20] railway=station [0x2f08 resolution 22] railway=halt [0x2f08 resolution 23] # if option --add-pois-to-lines in effect, add just 1 POI (railway=platform | (public_transport=platform & railway=*)) & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f08 resolution 23] public_transport=platform & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f17 resolution 24] highway=bus_stop | railway=tram_stop [0x2f17 resolution 24] shop=* & name!=* & shop!=yes & shop!=no & shop!=none & shop!=vacant {set name='${shop|subst:"_=> "}'} # Uncomment the following lines to enable these extra POI that some devices support #shop=convenience [0x2e0e resolution 24] #shop=florist [0x2e0f resolution 24] #shop=gift | shop=art | shop=antiques [0x2e10 resolution 24] #shop=music [0x2e11 resolution 24] #shop=sports [0x2e12 resolution 24] #shop=wine | shop=alcohol [0x2e13 resolution 24] #shop=books [0x2e14 resolution 24] # to here shop=bakers [0x2e02 resolution 24] shop=bakery [0x2e02 resolution 24] shop=beauty [0x2f10 resolution 24] shop=bicycle [0x2f13 resolution 24] shop=boat [0x2f09 resolution 24] shop=butcher [0x2e0c resolution 24] shop=car [0x2f07 resolution 24] shop=car_dealer [0x2f07 resolution 24] shop=car_parts [0x2f07 resolution 24] shop=car_rental [0x2f02 resolution 24] shop=car_repair [0x2f03 resolution 24] shop=car_wrecker [0x2f0a resolution 24] shop=chemist [0x2e05 resolution 24] shop=clothes [0x2e07 resolution 24] shop=computer [0x2e0b resolution 24] shop=convenience [0x2e02 resolution 24] shop=department_store [0x2e01 resolution 24] shop=doityourself [0x2e09 resolution 24] shop=fashion [0x2e07 resolution 24] shop=furniture [0x2e09 resolution 24] shop=garden_centre [0x2e08 resolution 24] shop=garden_center [0x2e08 resolution 24] shop=general [0x2e03 resolution 24] shop=hardware [0x2e09 resolution 24] shop=hairdresser [0x2f10 resolution 24] shop=mall [0x2e04 resolution 24] shop=organic [0x2e0a resolution 24] shop=outdoor [0x2e08 resolution 24] shop=shoes [0x2e07 resolution 24] shop=supermarket [0x2e02 resolution 24] shop=tires [0x2f07 resolution 24] shop=tyres [0x2f07 resolution 24] shop=* & name=* [0x2e0c resolution 24] sport=9pin [0x2d07 resolution 24] sport=10pin | leisure=bowling_alley [0x2d07 resolution 24] sport=airport [0x2d0b resolution 24] sport=multi [0x2d0a resolution 24] sport=skating [0x2d08 resolution 24] sport=skiing [0x2d06 resolution 24] sport=swimming [0x2d09 resolution 24] tourism=alpine_hut [0x2b02 resolution 24] tourism=attraction & historic=* [0x2c02 resolution 24] tourism=attraction [0x2c04 resolution 24] tourism=artwork [0x2c04 resolution 24] tourism=aquarium [0x2c07 resolution 24] tourism=bed_and_breakfast [0x2b02 resolution 24] # NB: different devices use different codes for camp/caravan_site, have both! tourism=camp_site [0x2b03 resolution 24] [0x2b05 resolution 24] tourism=caravan_site [0x2b03 resolution 24] [0x2b05 resolution 24] tourism=chalet [0x2b02 resolution 24] tourism=guest_house [0x2b02 resolution 24] tourism=hostel [0x2b02 resolution 24] # Have both hotel &| restaurant POIs tourism=hotel | tourism=motel {set tmp:stopMopUp=yes} [0x2b01 resolution 24 continue with_actions] tourism=information [0x4c00 resolution 24] # tourism=lean_to replaces some uses of amenity=shelter tourism=lean_to [0x2b05 resolution 24 default_name 'lean-to'] tourism=wilderness_hut [0x2b07 resolution 24 default_name 'wilderness hut'] tourism=museum [0x2c02 resolution 24] tourism=picnic_site [0x4a00 resolution 24] tourism=resort [0x2b04 resolution 24] tourism=theme_park [0x2c01 resolution 24] tourism=viewpoint {name '${name} - ${description}' | '${name}'} [0x2c04 resolution 24] tourism=wine_cellar [0x2c0a resolution 24] tourism=zoo [0x2c07 resolution 24] tourism=* & name!=* & tourism!=yes & tourism!=no {set name='${tourism|subst:"_=> "}'} tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2c0d resolution 24] # amenity=restaurant/fast_food/cafe/pub and shop=* can use cuisine, so have cuisine section later than where the others # should take precedence # Have the following 2 lines here rather than after cuisine=... so that, for amenity=fast_food, cuisine is ignored amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24] amenity=fast_food [0x2a07 resolution 24] # "Food & Drink" Search has categories as follows, corresponding to 0x2a00 - 0x2a13: # All, American, Asian, Barbeque, Chinese, Deli/Bakery, International, Fast Food, Italian, Mexican, Pizza, # Seafood, Steak/Grill, Bagel/Donut, Cafe/Diner, French, German, British Isles, Speciality Food Products, Other amenity=restaurant & cuisine!=* [0x2a00 resolution 24] cuisine=american | cuisine=burger [0x2a01 resolution 24] cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean [0x2a02 resolution 24] cuisine=barbecue | cuisine=bbq | cuisine=kebab | cuisine=chicken [0x2a03 resolution 24] cuisine=chinese | cuisine=vietnamese [0x2a04 resolution 24] cuisine=deli | cuisine=sandwich [0x2a05 resolution 24] cuisine=international [0x2a06 resolution 24] cuisine=fast_food [0x2a07 resolution 24] cuisine~'.*pizza.*' [0x2a0a resolution 24] cuisine=italian | cuisine=pasta [0x2a08 resolution 24] cuisine=mexican | cuisine=spanish | cuisine=tapas [0x2a09 resolution 24] cuisine=seafood | cuisine=sea_food | cuisine=fish [0x2a0b resolution 24] cuisine=steak | cuisine=grill | cuisine=steak_house [0x2a0c resolution 24] cuisine=bagel | cuisine=donut [0x2a0d resolution 24] cuisine=cafe | cuisine=diner | cuisine=coffee_shop [0x2a0e resolution 24] cuisine=french [0x2a0f resolution 24] cuisine=german | cuisine=bavarian [0x2a10 resolution 24] cuisine=british | cuisine=fish_and_chips [0x2a11 resolution 24] cuisine=speciality | cuisine=local | cuisine=regional [0x2a12 resolution 24] amenity=restaurant {add name='${cuisine|subst:"_=> "}'} [0x2a13 resolution 24] #common ones not handled: # ice_cream,greek,turkish,noodle,portugese,pasties,lebanese,brazilian,mediterranean,oriental,caribbean,vegetarian # Have the following 2 lines here rather than before cuisine=... so that, for amenity=fast_food, cuisine is respected #amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24] #amenity=fast_food [0x2a07 resolution 24] barrier=bollard | barrier=bus_trap | barrier=gate | barrier=block | barrier=cycle_barrier | barrier=stile | barrier=kissing_gate | barrier=lift_gate | barrier=swing_gate {add name='${barrier|subst:"_=> "}'} [0x3200 resolution 24] landuse=basin [0x6603 resolution 24] landuse=reservoir | water=reservoir [0x650f resolution 22] natural=beach [0x6604 resolution 24] natural=glacier [0x650a resolution 24] natural=spring [0x6511 resolution 24] natural=stream [0x6512 resolution 24] natural=water & (water=canal | water=lock) & name=* [0x6505 resolution 24] (water=lake | water=pond) & name=* [0x650d resolution 24] natural=water & name=* [0x6603 resolution 24] natural=waterfall | waterway=waterfall [0x6508 resolution 24] natural=wetland & name=* [0x6513 resolution 24] landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x6403 resolution 24] (landuse=wood | landuse=forest | natural=wood) & name=* [0x6618 resolution 24] <finalize> # The finalizer section is executed for each element when a rule with an element type matches name=* {name '${name}'} include 'inc/address'; -------------- next part -------------- --- J:\style3\points +++ J:\style3\points.new @@ -86,29 +86,23 @@ include 'inc/name'; -place=city & population > 999999 & name=* [0x0100 resolution 12] -place=city & population > 799999 & name=* [0x0200 resolution 14] -place=city & population > 399999 & name=* [0x0300 resolution 15] -place=city & population > 299999 & name=* [0x0400 resolution 16] -place=city & population > 199999 & name=* [0x0500 resolution 16] -place=city & population > 99999 & name=* [0x0600 resolution 17] -place=city & population > 49999 & name=* [0x0700 resolution 17] -place=city & population > 9999 & name=* [0x0800 resolution 18] - -place=city & population > 0 & name=* [0x0800 resolution 18] -place=city & name=* [0x0700 resolution 18] - -place=town & population > 69999 & name=* [0x0600 resolution 17] -place=town & population > 19999 & name=* [0x0700 resolution 18] -place=town & population > 9999 & name=* [0x0800 resolution 19] -place=town & population > 4999 & name=* [0x0900 resolution 19] -place=town & population > 999 & name=* [0x0a00 resolution 19] -place=town & population > 0 & name=* [0x0b00 resolution 20] -place=town & name=* [0x0800 resolution 19] - -place=village & name=* [0x0900 resolution 22] -place=suburb & name=* [0x0a00 resolution 22] -place=hamlet & name=* [0x0b00 resolution 24] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 19999999 & name=* [0x0100 resolution 12] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 9999999 & name=* [0x0200 resolution 12] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 4999999 & name=* [0x0300 resolution 13] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 1999999 & name=* [0x0400 resolution 14] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 999999 & name=* [0x0500 resolution 14] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 499999 & name=* [0x0600 resolution 15] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 199999 & name=* [0x0700 resolution 15] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 99999 & name=* [0x0800 resolution 16] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 49999 & name=* [0x0900 resolution 16] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 19999 & name=* [0x0a00 resolution 17] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 9999 & name=* [0x0b00 resolution 17] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 4999 & name=* [0x0c00 resolution 18] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 1999 & name=* [0x0d00 resolution 18] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 999 & name=* [0x0e00 resolution 19] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 599 & name=* [0x0f00 resolution 19] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 0 & name=* [0x1000 resolution 20] +(place=city | place=town | place=village | place=suburb | place=hamlet ) & name=* [0x1100 resolution 20] place=island & name=* [0x650c resolution 20] place=islet & name=* [0x650c resolution 22] @@ -329,7 +323,7 @@ tourism=wine_cellar [0x2c0a resolution 24] tourism=zoo [0x2c07 resolution 24] tourism=* & name!=* & tourism!=yes & tourism!=no {set name='${tourism|subst:"_=> "}'} -tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2c0d resolution 24] +tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2f00 resolution 24] # amenity=restaurant/fast_food/cafe/pub and shop=* can use cuisine, so have cuisine section later than where the others # should take precedence @@ -342,19 +336,19 @@ # Seafood, Steak/Grill, Bagel/Donut, Cafe/Diner, French, German, British Isles, Speciality Food Products, Other amenity=restaurant & cuisine!=* [0x2a00 resolution 24] -cuisine=american | cuisine=burger +cuisine=american [0x2a01 resolution 24] -cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean +cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean | cuisine=chinese | cuisine=vietnamese [0x2a02 resolution 24] -cuisine=barbecue | cuisine=bbq | cuisine=kebab | cuisine=chicken +cuisine=barbecue | cuisine=bbq | cuisine=kebab [0x2a03 resolution 24] -cuisine=chinese | cuisine=vietnamese +cuisine=chicken [0x2a04 resolution 24] cuisine=deli | cuisine=sandwich [0x2a05 resolution 24] cuisine=international [0x2a06 resolution 24] -cuisine=fast_food +cuisine=fast_food | cuisine=burger [0x2a07 resolution 24] cuisine~'.*pizza.*' [0x2a0a resolution 24] -------------- next part -------------- # ------------------------------------------------------------------- # This is the default mkgmap style file for converting closed OSM ways # into Garmin polygons. # Any line prefaced with # is a comment and will not be applied. # Each line is a rule, of the generalised format: # OSM_tag(s)_to_match [Garmin_type_code resolution] # See http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules # and http://wiki.openstreetmap.org/wiki/Mkgmap/help/Custom_styles # for more information. addr:housenumber=* {set mkgmap:execute_finalize_rules=true} leisure=* & sport=* & name=* {set name='${name} (${sport})'} leisure=* & sport=* & name!=* {add name='${sport}'} include 'inc/name'; aeroway=airport [0x07 resolution 20] aeroway=aerodrome [0x07 resolution 20] aeroway=runway & area=yes {name '${ref}'} [0x0e resolution 20] (aeroway=taxiway | aeroway=taxilane) & area=yes {name '${ref}'} [0x0e resolution 24] aeroway=heliport [0x07 resolution 20] aeroway=helipad [0x0e resolution 22] amenity=kindergarten [0x0a resolution 22] amenity=cafe | amenity=fast_food | amenity=restaurant [0x08 resolution 24] amenity=food_court [0x08 resolution 22] amenity=college [0x0a resolution 22] parking=underground | parking=multi-storey [0x06 resolution 22] amenity=parking | parking=surface [0x05 resolution 22] amenity=prison [0x04 resolution 22] amenity=school [0x0a resolution 22] # amenity=supermarket is superceded by shop=supermarket or landuse=retail amenity=supermarket [0x08 resolution 22] amenity=university [0x0a resolution 21] healthcare=hospital | amenity=hospital | amenity=clinic [0x0b resolution 22] healthcare=* | amenity=dentist | amenity=doctors | amenity=nursing_home [0x0b resolution 23] leisure=common [0x1d resolution 21] leisure=garden [0x20 resolution 21] leisure=golf_course [0x18 resolution 21] leisure=ice_rink [0x19 resolution 22] leisure=nature_reserve [0x16 resolution 19] leisure=park [0x17 resolution 20] leisure=pitch [0x19 resolution 21] leisure=playground [0x17 resolution 22] leisure=recreation_ground [0x19 resolution 21] leisure=sports_center | leisure=sports_centre [0x19 resolution 20] leisure=stadium [0x19 resolution 20] leisure=track & area=yes [0x19 resolution 21] leisure=water_park [0x09 resolution 21] place=village [0x03 resolution 19] place=suburb [0x02 resolution 19] shop=* {add name='${shop|subst:"_=> "}'} [0x08 resolution 22] # squares and plazas place=square [0x25 resolution 22] highway=pedestrian & (area=yes | mkgmap:mp_created=true) [0x25 resolution 22] # following rule also renders a closed way without area attribute as a plaza highway=pedestrian & area!=no [0x25 resolution 22] # footways areas are similar, but should be explicity marked as such highway=footway & area=yes [0x25 resolution 24] highway=services [0x12 resolution 22] # service station complex; show as retail highway=rest_area & area!=no [0x05 resolution 22] # show as parking lot historic=* & historic!=no & historic!=yes & boundary!=* {add name='${historic|subst:"_=> "}'} [0x22 resolution 21] landuse=basin [0x3f resolution 20] landuse=reservoir | (natural=water & water=reservoir) [0x3f resolution 20] dock=drydock [0x4c resolution 22] # might also have natural=water natural=bay [0x3d resolution 18] natural=glacier [0x4d resolution 18] natural=marsh [0x51 resolution 20] natural=tundra [0x52 resolution 18] natural=mud [0x51 resolution 20] natural=beach | natural=sand [0x53 resolution 20] natural=wetland [0x51 resolution 20] natural=water & water=canal [0x48 resolution 22] natural=water & water=lock [0x4c resolution 22 default_name 'Lock'] natural=water & area_size() < 100000 [0x41 resolution 22] # Small Lake natural=water [0x3c resolution 18] natural=waterfall | waterway=waterfall [0x47 resolution 21] natural=sea {add mkgmap:skipSizeFilter=true; set mkgmap:drawLevel=2} [0x32 resolution 10] waterway=riverbank [0x46 resolution 20] # mop up any remaining water areas waterway=* & waterway!=no & area!=no {add name='${waterway|subst:"_=> "}'} [0x3b resolution 22] landuse=allotments [0x4e resolution 21] landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x1a resolution 21] landuse=commercial [0x0f resolution 19] landuse=construction [0x0c resolution 21] landuse=farm [0x26 resolution 22] landuse=farmland [0x1c resolution 20] landuse=farmyard [0x26 resolution 22] landuse=forest | landuse=wood [0x50 resolution 20] landuse=greenfield [0x1c resolution 20] landuse=meadow | landuse=grass [0x1c resolution 19] landuse=military [0x04 resolution 19] landuse=quarry [0x0c resolution 19] landuse=recreation_ground [0x19 resolution 19] # dedicate resolution 24 for building=* instead of related landuse=* landuse=industrial [0x0c resolution 19-23] landuse=residential [0x10 resolution 19-23] landuse=retail [0x12 resolution 20-23] landuse=village_green [0x15 resolution 20] landuse=vineyard [0x4e resolution 20] landuse=orchard [0x4e resolution 20] military=airfield [0x04 resolution 20] military=barracks [0x04 resolution 23] military=danger_area [0x11 resolution 20] military=range [0x04 resolution 20] natural=scrub [0x4f resolution 20] natural=wood [0x50 resolution 20] # building tag should be last amenity=* & area!=no & amenity!=grave_yard {add name='${amenity|subst:"_=> "}'} [0x23 resolution 24] building=* & building!=no [0x13 resolution 24] tourism=* & area!=no & waterway!=* {add name='${tourism|subst:"_=> "}'} [0x21 resolution 24] # man_made can be used on areas or lines man_made=* & area!=no {add name='${man_made|subst:"_=> "}'} [0x24 resolution 24] # render small named islands place=island & name=* & area_size() < 1000000 [0x53 resolution 19] place=islet & name=* [0x53 resolution 20] <finalize> # The finalizer section is executed for each element when a rule with an element type matches # we need address info from buildings for the address search include 'inc/address'; name=* {name '${name}'} -------------- next part -------------- --- J:\style3\polygons +++ J:\style3\polygons.new @@ -28,7 +28,7 @@ amenity=college [0x0a resolution 22] parking=underground | parking=multi-storey [0x06 resolution 22] amenity=parking | parking=surface [0x05 resolution 22] -amenity=prison [0x04 resolution 22] +amenity=prison [0x14 resolution 22] amenity=school [0x0a resolution 22] # amenity=supermarket is superceded by shop=supermarket or landuse=retail amenity=supermarket [0x08 resolution 22] -------------- next part -------------- # ------------------------------------------------------------------- # This is the default mkgmap style file for converting OSM nodes # into Garmin POIs. # Any line prefaced with # is a comment and will not be applied. # Each line is a rule, of the generalised format: # OSM_tag(s)_to_match [Garmin_type_code resolution] # See http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules # and http://wiki.openstreetmap.org/wiki/Mkgmap/help/Custom_styles # for more information. addr:housenumber=* {set mkgmap:execute_finalize_rules=true} # impose routing/speed restrictions due to access/barrier. See option --link-pois-to-ways vehicle=* { add bicycle='${vehicle}'; add motor_vehicle='${vehicle}'; } motor_vehicle=* { add motorcar='${motor_vehicle}'; add goods='${motor_vehicle}'; add hgv='${motor_vehicle}'; add psv='${motor_vehicle}'; add emergency='${motor_vehicle}'; } psv=* { add taxi='${psv}'; add bus='${psv}'; } barrier=* & bicycle=* {set mkgmap:bicycle = '${bicycle|subst:private=>no}'} barrier=* & foot=* {set mkgmap:foot = '${foot|subst:private=>no}'} barrier=* & hgv=* {set mkgmap:truck = '${hgv|subst:private=>no}'} barrier=* & motorcar=* {set mkgmap:car = '${motorcar|subst:private=>no}'} barrier=* & bus=* {set mkgmap:bus = '${bus|subst:private=>no}'} barrier=* & taxi=* {set mkgmap:taxi = '${taxi|subst:private=>no}'} barrier=* & emergency=* {set mkgmap:emergency='${emergency|subst:private=>no}'} barrier=* & goods=* {set mkgmap:delivery = '${goods|subst:private=>no}'} barrier=bollard | barrier=block { add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:bus=no; add mkgmap:taxi=no; add mkgmap:emergency=no; } barrier=cycle_barrier | barrier=kissing_gate | barrier=stile { add mkgmap:bicycle=no; add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:bus=no; add mkgmap:taxi=no; add mkgmap:emergency=no; set mkgmap:road-speed=0; } barrier=bus_trap { add mkgmap:car=no; add mkgmap:delivery=no; add mkgmap:truck=no; add mkgmap:taxi=no; } barrier=gate | barrier=lift_gate | barrier=swing_gate { set mkgmap:road-speed=0; } barrier=* {add mkgmap:road-speed=1} barrier=* & access=* {addaccess '${access|subst:private=>no}'} internet_access=yes {name 'Internet ${name}' | 'Internet'} [0x2f12 resolution 24 continue] internet_access=* & internet_access!=no & internet_access!=yes {name 'Internet(${internet_access}) ${name}' | 'Internet(${internet_access})'} [0x2f12 resolution 24 continue] (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & (ref=* | route_ref=*) {set ref='${ref|def:}(${route_ref})'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & lit=yes & (shelter=yes | covered=yes) {set ref='${ref|def:}*'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & lit!=yes & (shelter=yes | covered=yes) {set ref='${ref|def:}+'} (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station) & (shelter=no | covered=no) {set ref='${ref|def:}-'} include 'inc/name'; (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 19999999 & name=* [0x0100 resolution 12] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 9999999 & name=* [0x0200 resolution 12] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 4999999 & name=* [0x0300 resolution 13] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 1999999 & name=* [0x0400 resolution 14] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 999999 & name=* [0x0500 resolution 14] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 499999 & name=* [0x0600 resolution 15] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 199999 & name=* [0x0700 resolution 15] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 99999 & name=* [0x0800 resolution 16] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 49999 & name=* [0x0900 resolution 16] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 19999 & name=* [0x0a00 resolution 17] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 9999 & name=* [0x0b00 resolution 17] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 4999 & name=* [0x0c00 resolution 18] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 1999 & name=* [0x0d00 resolution 18] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 999 & name=* [0x0e00 resolution 19] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 599 & name=* [0x0f00 resolution 19] (place=city | place=town | place=village | place=suburb | place=hamlet ) & population > 0 & name=* [0x1000 resolution 20] (place=city | place=town | place=village | place=suburb | place=hamlet ) & name=* [0x1100 resolution 20] place=island & name=* [0x650c resolution 20] place=islet & name=* [0x650c resolution 22] #aeroway=airport [0x5900 resolution 22] aeroway=airport [0x2f04 resolution 22] aeroway=aerodrome [0x2f04 resolution 22] aeroway=helipad [0x5904 resolution 23] aeroway=terminal [0x2f04 resolution 24] # To separate pizza places from Italian restaurants. In the US, these are quite different amenity=fast_food & cuisine ~ '.*[Pp]izza.*' [0x2a0a resolution 24] amenity=atm [0x2f06 resolution 24 continue] amenity=arts_centre [0x2c04 resolution 24] amenity=bank [0x2f06 resolution 24] amenity=bar [0x2d02 resolution 24 continue] amenity=bench [0x6605 resolution 24 continue] amenity=biergarten [0x2d02 resolution 24] amenity=border_control | barrier=border_control [0x3006 resolution 20] amenity=bus_station [0x2f08 resolution 23] amenity=cafe {delete cuisine} [0x2a0e resolution 24 continue with_actions] amenity=car_club [0x2f0d resolution 24] amenity=car_rental [0x2f02 resolution 24] amenity=car_sharing [0x2f02 resolution 24] amenity=car_wash [0x2f0e resolution 24] amenity=casino [0x2d04 resolution 24] amenity=charging_station [0x2f01 resolution 24 default_name 'Car charging'] amenity=cinema [0x2d03 resolution 24] amenity=college [0x2c05 resolution 24] amenity=concert_hall [0x2c09 resolution 24] amenity=conference_centre [0x2c09 resolution 24] amenity=convention_center [0x2c09 resolution 24] amenity=community_centre [0x3005 resolution 24] amenity=community_center [0x3005 resolution 24] amenity=courthouse [0x3004 resolution 24] amenity=drinking_water [0x5000 resolution 24 default_name 'Water'] amenity=embassy & country=* {set name='${country} ${name|def:Embassy}'} [0x3003 resolution 24] amenity=embassy & country!=* [0x3003 resolution 24 default_name 'Embassy'] amenity=emergency_phone [0x2f12 resolution 24 default_name 'Emergency Phone'] amenity=ferry_terminal [0x2f08 resolution 22] # handle amenity=fast_food rules later in file amenity=fire_station [0x3008 resolution 24] amenity=food_court [0x2a13 resolution 24] amenity=fuel & fuel:HGV_diesel=yes [0x2f16 resolution 23] amenity=fuel & shop=convenience [0x2e06 resolution 24] amenity=fuel [0x2f01 resolution 24] amenity=grave_yard | amenity=crematorium [0x6403 resolution 24] amenity=kindergarten [0x2c05 resolution 24] amenity=library [0x2c03 resolution 24] amenity=nightclub [0x2d02 resolution 24] amenity=nursing_home [0x2f14 resolution 24] (amenity=parking | amenity=parking_entrance) & access!=private & access!=no {add name='${access} parking'| 'Parking'} [0x2f0b resolution 24] amenity=pharmacy [0x2e05 resolution 24] amenity=drugstore [0x2e05 resolution 24] amenity=place_of_worship & religion=christian [0x2c0e resolution 24] amenity=place_of_worship & religion=muslim [0x2c0d resolution 24] amenity=place_of_worship & religion=jewish [0x2c10 resolution 24] amenity=place_of_worship & religion=buddhist [0x2c0f resolution 24] amenity=place_of_worship & religion=hindu [0x2c1f resolution 24] amenity=place_of_worship & religion=bahai [0x2c1e resolution 24] amenity=place_of_worship [0x2c0b resolution 24] amenity=police [0x3001 resolution 24] amenity=post_box [0x2f15 resolution 24 default_name 'Post box'] amenity=post_office [0x2f05 resolution 24] amenity=prison [0x3007 resolution 24 default_name 'Prison'] amenity=pub [0x2d02 resolution 24] amenity=public_building [0x3007 resolution 24] amenity=recycling [0x2f15 resolution 24 default_name 'Recycling'] # handle amenity=restaurant rules later in file amenity=school [0x2c05 resolution 24] # amenity=shelter is ambiguous; when possible, consider using other tags: # tourism=lean_to or tourism=picnic_site # shelter=yes on highway=bus_stop or highway=tram_stop or railway=halt amenity=shelter & shelter_type=basic_hut [0x2b06 resolution 24 default_name 'Shelter'] # amenity=supermarket is superceded by shop=supermarket amenity=supermarket [0x2e02 resolution 24] amenity=taxi [0x2f17 resolution 24] amenity=telephone [0x2f12 resolution 24 default_name 'Telephone'] amenity=theatre [0x2d01 resolution 24] amenity=toilets & highway=rest_area [0x2f0c resolution 24] amenity=toilets [0x2f0c resolution 24 default_name 'Toilets'] amenity=townhall [0x3003 resolution 24] amenity=university [0x2c05 resolution 24] # amenity=zoo is superceded by tourism=zoo amenity=zoo [0x2c07 resolution 24] landuse=military [0x640b resolution 24] landuse=village_green & name=* [0x2c06 resolution 24] healthcare=hospital | amenity=hospital | amenity=clinic [0x3002 resolution 22] healthcare=* | amenity=dentist | amenity=doctors [0x3002 resolution 24] highway=motorway_junction & exit:road_ref=* {add exit:to='${exit_to}' | '${destination}'} [0x2000 resolution 24] highway=services {add exit:facility="0x02,I,0x47,Features"} [0x230f resolution 20 default_name 'Services'] historic=museum [0x2c02 resolution 24] historic=archaeological_site | historic=ruins [0x2c02 resolution 24] historic=memorial [0x2c02 resolution 24] leisure=common & name=* [0x2c06 resolution 24] leisure=garden & name=* [0x2c06 resolution 24] leisure=golf_course [0x2d05 resolution 24] leisure=ice_rink [0x2d08 resolution 24] leisure=marina [0x2f09 resolution 24] leisure=nature_reserve [0x6612 resolution 24] # leisure=park is not a good indicator of a national park in the US or Canada! mkgmap:country=USA & name~".*National Forest.*" [0x2e1d resolution 24] mkgmap:country=USA & name~".*National Park.*" [0x2e1c resolution 24] mkgmap:country=CAN & name~".*National Park.*" [0x2e1e resolution 24] name~".*National Park.*" [0x2e1e resolution 24] leisure=park [0x2c06 resolution 24] leisure=pitch & (name=* | sport=*) {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=playground [0x2c06 resolution 24 default_name 'Playground'] leisure=recreation_ground [0x2c08 resolution 24 default_name 'Rec.'] leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${sport}'} [0x2d0a resolution 24] leisure=stadium {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] (leisure=swimming_pool | amenity=swimming_pool) & access!=private & access!=no [0x2d09 resolution 24] leisure=track {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24] leisure=water_park [0x2d09 resolution 24] man_made=tower | man_made=mast | landmark=chimney [0x6411 resolution 24] # Edge 705 displays 0x650a,0x6511,0x6512,0x6513,0x6603,0x6614 as hollow white circles, no menu natural=cave_entrance [0x6601 resolution 24] natural=cape [0x6606 resolution 24] natural=cliff & name=* [0x6607 resolution 24] natural=peak {name '${name|def:}${ele|height:m=>ft|def:}'} [0x6616 resolution 24] natural=rock [0x6614 resolution 24] natural=volcano [0x2c0c resolution 24] natural=bay & name=* [0x6503 resolution 20] railway=station [0x2f08 resolution 22] railway=halt [0x2f08 resolution 23] # if option --add-pois-to-lines in effect, add just 1 POI (railway=platform | (public_transport=platform & railway=*)) & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f08 resolution 23] public_transport=platform & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f17 resolution 24] highway=bus_stop | railway=tram_stop [0x2f17 resolution 24] shop=* & name!=* & shop!=yes & shop!=no & shop!=none & shop!=vacant {set name='${shop|subst:"_=> "}'} # Uncomment the following lines to enable these extra POI that some devices support #shop=convenience [0x2e0e resolution 24] #shop=florist [0x2e0f resolution 24] #shop=gift | shop=art | shop=antiques [0x2e10 resolution 24] #shop=music [0x2e11 resolution 24] #shop=sports [0x2e12 resolution 24] #shop=wine | shop=alcohol [0x2e13 resolution 24] #shop=books [0x2e14 resolution 24] # to here shop=bakers [0x2e02 resolution 24] shop=bakery [0x2e02 resolution 24] shop=beauty [0x2f10 resolution 24] shop=bicycle [0x2f13 resolution 24] shop=boat [0x2f09 resolution 24] shop=butcher [0x2e0c resolution 24] shop=car [0x2f07 resolution 24] shop=car_dealer [0x2f07 resolution 24] shop=car_parts [0x2f07 resolution 24] shop=car_rental [0x2f02 resolution 24] shop=car_repair [0x2f03 resolution 24] shop=car_wrecker [0x2f0a resolution 24] shop=chemist [0x2e05 resolution 24] shop=clothes [0x2e07 resolution 24] shop=computer [0x2e0b resolution 24] shop=convenience [0x2e02 resolution 24] shop=department_store [0x2e01 resolution 24] shop=doityourself [0x2e09 resolution 24] shop=fashion [0x2e07 resolution 24] shop=furniture [0x2e09 resolution 24] shop=garden_centre [0x2e08 resolution 24] shop=garden_center [0x2e08 resolution 24] shop=general [0x2e03 resolution 24] shop=hardware [0x2e09 resolution 24] shop=hairdresser [0x2f10 resolution 24] shop=mall [0x2e04 resolution 24] shop=organic [0x2e0a resolution 24] shop=outdoor [0x2e08 resolution 24] shop=shoes [0x2e07 resolution 24] shop=supermarket [0x2e02 resolution 24] shop=tires [0x2f07 resolution 24] shop=tyres [0x2f07 resolution 24] shop=* & name=* [0x2e0c resolution 24] sport=9pin [0x2d07 resolution 24] sport=10pin | leisure=bowling_alley [0x2d07 resolution 24] sport=airport [0x2d0b resolution 24] sport=multi [0x2d0a resolution 24] sport=skating [0x2d08 resolution 24] sport=skiing [0x2d06 resolution 24] sport=swimming [0x2d09 resolution 24] tourism=alpine_hut [0x2b02 resolution 24] tourism=attraction & historic=* [0x2c02 resolution 24] tourism=attraction [0x2c04 resolution 24] tourism=artwork [0x2c04 resolution 24] tourism=aquarium [0x2c07 resolution 24] tourism=bed_and_breakfast [0x2b02 resolution 24] # NB: different devices use different codes for camp/caravan_site, have both! tourism=camp_site [0x2b03 resolution 24] [0x2b05 resolution 24] tourism=caravan_site [0x2b03 resolution 24] [0x2b05 resolution 24] tourism=chalet [0x2b02 resolution 24] tourism=guest_house [0x2b02 resolution 24] tourism=hostel [0x2b02 resolution 24] # Have both hotel &| restaurant POIs tourism=hotel | tourism=motel {set tmp:stopMopUp=yes} [0x2b01 resolution 24 continue with_actions] tourism=information [0x4c00 resolution 24] # tourism=lean_to replaces some uses of amenity=shelter tourism=lean_to [0x2b05 resolution 24 default_name 'lean-to'] tourism=wilderness_hut [0x2b07 resolution 24 default_name 'wilderness hut'] tourism=museum [0x2c02 resolution 24] tourism=picnic_site [0x4a00 resolution 24] tourism=resort [0x2b04 resolution 24] tourism=theme_park [0x2c01 resolution 24] tourism=viewpoint {name '${name} - ${description}' | '${name}'} [0x2c04 resolution 24] tourism=wine_cellar [0x2c0a resolution 24] tourism=zoo [0x2c07 resolution 24] tourism=* & name!=* & tourism!=yes & tourism!=no {set name='${tourism|subst:"_=> "}'} tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2f00 resolution 24] # amenity=restaurant/fast_food/cafe/pub and shop=* can use cuisine, so have cuisine section later than where the others # should take precedence # Have the following 2 lines here rather than after cuisine=... so that, for amenity=fast_food, cuisine is ignored amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24] amenity=fast_food [0x2a07 resolution 24] # "Food & Drink" Search has categories as follows, corresponding to 0x2a00 - 0x2a13: # All, American, Asian, Barbeque, Chinese, Deli/Bakery, International, Fast Food, Italian, Mexican, Pizza, # Seafood, Steak/Grill, Bagel/Donut, Cafe/Diner, French, German, British Isles, Speciality Food Products, Other amenity=restaurant & cuisine!=* [0x2a00 resolution 24] cuisine=american [0x2a01 resolution 24] cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean | cuisine=chinese | cuisine=vietnamese [0x2a02 resolution 24] cuisine=barbecue | cuisine=bbq | cuisine=kebab [0x2a03 resolution 24] cuisine=chicken [0x2a04 resolution 24] cuisine=deli | cuisine=sandwich [0x2a05 resolution 24] cuisine=international [0x2a06 resolution 24] cuisine=fast_food | cuisine=burger [0x2a07 resolution 24] cuisine~'.*pizza.*' [0x2a0a resolution 24] cuisine=italian | cuisine=pasta [0x2a08 resolution 24] cuisine=mexican | cuisine=spanish | cuisine=tapas [0x2a09 resolution 24] cuisine=seafood | cuisine=sea_food | cuisine=fish [0x2a0b resolution 24] cuisine=steak | cuisine=grill | cuisine=steak_house [0x2a0c resolution 24] cuisine=bagel | cuisine=donut [0x2a0d resolution 24] cuisine=cafe | cuisine=diner | cuisine=coffee_shop [0x2a0e resolution 24] cuisine=french [0x2a0f resolution 24] cuisine=german | cuisine=bavarian [0x2a10 resolution 24] cuisine=british | cuisine=fish_and_chips [0x2a11 resolution 24] cuisine=speciality | cuisine=local | cuisine=regional [0x2a12 resolution 24] amenity=restaurant {add name='${cuisine|subst:"_=> "}'} [0x2a13 resolution 24] #common ones not handled: # ice_cream,greek,turkish,noodle,portugese,pasties,lebanese,brazilian,mediterranean,oriental,caribbean,vegetarian # Have the following 2 lines here rather than before cuisine=... so that, for amenity=fast_food, cuisine is respected #amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24] #amenity=fast_food [0x2a07 resolution 24] barrier=bollard | barrier=bus_trap | barrier=gate | barrier=block | barrier=cycle_barrier | barrier=stile | barrier=kissing_gate | barrier=lift_gate | barrier=swing_gate {add name='${barrier|subst:"_=> "}'} [0x3200 resolution 24] landuse=basin [0x6603 resolution 24] landuse=reservoir | water=reservoir [0x650f resolution 22] natural=beach [0x6604 resolution 24] natural=glacier [0x650a resolution 24] natural=spring [0x6511 resolution 24] natural=stream [0x6512 resolution 24] natural=water & (water=canal | water=lock) & name=* [0x6505 resolution 24] (water=lake | water=pond) & name=* [0x650d resolution 24] natural=water & name=* [0x6603 resolution 24] natural=waterfall | waterway=waterfall [0x6508 resolution 24] natural=wetland & name=* [0x6513 resolution 24] landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x6403 resolution 24] (landuse=wood | landuse=forest | natural=wood) & name=* [0x6618 resolution 24] <finalize> # The finalizer section is executed for each element when a rule with an element type matches name=* {name '${name}'} include 'inc/address'; -------------- next part -------------- # ------------------------------------------------------------------- # This is the default mkgmap style file for converting closed OSM ways # into Garmin polygons. # Any line prefaced with # is a comment and will not be applied. # Each line is a rule, of the generalised format: # OSM_tag(s)_to_match [Garmin_type_code resolution] # See http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules # and http://wiki.openstreetmap.org/wiki/Mkgmap/help/Custom_styles # for more information. addr:housenumber=* {set mkgmap:execute_finalize_rules=true} leisure=* & sport=* & name=* {set name='${name} (${sport})'} leisure=* & sport=* & name!=* {add name='${sport}'} include 'inc/name'; aeroway=airport [0x07 resolution 20] aeroway=aerodrome [0x07 resolution 20] aeroway=runway & area=yes {name '${ref}'} [0x0e resolution 20] (aeroway=taxiway | aeroway=taxilane) & area=yes {name '${ref}'} [0x0e resolution 24] aeroway=heliport [0x07 resolution 20] aeroway=helipad [0x0e resolution 22] amenity=kindergarten [0x0a resolution 22] amenity=cafe | amenity=fast_food | amenity=restaurant [0x08 resolution 24] amenity=food_court [0x08 resolution 22] amenity=college [0x0a resolution 22] parking=underground | parking=multi-storey [0x06 resolution 22] amenity=parking | parking=surface [0x05 resolution 22] amenity=prison [0x14 resolution 22] amenity=school [0x0a resolution 22] # amenity=supermarket is superceded by shop=supermarket or landuse=retail amenity=supermarket [0x08 resolution 22] amenity=university [0x0a resolution 21] healthcare=hospital | amenity=hospital | amenity=clinic [0x0b resolution 22] healthcare=* | amenity=dentist | amenity=doctors | amenity=nursing_home [0x0b resolution 23] leisure=common [0x1d resolution 21] leisure=garden [0x20 resolution 21] leisure=golf_course [0x18 resolution 21] leisure=ice_rink [0x19 resolution 22] leisure=nature_reserve [0x16 resolution 19] leisure=park [0x17 resolution 20] leisure=pitch [0x19 resolution 21] leisure=playground [0x17 resolution 22] leisure=recreation_ground [0x19 resolution 21] leisure=sports_center | leisure=sports_centre [0x19 resolution 20] leisure=stadium [0x19 resolution 20] leisure=track & area=yes [0x19 resolution 21] leisure=water_park [0x09 resolution 21] place=village [0x03 resolution 19] place=suburb [0x02 resolution 19] shop=* {add name='${shop|subst:"_=> "}'} [0x08 resolution 22] # squares and plazas place=square [0x25 resolution 22] highway=pedestrian & (area=yes | mkgmap:mp_created=true) [0x25 resolution 22] # following rule also renders a closed way without area attribute as a plaza highway=pedestrian & area!=no [0x25 resolution 22] # footways areas are similar, but should be explicity marked as such highway=footway & area=yes [0x25 resolution 24] highway=services [0x12 resolution 22] # service station complex; show as retail highway=rest_area & area!=no [0x05 resolution 22] # show as parking lot historic=* & historic!=no & historic!=yes & boundary!=* {add name='${historic|subst:"_=> "}'} [0x22 resolution 21] landuse=basin [0x3f resolution 20] landuse=reservoir | (natural=water & water=reservoir) [0x3f resolution 20] dock=drydock [0x4c resolution 22] # might also have natural=water natural=bay [0x3d resolution 18] natural=glacier [0x4d resolution 18] natural=marsh [0x51 resolution 20] natural=tundra [0x52 resolution 18] natural=mud [0x51 resolution 20] natural=beach | natural=sand [0x53 resolution 20] natural=wetland [0x51 resolution 20] natural=water & water=canal [0x48 resolution 22] natural=water & water=lock [0x4c resolution 22 default_name 'Lock'] natural=water & area_size() < 100000 [0x41 resolution 22] # Small Lake natural=water [0x3c resolution 18] natural=waterfall | waterway=waterfall [0x47 resolution 21] natural=sea {add mkgmap:skipSizeFilter=true; set mkgmap:drawLevel=2} [0x32 resolution 10] waterway=riverbank [0x46 resolution 20] # mop up any remaining water areas waterway=* & waterway!=no & area!=no {add name='${waterway|subst:"_=> "}'} [0x3b resolution 22] landuse=allotments [0x4e resolution 21] landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x1a resolution 21] landuse=commercial [0x0f resolution 19] landuse=construction [0x0c resolution 21] landuse=farm [0x26 resolution 22] landuse=farmland [0x1c resolution 20] landuse=farmyard [0x26 resolution 22] landuse=forest | landuse=wood [0x50 resolution 20] landuse=greenfield [0x1c resolution 20] landuse=meadow | landuse=grass [0x1c resolution 19] landuse=military [0x04 resolution 19] landuse=quarry [0x0c resolution 19] landuse=recreation_ground [0x19 resolution 19] # dedicate resolution 24 for building=* instead of related landuse=* landuse=industrial [0x0c resolution 19-23] landuse=residential [0x10 resolution 19-23] landuse=retail [0x12 resolution 20-23] landuse=village_green [0x15 resolution 20] landuse=vineyard [0x4e resolution 20] landuse=orchard [0x4e resolution 20] military=airfield [0x04 resolution 20] military=barracks [0x04 resolution 23] military=danger_area [0x11 resolution 20] military=range [0x04 resolution 20] natural=scrub [0x4f resolution 20] natural=wood [0x50 resolution 20] # building tag should be last amenity=* & area!=no & amenity!=grave_yard {add name='${amenity|subst:"_=> "}'} [0x23 resolution 24] building=* & building!=no [0x13 resolution 24] tourism=* & area!=no & waterway!=* {add name='${tourism|subst:"_=> "}'} [0x21 resolution 24] # man_made can be used on areas or lines man_made=* & area!=no {add name='${man_made|subst:"_=> "}'} [0x24 resolution 24] # render small named islands place=island & name=* & area_size() < 1000000 [0x53 resolution 19] place=islet & name=* [0x53 resolution 20] <finalize> # The finalizer section is executed for each element when a rule with an element type matches # we need address info from buildings for the address search include 'inc/address'; name=* {name '${name}'}
- Previous message: [mkgmap-dev] check-roundabout-flares
- Next message: [mkgmap-dev] Changes that I made in a recent set of default style files and the reason I have for making those changes.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list