Skip to content
Snippets Groups Projects
Select Git revision
  • teachers-ies
  • homologa protected
  • development protected
  • instruction_level_fix2
  • enrollment_rate
  • master default protected
  • hotfix-enrollment-aggregate
  • instruction_level_fixes
  • docentes-ies-ente-federativo
  • receita-potencial
  • #974-receita-potencial
  • db-conn
  • years-of-study-mean
  • new-indicators
  • issue_935
  • instruction_number
  • issue_958
  • issue_953
  • issues_indicadores_agregados
  • courseAggregate
  • v1.16.0
  • v1.15.1
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.14
  • v1.9.0
  • v1.8.3
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.0
  • v1.6.1
  • v1.6.0
  • v1.5.0
  • v1.4.2
  • v1.4.1
  • v1.4.0
  • v1.3.3
  • v1.3.2
40 results

capitalCode.js

Blame
  • capitalCode.js 2.13 KiB
    /*
    Copyright (C) 2024 Centro de Computacao Cientifica e Software Livre
    Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
       
    This file is part of simcaq-node.
    
    simcaq-node is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.
    
    simcaq-node is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
    along with simcaq-node.  If not, see <https://www.gnu.org/licenses/>.
    */
    
    module.exports = function capitalCode(id) {
        switch (id) {
            case 11:
            return 'Porto Velho';
            case 12:
            return 'Rio Branco';
            case 13:
            return 'Manaus';
            case 14:
            return 'Boa Vista';
            case 15:
            return 'Belém';
            case 16:
            return 'Macapá';
            case 17:
            return 'Palmas';
            case 21:
            return 'São Luís';
            case 22:
            return 'Teresina';
            case 23:
            return 'Fortaleza';
            case 24:
            return 'Natal';
            case 25:
            return 'João Pessoa';
            case 26:
            return 'Recife';
            case 27:
            return 'Maceió';
            case 28:
            return 'Aracaju';
            case 29:
            return 'Salvador';
            case 31:
            return 'Belo Horizonte';
            case 32:
            return 'Vitória';
            case 33:
            return 'Rio de Janeiro';
            case 35:
            return 'São Paulo';
            case 41:
            return 'Curitiba';
            case 42:
            return 'Florianópolis';
            case 43:
            return 'Porto Alegre';
            case 50:
            return 'Campo Grande';
            case 51:
            return 'Cuiabá';
            case 52:
            return 'Goiânia';
            case 53:
            return 'Brasília';
            case 99:
            return 'Não é capital';
            default:
            return 'Não informado';
        }
    };