[OSM-dev] JOSM: Several tags with same key

Pierre-André Jacquod pjacquod at alumni.ethz.ch
Sun Apr 5 17:39:17 BST 2009


Hi,


>> I also see this as an error in the tagging-schema.
>> We have way too many values for "amenity" so these collisions
>> happen all the time. It`s not just bank+atm, it is also
>> hotel+restaurant and many others.
>> This way of tagging amenities simply grew without any regard
>> for what was technically possible (most editors never properly supported
>> multiple values for a key, thus noone was to use them as their work
>> could be destroyed at any moment).
>>
>> Marcus
> 
> +1
> 
> We could restructure most (all?) amenities to more speaking k/v-pairs,
> by inventing thematic replacement-groups for amenity (and the similar
> man_made):

I do not thing wee need to restructure it.
Here some stats taking into account Austria, Switzerland, Finnland and
Belgium:
amenity key has been used  40193 in nodes and 10346 in ways
Amenity as key has been used with 431 different value tags.

among theses 431 different values, there are 25 values with ; in them,
all value (like fuel;fast_food or fuel;toilets ) being composed of
values already used normally alone as amenity.

This is at least 6% of key/value paar showing that the mapper thing the
value belong to the same node... Actually this is more, since within the
431 entries, I saw quite a lot of entries due to misspelling. Without
knowing all artificial double node (like I did) in order to map as it is
"taught"..


Amenity has been combined with 384 other keys... some of them like atm,
shop,...

I found 638 times the combination
amenity = bank
atm = .....
which shows that we are fare higher than 6% for the same point with
different values since except manually it is not possible to know that
the tag atm = yes means amenity = atm, but since this is already used
for bank, I do a workaround....

here below some details of my stat. I am now improving the performance
of my program and try to let it run on europe. My end goal is to be able
to create a kind of automatic dictionary of which key combination are
used, and with which values...  As soon as it can be presented in a
better way, I will do it

Best regards

 key 	 value 	 numnode 	 numway 	 numusage
 amenity 	 ? bus_station 	1	0	1
 amenity 	 ARA 	1	0	1
 amenity 	 Alm 	1	3	4
 amenity 	 Almhütte	1	0	1
 amenity 	 Altersheim	1	1	2
 amenity 	 Altersheim Riggishof	0	1	1
 amenity 	 Bildungshaus	1	0	1
 amenity 	 Brasserie 	2	0	2
 amenity 	 Bus_pit 	1	0	1
 amenity 	 Buschenschank 	3	0	3
 amenity 	 Business Centre 	2	0	2
 amenity 	 Chalet	1	0	1
 amenity 	 Exhibition	0	1	1
 amenity 	 FKK 	1	0	1
 amenity 	 Gemeindeamt 	1	0	1
 amenity 	 Goggitschberg 	0	2	2
 amenity 	 Government	0	1	1
 amenity 	 Grillplatz	0	1	1
 amenity 	 Hütte 	1	0	1
 amenity 	 Jagdhütte 	0	1	1
 amenity 	 KIRCHE	2	0	2
 amenity 	 Kaiserburgbahn	1	0	1
 amenity 	 Kela	1	0	1
 amenity 	 Lakeside Park 	1	0	1
 amenity 	 Mehrzweckhalle	1	0	1
 amenity 	 Molkerei	1	0	1
 amenity 	 Musikverein Irdning 	1	0	1
 amenity 	 Pharmacy	1	0	1
 amenity 	 Port of Joensuu 	1	0	1
 amenity 	 Puinzbahn 	0	1	1
 amenity 	 Rastbahn	0	1	1
 amenity 	 Shopping Centre 	1	0	1
 amenity 	 Sonnrain	0	1	1
 amenity 	 Spielplatz	1	0	1
 amenity 	 Tax Consultant	1	0	1
 amenity 	 Tierheim	1	0	1
 amenity 	 User Defined	1	0	1
 amenity 	 Verovirasto; Ympäristökeskus	1	0	1
 amenity 	 WLAN	1178	0	1178
 amenity 	 Wegkreuz	1	0	1
 amenity 	 Zivilschutzbunker 	1	0	1
 amenity 	 abbey 	0	1	1
 amenity 	 abmulance 	1	0	1
 amenity 	 air_fill	4	0	4
 amenity 	 alm 	1	0	1
 amenity 	 alm_hut 	1	0	1
 amenity 	 alp_logde 	1	0	1
 amenity 	 alpine_hut	15	0	15
 amenity 	 ambulance 	3	1	4
 amenity 	 ambulance_station 	1	0	1
 amenity 	 arcade	5	0	5
 amenity 	 art_gallerie	1	0	1
 amenity 	 arts-centre 	0	2	2
 amenity 	 arts_centre 	44	10	54
 amenity 	 atm 	600	0	600
 amenity 	 atm;post_office;post_box	1	0	1
 amenity 	 bank	1361	20	1381
 amenity 	 bar 	21	1	22
 amenity 	 barbecue	1	0	1
 amenity 	 bathing 	0	1	1
 amenity 	 bbq 	3	0	3
 amenity 	 beauty saloon 	1	0	1
 amenity 	 behinderteneinrichtung	1	0	1
 amenity 	 bench 	752	1	753
 amenity 	 bicycle_parking 	403	75	478
 amenity 	 bicycle_rental	77	0	77
 amenity 	 bicycle_repair	1	0	1
 amenity 	 biergarten	96	2	98
 amenity 	 bingo 	1	0	1
 amenity 	 boat_rental 	1	0	1
 amenity 	 bomb_shelter	3	0	3
 amenity 	 border_control	6	0	6
 amenity 	 boulangerie paticerie 	1	0	1
 amenity 	 brewery 	1	0	1
 amenity 	 brothel 	2	0	2
 amenity 	 building_entrance 	3	0	3
 amenity 	 building_management 	1	0	1
 amenity 	 building_rental 	1	0	1
 amenity 	 bureau_de_change	8	0	8
 amenity 	 bus_station 	357	41	398
 amenity 	 bus_stop	3	0	3
 amenity 	 buschenschank 	1	0	1
 amenity 	 business	1	0	1
 amenity 	 c 	0	1	1
 amenity 	 cafe	1001	9	1010
 amenity 	 cafe, restaurant	1	0	1
 amenity 	 cafe;fast_food	1	0	1
 amenity 	 cafe;pub	1	0	1
 amenity 	 camera	2	0	2
 amenity 	 car 	1	0	1
 amenity 	 car club	0	1	1
 amenity 	 car_approval_center 	1	0	1
 amenity 	 car_cleaning	1	0	1
 amenity 	 car_inspection	1	0	1
 amenity 	 car_mechanic	1	0	1
 amenity 	 car_park	0	1	1
 amenity 	 car_parts;car_repairing 	5	0	5
 amenity 	 car_registration	1	0	1
 amenity 	 car_rental	27	1	28
 amenity 	 car_service 	2	0	2
 amenity 	 car_sharing 	1128	1	1129
 amenity 	 car_wash	31	3	34
 amenity 	 carwash 	1	0	1
 amenity 	 casino	5	1	6
 amenity 	 cemetery	0	1	1
 amenity 	 centre for parents and children 	1	0	1
 amenity 	 chapel	3	0	3
 amenity 	 cheese diary	1	0	1
 amenity 	 child health center 	1	0	1
 amenity 	 cinema	196	15	211
 amenity 	 city_hall 	1	0	1
 amenity 	 city_square 	0	1	1
 amenity 	 cleaning	1	0	1
 amenity 	 clock 	1	0	1
 amenity 	 club	1	0	1
 amenity 	 coached apartments for old people 	1	0	1
 amenity 	 college 	40	86	126
 amenity 	 community_center	0	1	1
 amenity 	 community_centre	0	1	1
 amenity 	 company 	11	0	11
 amenity 	 conference_center 	0	1	1
 amenity 	 conference_centre 	1	0	1
 amenity 	 congress	2	0	2
 amenity 	 congress_centre 	1	0	1
 amenity 	 convention_center 	1	0	1
 amenity 	 cosmetics 	1	0	1
 amenity 	 courthouse	60	14	74
 amenity 	 crematorium 	8	1	9
 amenity 	 cultural_center 	1	0	1
 amenity 	 custom	1	0	1
 amenity 	 cutter	2	0	2
 amenity 	 dance_school	1	0	1
 amenity 	 danceschool 	1	0	1
 amenity 	 dancesport_club 	1	0	1
 amenity 	 dancing_school	1	0	1
 amenity 	 daycare 	2	2	4
 amenity 	 dentist 	18	1	19
 amenity 	 disabled	1	0	1
 amenity 	 disabled_parking	0	1	1
 amenity 	 disused_parking 	0	1	1
 amenity 	 doctor	9	2	11
 amenity 	 doctor / first aid	1	0	1
 amenity 	 doctors 	50	2	52
 amenity 	 dog_bin 	4	0	4
 amenity 	 dog_park	0	2	2
 amenity 	 dog_toilet	3	0	3
 amenity 	 dog_trimmer 	1	0	1
 amenity 	 dog_waste 	12	0	12
 amenity 	 dormitory 	2	0	2
 amenity 	 drinking_water	374	0	374
 amenity 	 education 	1	0	1
 amenity 	 embassy 	23	8	31
 amenity 	 embasy	1	0	1
 amenity 	 emergency_phone 	9	0	9
 amenity 	 erikoishammasteknikko 	1	0	1
 amenity 	 exhibition	1	0	1
 amenity 	 exhibition_centre 	0	1	1
 amenity 	 exhibition_hall 	2	5	7
 amenity 	 farmacie	1	0	1
 amenity 	 fast_food 	1101	18	1119
 amenity 	 fast_food;restaurant	1	0	1
 amenity 	 ferry_terminal	20	0	20
 amenity 	 finance_office	0	1	1
 amenity 	 fire brigade	1	0	1
 amenity 	 fire_department 	0	1	1
 amenity 	 fire_hydrant	49	0	49
 amenity 	 fire_place	1	0	1
 amenity 	 fire_station	445	63	508
 amenity 	 fireplace 	9	0	9
 amenity 	 firm	1	0	1
 amenity 	 first_aid 	2	0	2
 amenity 	 fiscal_authority	1	0	1
 amenity 	 fitness trail; vitaparcour	1	0	1
 amenity 	 flat_service	1	0	1
 amenity 	 flute manufacturing 	1	0	1
 amenity 	 food	2	0	2
 amenity 	 foot_service	1	0	1
 amenity 	 footbeauty	1	0	1
 amenity 	 foreign agency	1	0	1
 amenity 	 foresthouse 	5	0	5
 amenity 	 former_post_office	3	0	3
 amenity 	 fountain	383	31	414
 amenity 	 fuel	3251	51	3302
 amenity 	 fuel;cafe;fast_food 	1	0	1
 amenity 	 fuel;fast_food	1	0	1
 amenity 	 fuel;fastfood 	1	0	1
 amenity 	 fuel;toilets	1	0	1
 amenity 	 gambling	4	0	4
 amenity 	 garage	0	1	1
 amenity 	 garbage 	1	0	1
 amenity 	 geocache	1	0	1
 amenity 	 government	2	2	4
 amenity 	 gratuite	1	0	1
 amenity 	 grave_yard	65	108	173
 amenity 	 graveyard 	1	0	1
 amenity 	 grill 	3	0	3
 amenity 	 grit_bin	6	0	6
 amenity 	 gym 	1	0	1
 amenity 	 hairdresser 	1	0	1
 amenity 	 hall	2	0	2
 amenity 	 health_center 	1	2	3
 amenity 	 helipad 	1	0	1
 amenity 	 help	1	0	1
 amenity 	 heurigen	1	0	1
 amenity 	 heuriger	17	0	17
 amenity 	 home for the aged 	0	2	2
 amenity 	 horse_racing_track	1	0	1
 amenity 	 hospice 	1	0	1
 amenity 	 hospital	403	169	572
 amenity 	 hospital UKBB 	0	1	1
 amenity 	 hunting_blind 	6	0	6
 amenity 	 hunting_stand 	3	0	3
 amenity 	 hut 	2	0	2
 amenity 	 hydrant 	1	0	1
 amenity 	 ice_cream 	4	0	4
 amenity 	 icerink 	1	0	1
 amenity 	 illegal_parking 	0	1	1
 amenity 	 industry	2	0	2
 amenity 	 institute 	1	0	1
 amenity 	 insurance 	1	0	1
 amenity 	 insurance_agency	1	0	1
 amenity 	 internet	1	0	1
 amenity 	 job center	0	1	1
 amenity 	 kampaamo	4	0	4
 amenity 	 kauneshoitola 	1	0	1
 amenity 	 kauneushoitola	2	0	2
 amenity 	 kindergarten	233	66	299
 amenity 	 kindergaten 	1	2	3
 amenity 	 kiosk 	1	0	1
 amenity 	 konevuokraamo 	1	0	1
 amenity 	 lantasäiliö 	0	1	1
 amenity 	 laundry 	1	0	1
 amenity 	 lawyer	1	0	1
 amenity 	 leikkipuisto	0	1	1
 amenity 	 library 	212	30	242
 amenity 	 library; public_building	0	1	1
 amenity 	 library_bus 	1	0	1
 amenity 	 litter_bin	4	0	4
 amenity 	 location	1	0	1
 amenity 	 lottery 	1	0	1
 amenity 	 market	0	1	1
 amenity 	 marketplace 	0	3	3
 amenity 	 massage 	1	0	1
 amenity 	 mast	1	0	1
 amenity 	 media_agency	1	0	1
 amenity 	 mini_roundabout 	1	0	1
 amenity 	 mobile_phone_service	1	0	1
 amenity 	 monastery 	2	0	2
 amenity 	 mountain_hut	5	0	5
 amenity 	 mountain_refuge 	1	0	1
 amenity 	 museum	0	1	1
 amenity 	 nail_service	2	0	2
 amenity 	 nail_studio 	3	0	3
 amenity 	 neuvola 	1	0	1
 amenity 	 nightclub 	160	4	164
 amenity 	 nightclub;pub 	2	0	2
 amenity 	 nursery 	5	5	10
 amenity 	 nursery_home	3	0	3
 amenity 	 nursing 	1	0	1
 amenity 	 nursing-home	0	1	1
 amenity 	 nursing_home	4	5	9
 amenity 	 observatory 	3	0	3
 amenity 	 office	5	0	5
 amenity 	 optometrist 	2	0	2
 amenity 	 other 	35	1	36
 amenity 	 park	1	1	2
 amenity 	 parking 	5129	6947	12076
 amenity 	 parking;fuel	4	0	4
 amenity 	 parking=underground 	1	0	1
 amenity 	 parting 	1	0	1
 amenity 	 parturi 	2	0	2
 amenity 	 parturi-kampaamo	6	0	6
 amenity 	 party 	1	0	1
 amenity 	 pelihalli 	1	0	1
 amenity 	 pesula	1	0	1
 amenity 	 pet_doctor	1	0	1
 amenity 	 pet_supplies	1	0	1
 amenity 	 pharmacie 	0	1	1
 amenity 	 pharmacy	940	11	951
 amenity 	 pharmacy and medic	1	0	1
 amenity 	 pitch 	0	1	1
 amenity 	 place of workship 	0	3	3
 amenity 	 place_of_workship 	0	7	7
 amenity 	 place_of_worship	2925	353	3278
 amenity 	 playce_of_worship 	0	1	1
 amenity 	 playground	5	3	8
 amenity 	 plaza 	0	39	39
 amenity 	 plumber 	5	0	5
 amenity 	 police	387	31	418
 amenity 	 politics	1	0	1
 amenity 	 polttopuita 	1	0	1
 amenity 	 post-office 	1	0	1
 amenity 	 post_box	1645	3	1648
 amenity 	 post_office 	2412	24	2436
 amenity 	 post_office;post_box;atm	1	0	1
 amenity 	 pottery 	1	0	1
 amenity 	 preschool 	33	6	39
 amenity 	 prison	24	16	40
 amenity 	 private_doctor's_appointment	1	0	1
 amenity 	 private_living_area 	0	2	2
 amenity 	 psychiatry	1	0	1
 amenity 	 pub 	1336	4	1340
 amenity 	 pub nightclub 	1	0	1
 amenity 	 pub; restaurant 	1	0	1
 amenity 	 public beach	1	0	1
 amenity 	 public_building 	173	272	445
 amenity 	 pupil_help	2	0	2
 amenity 	 pyöräkorjaamo 	1	0	1
 amenity 	 recycling 	1332	31	1363
 amenity 	 recycling_centre	0	1	1
 amenity 	 red_cross 	2	1	3
 amenity 	 redcross	0	1	1
 amenity 	 refuge	1	1	2
 amenity 	 repair	3	0	3
 amenity 	 rescue	3	0	3
 amenity 	 research	1	0	1
 amenity 	 residential 	0	1	1
 amenity 	 restauran 	1	0	1
 amenity 	 restaurant	5085	124	5209
 amenity 	 restaurant; pub 	0	1	1
 amenity 	 restaurant;bar	1	0	1
 amenity 	 restaurant;hotel;nightclub	1	0	1
 amenity 	 restaurant;nightclub	1	0	1
 amenity 	 restaurant;pub	2	0	2
 amenity 	 restaurant_closed 	1	0	1
 amenity 	 retail	5	2	7
 amenity 	 retaurant 	0	1	1
 amenity 	 retirement_home 	3	2	5
 amenity 	 rettung 	1	0	1
 amenity 	 rotes_kreuz 	1	0	1
 amenity 	 salon 	1	0	1
 amenity 	 sauna 	3	0	3
 amenity 	 school	1591	1050	2641
 amenity 	 school;library	0	1	1
 amenity 	 science_park	1	8	9
 amenity 	 scissors	1	0	1
 amenity 	 scout_centre	2	0	2
 amenity 	 scout_house 	0	2	2
 amenity 	 sh	0	1	1
 amenity 	 shelter 	81	5	86
 amenity 	 shop	24	3	27
 amenity 	 shop;car_parts	2	0	2
 amenity 	 shopping	6	0	6
 amenity 	 signpost	160	0	160
 amenity 	 ski area, hornspitz 	1	0	1
 amenity 	 ski_resort	1	0	1
 amenity 	 ski_school	8	0	8
 amenity 	 small shop	1	0	1
 amenity 	 snack 	0	1	1
 amenity 	 social service	1	0	1
 amenity 	 solarium	1	0	1
 amenity 	 speed_camera	12	0	12
 amenity 	 speed_tramp 	2	0	2
 amenity 	 speed_trap	3	0	3
 amenity 	 sport 	0	1	1
 amenity 	 sporthall 	1	0	1
 amenity 	 sporting_bids 	2	0	2
 amenity 	 sportpanlage	1	0	1
 amenity 	 square	5	11	16
 amenity 	 stance	1	0	1
 amenity 	 statue	1	0	1
 amenity 	 studio	3	2	5
 amenity 	 sun studio	1	0	1
 amenity 	 suntan	1	0	1
 amenity 	 supermarket 	0	1	1
 amenity 	 swimming_pool 	1	0	1
 amenity 	 table 	2	0	2
 amenity 	 tailor	1	0	1
 amenity 	 talopiirtopalvelu 	1	0	1
 amenity 	 tax_service 	1	0	1
 amenity 	 taxi	170	4	174
 amenity 	 telephone 	600	0	600
 amenity 	 television network	1	0	1
 amenity 	 test drive track	1	0	1
 amenity 	 thai-massage	1	0	1
 amenity 	 theatre 	148	39	187
 amenity 	 ticket_office 	1	0	1
 amenity 	 tickets 	1	0	1
 amenity 	 toilets 	473	4	477
 amenity 	 toilets;	1	0	1
 amenity 	 toilets;telephone;drinking_water	1	0	1
 amenity 	 toilett 	1	0	1
 amenity 	 tourist information 	1	0	1
 amenity 	 town_hall 	5	2	7
 amenity 	 townhall	259	61	320
 amenity 	 tram_station	1	0	1
 amenity 	 transportation	1	0	1
 amenity 	 trash_bin 	1	0	1
 amenity 	 travel_agency 	1	0	1
 amenity 	 tree	0	1	1
 amenity 	 tree_nursery	1	0	1
 amenity 	 tulli 	1	0	1
 amenity 	 undefined 	3	0	3
 amenity 	 underground parking 	1	0	1
 amenity 	 undertakers 	1	0	1
 amenity 	 university	87	341	428
 amenity 	 vacuumcleaner 	1	0	1
 amenity 	 vakuutusyhtiö 	1	0	1
 amenity 	 vanhainkoti 	1	0	1
 amenity 	 vehicle_inspection	1	0	1
 amenity 	 vehicle_inspection_centre 	0	1	1
 amenity 	 vending machine 	9	0	9
 amenity 	 vending_machine 	36	1	37
 amenity 	 verfallen 	1	0	1
 amenity 	 verhoomo	1	0	1
 amenity 	 veterenarian	1	0	1
 amenity 	 veterinary	30	1	31
 amenity 	 via ferrata 	0	1	1
 amenity 	 video shop	1	0	1
 amenity 	 video_rental	1	0	1
 amenity 	 vineyard	1	0	1
 amenity 	 vineyard sales outlet and bar 	1	0	1
 amenity 	 waste disposal	1	0	1
 amenity 	 waste transfer station	1	0	1
 amenity 	 waste_basket	91	0	91
 amenity 	 waste_bin 	11	0	11
 amenity 	 waste_disposal	207	5	212
 amenity 	 waste_incineration_plant	0	1	1
 amenity 	 watches_service 	1	0	1
 amenity 	 water 	2	0	2
 amenity 	 water_point 	10	0	10
 amenity 	 water_tower 	1	0	1
 amenity 	 waterfall 	1	0	1
 amenity 	 webcam	1	0	1
 amenity 	 whorehouse	1	0	1
 amenity 	 wifi	1	0	1
 amenity 	 window prostitution 	2	0	2
 amenity 	 winery	4	0	4
 amenity 	 wireless	1	0	1
 amenity 	 yes 	1	0	1
 amenity 	 youth_club	1	0	1










More information about the dev mailing list