30 lines
827 B
Go
30 lines
827 B
Go
package map_info
|
|
|
|
type MapJSONData struct {
|
|
Status int `json:"status"`
|
|
Message string `json:"message"`
|
|
Result MapResult `json:"result"`
|
|
}
|
|
type MapLocation struct {
|
|
Lat float64 `json:"lat"`
|
|
Lng float64 `json:"lng"`
|
|
}
|
|
type MapPoi struct {
|
|
Name string `json:"name"`
|
|
Location MapLocation `json:"location"`
|
|
UID string `json:"uid"`
|
|
Province string `json:"province"`
|
|
City string `json:"city"`
|
|
District string `json:"district"`
|
|
Business string `json:"business"`
|
|
Cityid string `json:"cityid"`
|
|
Tag string `json:"tag"`
|
|
Address string `json:"address"`
|
|
Children []interface{} `json:"children"`
|
|
Adcode string `json:"adcode"`
|
|
}
|
|
type MapResult struct {
|
|
Q string `json:"q"`
|
|
PoiList []MapPoi `json:"poi_list"`
|
|
}
|