# Requete OSM selon nomenclature prédéfinie

On cherche à obtenir l'ensemble des ponts OSM qui correspondent à ces catégories :

\-- C : Restaurations  
('C', 'amenity', 'bar'), ('C', 'amenity', 'biergarten'), ('C', 'amenity', 'cafe'), ('C', 'amenity', 'fast\_food'),   
('C', 'amenity', 'food\_court'), ('C', 'amenity', 'ice\_cream'), ('C', 'amenity', 'pub'), ('C', 'amenity', 'restaurant'),  
\-- E : Equipements Publics  
('E', 'amenity', 'college'), ('E', 'amenity', 'dancing\_school'), ('E', 'amenity', 'driving\_school'), ('E', 'amenity', 'first\_aid\_school'),   
('E', 'amenity', 'kindergarten'), ('E', 'amenity', 'language\_school'), ('E', 'amenity', 'library'), ('E', 'amenity', 'surf\_school'),   
('E', 'amenity', 'toy\_library'), ('E', 'amenity', 'research\_institute'), ('E', 'amenity', 'training'), ('E', 'amenity', 'music\_school'),   
('E', 'amenity', 'school'), ('E', 'amenity', 'traffic\_park'), ('E', 'amenity', 'university'),  
\-- F : Services financiers  
('F', 'amenity', 'atm'), ('F', 'amenity', 'bank'),  
\-- S : Santé  
('S', 'amenity', 'clinic'), ('S', 'amenity', 'dentist'), ('S', 'amenity', 'doctors'), ('S', 'amenity', 'hospital'), ('S', 'amenity', 'pharmacy'),  
\-- L : Cultures et Loisirs  
('L', 'amenity', 'casino'), ('L', 'amenity', 'cinema'), ('L', 'amenity', 'conference\_centre'), ('L', 'amenity', 'events\_venue'),   
('L', 'amenity', 'exhibition\_centre'), ('L', 'amenity', 'gambling'), ('L', 'amenity', 'music\_venue'), ('L', 'amenity', 'nightclub'),   
('L', 'amenity', 'planetarium'), ('L', 'amenity', 'stage'), ('L', 'amenity', 'theatre'),  
\-- I : Services Publics (Note: inclut building pour horloges, gares, etc. selon votre liste)  
('I', 'amenity', 'courthouse'), ('I', 'amenity', 'police'), ('I', 'amenity', 'post\_office'), ('I', 'amenity', 'townhall'),   
('I', 'building', 'clock\_tower'), ('I', 'building', 'college'), ('I', 'building', 'government'), ('I', 'building', 'museum'), ('I', 'building', 'train\_station'),  
\-- X : Points Urbains Structurants  
('X', 'amenity', 'internet\_cafe'), ('X', 'amenity', 'marketplace'), ('X', 'amenity', 'place\_of\_worship'),  
\-- T : Bâtiments tertiaires  
('T', 'building', 'commercial'), ('T', 'building', 'kiosk'), ('T', 'building', 'office'), ('T', 'building', 'retail'), ('T', 'building', 'supermarket'),  
\-- M : Magasins (L'intégralité de votre liste Food, Mode, Beauté, Culture, Hobbies)  
('M', 'shop', 'alcohol'), ('M', 'shop', 'bakery'), ('M', 'shop', 'beverages'), ('M', 'shop', 'brewing\_supplies'), ('M', 'shop', 'butcher'),   
('M', 'shop', 'cheese'), ('M', 'shop', 'chocolate'), ('M', 'shop', 'coffee'), ('M', 'shop', 'confectionery'), ('M', 'shop', 'convenience'),   
('M', 'shop', 'dairy'), ('M', 'shop', 'deli'), ('M', 'shop', 'farm'), ('M', 'shop', 'food'), ('M', 'shop', 'frozen\_food'),   
('M', 'shop', 'greengrocer'), ('M', 'shop', 'health\_food'), ('M', 'shop', 'ice\_cream'), ('M', 'shop', 'nuts'), ('M', 'shop', 'pasta'),   
('M', 'shop', 'pastry'), ('M', 'shop', 'seafood'), ('M', 'shop', 'spices'), ('M', 'shop', 'tea'), ('M', 'shop', 'tortilla'),   
('M', 'shop', 'water'), ('M', 'shop', 'wine'), ('M', 'shop', 'department\_store'), ('M', 'shop', 'general'), ('M', 'shop', 'kiosk'),   
('M', 'shop', 'mall'), ('M', 'shop', 'supermarket'), ('M', 'shop', 'baby\_goods'), ('M', 'shop', 'bag'), ('M', 'shop', 'boutique'),   
('M', 'shop', 'clothes'), ('M', 'shop', 'fabric'), ('M', 'shop', 'fashion'), ('M', 'shop', 'fashion\_accessories'), ('M', 'shop', 'jewelry'),   
('M', 'shop', 'leather'), ('M', 'shop', 'sewing'), ('M', 'shop', 'shoes'), ('M', 'shop', 'shoe\_repair'), ('M', 'shop', 'tailor'),   
('M', 'shop', 'watches'), ('M', 'shop', 'wool'), ('M', 'shop', 'charity'), ('M', 'shop', 'second\_hand'), ('M', 'shop', 'variety\_store'),   
('M', 'shop', 'beauty'), ('M', 'shop', 'chemist'), ('M', 'shop', 'cosmetics'), ('M', 'shop', 'erotic'), ('M', 'shop', 'hairdresser'),   
('M', 'shop', 'hairdresser\_supply'), ('M', 'shop', 'hearing\_aids'), ('M', 'shop', 'herbalist'), ('M', 'shop', 'massage'), ('M', 'shop', 'medical\_supply'),   
('M', 'shop', 'nutrition\_supplements'), ('M', 'shop', 'optician'), ('M', 'shop', 'perfumery'), ('M', 'shop', 'piercing'), ('M', 'shop', 'tattoo'),   
('M', 'shop', 'florist'), ('M', 'shop', 'hardware'), ('M', 'shop', 'houseware'), ('M', 'shop', 'locksmith'), ('M', 'shop', 'antiques'),   
('M', 'shop', 'candles'), ('M', 'shop', 'carpet'), ('M', 'shop', 'curtain'), ('M', 'shop', 'furniture'), ('M', 'shop', 'household\_linen'),   
('M', 'shop', 'interior\_decoration'), ('M', 'shop', 'lighting'), ('M', 'shop', 'computer'), ('M', 'shop', 'electronics'), ('M', 'shop', 'hifi'),   
('M', 'shop', 'mobile\_phone'), ('M', 'shop', 'printer\_ink'), ('M', 'shop', 'vacuum\_cleaner'), ('M', 'shop', 'art'), ('M', 'shop', 'camera'),   
('M', 'shop', 'collector'), ('M', 'shop', 'craft'), ('M', 'shop', 'frame'), ('M', 'shop', 'games'), ('M', 'shop', 'model'),   
('M', 'shop', 'music'), ('M', 'shop', 'musical\_instrument'), ('M', 'shop', 'photo'), ('M', 'shop', 'trophy'), ('M', 'shop', 'video'),   
('M', 'shop', 'video\_games'), ('M', 'shop', 'anime'), ('M', 'shop', 'books'), ('M', 'shop', 'gift'), ('M', 'shop', 'lottery'),   
('M', 'shop', 'newsagent'), ('M', 'shop', 'stationery'), ('M', 'shop', 'ticket'), ('M', 'shop', 'cannabis'), ('M', 'shop', 'copyshop'),   
('M', 'shop', 'dry\_cleaning'), ('M', 'shop', 'e-cigarette'), ('M', 'shop', 'laundry'), ('M', 'shop', 'outpost'), ('M', 'shop', 'party'),   
('M', 'shop', 'pet'), ('M', 'shop', 'pet\_grooming'), ('M', 'shop', 'pyrotechnics'), ('M', 'shop', 'religion'), ('M', 'shop', 'tobacco'),   
('M', 'shop', 'toys'), ('M', 'shop', 'travel\_agency'), ('M', 'shop', 'weapons');

Pour cela on a besoin de l'extension QuickOSM et plus précisément de la rubrique requête de cette extension :

![image.png](https://bookstack.juxjux.ovh/uploads/images/gallery/2026-04/scaled-1680-/X4qimage-png.png)

Ensuite dans cet onglet copiez collez ce code en pensant à changer ligne 3 $commune par $Le nom de votre commune ( Par exemple : $La Ciotat). :

```
[out:json][timeout:120];
// 1. Définition de la zone de recherche
{{geocodeArea:$commune}}->.searchArea;

(
  // Catégories C, E, F, S, L, I, X (Amenity)
  node["amenity"~"bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|college|dancing_school|driving_school|first_aid_school|kindergarten|language_school|library|surf_school|toy_library|research_institute|training|music_school|school|traffic_park|university|atm|bank|clinic|dentist|doctors|hospital|pharmacy|casino|cinema|conference_centre|events_venue|exhibition_centre|gambling|music_venue|nightclub|planetarium|stage|theatre|courthouse|police|post_office|townhall|internet_cafe|marketplace|place_of_worship"](area.searchArea);
  way["amenity"~"bar|biergarten|cafe|fast_food|food_court|ice_cream|pub|restaurant|college|dancing_school|driving_school|first_aid_school|kindergarten|language_school|library|surf_school|toy_library|research_institute|training|music_school|school|traffic_park|university|atm|bank|clinic|dentist|doctors|hospital|pharmacy|casino|cinema|conference_centre|events_venue|exhibition_centre|gambling|music_venue|nightclub|planetarium|stage|theatre|courthouse|police|post_office|townhall|internet_cafe|marketplace|place_of_worship"](area.searchArea);
  
  // Catégories I, T (Building)
  node["building"~"clock_tower|college|government|museum|train_station|commercial|kiosk|office|retail|supermarket"](area.searchArea);
  way["building"~"clock_tower|college|government|museum|train_station|commercial|kiosk|office|retail|supermarket"](area.searchArea);

  // Catégorie M (Shop) - On prend tous les commerces pour être exhaustif
  node["shop"](area.searchArea);
  way["shop"](area.searchArea);
);

// Sortie des données
out body;
>;
out skel qt;
```

Exécutez la requête et maintenant vous n'avez plus qu'à convertir votre couche temporaire en couche définitive puis la transmettre via PuTTY pour pouvoir l'exploiter en VPS.