-
Notifications
You must be signed in to change notification settings - Fork 10
/
AddressService.js
executable file
·32 lines (30 loc) · 1.15 KB
/
AddressService.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(function(){
'use strict';
AddressService.$inject = [];
function AddressService(){
return {
everyUf: ['AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PA', 'PB', 'PE', 'PI', 'PR',
'RJ', 'RN', 'RR', 'RS', 'SC', 'SE', 'SP', 'TO'],
everyLogradouro: [ 'Outros', 'Aeroporto', 'Alameda', 'Área', 'Avenida', 'Campo', 'Chácara', 'Colônia', 'Condomínio', 'Conjunto', 'Distrito',
'Esplanada', 'Estação', 'Estrada', 'Favela', 'Fazenda', 'Feira', 'Jardim', 'Ladeira', 'Largo', 'Lago', 'Lagoa', 'Loteamento',
'Núcleo', 'Parque', 'Passarela', 'Pátio', 'Praça', 'Quadra', 'Recanto', 'Residencial', 'Rodovia', 'Rua', 'Setor', 'Sítio',
'Travessa', 'Trevo', 'Trecho', 'Vale', 'Vereda', 'Via', 'Viaduto', 'Viela', 'Via'],
availableCountries: ['Brasil'],
returnFormattedObject: function(){
return {
zipCode : null,
premisseType: null,
premisse: null,
number: null,
information: null,
neighbourhood: null,
localization: null,
state: null,
country: null
}
}
}
}
angular.module('gumga.services.address',[])
.factory('GumgaAddressService',AddressService);
})();