Retrieve list of country/state/city list for use in AEM component | Community
Skip to main content
cquser1
Level 7
November 7, 2017

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

  • November 7, 2017
  • 1 reply
  • 3373 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

saurabhsarthwah
November 7, 2017
cquser1
cquser1Author
Level 7
November 7, 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.

saurabhsarthwah
November 7, 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!!