~cibersheep/unav/systemcolors

« back to all changes in this revision

Viewing changes to qml/js/PoiCategories.js

  • Committer: costales
  • Date: 2016-03-26 18:53:17 UTC
  • Revision ID: costales.marcos@gmail.com-20160326185317-4iau3yhe8986h5pg
Init team

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases/EN
 
2
var groups = [
 
3
        {
 
4
                label: i18n.tr("Transport"),
 
5
                elements: [
 
6
                        {en_label: "Airport", label: i18n.tr("Airport"), clause: "Airports"},
 
7
                        {en_label: "Bicycle Parking", label: i18n.tr("Bicycle Parking"), clause: "Cycle Parkings"},
 
8
                        {en_label: "Bicycle Rental", label: i18n.tr("Bicycle Rental"), clause: "Cycle Rentals"},
 
9
                        {en_label: "Bus Station", label: i18n.tr("Bus Station"), clause: "Bus Stations"},
 
10
                        {en_label: "Bus Stop", label: i18n.tr("Bus Stop"), clause: "Bus Stops"},
 
11
                        {en_label: "Car Rental", label: i18n.tr("Car Rental"), clause: "Car Rentals"},
 
12
                        {en_label: "Car Repair", label: i18n.tr("Car Repair"), clause: "Car Repairs"},
 
13
                        {en_label: "Car Wash", label: i18n.tr("Car Wash"), clause: "Car Washes"},
 
14
                        {en_label: "Ferry Terminal", label: i18n.tr("Ferry Terminal"), clause: "Ferry Terminals"},
 
15
                        {en_label: "Gas Station", label: i18n.tr("Gas Station"), clause: "Fuel Stations"},
 
16
                        {en_label: "Parking", label: i18n.tr("Parking"), clause: "Parking"},
 
17
                        {en_label: "Subway Entrance", label: i18n.tr("Subway Entrance"), clause: "Subway Entrances"},
 
18
                        {en_label: "Taxi", label: i18n.tr("Taxi"), clause: "Taxis"},
 
19
                        {en_label: "Train Station", label: i18n.tr("Train Station"), clause: "Train Stations"}
 
20
                ]
 
21
        },
 
22
        {
 
23
                label: i18n.tr("Accommodation"),
 
24
                elements: [
 
25
                        {en_label: "B&B", label: i18n.tr("B&B"), clause: "Bed and Breakfasts"},
 
26
                        {en_label: "Campsite", label: i18n.tr("Campsite"), clause: "Camp Sites"},
 
27
                        {en_label: "Caravan Site", label: i18n.tr("Caravan Site"), clause: "Caravan Sites"},
 
28
                        {en_label: "Guest House", label: i18n.tr("Guest House"), clause: "Guest Houses"},
 
29
                        {en_label: "Hostel", label: i18n.tr("Hostel"), clause: "Hostels"},
 
30
                        {en_label: "Hotel", label: i18n.tr("Hotel"), clause: "Hotels"},
 
31
                        {en_label: "Motel", label: i18n.tr("Motel"), clause: "Motels"}
 
32
                ]
 
33
        },
 
34
        {
 
35
                label: i18n.tr("Food & Drink"),
 
36
                elements: [
 
37
                        {en_label: "Bakery", label: i18n.tr("Bakery"), clause: "Bakeries"},
 
38
                        {en_label: "Bar", label: i18n.tr("Bar"), clause: "Bars"},
 
39
                        {en_label: "Butcher", label: i18n.tr("Butcher"), clause: "Butchers"},
 
40
                        {en_label: "Cafe", label: i18n.tr("Cafe"), clause: "Cafes"},
 
41
                        {en_label: "Convenience", label: i18n.tr("Convenience"), clause: "Convenience Stores"},
 
42
                        {en_label: "Drinking water", label: i18n.tr("Drinking water"), clause: "Drinking Water"},
 
43
                        {en_label: "Fast Food", label: i18n.tr("Fast Food"), clause: "Fast Food"},
 
44
                        {en_label: "Ice Cream", label: i18n.tr("Ice Cream"), clause: "Ice Cream"},
 
45
                        {en_label: "Picnic Site", label: i18n.tr("Picnic Site"), clause: "Picnic Sites"},
 
46
                        {en_label: "Pub", label: i18n.tr("Pub"), clause: "Pubs"},
 
47
                        {en_label: "Restaurant", label: i18n.tr("Restaurant"), clause: "Restaurants"}
 
48
                ]
 
49
        },
 
50
        {
 
51
                label: i18n.tr("Services"),
 
52
                elements: [
 
53
                        {en_label: "ATM", label: i18n.tr("ATM"), clause: "ATMs"},
 
54
                        {en_label: "Bank", label: i18n.tr("Bank"), clause: "Banks"},
 
55
                        {en_label: "Bureau de change", label: i18n.tr("Bureau de change"), clause: "Bureaus de Change"},
 
56
                        {en_label: "Place of Worship", label: i18n.tr("Place of Worship"), clause: "Places of Worship"},
 
57
                        {en_label: "Post Box", label: i18n.tr("Post Box"), clause: "Post Boxes"},
 
58
                        {en_label: "Post Office", label: i18n.tr("Post Office"), clause: "Post Offices"},
 
59
                        {en_label: "Public Telephone", label: i18n.tr("Public Telephone"), clause: "Telephones"},
 
60
                        {en_label: "Toilet", label: i18n.tr("Toilet"), clause: "Toilets"},
 
61
                        {en_label: "Wi-Fi Point", label: i18n.tr("Wi-Fi Point"), clause: "WiFi Points"}
 
62
                ]
 
63
        },
 
64
        {
 
65
                label: i18n.tr("Shopping"),
 
66
                elements: [
 
67
                        {en_label: "Books", label: i18n.tr("Books"), clause: "Book Shops"},
 
68
                        {en_label: "Charity", label: i18n.tr("Charity"), clause: "Charity Shops"},
 
69
                        {en_label: "Clothes", label: i18n.tr("Clothes"), clause: "Clothes Shops"},
 
70
                        {en_label: "Computer Shop", label: i18n.tr("Computer Shop"), clause: "Computer Shops"},
 
71
                        {en_label: "Copy Shop", label: i18n.tr("Copy Shop"), clause: "Copy Shops"},
 
72
                        {en_label: "Florist", label: i18n.tr("Florist"), clause: "Florists"},
 
73
                        {en_label: "Gifts", label: i18n.tr("Gifts"), clause: "Gift Shops"},
 
74
                        {en_label: "Jewelry", label: i18n.tr("Jewelry"), clause: "Jewelry Shops"},
 
75
                        {en_label: "Kiosk", label: i18n.tr("Kiosk"), clause: "Kiosk Shops"},
 
76
                        {en_label: "Laundry", label: i18n.tr("Laundry"), clause: "Laundries"},
 
77
                        {en_label: "Mall", label: i18n.tr("Mall"), clause: "Malls"},
 
78
                        {en_label: "Mobile Phone", label: i18n.tr("Mobile Phone"), clause: "Mobile Phone Shops"},
 
79
                        {en_label: "Optician", label: i18n.tr("Optician"), clause: "Opticians"},
 
80
                        {en_label: "Public Market", label: i18n.tr("Public Market"), clause: "Marketplaces"},
 
81
                        {en_label: "Shoes", label: i18n.tr("Shoes"), clause: "Shoe Shops"},
 
82
                        {en_label: "Supermarket", label: i18n.tr("Supermarket"), clause: "Supermarkets"},
 
83
                        {en_label: "Travel Agency", label: i18n.tr("Travel Agency"), clause: "Travel Agencies"},
 
84
                        {en_label: "Vending Machine", label: i18n.tr("Vending Machine"), clause: "Vending Machines"}
 
85
                ]
 
86
        },
 
87
        {
 
88
                label: i18n.tr("Culture"),
 
89
                elements: [
 
90
                        {en_label: "Art Center", label: i18n.tr("Art Center"), clause: "Arts Centres"},
 
91
                        {en_label: "Artwork", label: i18n.tr("Artwork"), clause: "Artworks"},
 
92
                        {en_label: "Auditorium", label: i18n.tr("Auditorium"), clause: "Auditoriums"},
 
93
                        {en_label: "Gallery", label: i18n.tr("Gallery"), clause: "Galleries"},
 
94
                        {en_label: "Library", label: i18n.tr("Library"), clause: "Libraries"},
 
95
                        {en_label: "Museum", label: i18n.tr("Museum"), clause: "Museums"},
 
96
                        {en_label: "Theatre", label: i18n.tr("Theatre"), clause: "Theatres"}
 
97
                ]
 
98
        },
 
99
        {
 
100
                label: i18n.tr("Historic"),
 
101
                elements: [
 
102
                        {en_label: "Archaeological Site", label: i18n.tr("Archaeological Site"), clause: "Archaeological Sites"},
 
103
                        {en_label: "Battlefield", label: i18n.tr("Battlefield"), clause: "Battlefields"},
 
104
                        {en_label: "Castle", label: i18n.tr("Castle"), clause: "Castles"},
 
105
                        {en_label: "Monument", label: i18n.tr("Monument"), clause: "Monuments"},
 
106
                        {en_label: "Ruin", label: i18n.tr("Ruin"), clause: "Ruins"}
 
107
                ]
 
108
        },
 
109
        {
 
110
                label: i18n.tr("Entertainment"),
 
111
                elements: [
 
112
                        {en_label: "Casino", label: i18n.tr("Casino"), clause: "Casinos"},
 
113
                        {en_label: "Children Playground", label: i18n.tr("Children Playground"), clause: "Playgrounds"},
 
114
                        {en_label: "Cinema", label: i18n.tr("Cinema"), clause: "Cinemas"},
 
115
                        {en_label: "Gym", label: i18n.tr("Gym"), clause: "Gyms"},
 
116
                        {en_label: "Nature Reserve", label: i18n.tr("Nature Reserve"), clause: "Nature Reserves"},
 
117
                        {en_label: "Night Club", label: i18n.tr("Night Club"), clause: "Night Clubs"},
 
118
                        {en_label: "Park", label: i18n.tr("Park"), clause: "Parks"},
 
119
                        {en_label: "Picnic Site", label: i18n.tr("Picnic Site"), clause: "Picnic Sites"},
 
120
                        {en_label: "Theme Park", label: i18n.tr("Theme Park"), clause: "Theme Parks"}
 
121
                ]
 
122
        },
 
123
        {
 
124
                label: i18n.tr("Education"),
 
125
                elements: [
 
126
                        {en_label: "College", label: i18n.tr("College"), clause: "Colleges"},
 
127
                        {en_label: "Nursery School", label: i18n.tr("Nursery School"), clause: "Nurseries"},
 
128
                        {en_label: "University", label: i18n.tr("University"), clause: "Universities"}
 
129
                ]
 
130
        },
 
131
        {
 
132
                label: i18n.tr("Health"),
 
133
                elements: [
 
134
                        {en_label: "Dentist", label: i18n.tr("Dentist"), clause: "Dentists"},
 
135
                        {en_label: "Doctor", label: i18n.tr("Doctor"), clause: "Doctors"},
 
136
                        {en_label: "Hospital", label: i18n.tr("Hospital"), clause: "Hospitals"},
 
137
                        {en_label: "Pharmacy", label: i18n.tr("Pharmacy"), clause: "Pharmacies"},
 
138
                        {en_label: "Veterinary", label: i18n.tr("Veterinary"), clause: "Veterinary Surgeries"}
 
139
                ]
 
140
        },
 
141
        {
 
142
                label: i18n.tr("Religious"),
 
143
                elements: [
 
144
                        {en_label: "Cemetery", label: i18n.tr("Cemetery"), clause: "Cemeteries"},
 
145
                        {en_label: "Church", label: i18n.tr("Church"), clause: "Churchs"},
 
146
                        {en_label: "Crematorium", label: i18n.tr("Crematorium"), clause: "Crematoriums"},
 
147
                        {en_label: "Place of Worship", label: i18n.tr("Place of Worship"), clause: "Places of Worship"}
 
148
                ]
 
149
        },
 
150
        {
 
151
                label: i18n.tr("Emergency"),
 
152
                elements: [
 
153
                        {en_label: "Phone", label: i18n.tr("Phone"), clause: "Emergency Phones"},
 
154
                        {en_label: "Police Station", label: i18n.tr("Police Station"), clause: "Police"}
 
155
                ]
 
156
        },
 
157
        {
 
158
                label: i18n.tr("Sport"),
 
159
                elements: [
 
160
                        {en_label: "Sports Center", label: i18n.tr("Sports Center"), clause: "Sports Centres"},
 
161
                        {en_label: "Stadium", label: i18n.tr("Stadium"), clause: "Stadiums"},
 
162
                        {en_label: "Swimming Pool", label: i18n.tr("Swimming Pool"), clause: "Swimming Pools"},
 
163
                        {en_label: "Track", label: i18n.tr("Track"), clause: "Tracks"}
 
164
                ]
 
165
        },
 
166
        {
 
167
                label: i18n.tr("Others"),
 
168
                elements: [
 
169
                        {en_label: "Courthouse", label: i18n.tr("Courthouse"), clause: "Courthouses"},
 
170
                        {en_label: "Embassy", label: i18n.tr("Embassy"), clause: "Embassies"},
 
171
                        {en_label: "Prison", label: i18n.tr("Prison"), clause: "Prisons"},
 
172
                        {en_label: "Recycling", label: i18n.tr("Recycling"), clause: "Recycling Points"},
 
173
                        {en_label: "Tourism Information", label: i18n.tr("Tourism Information"), clause: "Informations"},
 
174
                        {en_label: "Town", label: i18n.tr("Town"), clause: "Towns"},
 
175
                        {en_label: "Town Hall", label: i18n.tr("Town Hall"), clause: "Town Halls"}
 
176
                ]
 
177
        }
 
178
];
 
179
 
 
180
var data = function () {
 
181
        var d = [], e;
 
182
        groups.forEach(function (group) {
 
183
                group.elements.forEach(function (e) {
 
184
                        e.theme = group.label;
 
185
                        d.push(e);
 
186
                });
 
187
        });
 
188
        return d;
 
189
}();