-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddress.go
33 lines (29 loc) · 1016 Bytes
/
address.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
package scoutred
import (
"time"
"github.com/scoutred/scoutred-go/geojson"
)
type Address struct {
ID *int64 `json:"id"`
ParcelID *int64 `json:"parcelId"`
APN *string `json:"apn"`
APNFmt *string `json:"apnFmt"`
Full *string `json:"full"`
Street Street `json:"street"`
Unit *string `json:"unit"`
Postal *string `json:"postal"`
Jurisdiction *string `json:"jurisdiction"`
State *string `json:"state"`
Country *string `json:"country"`
Geom *geojson.Point `json:"geom"`
Created *time.Time `json:"created"`
Updated *time.Time `json:"updated"`
}
type Street struct {
Number *int32 `json:"number"`
NumberFraction *string `json:"numberFraction"`
PreDirection *string `json:"preDirection"`
Name *string `json:"name"`
Suffix *string `json:"suffix"`
PostDirection *string `json:"postDirection"`
}