1
0
Fork 0

Add country code

main
Ambrose Chua 2020-11-10 19:48:59 +08:00
parent 9cffe08a20
commit 859c303600
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ DATASETS = \
.PHONY: data
data: data/cities.json
data/cities.json: $(DATASETS) scripts/data.go
data/cities.json: $(DATASETS) scripts/data.go data/*.go
cd scripts && $(GO) run data.go
third-party/cities15000.txt:

View File

@ -232,6 +232,6 @@ d-zonefigure {
d-time {
display: block;
font-size: 2em;
font-size: 2.5em;
}

View File

@ -29,7 +29,7 @@ type Admin1 struct {
// Country represents a country
type Country struct {
// CountryRef is the ISO-3166 2-letter country code
Ref string `json:"-"`
Ref string `json:"r"`
// Name is the full UTF-8 name of the country
Name string `json:"n"`
}