SPB Git

Repository Public

locations.ts 6.4 KB 92 lines typescript

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project          : Vrai-Prix8 * File             : src/lib/cost/seed/locations.ts9 * Module           : lib10 * Repository       : https://git.spboucher.ai/vrai-prix11 * Created          : 2026-09-0812 * Last Modified    : 2026-09-0813 *14 * Author           : Simon-Pierre Boucher15 * Position         : Professor of Finance16 * Institution      : Université du Québec en Outaouais (UQO)17 * Organization     : SP Boucher18 * Website          : https://spboucher.ai19 * Git              : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development      : dev@spboucher.ai23 * Support          : support@spboucher.ai24 * Security/Admin   : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License          : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142/**43 * Facteurs de localisation du Québec (cost_locations). Module PUR.44 *45 * Main-d'œuvre : les conventions collectives de l'industrie de la construction46 * (Loi R-20, CCQ) fixent des taux UNIFORMES pour tout le Québec ; seuls les47 * chantiers isolés / Baie-James / Nunavik ont des grilles distinctes (APCHQ48 * publie ces grilles). Le facteur main-d'œuvre est donc 1,00 partout, sauf49 * régions éloignées (primes d'éloignement, hébergement — hypothèse).50 *51 * Matériaux / équipement : surcoût de transport et de disponibilité par52 * rapport à Montréal (référence 1,00) — HYPOTHÈSES documentées,53 * modifiables en base ; aucun indice public ne publie de facteur municipal.54 */55import type { CostLocation } from "../types";5657export interface LocationSeed extends Omit<CostLocation, "effectiveDate" | "sourceMethod" | "confidence"> {58  /** centre approximatif pour l'affectation par distance */59  lat: number;60  lng: number;61  /** rayon (km) à l'intérieur duquel une propriété est affectée à ce centre */62  radiusKm: number;63  /** municipalités affectées explicitement (nom MAMH) */64  municipalities: string[];65}6667const L = (code: string, fr: string, en: string, region: string, m: number, l: number, e: number, lat: number, lng: number, radiusKm: number, municipalities: string[] = []): LocationSeed => ({68  code, nameFr: fr, nameEn: en, regionCode: region,69  materialFactor: m, labourFactor: l, equipmentFactor: e,70  overallFactor: Math.round((0.5 * m + 0.42 * l + 0.08 * e) * 1000) / 1000,71  lat, lng, radiusKm, municipalities,72});7374export const LOCATION_SEEDS: LocationSeed[] = [75  L("QC-MTL", "Montréal", "Montréal", "06", 1.0, 1.0, 1.0, 45.5019, -73.5674, 25, ["Montréal", "Westmount", "Mont-Royal", "Côte-Saint-Luc", "Hampstead", "Montréal-Est", "Montréal-Ouest", "Dorval", "Pointe-Claire", "Kirkland", "Beaconsfield", "Dollard-Des Ormeaux", "Sainte-Anne-de-Bellevue", "Baie-D'Urfé", "Senneville"]),76  L("QC-LAV", "Laval", "Laval", "13", 1.0, 1.0, 1.0, 45.6066, -73.7124, 15, ["Laval"]),77  L("QC-LNG", "Longueuil et Rive-Sud", "Longueuil and South Shore", "16", 1.0, 1.0, 1.0, 45.5312, -73.5181, 30, ["Longueuil", "Brossard", "Boucherville", "Saint-Lambert", "Saint-Bruno-de-Montarville", "Sainte-Julie", "Chambly", "La Prairie", "Candiac", "Saint-Constant", "Châteauguay", "Beloeil", "Saint-Hubert"]),78  L("QC-LAU-LAN", "Laurentides — Lanaudière (couronne nord)", "Laurentians — Lanaudière (north shore)", "15", 1.01, 1.0, 1.01, 45.75, -73.75, 60, ["Terrebonne", "Repentigny", "Mascouche", "Blainville", "Mirabel", "Saint-Jérôme", "Boisbriand", "Sainte-Thérèse", "Saint-Eustache", "Deux-Montagnes", "L'Assomption", "Joliette"]),79  L("QC-QUE", "Québec", "Québec City", "03", 1.01, 1.0, 1.0, 46.8139, -71.208, 30, ["Québec", "L'Ancienne-Lorette", "Saint-Augustin-de-Desmaures"]),80  L("QC-LEV", "Lévis — Chaudière-Appalaches", "Lévis — Chaudière-Appalaches", "12", 1.02, 1.0, 1.01, 46.7382, -71.2465, 40, ["Lévis", "Saint-Georges", "Thetford Mines", "Montmagny", "Sainte-Marie"]),81  L("QC-GAT", "Gatineau — Outaouais", "Gatineau — Outaouais", "07", 1.02, 1.0, 1.01, 45.4765, -75.7013, 40, ["Gatineau", "Chelsea", "Cantley", "Val-des-Monts", "L'Ange-Gardien", "Pontiac"]),82  L("QC-SHE", "Sherbrooke — Estrie", "Sherbrooke — Eastern Townships", "05", 1.02, 1.0, 1.01, 45.4042, -71.8929, 50, ["Sherbrooke", "Magog", "Granby", "Cowansville", "Coaticook"]),83  L("QC-TRV", "Trois-Rivières — Mauricie — Centre-du-Québec", "Trois-Rivières — Mauricie — Centre-du-Québec", "04", 1.02, 1.0, 1.01, 46.3432, -72.5477, 60, ["Trois-Rivières", "Shawinigan", "Drummondville", "Victoriaville", "Bécancour", "Nicolet"]),84  L("QC-SAG", "Saguenay — Lac-Saint-Jean", "Saguenay — Lac-Saint-Jean", "02", 1.04, 1.0, 1.03, 48.4284, -71.0683, 90, ["Saguenay", "Alma", "Roberval", "Dolbeau-Mistassini", "Saint-Félicien"]),85  L("QC-BSL", "Bas-Saint-Laurent", "Lower Saint Lawrence", "01", 1.04, 1.0, 1.03, 48.4489, -68.523, 100, ["Rimouski", "Rivière-du-Loup", "Matane", "La Pocatière", "Amqui"]),86  L("QC-ABT", "Abitibi-Témiscamingue", "Abitibi-Témiscamingue", "08", 1.06, 1.02, 1.05, 48.2354, -79.0227, 150, ["Rouyn-Noranda", "Val-d'Or", "Amos", "La Sarre", "Ville-Marie"]),87  L("QC-CDN", "Côte-Nord", "North Shore", "09", 1.08, 1.03, 1.06, 49.2181, -68.1518, 250, ["Baie-Comeau", "Sept-Îles", "Port-Cartier", "Forestville"]),88  L("QC-GIM", "Gaspésie — Îles-de-la-Madeleine", "Gaspésie — Magdalen Islands", "11", 1.07, 1.02, 1.05, 48.8323, -64.4896, 200, ["Gaspé", "Chandler", "Percé", "Sainte-Anne-des-Monts", "Carleton-sur-Mer", "Les Îles-de-la-Madeleine"]),89  L("QC-NDQ", "Nord-du-Québec", "Northern Québec", "10", 1.2, 1.12, 1.15, 51.5, -76.0, 600, ["Chibougamau", "Lebel-sur-Quévillon", "Matagami", "Chapais"]),90  L("QC-RUR", "Québec — autres régions (rural)", "Québec — other regions (rural)", "00", 1.03, 1.0, 1.02, 46.5, -72.0, 0),91];92
Files main
Menu

Theme