Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Google Maps Autocomplete in smartfield
Google Maps Autocomplete in smartfield [message #1826879] Sun, 03 May 2020 15:28 Go to next message
Eclipse UserFriend
Hi,

Is it possible to create lookupcall and smartfield with option to select address form Google Maps Geocoding to select address.

For example:

When typing address I get addresses from google, and when I select one address I can get response with all data from that address

Thanks
Re: Google Maps Autocomplete in smartfield [message #1826907 is a reply to message #1826879] Mon, 04 May 2020 07:56 Go to previous messageGo to next message
Eclipse UserFriend
Yes, principally that's possible. In Scout Classic, you have to create a custom lookup service. Especially the methods ILookupService#getDataByText (called while typing text in the smart field) and ILookupService#getDataByKey (called when a lookup row is selected) are of interest. If you want to allow free text as well, i.e. values that are not returned by the service, use AbstractProposalField instead of AbstractSmartField( note that this requires String keys).

To call external APIs, you can use any method you like (google it). For REST, Scout provides the module org.eclipse.scout.rt.rest and implementations for Jersey and Jackson, but other libraries will work as well.

Regards,
Beat
Re: Google Maps Autocomplete in smartfield [message #1827041 is a reply to message #1826907] Wed, 06 May 2020 07:34 Go to previous message
Eclipse UserFriend
Thank you, will try
Previous Topic:Change css style of AbstractImageTile
Next Topic:BrowserField - Parse HTML after post
Goto Forum:
  


Current Time: Mon Jul 07 01:30:38 EDT 2025

Powered by FUDForum. Page generated in 0.03858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top