-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update country data * Fix compilation errors (#22) * Add to Country.Utils * Fix loading Countries after the structure of the data file has been updated * Update Country fields to match the new data structure * Fix tests * Add Country.Subdivision struct * Return Country.Subdivision instead of nested tuples
- Loading branch information
1 parent
c7317b8
commit 078374e
Showing
458 changed files
with
196,355 additions
and
7,126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
defmodule Countries.Country do | ||
defstruct [:number, :alpha2, :alpha3, :currency, :name, :names, | ||
:latitude, :longitude, :continent, :region, :subregion, | ||
defstruct [:number, :alpha2, :alpha3, :currency, :name, :unofficial_names, | ||
:continent, :region, :subregion, :geo, | ||
:world_region, :country_code, :national_destination_code_lengths, | ||
:national_number_lengths, :international_prefix, :national_prefix, | ||
:address_format, :ioc, :gec, :un_locode, :languages, :nationality, | ||
:ioc, :gec, :un_locode, :languages_official, :languages_spoken, :nationality, | ||
:address_format, :dissolved_on, :eu_member, :alt_currency, :vat_rates, | ||
:postal_code, :min_longitude, :min_latitude, :max_longitude, :max_latitude, | ||
:latitude_dec, :longitude_dec] | ||
:postal_code, :currency_code] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.