zipcodes

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bairro

type Bairro struct {
	Codigo           string // BAI_NU
	UF               string // UFE_SG
	CodigoLocalidade string // LOC_NU
	Nome             string // BAI_NO
	NomeAbreviado    string // BAI_NO_ABREV
}

Bairro (LOG_BAIRRO.TXT)

type CEPCompleto

type CEPCompleto struct {
	CEP            string `json:"cep"`
	Logradouro     string `json:"logradouro"`
	Complemento    string `json:"complemento,omitempty"`
	Bairro         string `json:"bairro,omitempty"`
	Cidade         string `json:"cidade,omitempty"`
	UF             string `json:"uf,omitempty"`
	CodigoIBGE     string `json:"codigo_ibge,omitempty"`
	TipoLogradouro string `json:"tipo_logradouro,omitempty"`
	TipoOrigem     string `json:"tipo_origem,omitempty"`
	NomeOrigem     string `json:"nome_origem,omitempty"`
}

type CPC

type CPC struct {
	Codigo           string // CPC_NU
	UF               string // UFE_SG
	CodigoLocalidade string // LOC_NU
	Nome             string // CPC_NO
	Endereco         string // CPC_ENDERECO
	CEP              string // CEP
}

CPC (LOG_CPC.TXT)

type GrandeUsuario

type GrandeUsuario struct {
	Codigo           string // GRU_NU
	UF               string // UFE_SG
	CodigoLocalidade string // LOC_NU
	CodigoBairro     string // BAI_NU
	CodigoLogradouro string // LOG_NU
	Nome             string // GRU_NO
	Endereco         string // GRU_ENDERECO
	CEP              string // CEP
	NomeAbreviado    string // GRU_NO_ABREV
}

GrandeUsuario (LOG_GRANDE_USUARIO.TXT)

type Localidade

type Localidade struct {
	Codigo         string // LOC_NU
	UF             string // UFE_SG
	Nome           string // LOC_NO
	CEP            string // CEP
	Situacao       string // LOC_IN_SIT
	TipoLocalidade string // LOC_IN_TIPO_LOC
	CodigoSub      string // LOC_NU_SUB
	NomeAbreviado  string // LOC_NO_ABREV
	CodigoIBGE     string // MUN_NU
}

Localidade (LOG_LOCALIDADE.TXT)

type Logradouro

type Logradouro struct {
	Codigo           string // LOG_NU
	UF               string // UFE_SG
	CodigoLocalidade string // LOC_NU
	CodigoBairroIni  string // BAI_NU_INI
	CodigoBairroFim  string // BAI_NU_FIM
	Nome             string // LOG_NO
	Complemento      string // LOG_COMPLEMENTO
	CEP              string // CEP
	TipoLogradouro   string // TLO_TX
	UsaTipo          string // LOG_STA_TLO
	Abreviatura      string // LOG_NO_ABREV
}

Logradouro (LOG_LOGRADOURO_XX.TXT)

type ZipCodeImporter

type ZipCodeImporter struct {
	// contains filtered or unexported fields
}

func NewZipCodeImporter

func NewZipCodeImporter(logger *logger.Logger) *ZipCodeImporter

func (*ZipCodeImporter) PopulateZipcodes

func (i *ZipCodeImporter) PopulateZipcodes(dnePath string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL