address

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBuilding

func IsBuilding(s string) bool

IsBuilding ビルかどうか

Types

type Reader

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

Reader reads records from a CSV-encoded file.

func NewReader

func NewReader(r io.Reader) *Reader

NewReader returns a new Reader that reads from r.

func (*Reader) Read

func (reader *Reader) Read() (record []string, err error)

type Row

type Row struct {
	RegionID       string `json:"region_id"`     //  0. 全国地方公共団体コード
	Zip5           string `json:"-"`             //  1. 郵便番号(5桁)
	Zip7           string `json:"zip"`           //  2. 郵便番号(7桁)
	PrefKana       string `json:"pref_kana"`     //  3. 都道府県名(カナ)
	CityKana       string `json:"city_kana"`     //  4. 市区町村名(カナ)
	TownKana       string `json:"town_kana"`     //  5. 町域名(カナ)
	Pref           string `json:"pref"`          //  6. 都道府県名
	City           string `json:"city"`          //  7. 市区町村名
	Town           string `json:"town"`          //  8. 町域名
	IsMultiZip     string `json:"-"`             //  9. 一町域が二以上の郵便番号で表される場合の表示(1: 該当、0: 該当せず)
	HasKoazaBanchi string `json:"-"`             // 10. 小字毎に番地が起番されている町域の表示 (1: 該当、0: 該当せず)
	HasChome       string `json:"-"`             // 11. 丁目を有する町域の場合の表示 (1: 該当、0: 該当せず)
	IsMultiTown    string `json:"-"`             // 12. 一つの郵便番号で二以上の町域を表す場合の表示 (1: 該当、0:該当せず)
	UpdateStatus   string `json:"update_status"` // 13. 更新の表示 (0: 変更なし、1:変更あり、2: 廃止)
	UpdateReason   string `json:"update_reason"`
	// 14. 変更理由(0: 変更なし、1: 市政・区政・町政・分区・政令指定都市施行、2:住居表示の実施、3:区画整理、4:郵便区調整等、5:訂正、6:廃止)
	RawTown  string `json:"-"`
	PrefCode string `json:"pref_code"` // xx. 都道府県コード
}

func NewRow

func NewRow(cols []string) Row

func NewRows

func NewRows(cols []string) []Row

func (Row) Array

func (row Row) Array() []string

func (*Row) HasBrackets

func (row *Row) HasBrackets() bool

Jump to

Keyboard shortcuts

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