Skip to content

Commit a82b5f9

Browse files
committed
Add JSON tags to the location types
1 parent e752588 commit a82b5f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ func (p TalkPreviews) Swap(i, j int) {
150150
type Location struct {
151151
// RequestedAddress is populated from the original "requested" address mentioned in the
152152
// talk description (e.g. "TUAS-talo, Aalto University")
153-
RequestedAddress string
153+
RequestedAddress string `json:"requestedAddress"`
154154

155155
// ResolvedAddress is populated by the Google Maps Geocoding API, and is the official street address
156156
// (or similar) of the place. In the above example: "Maarintie 8, 02150 Espoo, Finland"
157-
ResolvedAddress string
157+
ResolvedAddress string `json:"resolvedAddress"`
158158

159159
// Lat describes the latitude of the location
160-
Lat float64
160+
Lat float64 `json:"lat"`
161161

162162
// Lng describes the longitude of the location
163-
Lng float64
163+
Lng float64 `json:"lng"`
164164
}

0 commit comments

Comments
 (0)