Skip to content

Commit 4b26513

Browse files
authored
Merge pull request #12 from sepehrsoh/feat/search-city-detail
update search city details
2 parents 60037c6 + 60c3ca4 commit 4b26513

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

services/search/models.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ type City struct {
99
Longitude float64 `json:"longitude"`
1010
}
1111
Description string `json:"description"`
12+
Metadata struct {
13+
CityDetail struct {
14+
CityId int64 `json:"city_id"`
15+
DistrictId int64 `json:"district_id"`
16+
HexagonId int64 `json:"hexagon_id"`
17+
} `json:"city_detail"`
18+
} `json:"metadata"`
1219
}
1320

1421
// Result is the struct for search candidate of a place

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.22"
6+
Version = "v0.9.24"
77
UserAgentHeader = "User-Agent"
88
)
99

0 commit comments

Comments
 (0)