-
Notifications
You must be signed in to change notification settings - Fork 0
/
formatOutputRaw.go
154 lines (151 loc) · 7.28 KB
/
formatOutputRaw.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
package search
type output struct {
Cat1 cat1 `json:"cat1"`
}
type cat1 struct {
SearchResults searchResults `json:"searchResults"`
}
type searchResults struct {
ListResults []ListResult `json:"listResults"`
MapResults []MapResult `json:"mapResults"`
}
type ListResult struct {
Zpid string `json:"zpid"`
ID string `json:"id"`
HasImage bool `json:"hasImage"`
AvailabilityCount int `json:"availabilityCount"`
ImgSrc string `json:"imgSrc"`
StatusText string `json:"statusText"`
Address string `json:"address"`
AddressStreet string `json:"addressStreet"`
AddressCity string `json:"addressCity"`
AddressState string `json:"addressState"`
AddressZipcode string `json:"addressZipcode"`
Area int64 `json:"area"`
IsUndisclosedAddress bool `json:"isUndisclosedAddress"`
StatusType string `json:"statusType"`
DetailUrl string `json:"detailUrl"`
Price string `json:"price"`
CountryCurrency string `json:"countryCurrency"`
UnformattedPrice int `json:"unformattedPrice"`
LatLong LatLong `json:"latLong"`
BuildingName string `json:"buildingName"`
IsZillowOwned bool `json:"isZillowOwned"`
IsUserClaimingOwner bool `json:"isUserClaimingOwner"`
BrokerName string `json:"brokerName"`
IsUserConfirmedClaim bool `json:"isUserConfirmedClaim"`
Relaxed bool `json:"relaxed"`
HdpData HDPData `json:"hdpData"`
Units []Unit `json:"units"`
LotId int64 `json:"lotId"`
CarouselPhotos []CarouselPhoto `json:"carouselPhotos"`
}
type Unit struct {
Price string `json:"price"`
Beds string `json:"beds"`
ForRent bool `json:"roomForRent"`
}
type LatLong struct {
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
}
type CarouselPhoto struct {
URL string `json:"url"`
}
type HDPData struct {
HomeInfo HomeInfo `json:"homeInfo"`
}
type HomeInfo struct {
Zpid int64 `json:"zpid"`
PriceReduction string `json:"priceReduction"`
PriceChange float32 `json:"priceChange"`
StreetAddress string `json:"streetAddress"`
Zipcode string `json:"zipcode"`
City string `json:"city"`
State string `json:"state"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Price float32 `json:"price"`
Bathrooms float32 `json:"bathrooms"`
Bedrooms float32 `json:"bedrooms"`
LivingArea float32 `json:"livingArea"`
HomeType string `json:"homeType"`
HomeStatus string `json:"homeStatus"`
DaysOnZillow int `json:"daysOnZillow"`
IsFeatured bool `json:"isFeatured"`
ShouldHighlight bool `json:"shouldHighlight"`
Zestimate int `json:"zestimate"`
TaxAssessedValue float64 `json:"taxAssessedValue"`
RentZestimate int `json:"rentZestimate"`
ListingSubType ListingSubType `json:"listing_sub_type"`
IsUnmappable bool `json:"isUnmappable"`
IsPreforeclosureAuction bool `json:"isPreforeclosureAuction"`
HomeStatusForHDP string `json:"homeStatusForHDP"`
PriceForHDP float32 `json:"priceForHDP"`
TimeOnZillow int64 `json:"timeOnZillow"`
IsNonOwnerOccupied bool `json:"isNonOwnerOccupied"`
IsPremierBuilder bool `json:"isPremierBuilder"`
IsZillowOwned bool `json:"isZillowOwned"`
Currency string `json:"currency"`
Country string `json:"country"`
LotAreaValue float32 `json:"lotAreaValue"`
LotAreaUnit string `json:"lotAreaUnit"`
IsShowcaseListing bool `json:"isShowcaseListing"`
}
type ListingSubType struct {
IsFSBA *bool `json:"is_FSBA"`
IsFSBO *bool `json:"is_FSBO"`
IsPending *bool `json:"is_pending"`
IsNewHome *bool `json:"is_newHome"`
IsForeclosure *bool `json:"is_foreclosure"`
IsBankOwned *bool `json:"is_bankOwned"`
IsForAuction *bool `json:"is_forAuction"`
IsOpenHouse *bool `json:"is_openHouse"`
IsComingSoon *bool `json:"is_comingSoon"`
}
type MapResult struct {
Zpid string `json:"zpid"`
Plid string `json:"plid"`
BuildingName string `json:"buildingName"`
BuildingId string `json:"buildingId"`
IsBuilding bool `json:"isBuilding"`
CanSaveBuilding bool `json:"canSaveBuilding"`
RawHomeStatusCd string `json:"rawHomeStatusCd"`
RentalMarketingSubType string `json:"rentalMarketingSubType"`
MarketingStatusSimplifiedCd string `json:"marketingStatusSimplifiedCd"`
ImgSrc string `json:"imgSrc"`
LotId int64 `json:"lotId"`
UnitCount int64 `json:"unitCount"`
MinBeds float32 `json:"minBeds"`
MinBaths float32 `json:"minBaths"`
MinArea float32 `json:"minArea"`
HasImage bool `json:"hasImage"`
DetailUrl string `json:"detailUrl"`
StatusType string `json:"statusType"`
StatusText string `json:"statusText"`
Price string `json:"price"`
PriceLabel string `json:"priceLabel"`
Address string `json:"address"`
Beds int `json:"beds"`
Baths float64 `json:"baths"`
Area int `json:"area"`
LatLong LatLong `json:"latLong"`
HDPData HDPData `json:"hdpData"`
IsUserClaimingOwner bool `json:"isUserClaimingOwner"`
IsUserConfirmedClaim bool `json:"isUserConfirmedClaim"`
Pgapt string `json:"pgapt"`
Sgapt string `json:"sgapt"`
ShouldShowZestimateAsPrice bool `json:"shouldShowZestimateAsPrice"`
Has3DModel bool `json:"has3DModel"`
HasVideo bool `json:"hasVideo"`
IsHomeRec bool `json:"isHomeRec"`
HasAdditionalAttributions bool `json:"hasAdditionalAttributions"`
IsFeaturedListing bool `json:"isFeaturedListing"`
IsShowcaseListing bool `json:"isShowcaseListing"`
ListingType string `json:"listingType"`
IsFavorite bool `json:"isFavorite"`
Visited bool `json:"visited"`
Info3String string `json:"info3String"`
BrokerName string `json:"brokerName"`
TimeOnZillow int64 `json:"timeOnZillow"`
}