Hi,

I'm very interested in this great extension. Unfortunately I'm not able to get any results. I installed the extension and everything seems to be fine: No errors occur and I activated all the WB views. But actually I'm not sure if I have access to the Worldbank data at all.

Could you please give an example how to get for example the number of inhabitants and the average income of Brazil using Views? Or do you know where to find a manual for that?

Thanks a lot + greetings
Filburt

Comments

mariyam.parakhji’s picture

Hi,

I am facing the same. I can see the listing of the countries but I am unable to see the individual indicator for each. Can you please help ??

Thanx in advance!

AgentJay’s picture

It's fairly easy if you read the documentation. Check out the readme file in the module folder. The most important step is creating filters to get the corresponding data.

therzog’s picture

Could you please give an example how to get for example the number of inhabitants and the average income of Brazil using Views? Or do you know where to find a manual for that?

Assuming you have enabled the wbapi and wbquery modules, along with the dependent modules (views and ctools), then you just need to visit admin/structure/views and enable the "WB indicator data" view, which is one of the default views defined by the wbquery module. I had to fiddle with it in my Drupal sandbox to get the view to register correctly -- for instance, edit the view, make some trivial change, save, and revert.

Then you can produce indicator data like this:

http://www.yoursite.com/wbapi/indicator/SP.POP.TOTL (population for all countries), or
http://www.yoursite.com/wbapi/indicator/NY.GDP.PCAP.KD (per capita income for all countries)
http://www.yoursite.com/wbapi/indicator/SP.POP.TOTL/BR (population of Brazil)

Without any arguments, the indicator data view returns 404

Enable the "WBAPI countries" view to get a list of countries and 2-character codes. This view includes a pager, which didn't work in my sandbox, so again, you might have to fiddle with the view to get a full display.

"WBAPI indicators" produces a list of a all indicators, although what you really need is the indicator code. For that I suggest consulting the World Bank list of indicators at http://data.worldbank.org/indicator (the codes in the URL are the same as the ones you use).