-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
49 lines (46 loc) · 1.72 KB
/
models.go
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package yaddress
type Address struct {
ErrorCode int `json:"ErrorCode"`
ErrorMessage string `json:"ErrorMessage"`
AddressLine1 string `json:"AddressLine1"`
AddressLine2 string `json:"AddressLine2"`
Number string `json:"Number"`
PreDir string `json:"PreDir"`
Street string `json:"Street"`
Suffix string `json:"Suffix"`
PostDir string `json:"PostDir"`
Sec string `json:"Sec"`
SecNumber string `json:"SecNumber"`
SecValidated bool `json:"SecValidated"`
City string `json:"City"`
State string `json:"State"`
Zip string `json:"Zip"`
Zip4 string `json:"Zip4"`
County string `json:"County"`
UspsCarrierRoute string `json:"UspsCarrierRoute"`
StateFP string `json:"StateFP"`
CountyFP string `json:"CountyFP"`
CensusTract string `json:"CensusTract"`
CensusBlock string `json:"CensusBlock"`
Latitude float32 `json:"Latitude"`
Longitude float32 `json:"Longitude"`
GeoPrecision int `json:"GeoPrecision"`
TimeZoneOffset int `json:"TimeZoneOffset"`
DstObserved bool `json:"DstObserved"`
PlaceFP int `json:"PlaceFP"`
CityMunicipality string `json:"CityMunicipality"`
SalesTaxRate float32 `json:"SalesTaxRate"`
SalesTaxJurisdiction int `json:"SalesTaxJurisdiction"`
}
type Request struct {
AddressLine1 string
AddressLine2 string
}
// YaddressResponse
type YaddressResult struct {
Result Address
Debug struct {
ErrorCode int
ErrorMessage string
}
}