|
@@ -1211,18 +1211,18 @@ func (e *ExtractTask) initDistricts(jc_province string, qc_city string, c *City,
|
|
|
e.NewStreetDistrictMap[strvtown] = append(e.NewStreetDistrictMap[strvtown], d)
|
|
|
}
|
|
|
//村、居委会
|
|
|
- jwhs := jwhs_maps[jc_province][qc_city][qc_district][strvtown]
|
|
|
- for _, vjwh := range jwhs {
|
|
|
- strvillage := qu.ObjToString(vjwh["village"])
|
|
|
- e.Trie_Full_Community.AddWords(strvillage) //加入居委会、村全称Trie
|
|
|
- cttmp := e.CommunityDistrictMap[strvillage]
|
|
|
- if len(cttmp) == 0 {
|
|
|
- tmpdarr := []*District{d}
|
|
|
- e.CommunityDistrictMap[strvillage] = tmpdarr
|
|
|
- } else {
|
|
|
- e.CommunityDistrictMap[strvillage] = append(e.CommunityDistrictMap[strvillage], d)
|
|
|
- }
|
|
|
- }
|
|
|
+ // jwhs := jwhs_maps[jc_province][qc_city][qc_district][strvtown]
|
|
|
+ // for _, vjwh := range jwhs {
|
|
|
+ // strvillage := qu.ObjToString(vjwh["village"])
|
|
|
+ // e.Trie_Full_Community.AddWords(strvillage) //加入居委会、村全称Trie
|
|
|
+ // cttmp := e.CommunityDistrictMap[strvillage]
|
|
|
+ // if len(cttmp) == 0 {
|
|
|
+ // tmpdarr := []*District{d}
|
|
|
+ // e.CommunityDistrictMap[strvillage] = tmpdarr
|
|
|
+ // } else {
|
|
|
+ // e.CommunityDistrictMap[strvillage] = append(e.CommunityDistrictMap[strvillage], d)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
}
|