Select Git revision
stateName.js
-
Fernando Gbur dos Santos authoredFernando Gbur dos Santos authored
stateName.js 2.14 KiB
/*
Copyright (C) 2016 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 stateName(id) {
switch (id) {
case 11:
return 'Rondônia';
case 12:
return 'Acre';
case 13:
return 'Amazonas';
case 14:
return 'Roraima';
case 15:
return 'Pará';
case 16:
return 'Amapá';
case 17:
return 'Tocantins';
case 21:
return 'Maranhão';
case 22:
return 'Piauí';
case 23:
return 'Ceará';
case 24:
return 'Rio Grande do Norte';
case 25:
return 'Paraíba';
case 26:
return 'Pernambuco';
case 27:
return 'Alagoas';
case 28:
return 'Sergipe';
case 29:
return 'Bahia';
case 31:
return 'Minas Gerais';
case 32:
return 'Espírito Santo';
case 33:
return 'Rio de Janeiro ';
case 35:
return 'São Paulo';
case 41:
return 'Paraná';
case 42:
return 'Santa Catarina';
case 43:
return 'Rio Grande do Sul';
case 50:
return 'Mato Grosso do Sul';
case 51:
return 'Mato Grosso';
case 52:
return 'Goiás';
case 53:
return 'Distrito Federal';
case 99:
return 'Exterior';
default:
return 'Não declarada';
}
};