Active
Project:
World Bank API
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2012 at 13:56 UTC
Updated:
4 Jul 2012 at 10:07 UTC
Jump to comment: Most recent
Comments
Comment #1
mariyam.parakhji commentedHi,
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!
Comment #2
AgentJay commentedIt'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.
Comment #3
therzog commentedAssuming 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).