Fin
Subdiv codes for Canada Provinces
  • Envoyé: 11.02.2004, 15:38
       
    vedrine
    rang:
    Site Admin Site Admin
    enregistré depuis:
     décembre 2003
    Status:
    hors ligne
    dernière visite:
    05.07.08
    Messages:
    259
    For all of you tempted by the building of a province file, I give you the subdiv codes so that you don't have to dig in the pninit.php file :

    Ontario : 111
    Quebec : 123
    British Columbia : 19
    Alberta : 3
    New Scotia : 106
    Manitoba : 79
    Saskatchwan : 127
    Newfoundland : 97
    New Brunswick : 94
    Prince Edward : 121 (under the name Prince Edward Island)
    NorthWest Territories : 104
    Nunavut : 293 (IMPORTANT see below)
    Yukon : 167 (under the name Yukon Territories)

    IMPORTANT NOTE : There is a problem for Nunavut as I can't find it in the current release. So I will add it as a new subdivision number 293.
    But if somebody build a Nunavut package it will not work until the next release if you don't add the lines
    $sql = "INSERT INTO $subdivtable VALUES('Nunavut','293','15');";
    $dbconn->Execute($sql);
    in the file pninit.php

    If You build a province package file, don't forget to put something like

    <?php

    $city_name = 'The province name';
    $city_version = 1.0;
    $subdiv_id = the subdiv code given above;
    $country_id = 8;
    $region_id = 5;
    $city_data = array();

    At the begining !!

    Good work
    If you work on a Province, post on this forum to avoid wasting your time redoing the same work several times !!
Réponse rapide
 
  • Options
Code:
Couleur de la police:  
Taille de la police: