Add country code
parent
9cffe08a20
commit
859c303600
2
Makefile
2
Makefile
|
@ -32,7 +32,7 @@ DATASETS = \
|
||||||
.PHONY: data
|
.PHONY: data
|
||||||
data: data/cities.json
|
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
|
cd scripts && $(GO) run data.go
|
||||||
|
|
||||||
third-party/cities15000.txt:
|
third-party/cities15000.txt:
|
||||||
|
|
|
@ -232,6 +232,6 @@ d-zonefigure {
|
||||||
d-time {
|
d-time {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
||||||
font-size: 2em;
|
font-size: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ type Admin1 struct {
|
||||||
// Country represents a country
|
// Country represents a country
|
||||||
type Country struct {
|
type Country struct {
|
||||||
// CountryRef is the ISO-3166 2-letter country code
|
// 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 is the full UTF-8 name of the country
|
||||||
Name string `json:"n"`
|
Name string `json:"n"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue