Highlighted

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

cquser1

07-11-2017

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.

Replies

Highlighted

cquser1

07-11-2017

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.

Highlighted

saurabhsarthwah

07-11-2017

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!!