Skip to content

Releases: blongho/worldCountryData

Get more Country info - population, surface area, capital city...

13 May 10:19
Compare
Choose a tag to compare

Do you want to know the most populated country in the world or the smallest country of the world or you are planning on a vacation and you want to know the main city (capital city)?

In this release, you are now able to do the following

get the country population
get the capital city of the country
get the surface area of the country
get the continent of a country
==> Check the java documentation for more https://blongho.github.io/world-country-data/
Report any bugs by creating an issue

In the future release, it will be possible to get the cities (all major cities) of any country and more more...

Get capitals of all countries as well as their population

10 May 23:45
Compare
Choose a tag to compare

Do you want to know the most populated country in the world or the smallest country of the world or you are planning on a vacation and you want to know the main city (capital city)?

In this release, you are now able to do the following

  • get the country population
  • get the capital city of the country
  • get the surface area of the country
  • get the continent of a country

==> Check the java documentation for more https://blongho.github.io/world-country-data/doc/

This is a pre-release, it has not been thoroughly tested. Report any bugs by creating an issue

In the future release, it will be possible to get the cities (all major cities) of any country and more more...

Get currency for each country

14 Mar 22:14
Compare
Choose a tag to compare

Changes made

  1. Changed library package from countryFlags to country_data.
    The latter better conveys the information contained in the library.
    The former had only country flags as extra information apart from the
    country identifiers. This version and upcoming versions will have more
    information about a country.
  2. Cleaned code base and improve documentation

The current version have the currency for each country. Subsequent
versions will have more country data

Get list of currencies of the world

11 Mar 05:29
Compare
Choose a tag to compare

In this version, it is now possible to get the list of currencies of the world

World.init(getApplicationContext()); // initialize data
List<Currency> currencies = World.getAllCurrencies()
// Currency [country=NZ, name=New Zealand Dollars, code=NZD, symbol=$]

Get Country currency

08 Mar 17:17
Compare
Choose a tag to compare

In this release, one a Country also has a Currency

Get the currency from a country by calling

World.init(getApplicationContext());
Country cameroon = World.getCountryFrom("cm");
Currency curr = cameroon.getCurrency();

Get countries of the world, and their flags as well as country codes

05 Mar 00:11
Compare
Choose a tag to compare

This release is provides a more intuitive interface for the user.

Major changes include:

  1. Removal of ability of user to create a country in their app.
    In real world, countries are not created like that.

2.To get a country, a user has to know any of the four identifiers of the country

  • The country name eg Sweden
  • The country numeric code eg 752
  • The alpha2 of the country eg "se"
  • The alpha3 of the country eg "swe"

With these, Sweden can be created alongside its flag using

World.init(getApplicationContext()); 
// you call this just once in your program. It wraps a singleton 
// that initializes everything that the library is to offer
Country sweden = World.getCountryFrom("sweden"|"se"|"swe"|752); 
  1. To get the flag of a country, the user needs any of the identifiers mensioned in 2 above, then using two methods
World.init(getApplicationContext());
final int swedishFlag = World.getFlagOf("sweden"|"se"|"swe"|752);
  1. If you are interested in all the countries of the world
World.init(getApplicationContext());
final List<Country> countries = World.getAllCountries(); 
// This list cannot be modified by adding, sorting or removing an element. 
// You can only retrieve information therein
```¨
NB: All Country identifiers have getters so you can use that to retrieve a Country
from `List<Country> countries`

Give a star to the repository to get updates of new features.

Get country list with flags

28 Feb 16:20
Compare
Choose a tag to compare

In this release, you can now get all the countries of the world and their flags by calling

CountryFlag.getInstance(getApplicationContext()); // loads the countries and flags

final List<Country> countryList = CountryFlag.allCountriesAndFlags(); // all country list

Enjoy

Test-ready version

27 Feb 16:38
Compare
Choose a tag to compare

Get country flag by using country code or country name

Get country flag from using country code or country name

27 Feb 16:14
1ef18d9
Compare
Choose a tag to compare

The first test version of the library