Add counties to output (% of ride spent in each county)

This commit is contained in:
Ray Miller 2020-10-31 16:17:36 +00:00
parent f0b45fd4c6
commit 340612e566
7 changed files with 47 additions and 24 deletions

View file

@ -24,12 +24,13 @@ func main() {
os.Args[1],
func(r *openname.Record) error {
b := placenames.NamedBoundary{
Name: r.Name,
Type: r.LocalType,
Xmin: r.MbrXMin,
Ymin: r.MbrYMin,
Xmax: r.MbrXMax,
Ymax: r.MbrYMax}
Name: r.Name,
Type: r.LocalType,
County: r.CountyUnitary,
Xmin: r.MbrXMin,
Ymin: r.MbrYMin,
Xmax: r.MbrXMax,
Ymax: r.MbrYMax}
return enc.Encode(b)
},
openname.FilterType("populatedPlace"),