Skip to content

Commit 2554b7e

Browse files
authored
Merge pull request #15 from sepehrsoh/fix/city-search
- Fix city search response unmarshalling bug
2 parents 8dc28cc + 91c6d04 commit 2554b7e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

services/search/models.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ package search
22

33
// City is the struct for city candidate in city search
44
type City struct {
5-
ID int `json:"id"`
6-
Name string `json:"name"`
7-
Cetroid struct {
8-
Latitude float64 `json:"latitude"`
9-
Longitude float64 `json:"longitude"`
10-
}
5+
ID int `json:"id"`
6+
Name string `json:"name"`
7+
Centroid struct {
8+
Latitude string `json:"latitude"`
9+
Longitude string `json:"longitude"`
10+
} `json:"centroid"`
1111
Description string `json:"description"`
1212
Metadata struct {
1313
CityDetail struct {

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package version
33
import "fmt"
44

55
const (
6-
Version = "v0.9.25"
6+
Version = "v0.9.26"
77
UserAgentHeader = "User-Agent"
88
)
99

0 commit comments

Comments
 (0)