-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparcel.go
59 lines (56 loc) · 2.02 KB
/
parcel.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
50
51
52
53
54
55
56
57
58
59
package scoutred
import (
"time"
"github.com/scoutred/scoutred-go/geojson"
)
type Parcel struct {
ID *int64 `json:"id"`
StateFIPSCode *string `json:"stateFIPS"`
CountyFIPSCode *string `json:"countyFIPS"`
// assessor parcel number
APN *string `json:"apn"`
Address *Address `json:"address"`
Owner struct {
Name1 *string `json:"name1"`
Name2 *string `json:"name2"`
Name3 *string `json:"name3"`
Address1 *string `json:"address1"`
Address2 *string `json:"address2"`
Address3 *string `json:"address3"`
Address4 *string `json:"address4"`
Postal *string `json:"postal"`
} `json:"owner"`
LegalDescription *string `json:"legalDescription"`
Subdivision struct {
Name *string `json:"name"`
Map *string `json:"map"`
} `json:"subdivision"`
Assessor struct {
Land *int32 `json:"land"`
Improvements *int32 `json:"improvements"`
} `json:"assessor"`
Structure struct {
ConstructionYear *int32 `json:"effectiveYearBuilt"`
SFLiving *int32 `json:"livingSF"`
SFUsable *int32 `json:"usableSF"`
Units *int32 `json:"units"`
Bedrooms *int32 `json:"bedrooms"`
Bathrooms *float64 `json:"bathrooms"`
} `json:"structure"`
// the area of the geometry representation of the parcel
// this can be used for lot size, but is not the recorded lot size
// but rather the area of the geometry in the projection it was created in
GeomArea *float64 `json:"geomArea"`
// State State `json:"state"`
// County County `json:"county"`
CommunityPlan *CommunityPlan `json:"communityPlan"`
Zoning []Zoning `json:"zoning"`
Overlays []Overlay `json:"overlays"`
Permits []Permit `json:"permits"`
Bounds geojson.Polygon `json:"bounds"`
Geohash *string `json:"geohash"`
Created time.Time `json:"created"`
Updated time.Time `json:"updated"`
Unlocked bool `json:"unlocked"`
Collections []Collection `json:"collections"`
}