Expand my Community achievements bar.

Retrieve list of country/state/city list for use in AEM component

Avatar

Level 8

Hi All,

Suppose we have a component dialog and we would like to show the above information in the corresponding drop downs.

Any webservices/api's that can be used to meet this requirement.

Any reference articles/pointers on how this can be done, will be helpful.

4 Replies

Avatar

Level 8

Hi Saurabh,

Thank you for your reply.

Sorry for not being too clear. Actually I need to pull this data from say

Geonames or Google Geocode.

Any reference articles/pointers on how to go about this will be helpful.

Avatar

Level 1

Hey,

Mostly you will get JSON or XML response from these Geoname or Geocode APIs.

Assuming you are using TouchUI, you can parse over that response and create the DataSource using the links provided. Same can be included in component's dialog as select for populating dropdown.

Thanks!!