Re:Get information about any country via a RESTful API
by Svip on Thursday October 31, 2013 @07:28AM
(#6646168)
And what about the Netherlands which has two capitals? A national capital (Amsterdam) and an administrative capital (Den Haag)?
And what about countries that use two currencies... oh wait, Cuba actually lists two currencies; never mind.
Re:Get information about any country via a RESTful API
by tokenizerrr on Thursday October 31, 2013 @07:31AM
(#6646180)
As a Dutch person I would say Amsterdam would be the correct listing as it is the official capital, which is what is listed.
http://restcountries.eu/rest/alpha2/za
The South African currency is ZAR, not SOS. Cape Town is the legislative capital, but not _the_ capital.
If you search by currency for ZAR:
http://restcountries.eu/rest/currency/zar
You get South Georgia. I assume that's meant to be South Africa.