Commit 78ab744f authored by Adrien Pavie's avatar Adrien Pavie
Browse files

Add contact columns in various themes

parent a0647cd5
......@@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Theme for cinemas
### Changed
- Added contact information in various themes (cinema, hosting, public_service, restaurant, shop_craft_office, toilets)
### Fixed
- URL in metadata file for dump exports
......
......@@ -10,7 +10,7 @@ SELECT
t.tags->'cinema:3D' AS cinema3d, t.tags->'screen' AS nb_screens,
t.tags->'capacity' AS capacity, t.tags->'acoustic' AS acoustic,
COALESCE(t.tags->'website', t.tags->'brand:website') AS website,
t.tags->'phone' AS phone,
t.tags->'phone' AS phone, t.tags->'facebook' AS facebook,
COALESCE(t.tags->'wikidata', t.tags->'brand:wikidata') AS wikidata, t.tags->'ref:FR:SIRET' AS siret,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
......
......@@ -7,6 +7,7 @@ SELECT
t.tags->'opening_hours:reception' AS reception_opening_hours, t.tags->'stars' AS stars,
t.tags->'rooms' AS rooms, t.tags->'beds' AS beds, t.internet_access, t.tags->'camp_site' AS camp_site,
t.tags->'fee' AS fee, t.tags->'capacity' AS capacity,
t.tags->'website' AS website, t.tags->'phone' AS phone, t.tags->'facebook' AS facebook, t.tags->'email' AS email,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
WHERE t.tourism IN ('hotel', 'chalet', 'guest_house', 'apartment', 'hostel', 'motel', 'wilderness_hut', 'alpine_hut', 'camp_site', 'caravan_site') AND <GEOMCOND>
......@@ -3,7 +3,7 @@
SELECT
<OSMID> as osm_id, COALESCE(t.amenity, t.office) AS type, t.tags->'name' AS name, t.tags->'operator' AS operator,
t.wheelchair, t.tags->'opening_hours' AS opening_hours,
t.wheelchair, t.tags->'opening_hours' AS opening_hours, t.tags->'phone' AS phone, t.tags->'email' AS email,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
WHERE (t.amenity IN ('embassy', 'public_building', 'townhall') OR t.office IN ('diplomatic', 'government')) AND <GEOMCOND>
......@@ -7,6 +7,7 @@ SELECT
t.wheelchair, t.tags->'cuisine' AS cuisine, t.tags->'delivery' AS delivery, t.tags->'takeaway' AS takeaway,
t.tags->'stars' AS stars, t.tags->'capacity' AS capacity, t.tags->'drive_through' AS drive_through,
t.tags->'wikidata' AS wikidata, t.tags->'brand:wikidata' AS brand_wikidata, t.tags->'ref:FR:SIRET' AS siret,
t.tags->'phone' AS phone, t.tags->'website' AS website, t.tags->'facebook' AS facebook,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
WHERE t.amenity IN ('bar', 'biergarten', 'cafe', 'fast_food', 'food_court', 'ice_cream', 'pub', 'restaurant') AND <GEOMCOND>
......@@ -6,6 +6,7 @@ SELECT
t.tags->'brand' AS brand, t.tags->'operator' AS operator, t.wheelchair,
t.tags->'opening_hours' AS opening_hours, t.tags->'level' AS level, t.tags->'ref:FR:SIRET' AS siret,
t.tags->'wikidata' AS wikidata, t.tags->'brand:wikidata' AS brand_wikidata,
COALESCE(t.tags->'website', t.tags->'brand:website') AS website, t.tags->'phone' AS phone, t.tags->'email' AS email, t.tags->'facebook' AS facebook,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
WHERE (t.shop IS NOT NULL OR t.craft IS NOT NULL OR t.office IS NOT NULL) AND <GEOMCOND>
......@@ -19,7 +19,7 @@ SELECT
t.tags->'toilets:disposal' AS toilets_disposal,
t.tags->'toilets:position' AS toilets_position,
t.tags->'toilets:paper_supplied' AS paper_supplied,
t.tags->'toilets:handwashing' AS handwashing,
COALESCE(t.tags->'toilets:handwashing', t.tags->'handwashing') AS handwashing,
t.tags->'changing_table' AS changing_table,
<ADM8REF> AS com_insee, <ADM8NAME> AS com_nom, <GEOM>
FROM <TABLE>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment