Retrieve list of country/state/city list for use in AEM component | Community
Skip to main content
cquser1
Level 7
Nov 7, 2017 10:32 AM UTC

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

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.

4 replies

saurabhsarthwah
New Participant
Nov 7, 2017 11:30 AM UTC
cquser1
cquser1Author
Level 7
Nov 7, 2017 11:45 AM UTC

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.

Translate
edubey
Level 10
Nov 7, 2017 12:01 PM UTC

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

Translate