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.

edubey
Level 10
November 7, 2017

Hey,

DataSource gives you have the complete control on to your business logic in JAVA. http://www.adobeaemclub.com/implement-datasource-for-drop-down-using-sightly-aem-6-1/

Implement DataSource for drop down using Sightly AEM 6.1 | Adobe AEM Club

You can call the APIs from where you are planning to collect data and return it inside datasource.

Have a look at GitHub - googlemaps/google-maps-services-java: Java client library for Google Maps API Web Services

Thanks